@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,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createBehavior, createResource } from '@formily-design/core';
|
|
3
|
+
import { createVoidFieldSchema } from '../Field';
|
|
4
|
+
import { AllSchemas } from '../../schemas';
|
|
5
|
+
import { AllLocales } from '../../locales';
|
|
6
|
+
import cls from 'classnames';
|
|
7
|
+
import './styles.less';
|
|
8
|
+
export const Text = (props) => {
|
|
9
|
+
const tagName = props.mode === 'normal' || !props.mode ? 'div' : props.mode;
|
|
10
|
+
return React.createElement(tagName, Object.assign(Object.assign({}, props), { className: cls(props.className, 'dn-text'), 'data-content-editable': 'x-component-props.content' }), props.content);
|
|
11
|
+
};
|
|
12
|
+
Text.Behavior = createBehavior({
|
|
13
|
+
name: 'Text',
|
|
14
|
+
extends: ['Field'],
|
|
15
|
+
selector: (node) => node.props['x-component'] === 'Text',
|
|
16
|
+
designerProps: {
|
|
17
|
+
propsSchema: createVoidFieldSchema(AllSchemas.Text),
|
|
18
|
+
},
|
|
19
|
+
designerLocales: AllLocales.Text,
|
|
20
|
+
});
|
|
21
|
+
Text.Resource = createResource({
|
|
22
|
+
icon: 'TextSource',
|
|
23
|
+
elements: [
|
|
24
|
+
{
|
|
25
|
+
componentName: 'Field',
|
|
26
|
+
props: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
'x-component': 'Text',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TimePicker as FormilyTimePicker } from '@formily/antd-v5';
|
|
2
|
+
import { createBehavior, createResource } from '@formily-design/core';
|
|
3
|
+
import { createFieldSchema } from '../Field';
|
|
4
|
+
import { AllSchemas } from '../../schemas';
|
|
5
|
+
import { AllLocales } from '../../locales';
|
|
6
|
+
export const TimePicker = FormilyTimePicker;
|
|
7
|
+
TimePicker.Behavior = createBehavior({
|
|
8
|
+
name: 'TimePicker',
|
|
9
|
+
extends: ['Field'],
|
|
10
|
+
selector: (node) => node.props['x-component'] === 'TimePicker',
|
|
11
|
+
designerProps: {
|
|
12
|
+
propsSchema: createFieldSchema(AllSchemas.TimePicker),
|
|
13
|
+
},
|
|
14
|
+
designerLocales: AllLocales.TimePicker,
|
|
15
|
+
}, {
|
|
16
|
+
name: 'TimePicker.RangePicker',
|
|
17
|
+
extends: ['Field'],
|
|
18
|
+
selector: (node) => node.props['x-component'] === 'TimePicker.RangePicker',
|
|
19
|
+
designerProps: {
|
|
20
|
+
propsSchema: createFieldSchema(AllSchemas.TimePicker.RangePicker),
|
|
21
|
+
},
|
|
22
|
+
designerLocales: AllLocales.TimeRangePicker,
|
|
23
|
+
});
|
|
24
|
+
TimePicker.Resource = createResource({
|
|
25
|
+
icon: 'TimePickerSource',
|
|
26
|
+
elements: [
|
|
27
|
+
{
|
|
28
|
+
componentName: 'Field',
|
|
29
|
+
props: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
title: 'TimePicker',
|
|
32
|
+
'x-decorator': 'FormItem',
|
|
33
|
+
'x-component': 'TimePicker',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
}, {
|
|
38
|
+
icon: 'TimeRangePickerSource',
|
|
39
|
+
elements: [
|
|
40
|
+
{
|
|
41
|
+
componentName: 'Field',
|
|
42
|
+
props: {
|
|
43
|
+
type: 'string[]',
|
|
44
|
+
title: 'TimeRangePicker',
|
|
45
|
+
'x-decorator': 'FormItem',
|
|
46
|
+
'x-component': 'TimePicker.RangePicker',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Transfer as FormilyTransfer } from '@formily/antd-v5';
|
|
2
|
+
import { createBehavior, createResource } from '@formily-design/core';
|
|
3
|
+
import { createFieldSchema } from '../Field';
|
|
4
|
+
import { AllSchemas } from '../../schemas';
|
|
5
|
+
import { AllLocales } from '../../locales';
|
|
6
|
+
export const Transfer = FormilyTransfer;
|
|
7
|
+
Transfer.Behavior = createBehavior({
|
|
8
|
+
name: 'Transfer',
|
|
9
|
+
extends: ['Field'],
|
|
10
|
+
selector: (node) => node.props['x-component'] === 'Transfer',
|
|
11
|
+
designerProps: {
|
|
12
|
+
propsSchema: createFieldSchema(AllSchemas.Transfer),
|
|
13
|
+
},
|
|
14
|
+
designerLocales: AllLocales.Transfer,
|
|
15
|
+
});
|
|
16
|
+
Transfer.Resource = createResource({
|
|
17
|
+
icon: 'TransferSource',
|
|
18
|
+
elements: [
|
|
19
|
+
{
|
|
20
|
+
componentName: 'Field',
|
|
21
|
+
props: {
|
|
22
|
+
title: 'Transfer',
|
|
23
|
+
'x-decorator': 'FormItem',
|
|
24
|
+
'x-component': 'Transfer',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TreeSelect as FormilyTreeSelect } from '@formily/antd-v5';
|
|
2
|
+
import { createBehavior, createResource } from '@formily-design/core';
|
|
3
|
+
import { createFieldSchema } from '../Field';
|
|
4
|
+
import { AllSchemas } from '../../schemas';
|
|
5
|
+
import { AllLocales } from '../../locales';
|
|
6
|
+
export const TreeSelect = FormilyTreeSelect;
|
|
7
|
+
TreeSelect.Behavior = createBehavior({
|
|
8
|
+
name: 'TreeSelect',
|
|
9
|
+
extends: ['Field'],
|
|
10
|
+
selector: (node) => node.props['x-component'] === 'TreeSelect',
|
|
11
|
+
designerProps: {
|
|
12
|
+
propsSchema: createFieldSchema(AllSchemas.TreeSelect),
|
|
13
|
+
},
|
|
14
|
+
designerLocales: AllLocales.TreeSelect,
|
|
15
|
+
});
|
|
16
|
+
TreeSelect.Resource = createResource({
|
|
17
|
+
icon: 'TreeSelectSource',
|
|
18
|
+
elements: [
|
|
19
|
+
{
|
|
20
|
+
componentName: 'Field',
|
|
21
|
+
props: {
|
|
22
|
+
title: 'TreeSelect',
|
|
23
|
+
'x-decorator': 'FormItem',
|
|
24
|
+
'x-component': 'TreeSelect',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Upload as FormilyUpload } from '@formily/antd-v5';
|
|
2
|
+
import { createBehavior, createResource } from '@formily-design/core';
|
|
3
|
+
import { createFieldSchema } from '../Field';
|
|
4
|
+
import { AllSchemas } from '../../schemas';
|
|
5
|
+
import { AllLocales } from '../../locales';
|
|
6
|
+
export const Upload = FormilyUpload;
|
|
7
|
+
Upload.Behavior = createBehavior({
|
|
8
|
+
name: 'Upload',
|
|
9
|
+
extends: ['Field'],
|
|
10
|
+
selector: (node) => node.props['x-component'] === 'Upload',
|
|
11
|
+
designerProps: {
|
|
12
|
+
propsSchema: createFieldSchema(AllSchemas.Upload),
|
|
13
|
+
},
|
|
14
|
+
designerLocales: AllLocales.Upload,
|
|
15
|
+
}, {
|
|
16
|
+
name: 'Upload.Dragger',
|
|
17
|
+
extends: ['Field'],
|
|
18
|
+
selector: (node) => node.props['x-component'] === 'Upload.Dragger',
|
|
19
|
+
designerProps: {
|
|
20
|
+
propsSchema: createFieldSchema(AllSchemas.Upload.Dragger),
|
|
21
|
+
},
|
|
22
|
+
designerLocales: AllLocales.UploadDragger,
|
|
23
|
+
});
|
|
24
|
+
Upload.Resource = createResource({
|
|
25
|
+
icon: 'UploadSource',
|
|
26
|
+
elements: [
|
|
27
|
+
{
|
|
28
|
+
componentName: 'Field',
|
|
29
|
+
props: {
|
|
30
|
+
type: 'Array<object>',
|
|
31
|
+
title: 'Upload',
|
|
32
|
+
'x-decorator': 'FormItem',
|
|
33
|
+
'x-component': 'Upload',
|
|
34
|
+
'x-component-props': {
|
|
35
|
+
textContent: 'Upload',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
}, {
|
|
41
|
+
icon: 'UploadDraggerSource',
|
|
42
|
+
elements: [
|
|
43
|
+
{
|
|
44
|
+
componentName: 'Field',
|
|
45
|
+
props: {
|
|
46
|
+
type: 'Array<object>',
|
|
47
|
+
title: 'Drag Upload',
|
|
48
|
+
'x-decorator': 'FormItem',
|
|
49
|
+
'x-component': 'Upload.Dragger',
|
|
50
|
+
'x-component-props': {
|
|
51
|
+
textContent: 'Click or drag file to this area to upload',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './Field';
|
|
2
|
+
export * from './Form';
|
|
3
|
+
export * from './Input';
|
|
4
|
+
export * from './Select';
|
|
5
|
+
export * from './TreeSelect';
|
|
6
|
+
export * from './Cascader';
|
|
7
|
+
export * from './Radio';
|
|
8
|
+
export * from './Checkbox';
|
|
9
|
+
export * from './Slider';
|
|
10
|
+
export * from './Rate';
|
|
11
|
+
export * from './NumberPicker';
|
|
12
|
+
export * from './Transfer';
|
|
13
|
+
export * from './Password';
|
|
14
|
+
export * from './DatePicker';
|
|
15
|
+
export * from './TimePicker';
|
|
16
|
+
export * from './Upload';
|
|
17
|
+
export * from './Switch';
|
|
18
|
+
export * from './Text';
|
|
19
|
+
export * from './Card';
|
|
20
|
+
export * from './Space';
|
|
21
|
+
export * from './Object';
|
|
22
|
+
export * from './ArrayCards';
|
|
23
|
+
export * from './ArrayTable';
|
|
24
|
+
export * from './FormTab';
|
|
25
|
+
export * from './FormCollapse';
|
|
26
|
+
export * from './FormGrid';
|
|
27
|
+
export * from './FormLayout';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './Field';
|
|
2
|
+
export * from './Form';
|
|
3
|
+
export * from './Input';
|
|
4
|
+
export * from './Select';
|
|
5
|
+
export * from './TreeSelect';
|
|
6
|
+
export * from './Cascader';
|
|
7
|
+
export * from './Radio';
|
|
8
|
+
export * from './Checkbox';
|
|
9
|
+
export * from './Slider';
|
|
10
|
+
export * from './Rate';
|
|
11
|
+
export * from './NumberPicker';
|
|
12
|
+
export * from './Transfer';
|
|
13
|
+
export * from './Password';
|
|
14
|
+
export * from './DatePicker';
|
|
15
|
+
export * from './TimePicker';
|
|
16
|
+
export * from './Upload';
|
|
17
|
+
export * from './Switch';
|
|
18
|
+
export * from './Text';
|
|
19
|
+
export * from './Card';
|
|
20
|
+
export * from './Space';
|
|
21
|
+
export * from './Object';
|
|
22
|
+
export * from './ArrayCards';
|
|
23
|
+
export * from './ArrayTable';
|
|
24
|
+
export * from './FormTab';
|
|
25
|
+
export * from './FormCollapse';
|
|
26
|
+
export * from './FormGrid';
|
|
27
|
+
export * from './FormLayout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useDropTemplate';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useDropTemplate';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AppendNodeEvent } from '@formily-design/core';
|
|
2
|
+
import { useDesigner } from '@formily-design/react';
|
|
3
|
+
import { matchComponent, matchChildComponent } from '../shared';
|
|
4
|
+
export const useDropTemplate = (name, getChildren) => {
|
|
5
|
+
return useDesigner((designer) => {
|
|
6
|
+
return designer.subscribeTo(AppendNodeEvent, (event) => {
|
|
7
|
+
const { source, target } = event.data;
|
|
8
|
+
if (Array.isArray(target))
|
|
9
|
+
return;
|
|
10
|
+
if (!Array.isArray(source))
|
|
11
|
+
return;
|
|
12
|
+
if (matchComponent(target, (key) => key === name &&
|
|
13
|
+
source.every((child) => !matchChildComponent(child, name))) &&
|
|
14
|
+
target.children.length === 0) {
|
|
15
|
+
target.setChildren(...getChildren(source));
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
};
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const ArrayAddition: {
|
|
2
|
+
'zh-CN': {
|
|
3
|
+
title: string;
|
|
4
|
+
settings: {
|
|
5
|
+
'x-component-props': {
|
|
6
|
+
method: string;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
'en-US': {
|
|
13
|
+
title: string;
|
|
14
|
+
settings: {
|
|
15
|
+
'x-component-props': {
|
|
16
|
+
method: string;
|
|
17
|
+
defaultValue: string;
|
|
18
|
+
title: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const ArrayRemove: {
|
|
24
|
+
'zh-CN': {
|
|
25
|
+
title: string;
|
|
26
|
+
};
|
|
27
|
+
'en-US': {
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
30
|
+
'ko-KR': {
|
|
31
|
+
title: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const ArrayMoveUp: {
|
|
35
|
+
'zh-CN': {
|
|
36
|
+
title: string;
|
|
37
|
+
};
|
|
38
|
+
'en-US': {
|
|
39
|
+
title: string;
|
|
40
|
+
};
|
|
41
|
+
'ko-KR': {
|
|
42
|
+
title: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const ArrayMoveDown: {
|
|
46
|
+
'zh-CN': {
|
|
47
|
+
title: string;
|
|
48
|
+
};
|
|
49
|
+
'en-US': {
|
|
50
|
+
title: string;
|
|
51
|
+
};
|
|
52
|
+
'ko-KR': {
|
|
53
|
+
title: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const ArrayIndex: {
|
|
57
|
+
'zh-CN': {
|
|
58
|
+
title: string;
|
|
59
|
+
};
|
|
60
|
+
'en-US': {
|
|
61
|
+
title: string;
|
|
62
|
+
};
|
|
63
|
+
'ko-KR': {
|
|
64
|
+
title: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare const ArraySortHandle: {
|
|
68
|
+
'zh-CN': {
|
|
69
|
+
title: string;
|
|
70
|
+
};
|
|
71
|
+
'en-US': {
|
|
72
|
+
title: string;
|
|
73
|
+
};
|
|
74
|
+
'ko-KR': {
|
|
75
|
+
title: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { GlobalRegistry } from '@formily-design/core';
|
|
2
|
+
GlobalRegistry.registerDesignerLocales({
|
|
3
|
+
'zh-CN': {
|
|
4
|
+
Previews: {
|
|
5
|
+
droppable: '可以拖入组件',
|
|
6
|
+
addTabPane: '添加选项卡',
|
|
7
|
+
addCollapsePanel: '添加手风琴卡片',
|
|
8
|
+
addTableColumn: '添加表格列',
|
|
9
|
+
addTableSortHandle: '添加排序',
|
|
10
|
+
addIndex: '添加索引',
|
|
11
|
+
addOperation: '添加操作',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
export const ArrayAddition = {
|
|
16
|
+
'zh-CN': {
|
|
17
|
+
title: '添加按钮',
|
|
18
|
+
settings: {
|
|
19
|
+
'x-component-props': {
|
|
20
|
+
method: '方法',
|
|
21
|
+
defaultValue: '默认值',
|
|
22
|
+
title: '标题',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
'en-US': {
|
|
27
|
+
title: 'Addition',
|
|
28
|
+
settings: {
|
|
29
|
+
'x-component-props': {
|
|
30
|
+
method: 'Method',
|
|
31
|
+
defaultValue: 'Default Value',
|
|
32
|
+
title: 'Title',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export const ArrayRemove = {
|
|
38
|
+
'zh-CN': {
|
|
39
|
+
title: '删除按钮',
|
|
40
|
+
},
|
|
41
|
+
'en-US': {
|
|
42
|
+
title: 'Remove',
|
|
43
|
+
},
|
|
44
|
+
'ko-KR': {
|
|
45
|
+
title: '삭제',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
export const ArrayMoveUp = {
|
|
49
|
+
'zh-CN': {
|
|
50
|
+
title: '上移按钮',
|
|
51
|
+
},
|
|
52
|
+
'en-US': {
|
|
53
|
+
title: 'Move Up',
|
|
54
|
+
},
|
|
55
|
+
'ko-KR': {
|
|
56
|
+
title: '위로 옮기기',
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
export const ArrayMoveDown = {
|
|
60
|
+
'zh-CN': {
|
|
61
|
+
title: '下移按钮',
|
|
62
|
+
},
|
|
63
|
+
'en-US': {
|
|
64
|
+
title: 'Move Down',
|
|
65
|
+
},
|
|
66
|
+
'ko-KR': {
|
|
67
|
+
title: '아래로 옮기기',
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
export const ArrayIndex = {
|
|
71
|
+
'zh-CN': {
|
|
72
|
+
title: '索引标识',
|
|
73
|
+
},
|
|
74
|
+
'en-US': {
|
|
75
|
+
title: 'Index',
|
|
76
|
+
},
|
|
77
|
+
'ko-KR': {
|
|
78
|
+
title: '색인',
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
export const ArraySortHandle = {
|
|
82
|
+
'zh-CN': {
|
|
83
|
+
title: '排序标识',
|
|
84
|
+
},
|
|
85
|
+
'en-US': {
|
|
86
|
+
title: 'Sort Handle',
|
|
87
|
+
},
|
|
88
|
+
'ko-KR': {
|
|
89
|
+
title: '정렬 핸들',
|
|
90
|
+
},
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ArrayCards: {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createLocales } from '@formily-design/core';
|
|
2
|
+
import { Card } from './Card';
|
|
3
|
+
export const ArrayCards = createLocales(Card, {
|
|
4
|
+
'zh-CN': {
|
|
5
|
+
title: '自增卡片',
|
|
6
|
+
addIndex: '添加索引',
|
|
7
|
+
addOperation: '添加操作',
|
|
8
|
+
},
|
|
9
|
+
'en-US': {
|
|
10
|
+
title: 'Array Cards',
|
|
11
|
+
addIndex: 'Add Index',
|
|
12
|
+
addOperation: 'Add Operations',
|
|
13
|
+
},
|
|
14
|
+
'ko-KR': {
|
|
15
|
+
title: '배열 카드',
|
|
16
|
+
addIndex: '색인 추가',
|
|
17
|
+
addOperation: '작업 추가',
|
|
18
|
+
},
|
|
19
|
+
});
|