@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,78 @@
|
|
|
1
|
+
export declare const Upload: {
|
|
2
|
+
'zh-CN': {
|
|
3
|
+
title: string;
|
|
4
|
+
settings: {
|
|
5
|
+
'x-component-props': {
|
|
6
|
+
accept: string;
|
|
7
|
+
action: string;
|
|
8
|
+
data: string;
|
|
9
|
+
directory: string;
|
|
10
|
+
headers: string;
|
|
11
|
+
listType: {
|
|
12
|
+
title: string;
|
|
13
|
+
dataSource: string[];
|
|
14
|
+
};
|
|
15
|
+
multiple: string;
|
|
16
|
+
name: string;
|
|
17
|
+
openFileDialogOnClick: {
|
|
18
|
+
title: string;
|
|
19
|
+
tooltip: string;
|
|
20
|
+
};
|
|
21
|
+
showUploadList: string;
|
|
22
|
+
withCredentials: string;
|
|
23
|
+
maxCount: string;
|
|
24
|
+
method: string;
|
|
25
|
+
textContent: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
'en-US': {
|
|
30
|
+
title: string;
|
|
31
|
+
settings: {
|
|
32
|
+
'x-component-props': {
|
|
33
|
+
accept: string;
|
|
34
|
+
action: string;
|
|
35
|
+
data: string;
|
|
36
|
+
directory: string;
|
|
37
|
+
headers: string;
|
|
38
|
+
listType: {
|
|
39
|
+
title: string;
|
|
40
|
+
dataSource: string[];
|
|
41
|
+
};
|
|
42
|
+
multiple: string;
|
|
43
|
+
name: string;
|
|
44
|
+
openFileDialogOnClick: string;
|
|
45
|
+
showUploadList: string;
|
|
46
|
+
withCredentials: string;
|
|
47
|
+
maxCount: string;
|
|
48
|
+
method: string;
|
|
49
|
+
textContent: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
'ko-KR': {
|
|
54
|
+
title: string;
|
|
55
|
+
settings: {
|
|
56
|
+
'x-component-props': {
|
|
57
|
+
accept: string;
|
|
58
|
+
action: string;
|
|
59
|
+
data: string;
|
|
60
|
+
directory: string;
|
|
61
|
+
headers: string;
|
|
62
|
+
listType: {
|
|
63
|
+
title: string;
|
|
64
|
+
dataSource: string[];
|
|
65
|
+
};
|
|
66
|
+
multiple: string;
|
|
67
|
+
name: string;
|
|
68
|
+
openFileDialogOnClick: string;
|
|
69
|
+
showUploadList: string;
|
|
70
|
+
withCredentials: string;
|
|
71
|
+
maxCount: string;
|
|
72
|
+
method: string;
|
|
73
|
+
textContent: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const UploadDragger: {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadDragger = exports.Upload = void 0;
|
|
4
|
+
const core_1 = require("@formily-design/core");
|
|
5
|
+
exports.Upload = {
|
|
6
|
+
'zh-CN': {
|
|
7
|
+
title: '上传',
|
|
8
|
+
settings: {
|
|
9
|
+
'x-component-props': {
|
|
10
|
+
accept: '可接受类型',
|
|
11
|
+
action: '上传地址',
|
|
12
|
+
data: '数据/参数',
|
|
13
|
+
directory: '支持上传目录',
|
|
14
|
+
headers: '请求头',
|
|
15
|
+
listType: { title: '列表类型', dataSource: ['文本', '图片', '卡片'] },
|
|
16
|
+
multiple: '多选模式',
|
|
17
|
+
name: '字段标识',
|
|
18
|
+
openFileDialogOnClick: {
|
|
19
|
+
title: '点击打开文件对话框',
|
|
20
|
+
tooltip: '点击打开文件对话框',
|
|
21
|
+
},
|
|
22
|
+
showUploadList: '是否展示文件列表',
|
|
23
|
+
withCredentials: '携带Cookie',
|
|
24
|
+
maxCount: '最大数量',
|
|
25
|
+
method: '方法',
|
|
26
|
+
textContent: '上传文案',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
'en-US': {
|
|
31
|
+
title: 'Upload',
|
|
32
|
+
settings: {
|
|
33
|
+
'x-component-props': {
|
|
34
|
+
accept: 'Accept',
|
|
35
|
+
action: 'Upload Address',
|
|
36
|
+
data: 'Data',
|
|
37
|
+
directory: 'Support Upload Directory',
|
|
38
|
+
headers: 'Headers',
|
|
39
|
+
listType: { title: 'List Type', dataSource: ['Text', 'Image', 'Card'] },
|
|
40
|
+
multiple: 'Multiple',
|
|
41
|
+
name: 'Name',
|
|
42
|
+
openFileDialogOnClick: 'Open File Dialog On Click',
|
|
43
|
+
showUploadList: 'Show Upload List',
|
|
44
|
+
withCredentials: 'withCredentials',
|
|
45
|
+
maxCount: 'Max Count',
|
|
46
|
+
method: 'Method',
|
|
47
|
+
textContent: 'Text Content',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
'ko-KR': {
|
|
52
|
+
title: '업로드',
|
|
53
|
+
settings: {
|
|
54
|
+
'x-component-props': {
|
|
55
|
+
accept: '승인',
|
|
56
|
+
action: '업로드 주소',
|
|
57
|
+
data: '데이터',
|
|
58
|
+
directory: '디렉터리 업로드 지원',
|
|
59
|
+
headers: '헤더',
|
|
60
|
+
listType: {
|
|
61
|
+
title: '리스트 타입',
|
|
62
|
+
dataSource: ['텍스트', '이미지', '카드'],
|
|
63
|
+
},
|
|
64
|
+
multiple: '여러개',
|
|
65
|
+
name: '이름',
|
|
66
|
+
openFileDialogOnClick: '눌러서 파일 다이얼로그 열기',
|
|
67
|
+
showUploadList: '업로드 목록 표시',
|
|
68
|
+
withCredentials: '자격 증명 포함',
|
|
69
|
+
maxCount: '최대 개수',
|
|
70
|
+
method: '메서드',
|
|
71
|
+
textContent: '텍스트 내용',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
exports.UploadDragger = (0, core_1.createLocales)(exports.Upload, {
|
|
77
|
+
'zh-CN': {
|
|
78
|
+
title: '拖拽上传',
|
|
79
|
+
settings: {
|
|
80
|
+
'x-component-props': {},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
'en-US': {
|
|
84
|
+
title: 'UploadDragger',
|
|
85
|
+
settings: {
|
|
86
|
+
'x-component-props': {},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
'ko-KR': {
|
|
90
|
+
title: '드래그로 업로드',
|
|
91
|
+
settings: {
|
|
92
|
+
'x-component-props': {},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './Component';
|
|
2
|
+
export * from './Field';
|
|
3
|
+
export * from './Input';
|
|
4
|
+
export * from './Select';
|
|
5
|
+
export * from './TextArea';
|
|
6
|
+
export * from './TreeSelect';
|
|
7
|
+
export * from './Cascader';
|
|
8
|
+
export * from './Radio';
|
|
9
|
+
export * from './Checkbox';
|
|
10
|
+
export * from './Slider';
|
|
11
|
+
export * from './Rate';
|
|
12
|
+
export * from './DatePicker';
|
|
13
|
+
export * from './TimePicker';
|
|
14
|
+
export * from './NumberPicker';
|
|
15
|
+
export * from './Password';
|
|
16
|
+
export * from './Transfer';
|
|
17
|
+
export * from './Upload';
|
|
18
|
+
export * from './Switch';
|
|
19
|
+
export * from './Object';
|
|
20
|
+
export * from './Form';
|
|
21
|
+
export * from './FormLayout';
|
|
22
|
+
export * from './Text';
|
|
23
|
+
export * from './Card';
|
|
24
|
+
export * from './ArrayBase';
|
|
25
|
+
export * from './ArrayCards';
|
|
26
|
+
export * from './ArrayTable';
|
|
27
|
+
export * from './Void';
|
|
28
|
+
export * from './Space';
|
|
29
|
+
export * from './FormTab';
|
|
30
|
+
export * from './FormCollapse';
|
|
31
|
+
export * from './FormGrid';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Component"), exports);
|
|
18
|
+
__exportStar(require("./Field"), exports);
|
|
19
|
+
__exportStar(require("./Input"), exports);
|
|
20
|
+
__exportStar(require("./Select"), exports);
|
|
21
|
+
__exportStar(require("./TextArea"), exports);
|
|
22
|
+
__exportStar(require("./TreeSelect"), exports);
|
|
23
|
+
__exportStar(require("./Cascader"), exports);
|
|
24
|
+
__exportStar(require("./Radio"), exports);
|
|
25
|
+
__exportStar(require("./Checkbox"), exports);
|
|
26
|
+
__exportStar(require("./Slider"), exports);
|
|
27
|
+
__exportStar(require("./Rate"), exports);
|
|
28
|
+
__exportStar(require("./DatePicker"), exports);
|
|
29
|
+
__exportStar(require("./TimePicker"), exports);
|
|
30
|
+
__exportStar(require("./NumberPicker"), exports);
|
|
31
|
+
__exportStar(require("./Password"), exports);
|
|
32
|
+
__exportStar(require("./Transfer"), exports);
|
|
33
|
+
__exportStar(require("./Upload"), exports);
|
|
34
|
+
__exportStar(require("./Switch"), exports);
|
|
35
|
+
__exportStar(require("./Object"), exports);
|
|
36
|
+
__exportStar(require("./Form"), exports);
|
|
37
|
+
__exportStar(require("./FormLayout"), exports);
|
|
38
|
+
__exportStar(require("./Text"), exports);
|
|
39
|
+
__exportStar(require("./Card"), exports);
|
|
40
|
+
__exportStar(require("./ArrayBase"), exports);
|
|
41
|
+
__exportStar(require("./ArrayCards"), exports);
|
|
42
|
+
__exportStar(require("./ArrayTable"), exports);
|
|
43
|
+
__exportStar(require("./Void"), exports);
|
|
44
|
+
__exportStar(require("./Space"), exports);
|
|
45
|
+
__exportStar(require("./FormTab"), exports);
|
|
46
|
+
__exportStar(require("./FormCollapse"), exports);
|
|
47
|
+
__exportStar(require("./FormGrid"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AllLocales = void 0;
|
|
37
|
+
const AllLocales = __importStar(require("./all"));
|
|
38
|
+
exports.AllLocales = AllLocales;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const ArrayCards: import("@formily/json-schema").Stringify<{
|
|
2
|
+
[key: symbol]: any;
|
|
3
|
+
[key: `x-${string}`]: any;
|
|
4
|
+
[key: `x-${number}`]: any;
|
|
5
|
+
version?: string;
|
|
6
|
+
name?: import("@formily/json-schema").SchemaKey;
|
|
7
|
+
title?: any;
|
|
8
|
+
description?: any;
|
|
9
|
+
default?: any;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
writeOnly?: boolean;
|
|
12
|
+
type?: import("@formily/json-schema").SchemaTypes;
|
|
13
|
+
enum?: import("@formily/json-schema").SchemaEnum<any>;
|
|
14
|
+
const?: any;
|
|
15
|
+
multipleOf?: number;
|
|
16
|
+
maximum?: number;
|
|
17
|
+
exclusiveMaximum?: number;
|
|
18
|
+
minimum?: number;
|
|
19
|
+
exclusiveMinimum?: number;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
minLength?: number;
|
|
22
|
+
pattern?: string | RegExp;
|
|
23
|
+
maxItems?: number;
|
|
24
|
+
minItems?: number;
|
|
25
|
+
uniqueItems?: boolean;
|
|
26
|
+
maxProperties?: number;
|
|
27
|
+
minProperties?: number;
|
|
28
|
+
required?: string[] | boolean | string;
|
|
29
|
+
format?: string;
|
|
30
|
+
$ref?: string;
|
|
31
|
+
$namespace?: string;
|
|
32
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
33
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
34
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
|
|
35
|
+
additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
|
|
36
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
37
|
+
additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
|
|
38
|
+
"x-value"?: any;
|
|
39
|
+
"x-index"?: number;
|
|
40
|
+
"x-pattern"?: any;
|
|
41
|
+
"x-display"?: any;
|
|
42
|
+
"x-validator"?: any;
|
|
43
|
+
"x-decorator"?: any;
|
|
44
|
+
"x-decorator-props"?: any;
|
|
45
|
+
"x-component"?: any;
|
|
46
|
+
"x-component-props"?: any;
|
|
47
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
|
|
48
|
+
"x-content"?: any;
|
|
49
|
+
"x-data"?: any;
|
|
50
|
+
"x-visible"?: boolean;
|
|
51
|
+
"x-hidden"?: boolean;
|
|
52
|
+
"x-disabled"?: boolean;
|
|
53
|
+
"x-editable"?: boolean;
|
|
54
|
+
"x-read-only"?: boolean;
|
|
55
|
+
"x-read-pretty"?: boolean;
|
|
56
|
+
"x-compile-omitted"?: string[];
|
|
57
|
+
}> & {
|
|
58
|
+
Addition?: import("@formily/json-schema").ISchema;
|
|
59
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayCards = void 0;
|
|
4
|
+
const ArrayTable_1 = require("./ArrayTable");
|
|
5
|
+
const Card_1 = require("./Card");
|
|
6
|
+
exports.ArrayCards = Card_1.Card;
|
|
7
|
+
exports.ArrayCards.Addition = ArrayTable_1.ArrayTable.Addition;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayTable = void 0;
|
|
4
|
+
exports.ArrayTable = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
bordered: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Switch',
|
|
11
|
+
'x-component-props': {
|
|
12
|
+
defaultChecked: true,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
showHeader: {
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
'x-decorator': 'FormItem',
|
|
18
|
+
'x-component': 'Switch',
|
|
19
|
+
'x-component-props': {
|
|
20
|
+
defaultChecked: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
sticky: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
'x-decorator': 'FormItem',
|
|
26
|
+
'x-component': 'Switch',
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
enum: ['large', 'small', 'middle'],
|
|
31
|
+
'x-decorator': 'FormItem',
|
|
32
|
+
'x-component': 'Select',
|
|
33
|
+
'x-component-props': {
|
|
34
|
+
defaultValue: 'small',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
tableLayout: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
enum: ['auto', 'fixed'],
|
|
40
|
+
'x-decorator': 'FormItem',
|
|
41
|
+
'x-component': 'Radio.Group',
|
|
42
|
+
'x-component-props': {
|
|
43
|
+
defaultValue: 'auto',
|
|
44
|
+
optionType: 'button',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
const Column = {
|
|
50
|
+
type: 'object',
|
|
51
|
+
properties: {
|
|
52
|
+
title: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
'x-decorator': 'FormItem',
|
|
55
|
+
'x-component': 'Input',
|
|
56
|
+
},
|
|
57
|
+
align: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
enum: ['left', 'right', 'center'],
|
|
60
|
+
'x-decorator': 'FormItem',
|
|
61
|
+
'x-component': 'Radio.Group',
|
|
62
|
+
'x-component-props': {
|
|
63
|
+
defaultValue: 'left',
|
|
64
|
+
optionType: 'button',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
colSpan: {
|
|
68
|
+
type: 'number',
|
|
69
|
+
'x-decorator': 'FormItem',
|
|
70
|
+
'x-component': 'NumberPicker',
|
|
71
|
+
},
|
|
72
|
+
width: {
|
|
73
|
+
type: 'number',
|
|
74
|
+
'x-decorator': 'FormItem',
|
|
75
|
+
'x-component': 'NumberPicker',
|
|
76
|
+
},
|
|
77
|
+
fixed: {
|
|
78
|
+
type: 'string',
|
|
79
|
+
enum: ['left', 'right', false],
|
|
80
|
+
'x-decorator': 'FormItem',
|
|
81
|
+
'x-component': 'Radio.Group',
|
|
82
|
+
'x-component-props': {
|
|
83
|
+
optionType: 'button',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
const Addition = {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
method: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
enum: ['push', 'unshift'],
|
|
94
|
+
'x-decorator': 'FormItem',
|
|
95
|
+
'x-component': 'Radio.Group',
|
|
96
|
+
'x-component-props': {
|
|
97
|
+
defaultValue: 'push',
|
|
98
|
+
optionType: 'button',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
defaultValue: {
|
|
102
|
+
type: 'string',
|
|
103
|
+
'x-decorator': 'FormItem',
|
|
104
|
+
'x-component': 'ValueInput',
|
|
105
|
+
},
|
|
106
|
+
title: {
|
|
107
|
+
type: 'string',
|
|
108
|
+
'x-decorator': 'FormItem',
|
|
109
|
+
'x-component': 'Input',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
exports.ArrayTable.Column = Column;
|
|
114
|
+
exports.ArrayTable.Addition = Addition;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CSSStyle = void 0;
|
|
4
|
+
exports.CSSStyle = {
|
|
5
|
+
type: 'void',
|
|
6
|
+
properties: {
|
|
7
|
+
'style.width': {
|
|
8
|
+
type: 'string',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'SizeInput',
|
|
11
|
+
},
|
|
12
|
+
'style.height': {
|
|
13
|
+
type: 'string',
|
|
14
|
+
'x-decorator': 'FormItem',
|
|
15
|
+
'x-component': 'SizeInput',
|
|
16
|
+
},
|
|
17
|
+
'style.display': {
|
|
18
|
+
'x-component': 'DisplayStyleSetter',
|
|
19
|
+
},
|
|
20
|
+
'style.background': {
|
|
21
|
+
'x-component': 'BackgroundStyleSetter',
|
|
22
|
+
},
|
|
23
|
+
'style.boxShadow': {
|
|
24
|
+
'x-component': 'BoxShadowStyleSetter',
|
|
25
|
+
},
|
|
26
|
+
'style.font': {
|
|
27
|
+
'x-component': 'FontStyleSetter',
|
|
28
|
+
},
|
|
29
|
+
'style.margin': {
|
|
30
|
+
'x-component': 'BoxStyleSetter',
|
|
31
|
+
},
|
|
32
|
+
'style.padding': {
|
|
33
|
+
'x-component': 'BoxStyleSetter',
|
|
34
|
+
},
|
|
35
|
+
'style.borderRadius': {
|
|
36
|
+
'x-component': 'BorderRadiusStyleSetter',
|
|
37
|
+
},
|
|
38
|
+
'style.border': {
|
|
39
|
+
'x-component': 'BorderStyleSetter',
|
|
40
|
+
},
|
|
41
|
+
'style.opacity': {
|
|
42
|
+
'x-decorator': 'FormItem',
|
|
43
|
+
'x-component': 'Slider',
|
|
44
|
+
'x-component-props': {
|
|
45
|
+
defaultValue: 1,
|
|
46
|
+
min: 0,
|
|
47
|
+
max: 1,
|
|
48
|
+
step: 0.01,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Card = void 0;
|
|
4
|
+
exports.Card = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
title: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
'x-decorator': 'FormItem',
|
|
10
|
+
'x-component': 'Input',
|
|
11
|
+
},
|
|
12
|
+
extra: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
'x-decorator': 'FormItem',
|
|
15
|
+
'x-component': 'Input',
|
|
16
|
+
},
|
|
17
|
+
type: {
|
|
18
|
+
type: 'boolean',
|
|
19
|
+
enum: [
|
|
20
|
+
{ label: '默认', value: '' },
|
|
21
|
+
{ label: '内嵌', value: 'inner' },
|
|
22
|
+
],
|
|
23
|
+
'x-decorator': 'FormItem',
|
|
24
|
+
'x-component': 'Radio.Group',
|
|
25
|
+
'x-component-props': {
|
|
26
|
+
defaultValue: '',
|
|
27
|
+
optionType: 'button',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
enum: ['large', 'small', 'middle', null],
|
|
33
|
+
'x-decorator': 'FormItem',
|
|
34
|
+
'x-component': 'Select',
|
|
35
|
+
'x-component-props': {
|
|
36
|
+
defaultValue: 'middle',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
bordered: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
'x-decorator': 'FormItem',
|
|
42
|
+
'x-component': 'Switch',
|
|
43
|
+
'x-component-props': {
|
|
44
|
+
defaultChecked: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|