-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add generator configuration for antd theme
- Loading branch information
1 parent
bac3e72
commit 6e911dc
Showing
47 changed files
with
242 additions
and
366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,6 @@ | ||
// export default { | ||
// validateTime: 'submit', | ||
// type: 'object', | ||
// ui: { | ||
// title: { | ||
// verticalAlign: 'top', | ||
// width: 150, | ||
// }, | ||
// footer: { | ||
// justifyContent: 'right', | ||
// margin: 10, | ||
// onOk: { | ||
// text: '保存', | ||
// type: 'primary', | ||
// size: 'middle', | ||
// shape: 'squash', | ||
// }, | ||
// onCancel: { | ||
// text: '重置', | ||
// type: 'default', | ||
// size: 'middle', | ||
// shape: 'squash', | ||
// }, | ||
// }, | ||
// }, | ||
// theme: 'antd', | ||
// schema: [ | ||
// { | ||
// type: 'array', | ||
// title: '数组容器', | ||
// ui: { | ||
// type: 'array', | ||
// mode: 'normal', | ||
// }, | ||
// items: [ | ||
// { | ||
// validateTime: 'submit', | ||
// type: 'object', | ||
// title: '对象容器', | ||
// ui: { | ||
// type: 'object', | ||
// }, | ||
// schema: [ | ||
// { | ||
// validateTime: 'submit', | ||
// type: 'string', | ||
// title: '输入框', | ||
// ui: { | ||
// type: 'text', | ||
// }, | ||
// }, | ||
// { | ||
// validateTime: 'submit', | ||
// type: 'string', | ||
// title: '输入框', | ||
// ui: { | ||
// type: 'text', | ||
// }, | ||
// }, | ||
// ], | ||
// }, | ||
// ], | ||
// fieldKey: 'array_dk_fFn', | ||
// }, | ||
// { | ||
// validateTime: 'submit', | ||
// type: 'object', | ||
// title: '上传组件', | ||
// ui: { | ||
// type: 'uploader', | ||
// listType: 'picture', | ||
// canDrag: false, | ||
// action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', | ||
// dimension: { | ||
// width: 516, | ||
// height: 238, | ||
// }, | ||
// }, | ||
// fieldKey: 'uploader_Ux8m6P', | ||
// }, | ||
// ], | ||
// } | ||
|
||
export default { | ||
validateTime: 'change', | ||
requiredMode: 'default', | ||
type: 'object', | ||
ui: {}, | ||
theme: 'antd', | ||
schema: [ | ||
{ | ||
type: 'string', | ||
title: '日期选择框', | ||
ui: { | ||
type: 'datePicker', | ||
}, | ||
fieldKey: 'datePicker_rNWNDU', | ||
}, | ||
{ | ||
type: 'string', | ||
title: '时间选择框', | ||
ui: { | ||
type: 'timePicker', | ||
}, | ||
fieldKey: 'timePicker_DhrlL-', | ||
}, | ||
], | ||
} |
4 changes: 1 addition & 3 deletions
4
...tor/src/fields/formItem/cascader.field.ts → ...rm-theme-antd/src/CascaderField/config.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
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
4 changes: 1 addition & 3 deletions
4
...tor/src/fields/formItem/checkbox.field.ts → ...rm-theme-antd/src/CheckboxField/config.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
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
4 changes: 1 addition & 3 deletions
4
.../src/fields/formItem/colorpicker.field.ts → ...theme-antd/src/ColorPickerField/config.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
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
4 changes: 1 addition & 3 deletions
4
...erator/src/fields/auxiliary/text.field.ts → ...p-form-theme-antd/src/NullField/config.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
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
4 changes: 1 addition & 3 deletions
4
...rator/src/fields/formItem/number.field.ts → ...form-theme-antd/src/NumberField/config.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
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
4 changes: 1 addition & 3 deletions
4
...erator/src/fields/formItem/radio.field.ts → ...-form-theme-antd/src/RadioField/config.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
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 |
---|---|---|
|
@@ -55,3 +55,4 @@ const RadioField = ({ | |
} | ||
|
||
export const radio = memo(RadioField) | ||
export { default as config } from './config' |
4 changes: 1 addition & 3 deletions
4
...rator/src/fields/formItem/select.field.ts → ...form-theme-antd/src/SelectField/config.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
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
4 changes: 1 addition & 3 deletions
4
...rator/src/fields/formItem/slider.field.ts → ...form-theme-antd/src/SliderField/config.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
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
4 changes: 1 addition & 3 deletions
4
...rator/src/fields/formItem/switch.field.ts → ...form-theme-antd/src/SwitchField/config.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
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
4 changes: 1 addition & 3 deletions
4
...erator/src/fields/formItem/input.field.ts → ...p-form-theme-antd/src/TextField/config.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
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
4 changes: 1 addition & 3 deletions
4
...r/src/fields/formItem/treeselect.field.ts → ...-theme-antd/src/TreeSelectField/config.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
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.