@silver-formily/element-plus 3.0.2 → 3.0.3
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/README.en-US.md +1 -1
- package/README.md +1 -1
- package/esm/__builtins__/configs/index.mjs +6 -5
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/shared/load-config-provider.mjs +19 -11
- package/esm/__builtins__/shared/load-config-provider.mjs.map +1 -1
- package/esm/__builtins__/shared/loading.mjs +50 -46
- package/esm/__builtins__/shared/loading.mjs.map +1 -1
- package/esm/__builtins__/shared/simple-version-compare.mjs +16 -15
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
- package/esm/__builtins__/shared/transform-component.mjs +30 -31
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/use-enter-submit.mjs +74 -62
- package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +44 -32
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/_virtual/_/plugin-vue/export-helper.mjs +8 -0
- package/esm/array-base/array-base-addition.mjs +53 -0
- package/esm/array-base/array-base-addition.mjs.map +1 -0
- package/esm/array-base/array-base-index.mjs +17 -0
- package/esm/array-base/array-base-index.mjs.map +1 -0
- package/esm/array-base/array-base-inner.mjs +30 -0
- package/esm/array-base/array-base-inner.mjs.map +1 -0
- package/esm/array-base/array-base-item.mjs +21 -0
- package/esm/array-base/array-base-item.mjs.map +1 -0
- package/esm/array-base/array-base-move-down.mjs +45 -0
- package/esm/array-base/array-base-move-down.mjs.map +1 -0
- package/esm/array-base/array-base-move-up.mjs +45 -0
- package/esm/array-base/array-base-move-up.mjs.map +1 -0
- package/esm/array-base/array-base-remove.mjs +45 -0
- package/esm/array-base/array-base-remove.mjs.map +1 -0
- package/esm/array-base/array-base-sort-handle.mjs +33 -0
- package/esm/array-base/array-base-sort-handle.mjs.map +1 -0
- package/esm/array-base/index.mjs +28 -208
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/style.css +36 -0
- package/esm/array-base/symbols.mjs +7 -6
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/types.d.ts +23 -24
- package/esm/array-base/utils.d.ts +11 -17
- package/esm/array-base/utils.mjs +58 -60
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/array-cards.mjs +109 -0
- package/esm/array-cards/array-cards.mjs.map +1 -0
- package/esm/array-cards/index.d.ts +120 -113
- package/esm/array-cards/index.mjs +19 -118
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-cards/style.css +20 -0
- package/esm/array-collapse/array-collapse-item.mjs +74 -0
- package/esm/array-collapse/array-collapse-item.mjs.map +1 -0
- package/esm/array-collapse/array-collapse.mjs +117 -0
- package/esm/array-collapse/array-collapse.mjs.map +1 -0
- package/esm/array-collapse/index.d.ts +137 -129
- package/esm/array-collapse/index.mjs +21 -174
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/style.css +20 -0
- package/esm/array-collapse/utils.mjs +7 -12
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/array-items-item.mjs +22 -0
- package/esm/array-items/array-items-item.mjs.map +1 -0
- package/esm/array-items/array-items.mjs +88 -0
- package/esm/array-items/array-items.mjs.map +1 -0
- package/esm/array-items/index.d.ts +132 -125
- package/esm/array-items/index.mjs +21 -107
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-items/style.css +22 -0
- package/esm/array-list-tabs/array-list-tabs.mjs +191 -0
- package/esm/array-list-tabs/array-list-tabs.mjs.map +1 -0
- package/esm/array-list-tabs/index.d.ts +80 -74
- package/esm/array-list-tabs/index.mjs +12 -186
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/style.css +90 -0
- package/esm/array-list-tabs/utils.mjs +11 -15
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/array-table.mjs +236 -0
- package/esm/array-table/array-table.mjs.map +1 -0
- package/esm/array-table/index.d.ts +106 -1597
- package/esm/array-table/index.mjs +24 -223
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/style.css +23 -0
- package/esm/array-table/types.d.ts +11 -6
- package/esm/array-table/utils.mjs +14 -22
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/array-tabs.mjs +92 -0
- package/esm/array-tabs/array-tabs.mjs.map +1 -0
- package/esm/array-tabs/index.d.ts +7 -2
- package/esm/array-tabs/index.mjs +8 -84
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/array-tabs/style.css +7 -0
- package/esm/autocomplete/autocomplete.mjs +99 -0
- package/esm/autocomplete/autocomplete.mjs.map +1 -0
- package/esm/autocomplete/index.d.ts +5 -639
- package/esm/autocomplete/index.mjs +14 -113
- package/esm/autocomplete/index.mjs.map +1 -1
- package/esm/cascader/cascader.mjs +32 -0
- package/esm/cascader/cascader.mjs.map +1 -0
- package/esm/cascader/index.d.ts +5 -28
- package/esm/cascader/index.mjs +13 -50
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.mjs +64 -0
- package/esm/checkbox/checkbox-group.mjs.map +1 -0
- package/esm/checkbox/index.d.ts +5 -817
- package/esm/checkbox/index.mjs +16 -69
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.d.ts +8 -210
- package/esm/color-picker/index.mjs +13 -17
- package/esm/color-picker/index.mjs.map +1 -1
- package/esm/color-picker-panel/index.d.ts +8 -129
- package/esm/color-picker-panel/index.mjs +16 -25
- package/esm/color-picker-panel/index.mjs.map +1 -1
- package/esm/date-picker/index.d.ts +5 -443
- package/esm/date-picker/index.mjs +21 -29
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/date-picker/utils.mjs +21 -26
- package/esm/date-picker/utils.mjs.map +1 -1
- package/esm/date-picker-panel/index.d.ts +5 -143
- package/esm/date-picker-panel/index.mjs +23 -30
- package/esm/date-picker-panel/index.mjs.map +1 -1
- package/esm/editable/editable-popover.mjs +95 -0
- package/esm/editable/editable-popover.mjs.map +1 -0
- package/esm/editable/editable.mjs +113 -0
- package/esm/editable/editable.mjs.map +1 -0
- package/esm/editable/index.d.ts +10 -150
- package/esm/editable/index.mjs +17 -219
- package/esm/editable/index.mjs.map +1 -1
- package/esm/editable/style.css +29 -0
- package/esm/form/form.mjs +50 -70
- package/esm/form/form.mjs.map +1 -1
- package/esm/form/form.vue.d.ts +48 -0
- package/esm/form/index.d.ts +1 -1
- package/esm/form-button-group/form-button-group-sticky.mjs +37 -0
- package/esm/form-button-group/form-button-group-sticky.mjs.map +1 -0
- package/esm/form-button-group/form-button-group.mjs +71 -0
- package/esm/form-button-group/form-button-group.mjs.map +1 -0
- package/esm/form-button-group/index.d.ts +94 -87
- package/esm/form-button-group/index.mjs +10 -96
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/style.css +281 -0
- package/esm/form-button-group/utils.mjs +7 -12
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/form-collapse.mjs +74 -0
- package/esm/form-collapse/form-collapse.mjs.map +1 -0
- package/esm/form-collapse/index.d.ts +43 -39
- package/esm/form-collapse/index.mjs +20 -86
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/style.css +7 -0
- package/esm/form-collapse/utils.d.ts +21 -27
- package/esm/form-collapse/utils.mjs +48 -46
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/dialog-content.mjs +118 -0
- package/esm/form-dialog/dialog-content.mjs.map +1 -0
- package/esm/form-dialog/index.d.ts +8 -4
- package/esm/form-dialog/index.mjs +142 -211
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +38 -32
- package/esm/form-drawer/drawer-content.mjs +118 -0
- package/esm/form-drawer/drawer-content.mjs.map +1 -0
- package/esm/form-drawer/index.d.ts +8 -4
- package/esm/form-drawer/index.mjs +142 -204
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +38 -32
- package/esm/form-grid/form-grid-column.mjs +28 -0
- package/esm/form-grid/form-grid-column.mjs.map +1 -0
- package/esm/form-grid/form-grid.mjs +69 -0
- package/esm/form-grid/form-grid.mjs.map +1 -0
- package/esm/form-grid/hooks.mjs +7 -7
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.d.ts +5 -2
- package/esm/form-grid/index.mjs +10 -109
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-grid/style.css +128 -0
- package/esm/form-item/form-item.mjs +308 -0
- package/esm/form-item/form-item.mjs.map +1 -0
- package/esm/form-item/form-item.vue.d.ts +29 -0
- package/esm/form-item/index.d.ts +9 -77
- package/esm/form-item/index.mjs +28 -332
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/style.css +263 -0
- package/esm/form-item/types.d.ts +34 -29
- package/esm/form-item/utils.mjs +15 -15
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.mjs +103 -83
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/form-layout.vue.d.ts +28 -0
- package/esm/form-layout/index.d.ts +1 -1
- package/esm/form-layout/types.d.ts +24 -40
- package/esm/form-layout/utils.mjs +73 -99
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/form-step-pane.mjs +15 -0
- package/esm/form-step/form-step-pane.mjs.map +1 -0
- package/esm/form-step/form-step.mjs +63 -0
- package/esm/form-step/form-step.mjs.map +1 -0
- package/esm/form-step/index.d.ts +29 -23
- package/esm/form-step/index.mjs +12 -93
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-step/types.d.ts +19 -19
- package/esm/form-step/utils.d.ts +14 -10
- package/esm/form-step/utils.mjs +75 -59
- package/esm/form-step/utils.mjs.map +1 -1
- package/esm/form-tab/form-tab.mjs +79 -0
- package/esm/form-tab/form-tab.mjs.map +1 -0
- package/esm/form-tab/hooks.mjs +18 -16
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +5 -3
- package/esm/form-tab/index.mjs +10 -76
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/style.css +4 -0
- package/esm/form-tab/utils.mjs +14 -13
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.d.ts +53 -48
- package/esm/index.mjs +50 -103
- package/esm/input/index.d.ts +5 -52
- package/esm/input/index.mjs +16 -68
- package/esm/input/index.mjs.map +1 -1
- package/esm/input/input.mjs +41 -0
- package/esm/input/input.mjs.map +1 -0
- package/esm/input-number/index.d.ts +8 -329
- package/esm/input-number/index.mjs +12 -24
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.d.ts +5 -32
- package/esm/input-tag/index.mjs +13 -49
- package/esm/input-tag/index.mjs.map +1 -1
- package/esm/input-tag/input-tag.mjs +41 -0
- package/esm/input-tag/input-tag.mjs.map +1 -0
- package/esm/mention/index.d.ts +5 -50
- package/esm/mention/index.mjs +15 -96
- package/esm/mention/index.mjs.map +1 -1
- package/esm/mention/mention.mjs +77 -0
- package/esm/mention/mention.mjs.map +1 -0
- package/esm/pagination/components/jumper.mjs +11 -12
- package/esm/pagination/components/jumper.mjs.map +1 -1
- package/esm/pagination/components/jumper2.mjs +59 -0
- package/esm/pagination/components/jumper2.mjs.map +1 -0
- package/esm/pagination/components/next.mjs +18 -22
- package/esm/pagination/components/next.mjs.map +1 -1
- package/esm/pagination/components/next2.mjs +38 -0
- package/esm/pagination/components/next2.mjs.map +1 -0
- package/esm/pagination/components/pager.mjs +21 -22
- package/esm/pagination/components/pager.mjs.map +1 -1
- package/esm/pagination/components/pager2.mjs +229 -0
- package/esm/pagination/components/pager2.mjs.map +1 -0
- package/esm/pagination/components/prev.mjs +16 -22
- package/esm/pagination/components/prev.mjs.map +1 -1
- package/esm/pagination/components/prev2.mjs +38 -0
- package/esm/pagination/components/prev2.mjs.map +1 -0
- package/esm/pagination/components/sizes.mjs +32 -7
- package/esm/pagination/components/sizes.mjs.map +1 -1
- package/esm/pagination/components/sizes2.mjs +66 -0
- package/esm/pagination/components/sizes2.mjs.map +1 -0
- package/esm/pagination/components/total.mjs +10 -11
- package/esm/pagination/components/total.mjs.map +1 -1
- package/esm/pagination/components/total2.mjs +26 -0
- package/esm/pagination/components/total2.mjs.map +1 -0
- package/esm/pagination/pagination.mjs +271 -626
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.d.ts +8 -54
- package/esm/password/index.mjs +11 -14
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/cascader.mjs +51 -0
- package/esm/preview-text/cascader.mjs.map +1 -0
- package/esm/preview-text/color-picker.mjs +37 -0
- package/esm/preview-text/color-picker.mjs.map +1 -0
- package/esm/preview-text/date-picker.mjs +61 -0
- package/esm/preview-text/date-picker.mjs.map +1 -0
- package/esm/preview-text/index.d.ts +107 -106
- package/esm/preview-text/index.mjs +25 -363
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/input.mjs +39 -0
- package/esm/preview-text/input.mjs.map +1 -0
- package/esm/preview-text/preview.mjs +30 -0
- package/esm/preview-text/preview.mjs.map +1 -0
- package/esm/preview-text/rate.mjs +32 -0
- package/esm/preview-text/rate.mjs.map +1 -0
- package/esm/preview-text/select.mjs +42 -0
- package/esm/preview-text/select.mjs.map +1 -0
- package/esm/preview-text/style.css +16 -0
- package/esm/preview-text/time-picker.mjs +39 -0
- package/esm/preview-text/time-picker.mjs.map +1 -0
- package/esm/preview-text/tree.mjs +73 -0
- package/esm/preview-text/tree.mjs.map +1 -0
- package/esm/preview-text/utils.d.ts +10 -13
- package/esm/preview-text/utils.mjs +15 -15
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/query-form/default-components.mjs +45 -45
- package/esm/query-form/default-components.mjs.map +1 -1
- package/esm/query-form/hooks.mjs +31 -26
- package/esm/query-form/hooks.mjs.map +1 -1
- package/esm/query-form/index.d.ts +115 -105
- package/esm/query-form/index.mjs +10 -333
- package/esm/query-form/index.mjs.map +1 -1
- package/esm/query-form/query-form-light.mjs +86 -0
- package/esm/query-form/query-form-light.mjs.map +1 -0
- package/esm/query-form/query-form.mjs +263 -0
- package/esm/query-form/query-form.mjs.map +1 -0
- package/esm/query-form/style.css +27 -0
- package/esm/query-form/types.d.ts +42 -41
- package/esm/query-form-item/index.d.ts +7 -151
- package/esm/query-form-item/index.mjs +15 -183
- package/esm/query-form-item/index.mjs.map +1 -1
- package/esm/query-form-item/query-form-item.mjs +195 -0
- package/esm/query-form-item/query-form-item.mjs.map +1 -0
- package/esm/query-form-item/style.css +12 -0
- package/esm/query-form-item/types.d.ts +42 -38
- package/esm/radio/index.d.ts +429 -473
- package/esm/radio/index.mjs +15 -68
- package/esm/radio/index.mjs.map +1 -1
- package/esm/radio/radio-group.mjs +70 -0
- package/esm/radio/radio-group.mjs.map +1 -0
- package/esm/{styles/radio/index.css → radio/style.css} +3 -1
- package/esm/rate/index.d.ts +8 -187
- package/esm/rate/index.mjs +13 -17
- package/esm/rate/index.mjs.map +1 -1
- package/esm/reset/index.d.ts +5 -2
- package/esm/reset/index.mjs +8 -44
- package/esm/reset/index.mjs.map +1 -1
- package/esm/reset/reset.mjs +42 -0
- package/esm/reset/reset.mjs.map +1 -0
- package/esm/segmented/index.d.ts +5 -26
- package/esm/segmented/index.mjs +13 -40
- package/esm/segmented/index.mjs.map +1 -1
- package/esm/segmented/segmented.mjs +26 -0
- package/esm/segmented/segmented.mjs.map +1 -0
- package/esm/select/index.d.ts +5 -129
- package/esm/select/index.mjs +14 -127
- package/esm/select/index.mjs.map +1 -1
- package/esm/select/select.mjs +95 -0
- package/esm/select/select.mjs.map +1 -0
- package/esm/select-table/index.d.ts +4 -1557
- package/esm/select-table/index.mjs +12 -204
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.mjs +202 -0
- package/esm/select-table/select-table.mjs.map +1 -0
- package/esm/select-table/style.css +14 -0
- package/esm/shared/overlay-elements.mjs +15 -16
- package/esm/shared/overlay-elements.mjs.map +1 -1
- package/esm/shared/url-change-listener.mjs +50 -0
- package/esm/shared/url-change-listener.mjs.map +1 -0
- package/esm/slider/index.d.ts +8 -177
- package/esm/slider/index.mjs +13 -17
- package/esm/slider/index.mjs.map +1 -1
- package/esm/space/index.d.ts +2 -1
- package/esm/space/index.mjs +2 -6
- package/esm/submit/index.d.ts +5 -2
- package/esm/submit/index.mjs +8 -40
- package/esm/submit/index.mjs.map +1 -1
- package/esm/submit/submit.mjs +41 -0
- package/esm/submit/submit.mjs.map +1 -0
- package/esm/switch/index.d.ts +8 -299
- package/esm/switch/index.mjs +8 -13
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.d.ts +8 -445
- package/esm/time-picker/index.mjs +10 -17
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +5 -185
- package/esm/time-select/index.mjs +13 -17
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +8 -267
- package/esm/transfer/index.mjs +8 -11
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.d.ts +4 -41
- package/esm/tree/index.mjs +14 -104
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/tree.mjs +127 -0
- package/esm/tree/tree.mjs.map +1 -0
- package/esm/tree/utils.mjs +157 -149
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.d.ts +5 -16
- package/esm/tree-select/index.mjs +13 -40
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/tree-select/tree-select.mjs +38 -0
- package/esm/tree-select/tree-select.mjs.map +1 -0
- package/esm/upload/index.d.ts +5 -712
- package/esm/upload/index.mjs +11 -172
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.mjs +176 -0
- package/esm/upload/upload.mjs.map +1 -0
- package/package.json +23 -24
- package/esm/__builtins__/configs/index.d.ts +0 -1
- package/esm/__builtins__/index.d.ts +0 -2
- package/esm/__builtins__/index.mjs +0 -23
- package/esm/__builtins__/index.mjs.map +0 -1
- package/esm/__builtins__/shared/index.d.ts +0 -6
- package/esm/__builtins__/shared/index.mjs +0 -21
- package/esm/__builtins__/shared/index.mjs.map +0 -1
- package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
- package/esm/__builtins__/shared/loading.d.ts +0 -12
- package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
- package/esm/__builtins__/shared/transform-component.d.ts +0 -3
- package/esm/__builtins__/shared/types.d.ts +0 -2
- package/esm/__builtins__/shared/types.mjs +0 -2
- package/esm/__builtins__/shared/types.mjs.map +0 -1
- package/esm/__builtins__/shared/use-enter-submit.d.ts +0 -9
- package/esm/__builtins__/shared/utils.d.ts +0 -9
- package/esm/array-base/array-base-addition.d.ts +0 -5
- package/esm/array-base/array-base-index.d.ts +0 -19
- package/esm/array-base/array-base-inner.d.ts +0 -18
- package/esm/array-base/array-base-item.d.ts +0 -18
- package/esm/array-base/array-base-move-down.d.ts +0 -18
- package/esm/array-base/array-base-move-up.d.ts +0 -18
- package/esm/array-base/array-base-remove.d.ts +0 -18
- package/esm/array-base/array-base-sort-handle.d.ts +0 -2
- package/esm/array-base/index.d.ts +0 -114
- package/esm/array-base/symbols.d.ts +0 -4
- package/esm/array-base/types.mjs +0 -2
- package/esm/array-base/types.mjs.map +0 -1
- package/esm/array-cards/array-cards.d.ts +0 -13
- package/esm/array-collapse/array-collapse-item.d.ts +0 -18
- package/esm/array-collapse/array-collapse.d.ts +0 -16
- package/esm/array-collapse/utils.d.ts +0 -1
- package/esm/array-items/array-items-item.d.ts +0 -30
- package/esm/array-items/array-items.d.ts +0 -2
- package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
- package/esm/array-list-tabs/utils.d.ts +0 -3
- package/esm/array-table/array-table.d.ts +0 -1505
- package/esm/array-table/types.mjs +0 -2
- package/esm/array-table/types.mjs.map +0 -1
- package/esm/array-table/utils.d.ts +0 -5
- package/esm/array-tabs/array-tabs.d.ts +0 -2
- package/esm/autocomplete/autocomplete.d.ts +0 -1222
- package/esm/cascader/cascader.d.ts +0 -25
- package/esm/checkbox/checkbox-group.d.ts +0 -42
- package/esm/date-picker/utils.d.ts +0 -4
- package/esm/editable/editable-popover.d.ts +0 -25
- package/esm/editable/editable.d.ts +0 -193
- package/esm/env.d.d.ts +0 -1
- package/esm/env.d.mjs +0 -2
- package/esm/env.d.mjs.map +0 -1
- package/esm/form/form.d.ts +0 -46
- package/esm/form/index.mjs +0 -6
- package/esm/form/index.mjs.map +0 -1
- package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
- package/esm/form-button-group/form-button-group.d.ts +0 -57
- package/esm/form-button-group/utils.d.ts +0 -1
- package/esm/form-collapse/form-collapse.d.ts +0 -18
- package/esm/form-dialog/dialog-content.d.ts +0 -846
- package/esm/form-dialog/types.mjs +0 -2
- package/esm/form-dialog/types.mjs.map +0 -1
- package/esm/form-drawer/drawer-content.d.ts +0 -976
- package/esm/form-drawer/types.mjs +0 -2
- package/esm/form-drawer/types.mjs.map +0 -1
- package/esm/form-grid/form-grid-column.d.ts +0 -29
- package/esm/form-grid/form-grid.d.ts +0 -101
- package/esm/form-grid/hooks.d.ts +0 -4
- package/esm/form-item/form-item.d.ts +0 -19
- package/esm/form-item/types.mjs +0 -2
- package/esm/form-item/types.mjs.map +0 -1
- package/esm/form-item/utils.d.ts +0 -3
- package/esm/form-layout/form-layout.d.ts +0 -31
- package/esm/form-layout/index.mjs +0 -6
- package/esm/form-layout/index.mjs.map +0 -1
- package/esm/form-layout/types.mjs +0 -2
- package/esm/form-layout/types.mjs.map +0 -1
- package/esm/form-layout/utils.d.ts +0 -57
- package/esm/form-step/form-step-pane.d.ts +0 -2
- package/esm/form-step/form-step.d.ts +0 -5
- package/esm/form-step/types.mjs +0 -2
- package/esm/form-step/types.mjs.map +0 -1
- package/esm/form-tab/form-tab.d.ts +0 -7
- package/esm/form-tab/hooks.d.ts +0 -8
- package/esm/form-tab/types.d.ts +0 -12
- package/esm/form-tab/types.mjs +0 -2
- package/esm/form-tab/types.mjs.map +0 -1
- package/esm/form-tab/utils.d.ts +0 -4
- package/esm/index.mjs.map +0 -1
- package/esm/input/input.d.ts +0 -25
- package/esm/input-tag/input-tag.d.ts +0 -32
- package/esm/mention/mention.d.ts +0 -51
- package/esm/pagination/components/jumper.d.ts +0 -16
- package/esm/pagination/components/next.d.ts +0 -42
- package/esm/pagination/components/pager.d.ts +0 -42
- package/esm/pagination/components/prev.d.ts +0 -39
- package/esm/pagination/components/sizes.d.ts +0 -56
- package/esm/pagination/components/total.d.ts +0 -8
- package/esm/pagination/pagination.d.ts +0 -128
- package/esm/preview-text/cascader.d.ts +0 -5
- package/esm/preview-text/color-picker.d.ts +0 -5
- package/esm/preview-text/date-picker.d.ts +0 -5
- package/esm/preview-text/input.d.ts +0 -28
- package/esm/preview-text/preview.d.ts +0 -18
- package/esm/preview-text/rate.d.ts +0 -5
- package/esm/preview-text/select.d.ts +0 -5
- package/esm/preview-text/time-picker.d.ts +0 -5
- package/esm/preview-text/tree.d.ts +0 -22
- package/esm/query-form/default-components.d.ts +0 -5
- package/esm/query-form/hooks.d.ts +0 -25
- package/esm/query-form/query-form-light.d.ts +0 -27
- package/esm/query-form/query-form.d.ts +0 -52
- package/esm/query-form/types.mjs +0 -2
- package/esm/query-form/types.mjs.map +0 -1
- package/esm/query-form-item/query-form-item.d.ts +0 -96
- package/esm/query-form-item/types.mjs +0 -2
- package/esm/query-form-item/types.mjs.map +0 -1
- package/esm/radio/radio-group.d.ts +0 -33
- package/esm/reset/reset.d.ts +0 -45
- package/esm/segmented/segmented.d.ts +0 -25
- package/esm/select/select.d.ts +0 -45
- package/esm/select-table/select-table.d.ts +0 -3030
- package/esm/select-table/types.d.ts +0 -17
- package/esm/select-table/types.mjs +0 -2
- package/esm/select-table/types.mjs.map +0 -1
- package/esm/shared/overlay-elements.d.ts +0 -6
- package/esm/space/index.mjs.map +0 -1
- package/esm/styles/array-base/index.css +0 -1
- package/esm/styles/array-cards/index.css +0 -1
- package/esm/styles/array-collapse/index.css +0 -1
- package/esm/styles/array-items/index.css +0 -1
- package/esm/styles/array-list-tabs/index.css +0 -1
- package/esm/styles/array-table/index.css +0 -1
- package/esm/styles/array-tabs/index.css +0 -1
- package/esm/styles/editable/index.css +0 -1
- package/esm/styles/form-button-group/index.css +0 -1
- package/esm/styles/form-collapse/index.css +0 -1
- package/esm/styles/form-grid/index.css +0 -1
- package/esm/styles/form-item/index.css +0 -1
- package/esm/styles/form-tab/index.css +0 -1
- package/esm/styles/preview-text/index.css +0 -1
- package/esm/styles/query-form/index.css +0 -1
- package/esm/styles/query-form-item/index.css +0 -1
- package/esm/styles/select-table/index.css +0 -1
- package/esm/submit/submit.d.ts +0 -36
- package/esm/tree/tree.d.ts +0 -20
- package/esm/tree/types.d.ts +0 -13
- package/esm/tree/types.mjs +0 -2
- package/esm/tree/types.mjs.map +0 -1
- package/esm/tree/utils.d.ts +0 -45
- package/esm/tree-select/tree-select.d.ts +0 -10
- package/esm/upload/upload.d.ts +0 -1259
- package/esm/vendor/icon.mjs +0 -11
- package/esm/vendor/icon.mjs.map +0 -1
- package/esm/vendor/lodash.mjs +0 -1506
- package/esm/vendor/lodash.mjs.map +0 -1
- package/esm/vendor/runtime.mjs +0 -34
- package/esm/vendor/runtime.mjs.map +0 -1
- package/esm/vendor/shared.esm-bundler.mjs +0 -9
- package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
- package/esm/vendor/sizes.mjs +0 -27
- package/esm/vendor/sizes.mjs.map +0 -1
- package/esm/vendor/types.mjs +0 -19
- package/esm/vendor/types.mjs.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { stylePrefix } from "../__builtins__/configs/index.mjs";
|
|
3
|
+
import { getArrayItemSchema, isAdditionComponent, useKey } from "../array-base/utils.mjs";
|
|
4
|
+
import { ArrayBase } from "../array-base/index.mjs";
|
|
5
|
+
import { autorunEffect } from "@silver-formily/reactive-vue";
|
|
6
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, unref, withCtx } from "vue";
|
|
7
|
+
import { RecursionField, useField, useFieldSchema } from "@silver-formily/vue";
|
|
8
|
+
import { isArr } from "@formily/shared";
|
|
9
|
+
import { VueDraggable } from "vue-draggable-plus";
|
|
10
|
+
//#region src/array-items/array-items.vue
|
|
11
|
+
const _hoisted_1 = ["index"];
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
name: "FArrayItems",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
__name: "array-items",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const fieldRef = useField();
|
|
18
|
+
const schemaRef = useFieldSchema();
|
|
19
|
+
const field = fieldRef.value;
|
|
20
|
+
const schema = schemaRef.value;
|
|
21
|
+
const prefixCls = `${stylePrefix}-array-items`;
|
|
22
|
+
const { getKey, keyMap } = useKey(schemaRef.value);
|
|
23
|
+
const dataSource = ref(isArr(field.value) ? field.value : []);
|
|
24
|
+
const triggerUpdateKey = ref(0);
|
|
25
|
+
autorunEffect(() => {
|
|
26
|
+
dataSource.value = isArr(field.value) ? [...field.value] : [];
|
|
27
|
+
});
|
|
28
|
+
async function handleDragEnd(evt) {
|
|
29
|
+
const { oldIndex, newIndex } = evt;
|
|
30
|
+
if (isArr(keyMap)) keyMap.splice(newIndex, 0, keyMap.splice(oldIndex, 1)[0]);
|
|
31
|
+
await field.move(oldIndex, newIndex);
|
|
32
|
+
triggerUpdateKey.value++;
|
|
33
|
+
}
|
|
34
|
+
const { props: arrayItemsProps } = useCleanAttrs([
|
|
35
|
+
"value",
|
|
36
|
+
"modelValue",
|
|
37
|
+
"onUpdate:modelValue"
|
|
38
|
+
]);
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createElementBlock("div", mergeProps({ class: prefixCls }, unref(arrayItemsProps)), [(openBlock(), createBlock(unref(ArrayBase), {
|
|
41
|
+
key: triggerUpdateKey.value,
|
|
42
|
+
"key-map": unref(keyMap)
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [createVNode(unref(VueDraggable), {
|
|
45
|
+
class: normalizeClass(`${prefixCls}-list`),
|
|
46
|
+
"model-value": dataSource.value,
|
|
47
|
+
handle: `.${unref(stylePrefix)}-array-base-sort-handle`,
|
|
48
|
+
animation: 150,
|
|
49
|
+
onEnd: handleDragEnd
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(dataSource.value, (element, index) => {
|
|
52
|
+
return openBlock(), createBlock(unref(ArrayBase).Item, {
|
|
53
|
+
key: unref(getKey)(element, index),
|
|
54
|
+
index,
|
|
55
|
+
record: element
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [(openBlock(), createElementBlock("div", {
|
|
58
|
+
key: unref(getKey)(element, index),
|
|
59
|
+
class: normalizeClass([`${prefixCls}-item-inner`]),
|
|
60
|
+
index
|
|
61
|
+
}, [createVNode(unref(RecursionField), {
|
|
62
|
+
schema: unref(getArrayItemSchema)(unref(schema), index),
|
|
63
|
+
name: index
|
|
64
|
+
}, null, 8, ["schema", "name"])], 10, _hoisted_1))]),
|
|
65
|
+
_: 2
|
|
66
|
+
}, 1032, ["index", "record"]);
|
|
67
|
+
}), 128))]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, [
|
|
70
|
+
"class",
|
|
71
|
+
"model-value",
|
|
72
|
+
"handle"
|
|
73
|
+
]), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(schema).properties, (itemSchema, key) => {
|
|
74
|
+
return openBlock(), createElementBlock(Fragment, { key }, [unref(isAdditionComponent)(itemSchema) ? (openBlock(), createBlock(unref(RecursionField), {
|
|
75
|
+
key: 0,
|
|
76
|
+
schema: itemSchema,
|
|
77
|
+
name: "addition"
|
|
78
|
+
}, null, 8, ["schema"])) : createCommentVNode("v-if", true)], 64);
|
|
79
|
+
}), 128))]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["key-map"]))], 16);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
//#endregion
|
|
86
|
+
export { _sfc_main as default };
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=array-items.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-items.mjs","names":[],"sources":["../../src/array-items/array-items.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { ArrayField } from '@formily/core'\nimport { isArr } from '@formily/shared'\nimport { autorunEffect } from '@silver-formily/reactive-vue'\nimport { RecursionField, useField, useFieldSchema } from '@silver-formily/vue'\nimport { ref } from 'vue'\nimport { VueDraggable } from 'vue-draggable-plus'\nimport { useCleanAttrs } from '../__builtins__'\nimport { stylePrefix } from '../__builtins__/configs'\nimport { ArrayBase } from '../array-base'\nimport { getArrayItemSchema, isAdditionComponent, useKey } from '../array-base/utils'\n\ndefineOptions({\n name: 'FArrayItems',\n inheritAttrs: false,\n})\n\nconst fieldRef = useField<ArrayField>()\nconst schemaRef = useFieldSchema()\nconst field = fieldRef.value\nconst schema = schemaRef.value\n\nconst prefixCls = `${stylePrefix}-array-items`\nconst { getKey, keyMap } = useKey(schemaRef.value)\nconst dataSource = ref(isArr(field.value) ? field.value : [])\nconst triggerUpdateKey = ref(0)\n\nautorunEffect(() => {\n dataSource.value = isArr(field.value) ? [...field.value] : []\n})\n\nasync function handleDragEnd(evt: { oldIndex: number, newIndex: number }) {\n const { oldIndex, newIndex } = evt\n if (isArr(keyMap)) {\n keyMap.splice(newIndex, 0, keyMap.splice(oldIndex, 1)[0])\n }\n await field.move(oldIndex, newIndex)\n triggerUpdateKey.value++\n}\nconst { props: arrayItemsProps } = useCleanAttrs(['value', 'modelValue', 'onUpdate:modelValue'])\n</script>\n\n<template>\n <div :class=\"prefixCls\" v-bind=\"arrayItemsProps\">\n <ArrayBase :key=\"triggerUpdateKey\" :key-map=\"keyMap\">\n <VueDraggable\n :class=\"`${prefixCls}-list`\"\n :model-value=\"dataSource\"\n :handle=\"`.${stylePrefix}-array-base-sort-handle`\"\n :animation=\"150\"\n @end=\"handleDragEnd\"\n >\n <ArrayBase.Item\n v-for=\"(element, index) of dataSource\"\n :key=\"getKey(element, index)\"\n :index=\"index\"\n :record=\"element\"\n >\n <div :key=\"getKey(element, index)\" :class=\"[`${prefixCls}-item-inner`]\" :index=\"index\">\n <RecursionField :schema=\"getArrayItemSchema(schema, index)\" :name=\"index\" />\n </div>\n </ArrayBase.Item>\n </VueDraggable>\n\n <template v-for=\"(itemSchema, key) of schema.properties\" :key=\"key\">\n <RecursionField v-if=\"isAdditionComponent(itemSchema)\" :schema=\"itemSchema\" name=\"addition\" />\n </template>\n </ArrayBase>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAiBA,MAAM,WAAW,UAAqB;EACtC,MAAM,YAAY,gBAAe;EACjC,MAAM,QAAQ,SAAS;EACvB,MAAM,SAAS,UAAU;EAEzB,MAAM,YAAY,GAAG,YAAY;EACjC,MAAM,EAAE,QAAQ,WAAW,OAAO,UAAU,MAAK;EACjD,MAAM,aAAa,IAAI,MAAM,MAAM,MAAM,GAAG,MAAM,QAAQ,EAAE,CAAA;EAC5D,MAAM,mBAAmB,IAAI,EAAC;AAE9B,sBAAoB;AAClB,cAAW,QAAQ,MAAM,MAAM,MAAM,GAAG,CAAC,GAAG,MAAM,MAAM,GAAG,EAAC;IAC7D;EAED,eAAe,cAAc,KAA6C;GACxE,MAAM,EAAE,UAAU,aAAa;AAC/B,OAAI,MAAM,OAAO,CACf,QAAO,OAAO,UAAU,GAAG,OAAO,OAAO,UAAU,EAAE,CAAC,GAAE;AAE1D,SAAM,MAAM,KAAK,UAAU,SAAQ;AACnC,oBAAiB;;EAEnB,MAAM,EAAE,OAAO,oBAAoB,cAAc;GAAC;GAAS;GAAc;GAAsB,CAAA;;uBAI7F,mBAyBM,OAzBN,WAyBM,EAzBA,OAAO,WAAS,EAAU,MAAA,gBAAe,CAAA,EAAA,EAAA,WAAA,EAC7C,YAuBY,MAAA,UAAA,EAAA;IAvBA,KAAK,iBAAA;IAAmB,WAAS,MAAA,OAAM;;2BAkBlC,CAjBf,YAiBe,MAAA,aAAA,EAAA;KAhBZ,OAAK,eAAA,GAAK,UAAS,OAAA;KACnB,eAAa,WAAA;KACb,QAAM,IAAM,MAAA,YAAW,CAAA;KACvB,WAAW;KACX,OAAK;;4BAGkC,EAAA,UAAA,KAAA,EADxC,mBASiB,UAAA,MAAA,WARY,WAAA,QAAnB,SAAS,UAAK;0BADxB,YASiB,MAAA,UAAA,CAAA,MAAA;OAPd,KAAK,MAAA,OAAM,CAAC,SAAS,MAAK;OACnB;OACP,QAAQ;;8BAIH,EAAA,WAAA,EAFN,mBAEM,OAAA;QAFA,KAAK,MAAA,OAAM,CAAC,SAAS,MAAK;QAAI,OAAK,eAAA,CAAA,GAAM,UAAS,aAAA,CAAA;QAAwB;WAC9E,YAA4E,MAAA,eAAA,EAAA;QAA3D,QAAQ,MAAA,mBAAkB,CAAC,MAAA,OAAM,EAAE,MAAK;QAAI,MAAM;;;;;;;;;;0BAKzE,mBAEW,UAAA,MAAA,WAF2B,MAAA,OAAM,CAAC,aAA3B,YAAY,QAAG;wDAA8B,KAAG,EAAA,CAC1C,MAAA,oBAAmB,CAAC,WAAU,IAAA,WAAA,EAApD,YAA8F,MAAA,eAAA,EAAA;;MAAtC,QAAQ;MAAY,MAAK"}
|
|
@@ -1,130 +1,137 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { IArrayBaseAdditionProps, IArrayBaseOperationProps } from "../array-base/types.js";
|
|
2
|
+
import { useArray, useIndex, useRecord } from "../array-base/utils.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/array-items/index.d.ts
|
|
6
|
+
declare const ArrayItems: {
|
|
7
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
15
|
+
__isFragment?: never;
|
|
16
|
+
__isTeleport?: never;
|
|
17
|
+
__isSuspense?: never;
|
|
18
|
+
} & _$vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & {
|
|
19
|
+
Item: {
|
|
20
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<_$vue.ExtractPropTypes<{
|
|
21
|
+
type: {
|
|
22
|
+
type: _$vue.PropType<"card" | "divide">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {
|
|
26
|
+
type: "card" | "divide";
|
|
27
|
+
}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
28
|
+
P: {};
|
|
29
|
+
B: {};
|
|
30
|
+
D: {};
|
|
31
|
+
C: {};
|
|
32
|
+
M: {};
|
|
33
|
+
Defaults: {};
|
|
34
|
+
}, Readonly<_$vue.ExtractPropTypes<{
|
|
35
|
+
type: {
|
|
36
|
+
type: _$vue.PropType<"card" | "divide">;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
40
|
+
type: "card" | "divide";
|
|
41
|
+
}>;
|
|
42
|
+
__isFragment?: never;
|
|
43
|
+
__isTeleport?: never;
|
|
44
|
+
__isSuspense?: never;
|
|
45
|
+
} & _$vue.ComponentOptionsBase<Readonly<_$vue.ExtractPropTypes<{
|
|
46
|
+
type: {
|
|
47
|
+
type: _$vue.PropType<"card" | "divide">;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {
|
|
51
|
+
type: "card" | "divide";
|
|
52
|
+
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
53
|
+
$slots: {
|
|
54
|
+
default?: (props: {}) => any;
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
Index: {
|
|
58
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
59
|
+
P: {};
|
|
60
|
+
B: {};
|
|
61
|
+
D: {};
|
|
62
|
+
C: {};
|
|
63
|
+
M: {};
|
|
64
|
+
Defaults: {};
|
|
9
65
|
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
66
|
__isFragment?: never;
|
|
11
67
|
__isTeleport?: never;
|
|
12
68
|
__isSuspense?: never;
|
|
13
|
-
} &
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
B: {};
|
|
79
|
-
D: {};
|
|
80
|
-
C: {};
|
|
81
|
-
M: {};
|
|
82
|
-
Defaults: {};
|
|
83
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
84
|
-
__isFragment?: never;
|
|
85
|
-
__isTeleport?: never;
|
|
86
|
-
__isSuspense?: never;
|
|
87
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
88
|
-
$slots: {
|
|
89
|
-
default?(_: {}): any;
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
MoveDown: {
|
|
93
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
94
|
-
P: {};
|
|
95
|
-
B: {};
|
|
96
|
-
D: {};
|
|
97
|
-
C: {};
|
|
98
|
-
M: {};
|
|
99
|
-
Defaults: {};
|
|
100
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
101
|
-
__isFragment?: never;
|
|
102
|
-
__isTeleport?: never;
|
|
103
|
-
__isSuspense?: never;
|
|
104
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
105
|
-
$slots: {
|
|
106
|
-
default?(_: {}): any;
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
MoveUp: {
|
|
110
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
111
|
-
P: {};
|
|
112
|
-
B: {};
|
|
113
|
-
D: {};
|
|
114
|
-
C: {};
|
|
115
|
-
M: {};
|
|
116
|
-
Defaults: {};
|
|
117
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
118
|
-
__isFragment?: never;
|
|
119
|
-
__isTeleport?: never;
|
|
120
|
-
__isSuspense?: never;
|
|
121
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
122
|
-
$slots: {
|
|
123
|
-
default?(_: {}): any;
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
useArray: typeof import('../array-base/utils').useArray;
|
|
127
|
-
useIndex: typeof import('../array-base/utils').useIndex;
|
|
128
|
-
useRecord: typeof import('../array-base/utils').useRecord;
|
|
69
|
+
} & _$vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
70
|
+
$slots: {
|
|
71
|
+
default?: (props: {
|
|
72
|
+
index: number;
|
|
73
|
+
}) => any;
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
SortHandle: _$vue.DefineComponent<{}, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
Addition: _$vue.DefineComponent<IArrayBaseAdditionProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<IArrayBaseAdditionProps> & Readonly<{}>, {
|
|
78
|
+
method: "push" | "unshift";
|
|
79
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
80
|
+
Remove: {
|
|
81
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
82
|
+
P: {};
|
|
83
|
+
B: {};
|
|
84
|
+
D: {};
|
|
85
|
+
C: {};
|
|
86
|
+
M: {};
|
|
87
|
+
Defaults: {};
|
|
88
|
+
}, Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
89
|
+
__isFragment?: never;
|
|
90
|
+
__isTeleport?: never;
|
|
91
|
+
__isSuspense?: never;
|
|
92
|
+
} & _$vue.ComponentOptionsBase<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
93
|
+
$slots: {
|
|
94
|
+
default?: (props: {}) => any;
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
MoveDown: {
|
|
98
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
99
|
+
P: {};
|
|
100
|
+
B: {};
|
|
101
|
+
D: {};
|
|
102
|
+
C: {};
|
|
103
|
+
M: {};
|
|
104
|
+
Defaults: {};
|
|
105
|
+
}, Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
106
|
+
__isFragment?: never;
|
|
107
|
+
__isTeleport?: never;
|
|
108
|
+
__isSuspense?: never;
|
|
109
|
+
} & _$vue.ComponentOptionsBase<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
110
|
+
$slots: {
|
|
111
|
+
default?: (props: {}) => any;
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
MoveUp: {
|
|
115
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
116
|
+
P: {};
|
|
117
|
+
B: {};
|
|
118
|
+
D: {};
|
|
119
|
+
C: {};
|
|
120
|
+
M: {};
|
|
121
|
+
Defaults: {};
|
|
122
|
+
}, Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
123
|
+
__isFragment?: never;
|
|
124
|
+
__isTeleport?: never;
|
|
125
|
+
__isSuspense?: never;
|
|
126
|
+
} & _$vue.ComponentOptionsBase<Readonly<IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
127
|
+
$slots: {
|
|
128
|
+
default?: (props: {}) => any;
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
useArray: typeof useArray;
|
|
132
|
+
useIndex: typeof useIndex;
|
|
133
|
+
useRecord: typeof useRecord;
|
|
129
134
|
};
|
|
130
|
-
|
|
135
|
+
//#endregion
|
|
136
|
+
export { ArrayItems };
|
|
137
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,108 +1,22 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: String,
|
|
19
|
-
default: "card"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(A) {
|
|
23
|
-
const i = A, l = `${I}-array-items`;
|
|
24
|
-
return (s, c) => (a(), n("div", {
|
|
25
|
-
class: h(`${l}-${i.type}`)
|
|
26
|
-
}, [
|
|
27
|
-
V(s.$slots, "default")
|
|
28
|
-
], 2));
|
|
29
|
-
}
|
|
30
|
-
}), q = ["index"], G = /* @__PURE__ */ S({
|
|
31
|
-
name: "FArrayItems",
|
|
32
|
-
inheritAttrs: !1,
|
|
33
|
-
__name: "array-items",
|
|
34
|
-
setup(A) {
|
|
35
|
-
const i = U(), l = K(), s = i.value, c = l.value, u = `${I}-array-items`, { getKey: g, keyMap: m } = N(l.value), d = $(_(s.value) ? s.value : []), k = $(0);
|
|
36
|
-
M(() => {
|
|
37
|
-
d.value = _(s.value) ? [...s.value] : [];
|
|
38
|
-
});
|
|
39
|
-
async function w(x) {
|
|
40
|
-
const { oldIndex: p, newIndex: t } = x;
|
|
41
|
-
_(m) && m.splice(t, 0, m.splice(p, 1)[0]), await s.move(p, t), k.value++;
|
|
42
|
-
}
|
|
43
|
-
const { props: E } = P(["value", "modelValue", "onUpdate:modelValue"]);
|
|
44
|
-
return (x, p) => (a(), n("div", B({ class: u }, e(E)), [
|
|
45
|
-
(a(), f(e(r), {
|
|
46
|
-
key: k.value,
|
|
47
|
-
"key-map": e(m)
|
|
48
|
-
}, {
|
|
49
|
-
default: y(() => [
|
|
50
|
-
C(e(H), {
|
|
51
|
-
class: h(`${u}-list`),
|
|
52
|
-
"model-value": d.value,
|
|
53
|
-
handle: `.${e(I)}-array-base-sort-handle`,
|
|
54
|
-
animation: 150,
|
|
55
|
-
onEnd: w
|
|
56
|
-
}, {
|
|
57
|
-
default: y(() => [
|
|
58
|
-
(a(!0), n(v, null, R(d.value, (t, o) => (a(), f(e(r).Item, {
|
|
59
|
-
key: e(g)(t, o),
|
|
60
|
-
index: o,
|
|
61
|
-
record: t
|
|
62
|
-
}, {
|
|
63
|
-
default: y(() => [
|
|
64
|
-
(a(), n("div", {
|
|
65
|
-
key: e(g)(t, o),
|
|
66
|
-
class: h([`${u}-item-inner`]),
|
|
67
|
-
index: o
|
|
68
|
-
}, [
|
|
69
|
-
C(e(F), {
|
|
70
|
-
schema: e(z)(e(c), o),
|
|
71
|
-
name: o
|
|
72
|
-
}, null, 8, ["schema", "name"])
|
|
73
|
-
], 10, q))
|
|
74
|
-
]),
|
|
75
|
-
_: 2
|
|
76
|
-
}, 1032, ["index", "record"]))), 128))
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 8, ["class", "model-value", "handle"]),
|
|
80
|
-
(a(!0), n(v, null, R(e(c).properties, (t, o) => (a(), n(v, { key: o }, [
|
|
81
|
-
e(L)(t) ? (a(), f(e(F), {
|
|
82
|
-
key: 0,
|
|
83
|
-
schema: t,
|
|
84
|
-
name: "addition"
|
|
85
|
-
}, null, 8, ["schema"])) : D("", !0)
|
|
86
|
-
], 64))), 128))
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 8, ["key-map"]))
|
|
90
|
-
], 16));
|
|
91
|
-
}
|
|
92
|
-
}), oe = b(G, {
|
|
93
|
-
Item: j,
|
|
94
|
-
Index: r.Index,
|
|
95
|
-
SortHandle: r.SortHandle,
|
|
96
|
-
Addition: r.Addition,
|
|
97
|
-
Remove: r.Remove,
|
|
98
|
-
MoveDown: r.MoveDown,
|
|
99
|
-
MoveUp: r.MoveUp,
|
|
100
|
-
useArray: r.useArray,
|
|
101
|
-
useIndex: r.useIndex,
|
|
102
|
-
useRecord: r.useRecord
|
|
1
|
+
import { composeExport } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { ArrayBase } from "../array-base/index.mjs";
|
|
3
|
+
import _sfc_main from "./array-items-item.mjs";
|
|
4
|
+
import _sfc_main$1 from "./array-items.mjs";
|
|
5
|
+
import "./style.css";
|
|
6
|
+
//#region src/array-items/index.ts
|
|
7
|
+
const ArrayItems = composeExport(_sfc_main$1, {
|
|
8
|
+
Item: _sfc_main,
|
|
9
|
+
Index: ArrayBase.Index,
|
|
10
|
+
SortHandle: ArrayBase.SortHandle,
|
|
11
|
+
Addition: ArrayBase.Addition,
|
|
12
|
+
Remove: ArrayBase.Remove,
|
|
13
|
+
MoveDown: ArrayBase.MoveDown,
|
|
14
|
+
MoveUp: ArrayBase.MoveUp,
|
|
15
|
+
useArray: ArrayBase.useArray,
|
|
16
|
+
useIndex: ArrayBase.useIndex,
|
|
17
|
+
useRecord: ArrayBase.useRecord
|
|
103
18
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
//# sourceMappingURL=index.mjs.map
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ArrayItems as default };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["ArrayItemsInner","ArrayItemsItem"],"sources":["../../src/array-items/index.ts"],"sourcesContent":["import { composeExport } from '../__builtins__/shared'\nimport { ArrayBase } from '../array-base'\nimport ArrayItemsItem from './array-items-item.vue'\nimport ArrayItemsInner from './array-items.vue'\nimport './style.scss'\n\nexport const ArrayItems = composeExport(ArrayItemsInner, {\n Item: ArrayItemsItem,\n Index: ArrayBase.Index,\n SortHandle: ArrayBase.SortHandle,\n Addition: ArrayBase.Addition,\n Remove: ArrayBase.Remove,\n MoveDown: ArrayBase.MoveDown,\n MoveUp: ArrayBase.MoveUp,\n useArray: ArrayBase.useArray,\n useIndex: ArrayBase.useIndex,\n useRecord: ArrayBase.useRecord,\n})\n\nexport default ArrayItems\n"],"mappings":";;;;;;AAMA,MAAa,aAAa,cAAcA,aAAiB;CACvD,MAAMC;CACN,OAAO,UAAU;CACjB,YAAY,UAAU;CACtB,UAAU,UAAU;CACpB,QAAQ,UAAU;CAClB,UAAU,UAAU;CACpB,QAAQ,UAAU;CAClB,UAAU,UAAU;CACpB,UAAU,UAAU;CACpB,WAAW,UAAU;CACtB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.formily-element-plus-array-items {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
.formily-element-plus-array-items .formily-element-plus-array-items-item-inner:last-child .formily-element-plus-array-items-divide {
|
|
5
|
+
border-bottom: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.formily-element-plus-array-items-card {
|
|
9
|
+
display: flex;
|
|
10
|
+
border: 1px solid var(--el-border-color);
|
|
11
|
+
margin-bottom: 10px;
|
|
12
|
+
padding: 3px 6px;
|
|
13
|
+
background: var(--el-bg-color-overlay);
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.formily-element-plus-array-items-divide {
|
|
18
|
+
display: flex;
|
|
19
|
+
border-bottom: 1px solid var(--el-border-color);
|
|
20
|
+
padding-top: 10px;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
}
|