forked from opentiny/tiny-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: base properties configurable via registry (opentiny#555)
* refactor: base properties configurable * refactor: base properties configurable via registry * refactor: migrate to useMaterial * refactor: rename file * feat: add group and insertPosition options for base properties * feat: add additional condition * feat: unifiy 'others' group * feat: unifiy 'others' label
- Loading branch information
Showing
10 changed files
with
116 additions
and
75 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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
export const basePropertyOptions = { | ||
properties: [ | ||
{ | ||
group: 'others', | ||
label: { | ||
zh_CN: '其他' | ||
}, | ||
content: [ | ||
{ | ||
property: 'id', | ||
type: 'string', | ||
defaultValue: '', | ||
label: { | ||
text: { | ||
zh_CN: '元素id值' | ||
} | ||
}, | ||
cols: 12, | ||
rules: [], | ||
widget: { | ||
component: 'InputConfigurator', | ||
props: {} | ||
} | ||
}, | ||
{ | ||
property: 'className', | ||
type: 'string', | ||
defaultValue: '', | ||
label: { | ||
text: { | ||
zh_CN: '样式类' | ||
} | ||
}, | ||
cols: 12, | ||
rules: [], | ||
widget: { | ||
component: 'InputConfigurator', | ||
props: {} | ||
} | ||
}, | ||
{ | ||
property: 'ref', | ||
type: 'string', | ||
defaultValue: '', | ||
label: { | ||
text: { | ||
zh_CN: 'ref引用类' | ||
} | ||
}, | ||
cols: 12, | ||
rules: [], | ||
widget: { | ||
component: 'InputConfigurator', | ||
props: {} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
insertPosition: 'start' // 'start' | 'end' | ||
} |
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 |
---|---|---|
|
@@ -377,7 +377,7 @@ | |
}, | ||
{ | ||
"label": { | ||
"zh_CN": "其他属性" | ||
"zh_CN": "其他" | ||
}, | ||
"description": { | ||
"zh_CN": "其他属性" | ||
|
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 |
---|---|---|
|
@@ -105,7 +105,7 @@ | |
{ | ||
"name": "1", | ||
"label": { | ||
"zh_CN": "其他配置" | ||
"zh_CN": "其他" | ||
}, | ||
"content": [ | ||
{ | ||
|
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