@formily-design/formily-antd 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.umirc.js +44 -0
- package/LICENSE.md +20 -0
- package/README.md +106 -0
- package/copy.ts +6 -0
- package/esm/common/Container/index.d.ts +6 -0
- package/esm/common/Container/index.js +13 -0
- package/esm/common/Container/styles.less +5 -0
- package/esm/common/FormItemSwitcher/index.d.ts +6 -0
- package/esm/common/FormItemSwitcher/index.js +7 -0
- package/esm/common/LoadTemplate/index.d.ts +13 -0
- package/esm/common/LoadTemplate/index.js +8 -0
- package/esm/components/ArrayBase/index.d.ts +1 -0
- package/esm/components/ArrayBase/index.js +71 -0
- package/esm/components/ArrayCards/index.d.ts +1 -0
- package/esm/components/ArrayCards/index.js +1 -0
- package/esm/components/ArrayCards/preview.d.ts +4 -0
- package/esm/components/ArrayCards/preview.js +206 -0
- package/esm/components/ArrayCards/styles.less +2 -0
- package/esm/components/ArrayTable/index.d.ts +1 -0
- package/esm/components/ArrayTable/index.js +1 -0
- package/esm/components/ArrayTable/preview.d.ts +4 -0
- package/esm/components/ArrayTable/preview.js +384 -0
- package/esm/components/ArrayTable/styles.less +2 -0
- package/esm/components/Card/index.d.ts +1 -0
- package/esm/components/Card/index.js +1 -0
- package/esm/components/Card/preview.d.ts +4 -0
- package/esm/components/Card/preview.js +34 -0
- package/esm/components/Cascader/index.d.ts +1 -0
- package/esm/components/Cascader/index.js +1 -0
- package/esm/components/Cascader/preview.d.ts +4 -0
- package/esm/components/Cascader/preview.js +28 -0
- package/esm/components/Checkbox/index.d.ts +1 -0
- package/esm/components/Checkbox/index.js +1 -0
- package/esm/components/Checkbox/preview.d.ts +4 -0
- package/esm/components/Checkbox/preview.js +33 -0
- package/esm/components/DatePicker/index.d.ts +1 -0
- package/esm/components/DatePicker/index.js +1 -0
- package/esm/components/DatePicker/preview.d.ts +4 -0
- package/esm/components/DatePicker/preview.js +50 -0
- package/esm/components/Field/index.d.ts +2 -0
- package/esm/components/Field/index.js +2 -0
- package/esm/components/Field/preview.d.ts +3 -0
- package/esm/components/Field/preview.js +127 -0
- package/esm/components/Field/shared.d.ts +649 -0
- package/esm/components/Field/shared.js +242 -0
- package/esm/components/Form/index.d.ts +1 -0
- package/esm/components/Form/index.js +1 -0
- package/esm/components/Form/preview.d.ts +5 -0
- package/esm/components/Form/preview.js +81 -0
- package/esm/components/Form/styles.less +32 -0
- package/esm/components/FormCollapse/index.d.ts +1 -0
- package/esm/components/FormCollapse/index.js +1 -0
- package/esm/components/FormCollapse/preview.d.ts +6 -0
- package/esm/components/FormCollapse/preview.js +116 -0
- package/esm/components/FormGrid/index.d.ts +1 -0
- package/esm/components/FormGrid/index.js +1 -0
- package/esm/components/FormGrid/preview.d.ts +9 -0
- package/esm/components/FormGrid/preview.js +131 -0
- package/esm/components/FormGrid/styles.less +5 -0
- package/esm/components/FormLayout/index.d.ts +1 -0
- package/esm/components/FormLayout/index.js +1 -0
- package/esm/components/FormLayout/preview.d.ts +4 -0
- package/esm/components/FormLayout/preview.js +29 -0
- package/esm/components/FormTab/index.d.ts +1 -0
- package/esm/components/FormTab/index.js +1 -0
- package/esm/components/FormTab/preview.d.ts +6 -0
- package/esm/components/FormTab/preview.js +123 -0
- package/esm/components/Input/index.d.ts +1 -0
- package/esm/components/Input/index.js +1 -0
- package/esm/components/Input/preview.d.ts +4 -0
- package/esm/components/Input/preview.js +50 -0
- package/esm/components/NumberPicker/index.d.ts +1 -0
- package/esm/components/NumberPicker/index.js +1 -0
- package/esm/components/NumberPicker/preview.d.ts +4 -0
- package/esm/components/NumberPicker/preview.js +29 -0
- package/esm/components/Object/index.d.ts +1 -0
- package/esm/components/Object/index.js +1 -0
- package/esm/components/Object/preview.d.ts +4 -0
- package/esm/components/Object/preview.js +26 -0
- package/esm/components/Password/index.d.ts +1 -0
- package/esm/components/Password/index.js +1 -0
- package/esm/components/Password/preview.d.ts +4 -0
- package/esm/components/Password/preview.js +28 -0
- package/esm/components/Radio/index.d.ts +1 -0
- package/esm/components/Radio/index.js +1 -0
- package/esm/components/Radio/preview.d.ts +4 -0
- package/esm/components/Radio/preview.js +33 -0
- package/esm/components/Rate/index.d.ts +1 -0
- package/esm/components/Rate/index.js +1 -0
- package/esm/components/Rate/preview.d.ts +4 -0
- package/esm/components/Rate/preview.js +29 -0
- package/esm/components/Select/index.d.ts +1 -0
- package/esm/components/Select/index.js +1 -0
- package/esm/components/Select/preview.d.ts +4 -0
- package/esm/components/Select/preview.js +28 -0
- package/esm/components/Slider/index.d.ts +1 -0
- package/esm/components/Slider/index.js +1 -0
- package/esm/components/Slider/preview.d.ts +4 -0
- package/esm/components/Slider/preview.js +29 -0
- package/esm/components/Space/index.d.ts +1 -0
- package/esm/components/Space/index.js +1 -0
- package/esm/components/Space/preview.d.ts +4 -0
- package/esm/components/Space/preview.js +30 -0
- package/esm/components/Switch/index.d.ts +1 -0
- package/esm/components/Switch/index.js +1 -0
- package/esm/components/Switch/preview.d.ts +4 -0
- package/esm/components/Switch/preview.js +29 -0
- package/esm/components/Text/index.d.ts +1 -0
- package/esm/components/Text/index.js +1 -0
- package/esm/components/Text/preview.d.ts +11 -0
- package/esm/components/Text/preview.js +32 -0
- package/esm/components/Text/styles.less +10 -0
- package/esm/components/TimePicker/index.d.ts +1 -0
- package/esm/components/TimePicker/index.js +1 -0
- package/esm/components/TimePicker/preview.d.ts +4 -0
- package/esm/components/TimePicker/preview.js +50 -0
- package/esm/components/Transfer/index.d.ts +1 -0
- package/esm/components/Transfer/index.js +1 -0
- package/esm/components/Transfer/preview.d.ts +4 -0
- package/esm/components/Transfer/preview.js +28 -0
- package/esm/components/TreeSelect/index.d.ts +1 -0
- package/esm/components/TreeSelect/index.js +1 -0
- package/esm/components/TreeSelect/preview.d.ts +4 -0
- package/esm/components/TreeSelect/preview.js +28 -0
- package/esm/components/Upload/index.d.ts +1 -0
- package/esm/components/Upload/index.js +1 -0
- package/esm/components/Upload/preview.d.ts +4 -0
- package/esm/components/Upload/preview.js +56 -0
- package/esm/components/index.d.ts +27 -0
- package/esm/components/index.js +27 -0
- package/esm/hooks/index.d.ts +1 -0
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/useDropTemplate.d.ts +2 -0
- package/esm/hooks/useDropTemplate.js +20 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/locales/ArrayBase.d.ts +77 -0
- package/esm/locales/ArrayBase.js +91 -0
- package/esm/locales/ArrayCards.d.ts +1 -0
- package/esm/locales/ArrayCards.js +19 -0
- package/esm/locales/ArrayTable.d.ts +138 -0
- package/esm/locales/ArrayTable.js +129 -0
- package/esm/locales/Card.d.ts +44 -0
- package/esm/locales/Card.js +44 -0
- package/esm/locales/Cascader.d.ts +59 -0
- package/esm/locales/Cascader.js +59 -0
- package/esm/locales/Checkbox.d.ts +11 -0
- package/esm/locales/Checkbox.js +11 -0
- package/esm/locales/Component.d.ts +53 -0
- package/esm/locales/Component.js +53 -0
- package/esm/locales/DatePicker.d.ts +75 -0
- package/esm/locales/DatePicker.js +86 -0
- package/esm/locales/Field.d.ts +341 -0
- package/esm/locales/Field.js +338 -0
- package/esm/locales/Form.d.ts +1 -0
- package/esm/locales/Form.js +133 -0
- package/esm/locales/FormCollapse.d.ts +88 -0
- package/esm/locales/FormCollapse.js +82 -0
- package/esm/locales/FormGrid.d.ts +76 -0
- package/esm/locales/FormGrid.js +76 -0
- package/esm/locales/FormLayout.d.ts +128 -0
- package/esm/locales/FormLayout.js +122 -0
- package/esm/locales/FormTab.d.ts +82 -0
- package/esm/locales/FormTab.js +82 -0
- package/esm/locales/Input.d.ts +50 -0
- package/esm/locales/Input.js +50 -0
- package/esm/locales/NumberPicker.d.ts +77 -0
- package/esm/locales/NumberPicker.js +77 -0
- package/esm/locales/Object.d.ts +11 -0
- package/esm/locales/Object.js +11 -0
- package/esm/locales/Password.d.ts +1 -0
- package/esm/locales/Password.js +13 -0
- package/esm/locales/Radio.d.ts +47 -0
- package/esm/locales/Radio.js +29 -0
- package/esm/locales/Rate.d.ts +41 -0
- package/esm/locales/Rate.js +32 -0
- package/esm/locales/Select.d.ts +125 -0
- package/esm/locales/Select.js +125 -0
- package/esm/locales/Slider.d.ts +71 -0
- package/esm/locales/Slider.js +71 -0
- package/esm/locales/Space.d.ts +53 -0
- package/esm/locales/Space.js +50 -0
- package/esm/locales/Switch.d.ts +11 -0
- package/esm/locales/Switch.js +11 -0
- package/esm/locales/Text.d.ts +38 -0
- package/esm/locales/Text.js +38 -0
- package/esm/locales/TextArea.d.ts +35 -0
- package/esm/locales/TextArea.js +35 -0
- package/esm/locales/TimePicker.d.ts +2 -0
- package/esm/locales/TimePicker.js +72 -0
- package/esm/locales/Transfer.d.ts +56 -0
- package/esm/locales/Transfer.js +38 -0
- package/esm/locales/TreeSelect.d.ts +181 -0
- package/esm/locales/TreeSelect.js +178 -0
- package/esm/locales/Upload.d.ts +78 -0
- package/esm/locales/Upload.js +92 -0
- package/esm/locales/Void.d.ts +11 -0
- package/esm/locales/Void.js +11 -0
- package/esm/locales/all.d.ts +31 -0
- package/esm/locales/all.js +31 -0
- package/esm/locales/index.d.ts +2 -0
- package/esm/locales/index.js +2 -0
- package/esm/schemas/ArrayCards.d.ts +59 -0
- package/esm/schemas/ArrayCards.js +4 -0
- package/esm/schemas/ArrayTable.d.ts +5 -0
- package/esm/schemas/ArrayTable.js +111 -0
- package/esm/schemas/CSSStyle.d.ts +2 -0
- package/esm/schemas/CSSStyle.js +49 -0
- package/esm/schemas/Card.d.ts +4 -0
- package/esm/schemas/Card.js +45 -0
- package/esm/schemas/Cascader.d.ts +2 -0
- package/esm/schemas/Cascader.js +74 -0
- package/esm/schemas/Checkbox.d.ts +4 -0
- package/esm/schemas/Checkbox.js +10 -0
- package/esm/schemas/DatePicker.d.ts +4 -0
- package/esm/schemas/DatePicker.js +104 -0
- package/esm/schemas/Form.d.ts +2 -0
- package/esm/schemas/Form.js +6 -0
- package/esm/schemas/FormCollapse.d.ts +4 -0
- package/esm/schemas/FormCollapse.js +58 -0
- package/esm/schemas/FormGrid.d.ts +4 -0
- package/esm/schemas/FormGrid.js +76 -0
- package/esm/schemas/FormItem.d.ts +2 -0
- package/esm/schemas/FormItem.js +138 -0
- package/esm/schemas/FormLayout.d.ts +2 -0
- package/esm/schemas/FormLayout.js +121 -0
- package/esm/schemas/FormTab.d.ts +4 -0
- package/esm/schemas/FormTab.js +43 -0
- package/esm/schemas/Input.d.ts +4 -0
- package/esm/schemas/Input.js +89 -0
- package/esm/schemas/NumberPicker.d.ts +2 -0
- package/esm/schemas/NumberPicker.js +79 -0
- package/esm/schemas/Password.d.ts +2 -0
- package/esm/schemas/Password.js +9 -0
- package/esm/schemas/Radio.d.ts +4 -0
- package/esm/schemas/Radio.js +35 -0
- package/esm/schemas/Rate.d.ts +2 -0
- package/esm/schemas/Rate.js +38 -0
- package/esm/schemas/Select.d.ts +2 -0
- package/esm/schemas/Select.js +159 -0
- package/esm/schemas/Slider.d.ts +2 -0
- package/esm/schemas/Slider.js +77 -0
- package/esm/schemas/Space.d.ts +2 -0
- package/esm/schemas/Space.js +39 -0
- package/esm/schemas/Switch.d.ts +2 -0
- package/esm/schemas/Switch.js +19 -0
- package/esm/schemas/Text.d.ts +2 -0
- package/esm/schemas/Text.js +19 -0
- package/esm/schemas/TimePicker.d.ts +116 -0
- package/esm/schemas/TimePicker.js +120 -0
- package/esm/schemas/Transfer.d.ts +2 -0
- package/esm/schemas/Transfer.js +44 -0
- package/esm/schemas/TreeSelect.d.ts +2 -0
- package/esm/schemas/TreeSelect.js +137 -0
- package/esm/schemas/Upload.d.ts +4 -0
- package/esm/schemas/Upload.js +99 -0
- package/esm/schemas/all.d.ts +27 -0
- package/esm/schemas/all.js +27 -0
- package/esm/schemas/index.d.ts +2 -0
- package/esm/schemas/index.js +2 -0
- package/esm/shared.d.ts +13 -0
- package/esm/shared.js +86 -0
- package/lib/common/Container/index.d.ts +6 -0
- package/lib/common/Container/index.js +20 -0
- package/lib/common/Container/styles.less +5 -0
- package/lib/common/FormItemSwitcher/index.d.ts +6 -0
- package/lib/common/FormItemSwitcher/index.js +14 -0
- package/lib/common/LoadTemplate/index.d.ts +13 -0
- package/lib/common/LoadTemplate/index.js +15 -0
- package/lib/components/ArrayBase/index.d.ts +1 -0
- package/lib/components/ArrayBase/index.js +75 -0
- package/lib/components/ArrayCards/index.d.ts +1 -0
- package/lib/components/ArrayCards/index.js +17 -0
- package/lib/components/ArrayCards/preview.d.ts +4 -0
- package/lib/components/ArrayCards/preview.js +245 -0
- package/lib/components/ArrayCards/styles.less +2 -0
- package/lib/components/ArrayTable/index.d.ts +1 -0
- package/lib/components/ArrayTable/index.js +17 -0
- package/lib/components/ArrayTable/preview.d.ts +4 -0
- package/lib/components/ArrayTable/preview.js +390 -0
- package/lib/components/ArrayTable/styles.less +2 -0
- package/lib/components/Card/index.d.ts +1 -0
- package/lib/components/Card/index.js +17 -0
- package/lib/components/Card/preview.d.ts +4 -0
- package/lib/components/Card/preview.js +41 -0
- package/lib/components/Cascader/index.d.ts +1 -0
- package/lib/components/Cascader/index.js +17 -0
- package/lib/components/Cascader/preview.d.ts +4 -0
- package/lib/components/Cascader/preview.js +31 -0
- package/lib/components/Checkbox/index.d.ts +1 -0
- package/lib/components/Checkbox/index.js +17 -0
- package/lib/components/Checkbox/preview.d.ts +4 -0
- package/lib/components/Checkbox/preview.js +36 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/DatePicker/index.js +17 -0
- package/lib/components/DatePicker/preview.d.ts +4 -0
- package/lib/components/DatePicker/preview.js +53 -0
- package/lib/components/Field/index.d.ts +2 -0
- package/lib/components/Field/index.js +18 -0
- package/lib/components/Field/preview.d.ts +3 -0
- package/lib/components/Field/preview.js +133 -0
- package/lib/components/Field/shared.d.ts +649 -0
- package/lib/components/Field/shared.js +248 -0
- package/lib/components/Form/index.d.ts +1 -0
- package/lib/components/Form/index.js +17 -0
- package/lib/components/Form/preview.d.ts +5 -0
- package/lib/components/Form/preview.js +117 -0
- package/lib/components/Form/styles.less +32 -0
- package/lib/components/FormCollapse/index.d.ts +1 -0
- package/lib/components/FormCollapse/index.js +17 -0
- package/lib/components/FormCollapse/preview.d.ts +6 -0
- package/lib/components/FormCollapse/preview.js +152 -0
- package/lib/components/FormGrid/index.d.ts +1 -0
- package/lib/components/FormGrid/index.js +17 -0
- package/lib/components/FormGrid/preview.d.ts +9 -0
- package/lib/components/FormGrid/preview.js +137 -0
- package/lib/components/FormGrid/styles.less +5 -0
- package/lib/components/FormLayout/index.d.ts +1 -0
- package/lib/components/FormLayout/index.js +17 -0
- package/lib/components/FormLayout/preview.d.ts +4 -0
- package/lib/components/FormLayout/preview.js +32 -0
- package/lib/components/FormTab/index.d.ts +1 -0
- package/lib/components/FormTab/index.js +17 -0
- package/lib/components/FormTab/preview.d.ts +6 -0
- package/lib/components/FormTab/preview.js +159 -0
- package/lib/components/Input/index.d.ts +1 -0
- package/lib/components/Input/index.js +17 -0
- package/lib/components/Input/preview.d.ts +4 -0
- package/lib/components/Input/preview.js +53 -0
- package/lib/components/NumberPicker/index.d.ts +1 -0
- package/lib/components/NumberPicker/index.js +17 -0
- package/lib/components/NumberPicker/preview.d.ts +4 -0
- package/lib/components/NumberPicker/preview.js +32 -0
- package/lib/components/Object/index.d.ts +1 -0
- package/lib/components/Object/index.js +17 -0
- package/lib/components/Object/preview.d.ts +4 -0
- package/lib/components/Object/preview.js +29 -0
- package/lib/components/Password/index.d.ts +1 -0
- package/lib/components/Password/index.js +17 -0
- package/lib/components/Password/preview.d.ts +4 -0
- package/lib/components/Password/preview.js +31 -0
- package/lib/components/Radio/index.d.ts +1 -0
- package/lib/components/Radio/index.js +17 -0
- package/lib/components/Radio/preview.d.ts +4 -0
- package/lib/components/Radio/preview.js +36 -0
- package/lib/components/Rate/index.d.ts +1 -0
- package/lib/components/Rate/index.js +17 -0
- package/lib/components/Rate/preview.d.ts +4 -0
- package/lib/components/Rate/preview.js +32 -0
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +17 -0
- package/lib/components/Select/preview.d.ts +4 -0
- package/lib/components/Select/preview.js +31 -0
- package/lib/components/Slider/index.d.ts +1 -0
- package/lib/components/Slider/index.js +17 -0
- package/lib/components/Slider/preview.d.ts +4 -0
- package/lib/components/Slider/preview.js +32 -0
- package/lib/components/Space/index.d.ts +1 -0
- package/lib/components/Space/index.js +17 -0
- package/lib/components/Space/preview.d.ts +4 -0
- package/lib/components/Space/preview.js +33 -0
- package/lib/components/Switch/index.d.ts +1 -0
- package/lib/components/Switch/index.js +17 -0
- package/lib/components/Switch/preview.d.ts +4 -0
- package/lib/components/Switch/preview.js +32 -0
- package/lib/components/Text/index.d.ts +1 -0
- package/lib/components/Text/index.js +17 -0
- package/lib/components/Text/preview.d.ts +11 -0
- package/lib/components/Text/preview.js +39 -0
- package/lib/components/Text/styles.less +10 -0
- package/lib/components/TimePicker/index.d.ts +1 -0
- package/lib/components/TimePicker/index.js +17 -0
- package/lib/components/TimePicker/preview.d.ts +4 -0
- package/lib/components/TimePicker/preview.js +53 -0
- package/lib/components/Transfer/index.d.ts +1 -0
- package/lib/components/Transfer/index.js +17 -0
- package/lib/components/Transfer/preview.d.ts +4 -0
- package/lib/components/Transfer/preview.js +31 -0
- package/lib/components/TreeSelect/index.d.ts +1 -0
- package/lib/components/TreeSelect/index.js +17 -0
- package/lib/components/TreeSelect/preview.d.ts +4 -0
- package/lib/components/TreeSelect/preview.js +31 -0
- package/lib/components/Upload/index.d.ts +1 -0
- package/lib/components/Upload/index.js +17 -0
- package/lib/components/Upload/preview.d.ts +4 -0
- package/lib/components/Upload/preview.js +59 -0
- package/lib/components/index.d.ts +27 -0
- package/lib/components/index.js +43 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +17 -0
- package/lib/hooks/useDropTemplate.d.ts +2 -0
- package/lib/hooks/useDropTemplate.js +24 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +19 -0
- package/lib/locales/ArrayBase.d.ts +77 -0
- package/lib/locales/ArrayBase.js +94 -0
- package/lib/locales/ArrayCards.d.ts +1 -0
- package/lib/locales/ArrayCards.js +22 -0
- package/lib/locales/ArrayTable.d.ts +138 -0
- package/lib/locales/ArrayTable.js +132 -0
- package/lib/locales/Card.d.ts +44 -0
- package/lib/locales/Card.js +47 -0
- package/lib/locales/Cascader.d.ts +59 -0
- package/lib/locales/Cascader.js +62 -0
- package/lib/locales/Checkbox.d.ts +11 -0
- package/lib/locales/Checkbox.js +14 -0
- package/lib/locales/Component.d.ts +53 -0
- package/lib/locales/Component.js +56 -0
- package/lib/locales/DatePicker.d.ts +75 -0
- package/lib/locales/DatePicker.js +89 -0
- package/lib/locales/Field.d.ts +341 -0
- package/lib/locales/Field.js +341 -0
- package/lib/locales/Form.d.ts +1 -0
- package/lib/locales/Form.js +136 -0
- package/lib/locales/FormCollapse.d.ts +88 -0
- package/lib/locales/FormCollapse.js +85 -0
- package/lib/locales/FormGrid.d.ts +76 -0
- package/lib/locales/FormGrid.js +79 -0
- package/lib/locales/FormLayout.d.ts +128 -0
- package/lib/locales/FormLayout.js +125 -0
- package/lib/locales/FormTab.d.ts +82 -0
- package/lib/locales/FormTab.js +85 -0
- package/lib/locales/Input.d.ts +50 -0
- package/lib/locales/Input.js +53 -0
- package/lib/locales/NumberPicker.d.ts +77 -0
- package/lib/locales/NumberPicker.js +80 -0
- package/lib/locales/Object.d.ts +11 -0
- package/lib/locales/Object.js +14 -0
- package/lib/locales/Password.d.ts +1 -0
- package/lib/locales/Password.js +16 -0
- package/lib/locales/Radio.d.ts +47 -0
- package/lib/locales/Radio.js +32 -0
- package/lib/locales/Rate.d.ts +41 -0
- package/lib/locales/Rate.js +35 -0
- package/lib/locales/Select.d.ts +125 -0
- package/lib/locales/Select.js +128 -0
- package/lib/locales/Slider.d.ts +71 -0
- package/lib/locales/Slider.js +74 -0
- package/lib/locales/Space.d.ts +53 -0
- package/lib/locales/Space.js +53 -0
- package/lib/locales/Switch.d.ts +11 -0
- package/lib/locales/Switch.js +14 -0
- package/lib/locales/Text.d.ts +38 -0
- package/lib/locales/Text.js +41 -0
- package/lib/locales/TextArea.d.ts +35 -0
- package/lib/locales/TextArea.js +38 -0
- package/lib/locales/TimePicker.d.ts +2 -0
- package/lib/locales/TimePicker.js +75 -0
- package/lib/locales/Transfer.d.ts +56 -0
- package/lib/locales/Transfer.js +41 -0
- package/lib/locales/TreeSelect.d.ts +181 -0
- package/lib/locales/TreeSelect.js +181 -0
- package/lib/locales/Upload.d.ts +78 -0
- package/lib/locales/Upload.js +95 -0
- package/lib/locales/Void.d.ts +11 -0
- package/lib/locales/Void.js +14 -0
- package/lib/locales/all.d.ts +31 -0
- package/lib/locales/all.js +47 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +38 -0
- package/lib/schemas/ArrayCards.d.ts +59 -0
- package/lib/schemas/ArrayCards.js +7 -0
- package/lib/schemas/ArrayTable.d.ts +5 -0
- package/lib/schemas/ArrayTable.js +114 -0
- package/lib/schemas/CSSStyle.d.ts +2 -0
- package/lib/schemas/CSSStyle.js +52 -0
- package/lib/schemas/Card.d.ts +4 -0
- package/lib/schemas/Card.js +48 -0
- package/lib/schemas/Cascader.d.ts +2 -0
- package/lib/schemas/Cascader.js +77 -0
- package/lib/schemas/Checkbox.d.ts +4 -0
- package/lib/schemas/Checkbox.js +13 -0
- package/lib/schemas/DatePicker.d.ts +4 -0
- package/lib/schemas/DatePicker.js +107 -0
- package/lib/schemas/Form.d.ts +2 -0
- package/lib/schemas/Form.js +9 -0
- package/lib/schemas/FormCollapse.d.ts +4 -0
- package/lib/schemas/FormCollapse.js +61 -0
- package/lib/schemas/FormGrid.d.ts +4 -0
- package/lib/schemas/FormGrid.js +79 -0
- package/lib/schemas/FormItem.d.ts +2 -0
- package/lib/schemas/FormItem.js +141 -0
- package/lib/schemas/FormLayout.d.ts +2 -0
- package/lib/schemas/FormLayout.js +124 -0
- package/lib/schemas/FormTab.d.ts +4 -0
- package/lib/schemas/FormTab.js +46 -0
- package/lib/schemas/Input.d.ts +4 -0
- package/lib/schemas/Input.js +92 -0
- package/lib/schemas/NumberPicker.d.ts +2 -0
- package/lib/schemas/NumberPicker.js +82 -0
- package/lib/schemas/Password.d.ts +2 -0
- package/lib/schemas/Password.js +12 -0
- package/lib/schemas/Radio.d.ts +4 -0
- package/lib/schemas/Radio.js +38 -0
- package/lib/schemas/Rate.d.ts +2 -0
- package/lib/schemas/Rate.js +41 -0
- package/lib/schemas/Select.d.ts +2 -0
- package/lib/schemas/Select.js +162 -0
- package/lib/schemas/Slider.d.ts +2 -0
- package/lib/schemas/Slider.js +80 -0
- package/lib/schemas/Space.d.ts +2 -0
- package/lib/schemas/Space.js +42 -0
- package/lib/schemas/Switch.d.ts +2 -0
- package/lib/schemas/Switch.js +22 -0
- package/lib/schemas/Text.d.ts +2 -0
- package/lib/schemas/Text.js +22 -0
- package/lib/schemas/TimePicker.d.ts +116 -0
- package/lib/schemas/TimePicker.js +123 -0
- package/lib/schemas/Transfer.d.ts +2 -0
- package/lib/schemas/Transfer.js +47 -0
- package/lib/schemas/TreeSelect.d.ts +2 -0
- package/lib/schemas/TreeSelect.js +140 -0
- package/lib/schemas/Upload.d.ts +4 -0
- package/lib/schemas/Upload.js +102 -0
- package/lib/schemas/all.d.ts +27 -0
- package/lib/schemas/all.js +43 -0
- package/lib/schemas/index.d.ts +2 -0
- package/lib/schemas/index.js +38 -0
- package/lib/shared.d.ts +13 -0
- package/lib/shared.js +98 -0
- package/package.json +75 -0
- package/playground/components/AsyncSelect/AsyncSelect.tsx +38 -0
- package/playground/components/AsyncSelect/index.tsx +1 -0
- package/playground/components/AsyncSelect/preview.tsx +36 -0
- package/playground/components/ClickEventSetter/ActionConfigModal.tsx +173 -0
- package/playground/components/ClickEventSetter/ActionList.tsx +67 -0
- package/playground/components/ClickEventSetter/DownloadPanel.tsx +24 -0
- package/playground/components/ClickEventSetter/NavigationPanel.tsx +42 -0
- package/playground/components/ClickEventSetter/RequestPanel.tsx +190 -0
- package/playground/components/ClickEventSetter/index.tsx +90 -0
- package/playground/components/ClickEventSetter/styles.less +89 -0
- package/playground/components/ClickEventSetter/types.ts +43 -0
- package/playground/components/FormButton/FormButton.tsx +189 -0
- package/playground/components/FormButton/hooks/useEventActionExecutor.ts +65 -0
- package/playground/components/FormButton/index.ts +1 -0
- package/playground/components/FormButton/preview.tsx +60 -0
- package/playground/components/FormButton/utils/actionExecutors.ts +96 -0
- package/playground/components/FormButtonGroup/FormButtonGroup.tsx +21 -0
- package/playground/components/FormButtonGroup/index.ts +1 -0
- package/playground/components/FormButtonGroup/preview.tsx +66 -0
- package/playground/components/FormList/FormList.tsx +164 -0
- package/playground/components/FormList/index.tsx +1 -0
- package/playground/components/FormList/preview.tsx +429 -0
- package/playground/components/LocationPicker/LocationModal.tsx +328 -0
- package/playground/components/LocationPicker/LocationPicker.tsx +163 -0
- package/playground/components/LocationPicker/SearchBox.tsx +122 -0
- package/playground/components/LocationPicker/api.ts +77 -0
- package/playground/components/LocationPicker/constants.ts +2 -0
- package/playground/components/LocationPicker/index.tsx +44 -0
- package/playground/components/LocationPicker/types.ts +160 -0
- package/playground/components/LocationPicker/utils.ts +46 -0
- package/playground/components/ResourceIcon/index.module.less +10 -0
- package/playground/components/ResourceIcon/index.tsx +10 -0
- package/playground/designerLocales/en-US.ts +38 -0
- package/playground/designerLocales/index.ts +6 -0
- package/playground/designerLocales/ko-KR.ts +10 -0
- package/playground/designerLocales/zh-CN.ts +38 -0
- package/playground/locales/FormButton.ts +38 -0
- package/playground/locales/FormButtonGroup.ts +29 -0
- package/playground/locales/LocationPicker.ts +30 -0
- package/playground/locales/all.ts +3 -0
- package/playground/locales/index.ts +3 -0
- package/playground/main.tsx +222 -0
- package/playground/react-app-env.d.ts +4 -0
- package/playground/request.ts +123 -0
- package/playground/schemas/FormButton.ts +42 -0
- package/playground/schemas/FormButtonGroup.ts +24 -0
- package/playground/schemas/LocationPicker.ts +14 -0
- package/playground/schemas/all.ts +3 -0
- package/playground/schemas/index.ts +3 -0
- package/playground/service/index.ts +1 -0
- package/playground/service/schema.ts +22 -0
- package/playground/template.ejs +20 -0
- package/playground/utils.ts +744 -0
- package/playground/webpack.base.ts +123 -0
- package/playground/webpack.dev.ts +64 -0
- package/playground/webpack.prod.ts +46 -0
- package/playground/widgets/ActionsWidget.tsx +58 -0
- package/playground/widgets/LogoWidget.tsx +20 -0
- package/playground/widgets/MarkupSchemaWidget.tsx +164 -0
- package/playground/widgets/PreviewWidget.tsx +188 -0
- package/playground/widgets/SchemaEditorWidget.tsx +27 -0
- package/playground/widgets/index.ts +5 -0
- package/tsconfig.build.json +12 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormTab = void 0;
|
|
4
|
+
exports.FormTab = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
animated: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Switch',
|
|
11
|
+
},
|
|
12
|
+
centered: {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
'x-decorator': 'FormItem',
|
|
15
|
+
'x-component': 'Switch',
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: ['large', 'small', 'default', null],
|
|
20
|
+
'x-decorator': 'FormItem',
|
|
21
|
+
'x-component': 'Select',
|
|
22
|
+
'x-component-props': {
|
|
23
|
+
defaultValue: 'default',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
type: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
'x-decorator': 'FormItem',
|
|
29
|
+
'x-component': 'Radio.Group',
|
|
30
|
+
'x-component-props': {
|
|
31
|
+
defaultValue: 'line',
|
|
32
|
+
optionType: 'button',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
exports.FormTab.TabPane = {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
tab: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
'x-decorator': 'FormItem',
|
|
43
|
+
'x-component': 'Input',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Input = void 0;
|
|
4
|
+
exports.Input = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
addonBefore: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Input',
|
|
11
|
+
},
|
|
12
|
+
addonAfter: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
'x-decorator': 'FormItem',
|
|
15
|
+
'x-component': 'Input',
|
|
16
|
+
},
|
|
17
|
+
prefix: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
'x-decorator': 'FormItem',
|
|
20
|
+
'x-component': 'Input',
|
|
21
|
+
},
|
|
22
|
+
suffix: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
'x-decorator': 'FormItem',
|
|
25
|
+
'x-component': 'Input',
|
|
26
|
+
},
|
|
27
|
+
allowClear: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
'x-decorator': 'FormItem',
|
|
30
|
+
'x-component': 'Switch',
|
|
31
|
+
},
|
|
32
|
+
bordered: {
|
|
33
|
+
type: 'boolean',
|
|
34
|
+
'x-decorator': 'FormItem',
|
|
35
|
+
'x-component': 'Switch',
|
|
36
|
+
'x-component-props': {
|
|
37
|
+
defaultChecked: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
maxLength: {
|
|
41
|
+
type: 'number',
|
|
42
|
+
'x-decorator': 'FormItem',
|
|
43
|
+
'x-component': 'NumberPicker',
|
|
44
|
+
},
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
'x-decorator': 'FormItem',
|
|
48
|
+
'x-component': 'Input',
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
enum: ['large', 'small', 'middle', null],
|
|
53
|
+
'x-decorator': 'FormItem',
|
|
54
|
+
'x-component': 'Select',
|
|
55
|
+
'x-component-props': {
|
|
56
|
+
defaultValue: 'middle',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
exports.Input.TextArea = {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
bordered: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
'x-decorator': 'FormItem',
|
|
67
|
+
'x-component': 'Switch',
|
|
68
|
+
'x-component-props': {
|
|
69
|
+
defaultChecked: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
maxLength: {
|
|
73
|
+
type: 'number',
|
|
74
|
+
'x-decorator': 'FormItem',
|
|
75
|
+
'x-component': 'NumberPicker',
|
|
76
|
+
},
|
|
77
|
+
placeholder: {
|
|
78
|
+
type: 'string',
|
|
79
|
+
'x-decorator': 'FormItem',
|
|
80
|
+
'x-component': 'Input',
|
|
81
|
+
},
|
|
82
|
+
autoSize: {
|
|
83
|
+
type: 'boolean',
|
|
84
|
+
'x-decorator': 'FormItem',
|
|
85
|
+
'x-component': 'Switch',
|
|
86
|
+
},
|
|
87
|
+
showCount: {
|
|
88
|
+
'x-decorator': 'FormItem',
|
|
89
|
+
'x-component': 'Switch',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberPicker = void 0;
|
|
4
|
+
exports.NumberPicker = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
decimalSeparator: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Input',
|
|
11
|
+
},
|
|
12
|
+
precision: {
|
|
13
|
+
type: 'number',
|
|
14
|
+
'x-decorator': 'FormItem',
|
|
15
|
+
'x-component': 'NumberPicker',
|
|
16
|
+
},
|
|
17
|
+
max: {
|
|
18
|
+
type: 'number',
|
|
19
|
+
'x-decorator': 'FormItem',
|
|
20
|
+
'x-component': 'NumberPicker',
|
|
21
|
+
},
|
|
22
|
+
min: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
'x-decorator': 'FormItem',
|
|
25
|
+
'x-component': 'NumberPicker',
|
|
26
|
+
},
|
|
27
|
+
step: {
|
|
28
|
+
type: 'number',
|
|
29
|
+
'x-decorator': 'FormItem',
|
|
30
|
+
'x-component': 'NumberPicker',
|
|
31
|
+
},
|
|
32
|
+
placeholder: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
'x-decorator': 'FormItem',
|
|
35
|
+
'x-component': 'Input',
|
|
36
|
+
},
|
|
37
|
+
size: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
enum: ['large', 'small', 'middle', null],
|
|
40
|
+
'x-decorator': 'FormItem',
|
|
41
|
+
'x-component': 'Select',
|
|
42
|
+
'x-component-props': {
|
|
43
|
+
defaultValue: 'middle',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
formatter: {
|
|
47
|
+
'x-decorator': 'FormItem',
|
|
48
|
+
'x-component': 'ValueInput',
|
|
49
|
+
'x-component-props': {
|
|
50
|
+
include: ['EXPRESSION'],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
parser: {
|
|
54
|
+
'x-decorator': 'FormItem',
|
|
55
|
+
'x-component': 'ValueInput',
|
|
56
|
+
'x-component-props': {
|
|
57
|
+
include: ['EXPRESSION'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
stringMode: {
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
'x-decorator': 'FormItem',
|
|
63
|
+
'x-component': 'Switch',
|
|
64
|
+
},
|
|
65
|
+
bordered: {
|
|
66
|
+
type: 'boolean',
|
|
67
|
+
'x-decorator': 'FormItem',
|
|
68
|
+
'x-component': 'Switch',
|
|
69
|
+
'x-component-props': {
|
|
70
|
+
defaultChecked: true,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
keyboard: {
|
|
74
|
+
type: 'boolean',
|
|
75
|
+
'x-decorator': 'FormItem',
|
|
76
|
+
'x-component': 'Switch',
|
|
77
|
+
'x-component-props': {
|
|
78
|
+
defaultChecked: true,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Password = void 0;
|
|
4
|
+
const Input_1 = require("./Input");
|
|
5
|
+
exports.Password = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: Object.assign(Object.assign({}, Input_1.Input.properties), { checkStrength: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Switch',
|
|
11
|
+
} }),
|
|
12
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Radio = void 0;
|
|
4
|
+
exports.Radio = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
autoFocus: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Switch',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.Radio.Group = {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
optionType: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: ['default', 'button'],
|
|
20
|
+
'x-decorator': 'FormItem',
|
|
21
|
+
'x-component': 'Radio.Group',
|
|
22
|
+
'x-component-props': {
|
|
23
|
+
defaultValue: 'default',
|
|
24
|
+
optionType: 'button',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
buttonStyle: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
enum: ['outline', 'solid'],
|
|
30
|
+
'x-decorator': 'FormItem',
|
|
31
|
+
'x-component': 'Radio.Group',
|
|
32
|
+
'x-component-props': {
|
|
33
|
+
defaultValue: 'outline',
|
|
34
|
+
optionType: 'button',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Rate = void 0;
|
|
4
|
+
exports.Rate = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
allowClear: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Switch',
|
|
11
|
+
'x-component-props': {
|
|
12
|
+
defaultChecked: true,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
count: {
|
|
16
|
+
type: 'number',
|
|
17
|
+
'x-decorator': 'FormItem',
|
|
18
|
+
'x-component': 'NumberPicker',
|
|
19
|
+
'x-component-props': {
|
|
20
|
+
defaultValue: 5,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
allowHalf: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
'x-decorator': 'FormItem',
|
|
26
|
+
'x-component': 'Switch',
|
|
27
|
+
},
|
|
28
|
+
tooltips: {
|
|
29
|
+
'x-decorator': 'FormItem',
|
|
30
|
+
'x-component': 'ValueInput',
|
|
31
|
+
'x-component-props': {
|
|
32
|
+
include: ['EXPRESSION'],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
autoFocus: {
|
|
36
|
+
type: 'boolean',
|
|
37
|
+
'x-decorator': 'FormItem',
|
|
38
|
+
'x-component': 'Switch',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Select = void 0;
|
|
4
|
+
exports.Select = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
mode: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
enum: ['multiple', 'tags', null],
|
|
10
|
+
'x-decorator': 'FormItem',
|
|
11
|
+
'x-component': 'Radio.Group',
|
|
12
|
+
'x-component-props': {
|
|
13
|
+
defaultValue: null,
|
|
14
|
+
optionType: 'button',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
allowClear: {
|
|
18
|
+
type: 'boolean',
|
|
19
|
+
'x-decorator': 'FormItem',
|
|
20
|
+
'x-component': 'Switch',
|
|
21
|
+
},
|
|
22
|
+
autoClearSearchValue: {
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
'x-decorator': 'FormItem',
|
|
25
|
+
'x-component': 'Switch',
|
|
26
|
+
'x-component-props': {
|
|
27
|
+
defaultChecked: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
dropdownMatchSelectWidth: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
'x-decorator': 'FormItem',
|
|
33
|
+
'x-component': 'Switch',
|
|
34
|
+
'x-component-props': {
|
|
35
|
+
defaultChecked: true,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
autoFocus: {
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
'x-decorator': 'FormItem',
|
|
41
|
+
'x-component': 'Switch',
|
|
42
|
+
},
|
|
43
|
+
bordered: {
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
'x-decorator': 'FormItem',
|
|
46
|
+
'x-component': 'Switch',
|
|
47
|
+
'x-component-props': {
|
|
48
|
+
defaultChecked: true,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
defaultActiveFirstOption: {
|
|
52
|
+
type: 'boolean',
|
|
53
|
+
'x-decorator': 'FormItem',
|
|
54
|
+
'x-component': 'Switch',
|
|
55
|
+
'x-component-props': {
|
|
56
|
+
defaultChecked: true,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
defaultOpen: {
|
|
60
|
+
type: 'boolean',
|
|
61
|
+
'x-decorator': 'FormItem',
|
|
62
|
+
'x-component': 'Switch',
|
|
63
|
+
},
|
|
64
|
+
labelInValue: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
'x-decorator': 'FormItem',
|
|
67
|
+
'x-component': 'Switch',
|
|
68
|
+
},
|
|
69
|
+
showArrow: {
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
'x-decorator': 'FormItem',
|
|
72
|
+
'x-component': 'Switch',
|
|
73
|
+
},
|
|
74
|
+
showSearch: {
|
|
75
|
+
type: 'boolean',
|
|
76
|
+
'x-decorator': 'FormItem',
|
|
77
|
+
'x-component': 'Switch',
|
|
78
|
+
},
|
|
79
|
+
virtual: {
|
|
80
|
+
type: 'boolean',
|
|
81
|
+
'x-decorator': 'FormItem',
|
|
82
|
+
'x-component': 'Switch',
|
|
83
|
+
'x-component-props': {
|
|
84
|
+
defaultValue: true,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
fieldNames: {
|
|
88
|
+
type: 'string',
|
|
89
|
+
'x-decorator': 'FormItem',
|
|
90
|
+
'x-component': 'ValueInput',
|
|
91
|
+
'x-component-props': {
|
|
92
|
+
include: ['EXPRESSION'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
optionFilterProp: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
'x-decorator': 'FormItem',
|
|
98
|
+
'x-component': 'Input',
|
|
99
|
+
},
|
|
100
|
+
filterOption: {
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
'x-decorator': 'FormItem',
|
|
103
|
+
'x-component': 'ValueInput',
|
|
104
|
+
'x-component-props': {
|
|
105
|
+
include: ['BOOLEAN', 'EXPRESSION'],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
filterSort: {
|
|
109
|
+
type: 'boolean',
|
|
110
|
+
'x-decorator': 'FormItem',
|
|
111
|
+
'x-component': 'ValueInput',
|
|
112
|
+
'x-component-props': {
|
|
113
|
+
include: ['EXPRESSION'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
listHeight: {
|
|
117
|
+
type: 'number',
|
|
118
|
+
'x-decorator': 'FormItem',
|
|
119
|
+
'x-component': 'NumberPicker',
|
|
120
|
+
'x-component-props': {
|
|
121
|
+
defaultValue: 256,
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
maxTagCount: {
|
|
125
|
+
type: 'number',
|
|
126
|
+
'x-decorator': 'FormItem',
|
|
127
|
+
'x-component': 'NumberPicker',
|
|
128
|
+
},
|
|
129
|
+
maxTagPlaceholder: {
|
|
130
|
+
type: 'string',
|
|
131
|
+
'x-decorator': 'FormItem',
|
|
132
|
+
'x-component': 'Input',
|
|
133
|
+
},
|
|
134
|
+
maxTagTextLength: {
|
|
135
|
+
type: 'number',
|
|
136
|
+
'x-decorator': 'FormItem',
|
|
137
|
+
'x-component': 'NumberPicker',
|
|
138
|
+
},
|
|
139
|
+
notFoundContent: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
'x-decorator': 'FormItem',
|
|
142
|
+
'x-component': 'Input',
|
|
143
|
+
'x-component-props': {
|
|
144
|
+
defaultValue: 'Not Found',
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
placeholder: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
'x-decorator': 'FormItem',
|
|
150
|
+
'x-component': 'Input',
|
|
151
|
+
},
|
|
152
|
+
size: {
|
|
153
|
+
type: 'string',
|
|
154
|
+
enum: ['large', 'small', 'middle', null],
|
|
155
|
+
'x-decorator': 'FormItem',
|
|
156
|
+
'x-component': 'Select',
|
|
157
|
+
'x-component-props': {
|
|
158
|
+
defaultValue: 'middle',
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Slider = void 0;
|
|
4
|
+
const core_1 = require("@formily-design/core");
|
|
5
|
+
exports.Slider = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
allowClear: {
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
'x-decorator': 'FormItem',
|
|
11
|
+
'x-component': 'Switch',
|
|
12
|
+
},
|
|
13
|
+
dots: {
|
|
14
|
+
title: core_1.GlobalRegistry.getDesignerMessage('settings.sliderDots'),
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
'x-decorator': 'FormItem',
|
|
17
|
+
'x-component': 'Switch',
|
|
18
|
+
},
|
|
19
|
+
range: {
|
|
20
|
+
title: core_1.GlobalRegistry.getDesignerMessage('settings.sliderRange'),
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
'x-decorator': 'FormItem',
|
|
23
|
+
'x-component': 'Switch',
|
|
24
|
+
},
|
|
25
|
+
reverse: {
|
|
26
|
+
title: core_1.GlobalRegistry.getDesignerMessage('settings.sliderReverse'),
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
'x-decorator': 'FormItem',
|
|
29
|
+
'x-component': 'Switch',
|
|
30
|
+
},
|
|
31
|
+
vertical: {
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
'x-decorator': 'FormItem',
|
|
34
|
+
'x-component': 'Switch',
|
|
35
|
+
},
|
|
36
|
+
tooltipVisible: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
'x-decorator': 'FormItem',
|
|
39
|
+
'x-component': 'Switch',
|
|
40
|
+
},
|
|
41
|
+
tooltipPlacement: {
|
|
42
|
+
'x-decorator': 'FormItem',
|
|
43
|
+
'x-component': 'ValueInput',
|
|
44
|
+
'x-component-props': {
|
|
45
|
+
include: ['EXPRESSION'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
marks: {
|
|
49
|
+
'x-decorator': 'FormItem',
|
|
50
|
+
'x-component': 'ValueInput',
|
|
51
|
+
'x-component-props': {
|
|
52
|
+
include: ['EXPRESSION'],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
max: {
|
|
56
|
+
type: 'number',
|
|
57
|
+
'x-decorator': 'FormItem',
|
|
58
|
+
'x-component': 'NumberPicker',
|
|
59
|
+
'x-component-props': {
|
|
60
|
+
defaultValue: 100,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
min: {
|
|
64
|
+
type: 'number',
|
|
65
|
+
'x-decorator': 'FormItem',
|
|
66
|
+
'x-component': 'NumberPicker',
|
|
67
|
+
'x-component-props': {
|
|
68
|
+
defaultValue: 0,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
step: {
|
|
72
|
+
type: 'number',
|
|
73
|
+
'x-decorator': 'FormItem',
|
|
74
|
+
'x-component': 'NumberPicker',
|
|
75
|
+
'x-component-props': {
|
|
76
|
+
defaultValue: 1,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Space = void 0;
|
|
4
|
+
exports.Space = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
align: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
enum: ['start', 'end', 'center', 'baseline'],
|
|
10
|
+
'x-decorator': 'FormItem',
|
|
11
|
+
'x-component': 'Select',
|
|
12
|
+
},
|
|
13
|
+
direction: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: ['vertical', 'horizontal'],
|
|
16
|
+
'x-decorator': 'FormItem',
|
|
17
|
+
'x-component': 'Radio.Group',
|
|
18
|
+
'x-component-props': {
|
|
19
|
+
defaultValue: 'horizontal',
|
|
20
|
+
optionType: 'button',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
type: 'number',
|
|
25
|
+
'x-decorator': 'FormItem',
|
|
26
|
+
'x-component': 'NumberPicker',
|
|
27
|
+
'x-component-props': {
|
|
28
|
+
defaultValue: 8,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
split: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
'x-decorator': 'FormItem',
|
|
34
|
+
'x-component': 'Input',
|
|
35
|
+
},
|
|
36
|
+
wrap: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
'x-decorator': 'FormItem',
|
|
39
|
+
'x-component': 'Switch',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Switch = void 0;
|
|
4
|
+
exports.Switch = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
autoFocus: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Switch',
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
enum: ['large', 'small', 'default', ''],
|
|
15
|
+
'x-decorator': 'FormItem',
|
|
16
|
+
'x-component': 'Select',
|
|
17
|
+
'x-component-props': {
|
|
18
|
+
defaultValue: 'default',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|