-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
533 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './setting-field'; | ||
export * from './setting-top-entry'; | ||
export * from './setting-entry'; | ||
export * from './setting-entry-type'; | ||
export * from './setting-prop-entry'; |
45 changes: 45 additions & 0 deletions
45
packages/designer/src/designer/setting/setting-entry-type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { IPublicApiSetters, IPublicModelEditor } from '@alilc/lowcode-types'; | ||
import { IDesigner } from '../designer'; | ||
import { INode } from '../../document'; | ||
import { ISettingField } from './setting-field'; | ||
|
||
export interface ISettingEntry { | ||
readonly designer: IDesigner | undefined; | ||
|
||
readonly id: string; | ||
|
||
/** | ||
* 同样类型的节点 | ||
*/ | ||
readonly isSameComponent: boolean; | ||
|
||
/** | ||
* 一个 | ||
*/ | ||
readonly isSingle: boolean; | ||
|
||
/** | ||
* 多个 | ||
*/ | ||
readonly isMultiple: boolean; | ||
|
||
/** | ||
* 编辑器引用 | ||
*/ | ||
readonly editor: IPublicModelEditor; | ||
|
||
readonly setters: IPublicApiSetters; | ||
|
||
/** | ||
* 取得子项 | ||
*/ | ||
get: (propName: string | number) => ISettingField | null; | ||
|
||
readonly nodes: INode[]; | ||
|
||
// @todo 补充 node 定义 | ||
/** | ||
* 获取 node 中的第一项 | ||
*/ | ||
getNode: () => any; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.