@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../../src/__builtins__/shared/utils.ts"],"sourcesContent":["import type { Component, ComputedRef, Slot, VNode } from 'vue'\nimport { isPlainObj } from '@formily/shared'\nimport { useAttrs, version } from 'element-plus'\nimport { omit } from 'lodash-es'\nimport { Comment, computed, Fragment, Text } from 'vue'\nimport { lt } from './simple-version-compare'\n\nexport function useCleanAttrs(removeAttrsList: string[] = []): {\n props: ComputedRef<Record<string, any>>\n} {\n const attrs = useAttrs()\n const props = computed(() => {\n const DEFAULT_REMOVE_ATTRS = ['value', 'onChange', 'attrs', 'on', 'readOnly']\n if (isPlainObj(attrs.value.attrs)) {\n return omit({ ...attrs.value, ...attrs.value.attrs }, DEFAULT_REMOVE_ATTRS.concat(removeAttrsList))\n }\n return omit(attrs.value, DEFAULT_REMOVE_ATTRS.concat(removeAttrsList))\n })\n return {\n props,\n }\n}\n\nexport function isVueOptions(options: any): options is Component {\n return (\n options\n && (typeof options.template === 'string'\n || typeof options.render === 'function')\n )\n}\n\nexport function composeExport<T0 extends object, T1 extends object>(\n s0: T0,\n s1: T1,\n): T0 & T1 {\n return Object.assign(s0, s1)\n}\n\n// Adapted from https://github.com/vuejs/vue-next/blob/ca17162e377e0a0bf3fae9d92d0fdcb32084a9fe/packages/runtime-core/src/helpers/renderSlot.ts#L77\n/* istanbul ignore next -- @preserve */\nexport function isVnodeEmpty(vnodes: Array<VNode>) {\n return vnodes.every((node: VNode) => {\n if (node.type === Comment) {\n return true\n }\n\n if (node.type === Text && typeof node.children === 'string' && !node.children.trim()) {\n return true\n }\n\n if (\n node.type === Fragment\n && isVnodeEmpty(node.children as Array<VNode>)\n ) {\n return true\n }\n\n return false\n })\n}\n\nexport function hasSlotContent(slot: Slot<any> | undefined) {\n if (!slot) {\n return false\n }\n return !isVnodeEmpty(slot())\n}\n\nexport function compatibleUnderlineProp() {\n /* istanbul ignore next -- @preserve */\n return lt(version, '2.9.9') ? false : 'never'\n}\n"],"
|
|
1
|
+
{"version":3,"file":"utils.mjs","names":[],"sources":["../../../src/__builtins__/shared/utils.ts"],"sourcesContent":["import type { Component, ComputedRef, Slot, VNode } from 'vue'\nimport { isPlainObj } from '@formily/shared'\nimport { useAttrs, version } from 'element-plus'\nimport { omit } from 'lodash-es'\nimport { Comment, computed, Fragment, Text } from 'vue'\nimport { lt } from './simple-version-compare'\n\nexport function useCleanAttrs(removeAttrsList: string[] = []): {\n props: ComputedRef<Record<string, any>>\n} {\n const attrs = useAttrs()\n const props = computed(() => {\n const DEFAULT_REMOVE_ATTRS = ['value', 'onChange', 'attrs', 'on', 'readOnly']\n if (isPlainObj(attrs.value.attrs)) {\n return omit({ ...attrs.value, ...attrs.value.attrs }, DEFAULT_REMOVE_ATTRS.concat(removeAttrsList))\n }\n return omit(attrs.value, DEFAULT_REMOVE_ATTRS.concat(removeAttrsList))\n })\n return {\n props,\n }\n}\n\nexport function isVueOptions(options: any): options is Component {\n return (\n options\n && typeof options !== 'function'\n && (typeof options.template === 'string'\n || typeof options.render === 'function'\n || typeof options.setup === 'function'\n || typeof options.__asyncLoader === 'function'\n || typeof options.__name === 'string')\n )\n}\n\nexport function composeExport<T0 extends object, T1 extends object>(\n s0: T0,\n s1: T1,\n): T0 & T1 {\n return Object.assign(s0, s1)\n}\n\n// Adapted from https://github.com/vuejs/vue-next/blob/ca17162e377e0a0bf3fae9d92d0fdcb32084a9fe/packages/runtime-core/src/helpers/renderSlot.ts#L77\n/* istanbul ignore next -- @preserve */\nexport function isVnodeEmpty(vnodes: Array<VNode>) {\n return vnodes.every((node: VNode) => {\n if (node.type === Comment) {\n return true\n }\n\n if (node.type === Text && typeof node.children === 'string' && !node.children.trim()) {\n return true\n }\n\n if (\n node.type === Fragment\n && isVnodeEmpty(node.children as Array<VNode>)\n ) {\n return true\n }\n\n return false\n })\n}\n\nexport function hasSlotContent(slot: Slot<any> | undefined) {\n if (!slot) {\n return false\n }\n return !isVnodeEmpty(slot())\n}\n\nexport function compatibleUnderlineProp() {\n /* istanbul ignore next -- @preserve */\n return lt(version, '2.9.9') ? false : 'never'\n}\n"],"mappings":";;;;;;AAOA,SAAgB,cAAc,kBAA4B,EAAE,EAE1D;CACA,MAAM,QAAQ,UAAU;AAQxB,QAAO,EACL,OARY,eAAe;EAC3B,MAAM,uBAAuB;GAAC;GAAS;GAAY;GAAS;GAAM;GAAW;AAC7E,MAAI,WAAW,MAAM,MAAM,MAAM,CAC/B,QAAO,KAAK;GAAE,GAAG,MAAM;GAAO,GAAG,MAAM,MAAM;GAAO,EAAE,qBAAqB,OAAO,gBAAgB,CAAC;AAErG,SAAO,KAAK,MAAM,OAAO,qBAAqB,OAAO,gBAAgB,CAAC;GACtE,EAGD;;AAGH,SAAgB,aAAa,SAAoC;AAC/D,QACE,WACG,OAAO,YAAY,eAClB,OAAO,QAAQ,aAAa,YAC3B,OAAO,QAAQ,WAAW,cAC1B,OAAO,QAAQ,UAAU,cACzB,OAAO,QAAQ,kBAAkB,cACjC,OAAO,QAAQ,WAAW;;AAInC,SAAgB,cACd,IACA,IACS;AACT,QAAO,OAAO,OAAO,IAAI,GAAG;;;AAK9B,SAAgB,aAAa,QAAsB;AACjD,QAAO,OAAO,OAAO,SAAgB;AACnC,MAAI,KAAK,SAAS,QAChB,QAAO;AAGT,MAAI,KAAK,SAAS,QAAQ,OAAO,KAAK,aAAa,YAAY,CAAC,KAAK,SAAS,MAAM,CAClF,QAAO;AAGT,MACE,KAAK,SAAS,YACX,aAAa,KAAK,SAAyB,CAE9C,QAAO;AAGT,SAAO;GACP;;AAGJ,SAAgB,eAAe,MAA6B;AAC1D,KAAI,CAAC,KACH,QAAO;AAET,QAAO,CAAC,aAAa,MAAM,CAAC;;AAG9B,SAAgB,0BAA0B;;AAExC,QAAO,GAAG,SAAS,QAAQ,GAAG,QAAQ"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { compatibleUnderlineProp } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { getDefaultValue, prefixCls, useArray } from "./utils.mjs";
|
|
3
|
+
import { ElLink } from "element-plus";
|
|
4
|
+
import { createBlock, createCommentVNode, createTextVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
5
|
+
import { useField } from "@silver-formily/vue";
|
|
6
|
+
import { Plus } from "@element-plus/icons-vue";
|
|
7
|
+
//#region src/array-base/array-base-addition.vue
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ArrayBaseAddition",
|
|
10
|
+
__name: "array-base-addition",
|
|
11
|
+
props: {
|
|
12
|
+
method: { default: "push" },
|
|
13
|
+
defaultValue: {},
|
|
14
|
+
title: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const self = useField();
|
|
19
|
+
const base = useArray();
|
|
20
|
+
function onAddItemClick() {
|
|
21
|
+
const defaultValue = getDefaultValue(props.defaultValue, base?.schema.value);
|
|
22
|
+
if (props.method === "unshift") {
|
|
23
|
+
base?.field?.value.unshift(defaultValue);
|
|
24
|
+
base.attrs?.add?.(0);
|
|
25
|
+
} else {
|
|
26
|
+
base?.field?.value.push(defaultValue);
|
|
27
|
+
base.attrs?.add?.(base?.field?.value?.value?.length - 1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return unref(base).field.value.pattern === "editable" ? (openBlock(), createBlock(unref(ElLink), {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: normalizeClass(`${unref(prefixCls)}-addition`),
|
|
34
|
+
icon: unref(Plus),
|
|
35
|
+
underline: unref(compatibleUnderlineProp)(),
|
|
36
|
+
role: "button",
|
|
37
|
+
"aria-label": "添加条目",
|
|
38
|
+
onClick: onAddItemClick
|
|
39
|
+
}, {
|
|
40
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(self).title || props.title), 1)]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, [
|
|
43
|
+
"class",
|
|
44
|
+
"icon",
|
|
45
|
+
"underline"
|
|
46
|
+
])) : createCommentVNode("v-if", true);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { _sfc_main as default };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=array-base-addition.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-addition.mjs","names":[],"sources":["../../src/array-base/array-base-addition.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { IArrayBaseAdditionProps } from './types'\nimport { Plus } from '@element-plus/icons-vue'\nimport { useField } from '@silver-formily/vue'\nimport { ElLink } from 'element-plus'\nimport { compatibleUnderlineProp } from '../__builtins__'\nimport { getDefaultValue, prefixCls, useArray } from './utils'\n\ndefineOptions({\n name: 'ArrayBaseAddition',\n})\n\nconst props = withDefaults(defineProps<IArrayBaseAdditionProps>(), {\n method: 'push',\n})\n\nconst self = useField()\nconst base = useArray()\n\nfunction onAddItemClick() {\n const defaultValue = getDefaultValue(props.defaultValue, base?.schema.value)\n if (props.method === 'unshift') {\n base?.field?.value.unshift(defaultValue)\n base.attrs?.add?.(0)\n }\n else {\n base?.field?.value.push(defaultValue)\n base.attrs?.add?.(base?.field?.value?.value?.length - 1)\n }\n}\n</script>\n\n<template>\n <ElLink\n v-if=\"base.field.value.pattern === 'editable'\"\n :class=\"`${prefixCls}-addition`\"\n :icon=\"Plus\"\n :underline=\"compatibleUnderlineProp()\"\n role=\"button\"\n aria-label=\"添加条目\"\n @click=\"onAddItemClick\"\n >\n {{ self.title || props.title }}\n </ElLink>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EAId,MAAM,OAAO,UAAS;EACtB,MAAM,OAAO,UAAS;EAEtB,SAAS,iBAAiB;GACxB,MAAM,eAAe,gBAAgB,MAAM,cAAc,MAAM,OAAO,MAAK;AAC3E,OAAI,MAAM,WAAW,WAAW;AAC9B,UAAM,OAAO,MAAM,QAAQ,aAAY;AACvC,SAAK,OAAO,MAAM,EAAC;UAEhB;AACH,UAAM,OAAO,MAAM,KAAK,aAAY;AACpC,SAAK,OAAO,MAAM,MAAM,OAAO,OAAO,OAAO,SAAS,EAAC;;;;UAOjD,MAAA,KAAI,CAAC,MAAM,MAAM,YAAO,cAAA,WAAA,EADhC,YAUS,MAAA,OAAA,EAAA;;IARN,OAAK,eAAA,GAAK,MAAA,UAAS,CAAA,WAAA;IACnB,MAAM,MAAA,KAAI;IACV,WAAW,MAAA,wBAAuB,EAAA;IACnC,MAAK;IACL,cAAW;IACV,SAAO;;2BAEuB,CAAA,gBAAA,gBAA5B,MAAA,KAAI,CAAC,SAAS,MAAM,MAAK,EAAA,EAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { prefixCls, useIndex } from "./utils.mjs";
|
|
2
|
+
import { createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
3
|
+
//#region src/array-base/array-base-index.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
name: "ArrayBaseIndex",
|
|
6
|
+
__name: "array-base-index",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const index = useIndex();
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(`${unref(prefixCls)}-index`) }, [renderSlot(_ctx.$slots, "default", { index: unref(index) }, () => [createTextVNode(" #" + toDisplayString(unref(index) + 1) + ". ", 1)])], 2);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _sfc_main as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=array-base-index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-index.mjs","names":[],"sources":["../../src/array-base/array-base-index.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { prefixCls, useIndex } from './utils'\n\ndefineOptions({\n name: 'ArrayBaseIndex',\n})\n\nconst index = useIndex()\n</script>\n\n<template>\n <span :class=\"`${prefixCls}-index`\">\n <slot :index=\"index\">\n #{{ index + 1 }}.\n </slot>\n </span>\n</template>\n"],"mappings":";;;;;;;EAOA,MAAM,QAAQ,UAAS;;uBAIrB,mBAIO,QAAA,EAJA,OAAK,eAAA,GAAK,MAAA,UAAS,CAAA,QAAA,EAAA,EAAA,CACxB,WAEO,KAAA,QAAA,WAAA,EAFA,OAAO,MAAA,MAAK,EAAA,QAEZ,CAAA,gBAFc,OAClB,gBAAG,MAAA,MAAK,GAAA,EAAA,GAAO,MAClB,EAAA,CAAA,CAAA,CAAA,EAAA,EAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ArrayBaseSymbol } from "./symbols.mjs";
|
|
2
|
+
import { defineComponent, provide, renderSlot, useAttrs } from "vue";
|
|
3
|
+
import { useField, useFieldSchema } from "@silver-formily/vue";
|
|
4
|
+
//#region src/array-base/array-base-inner.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "ArrayBaseInner",
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
__name: "array-base-inner",
|
|
9
|
+
props: {
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
keyMap: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
provide(ArrayBaseSymbol, {
|
|
16
|
+
field: useField(),
|
|
17
|
+
schema: useFieldSchema(),
|
|
18
|
+
props,
|
|
19
|
+
attrs: useAttrs(),
|
|
20
|
+
keyMap: props.keyMap
|
|
21
|
+
});
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return renderSlot(_ctx.$slots, "default");
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _sfc_main as default };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=array-base-inner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-inner.mjs","names":[],"sources":["../../src/array-base/array-base-inner.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { ArrayField } from '@formily/core'\nimport type { IArrayBaseProps } from './types'\nimport { useField, useFieldSchema } from '@silver-formily/vue'\nimport { provide, useAttrs } from 'vue'\nimport { ArrayBaseSymbol } from './symbols'\n\ndefineOptions({\n name: 'ArrayBaseInner',\n inheritAttrs: false,\n})\n\nconst props = defineProps<IArrayBaseProps>()\n\nconst field = useField<ArrayField>()\nconst schema = useFieldSchema()\n\nprovide(ArrayBaseSymbol, {\n field,\n schema,\n props,\n attrs: useAttrs(),\n keyMap: props.keyMap,\n})\n</script>\n\n<template>\n <slot />\n</template>\n"],"mappings":";;;;;;;;;;;;;EAYA,MAAM,QAAQ;AAKd,UAAQ,iBAAiB;GACvB,OAJY,UAAqB;GAKjC,QAJa,gBAAe;GAK5B;GACA,OAAO,UAAU;GACjB,QAAQ,MAAM;GACf,CAAA;;UAIC,WAAQ,KAAA,QAAA,UAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ItemSymbol } from "./symbols.mjs";
|
|
2
|
+
import { defineComponent, provide, renderSlot } from "vue";
|
|
3
|
+
//#region src/array-base/array-base-item.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
name: "ArrayBaseItem",
|
|
6
|
+
__name: "array-base-item",
|
|
7
|
+
props: {
|
|
8
|
+
index: {},
|
|
9
|
+
record: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
provide(ItemSymbol, __props);
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return renderSlot(_ctx.$slots, "default");
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { _sfc_main as default };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=array-base-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-item.mjs","names":[],"sources":["../../src/array-base/array-base-item.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { IArrayBaseItemProps } from './types'\nimport { provide } from 'vue'\nimport { ItemSymbol } from './symbols'\n\ndefineOptions({\n name: 'ArrayBaseItem',\n})\n\nconst props = defineProps<IArrayBaseItemProps>()\n\nprovide(ItemSymbol, props)\n</script>\n\n<template>\n <slot />\n</template>\n"],"mappings":";;;;;;;;;;;AAWA,UAAQ,YAFM,QAEW;;UAIvB,WAAQ,KAAA,QAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { compatibleUnderlineProp } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { prefixCls, useArray, useIndex } from "./utils.mjs";
|
|
3
|
+
import { ElLink } from "element-plus";
|
|
4
|
+
import { createBlock, createCommentVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
5
|
+
import { isArr } from "@formily/shared";
|
|
6
|
+
import { ArrowDown } from "@element-plus/icons-vue";
|
|
7
|
+
//#region src/array-base/array-base-move-down.vue
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ArrayBaseMoveDown",
|
|
10
|
+
__name: "array-base-move-down",
|
|
11
|
+
props: { title: {} },
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const indexRef = useIndex();
|
|
15
|
+
const base = useArray();
|
|
16
|
+
function handleClick() {
|
|
17
|
+
if (isArr(base?.keyMap)) base.keyMap.splice(indexRef.value + 1, 0, base.keyMap.splice(indexRef.value, 1)[0]);
|
|
18
|
+
base?.field.value.moveDown(indexRef.value);
|
|
19
|
+
base?.attrs?.moveDown?.(indexRef.value);
|
|
20
|
+
}
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(base)?.field.value.pattern === "editable" ? (openBlock(), createBlock(unref(ElLink), {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(`${unref(prefixCls)}-move-down`),
|
|
25
|
+
size: "small",
|
|
26
|
+
icon: unref(ArrowDown),
|
|
27
|
+
underline: unref(compatibleUnderlineProp)(),
|
|
28
|
+
role: "button",
|
|
29
|
+
"aria-label": "下移条目",
|
|
30
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(props.title), 1)])]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, [
|
|
35
|
+
"class",
|
|
36
|
+
"icon",
|
|
37
|
+
"underline"
|
|
38
|
+
])) : createCommentVNode("v-if", true);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { _sfc_main as default };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=array-base-move-down.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-move-down.mjs","names":[],"sources":["../../src/array-base/array-base-move-down.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { IArrayBaseOperationProps } from './types'\nimport { ArrowDown } from '@element-plus/icons-vue'\nimport { isArr } from '@formily/shared'\nimport { ElLink } from 'element-plus'\nimport { compatibleUnderlineProp } from '../__builtins__'\nimport { prefixCls, useArray, useIndex } from './utils'\n\ndefineOptions({\n name: 'ArrayBaseMoveDown',\n})\n\nconst props = defineProps<IArrayBaseOperationProps>()\n\nconst indexRef = useIndex()\nconst base = useArray()\n\nfunction handleClick() {\n if (isArr(base?.keyMap)) {\n base.keyMap.splice(\n indexRef.value + 1,\n 0,\n base.keyMap.splice(indexRef.value, 1)[0],\n )\n }\n base?.field.value.moveDown(indexRef.value as number)\n base?.attrs?.moveDown?.(indexRef.value as number)\n}\n</script>\n\n<template>\n <ElLink\n v-if=\"base?.field.value.pattern === 'editable'\"\n :class=\"`${prefixCls}-move-down`\"\n size=\"small\"\n :icon=\"ArrowDown\"\n :underline=\"compatibleUnderlineProp()\"\n role=\"button\"\n aria-label=\"下移条目\"\n @click.stop=\"handleClick\"\n >\n <slot>\n {{ props.title }}\n </slot>\n </ElLink>\n</template>\n"],"mappings":";;;;;;;;;;;;EAYA,MAAM,QAAQ;EAEd,MAAM,WAAW,UAAS;EAC1B,MAAM,OAAO,UAAS;EAEtB,SAAS,cAAc;AACrB,OAAI,MAAM,MAAM,OAAO,CACrB,MAAK,OAAO,OACV,SAAS,QAAQ,GACjB,GACA,KAAK,OAAO,OAAO,SAAS,OAAO,EAAE,CAAC,GACxC;AAEF,SAAM,MAAM,MAAM,SAAS,SAAS,MAAe;AACnD,SAAM,OAAO,WAAW,SAAS,MAAe;;;UAMxC,MAAA,KAAI,EAAE,MAAM,MAAM,YAAO,cAAA,WAAA,EADjC,YAaS,MAAA,OAAA,EAAA;;IAXN,OAAK,eAAA,GAAK,MAAA,UAAS,CAAA,YAAA;IACpB,MAAK;IACJ,MAAM,MAAA,UAAS;IACf,WAAW,MAAA,wBAAuB,EAAA;IACnC,MAAK;IACL,cAAW;IACV,SAAK,cAAO,aAAW,CAAA,OAAA,CAAA;;2BAIjB,CAFP,WAEO,KAAA,QAAA,WAAA,EAAA,QAAA,CAAA,gBAAA,gBADF,MAAM,MAAK,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { compatibleUnderlineProp } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { prefixCls, useArray, useIndex } from "./utils.mjs";
|
|
3
|
+
import { ElLink } from "element-plus";
|
|
4
|
+
import { createBlock, createCommentVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
5
|
+
import { isArr } from "@formily/shared";
|
|
6
|
+
import { ArrowUp } from "@element-plus/icons-vue";
|
|
7
|
+
//#region src/array-base/array-base-move-up.vue
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ArrayBaseMoveUp",
|
|
10
|
+
__name: "array-base-move-up",
|
|
11
|
+
props: { title: {} },
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const indexRef = useIndex();
|
|
15
|
+
const base = useArray();
|
|
16
|
+
function handleClick() {
|
|
17
|
+
if (isArr(base?.keyMap)) base.keyMap.splice(indexRef.value - 1, 0, base.keyMap.splice(indexRef.value, 1)[0]);
|
|
18
|
+
base?.field.value.moveUp(indexRef.value);
|
|
19
|
+
base?.attrs?.moveUp?.(indexRef.value);
|
|
20
|
+
}
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(base)?.field.value.pattern === "editable" ? (openBlock(), createBlock(unref(ElLink), {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(`${unref(prefixCls)}-move-up`),
|
|
25
|
+
size: "small",
|
|
26
|
+
icon: unref(ArrowUp),
|
|
27
|
+
underline: unref(compatibleUnderlineProp)(),
|
|
28
|
+
role: "button",
|
|
29
|
+
"aria-label": "上移条目",
|
|
30
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(props.title), 1)])]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, [
|
|
35
|
+
"class",
|
|
36
|
+
"icon",
|
|
37
|
+
"underline"
|
|
38
|
+
])) : createCommentVNode("v-if", true);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { _sfc_main as default };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=array-base-move-up.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-move-up.mjs","names":[],"sources":["../../src/array-base/array-base-move-up.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { IArrayBaseOperationProps } from './types'\nimport { ArrowUp } from '@element-plus/icons-vue'\nimport { isArr } from '@formily/shared'\nimport { ElLink } from 'element-plus'\nimport { compatibleUnderlineProp } from '../__builtins__'\nimport { prefixCls, useArray, useIndex } from './utils'\n\ndefineOptions({\n name: 'ArrayBaseMoveUp',\n})\n\nconst props = defineProps<IArrayBaseOperationProps>()\n\nconst indexRef = useIndex()\nconst base = useArray()\n\nfunction handleClick() {\n if (isArr(base?.keyMap)) {\n base.keyMap.splice(\n indexRef.value - 1,\n 0,\n base.keyMap.splice(indexRef.value, 1)[0],\n )\n }\n base?.field.value.moveUp(indexRef.value as number)\n base?.attrs?.moveUp?.(indexRef.value as number)\n}\n</script>\n\n<template>\n <ElLink\n v-if=\"base?.field.value.pattern === 'editable'\"\n :class=\"`${prefixCls}-move-up`\"\n size=\"small\"\n :icon=\"ArrowUp\"\n :underline=\"compatibleUnderlineProp()\"\n role=\"button\"\n aria-label=\"上移条目\"\n @click.stop=\"handleClick\"\n >\n <slot>\n {{ props.title }}\n </slot>\n </ElLink>\n</template>\n"],"mappings":";;;;;;;;;;;;EAYA,MAAM,QAAQ;EAEd,MAAM,WAAW,UAAS;EAC1B,MAAM,OAAO,UAAS;EAEtB,SAAS,cAAc;AACrB,OAAI,MAAM,MAAM,OAAO,CACrB,MAAK,OAAO,OACV,SAAS,QAAQ,GACjB,GACA,KAAK,OAAO,OAAO,SAAS,OAAO,EAAE,CAAC,GACxC;AAEF,SAAM,MAAM,MAAM,OAAO,SAAS,MAAe;AACjD,SAAM,OAAO,SAAS,SAAS,MAAe;;;UAMtC,MAAA,KAAI,EAAE,MAAM,MAAM,YAAO,cAAA,WAAA,EADjC,YAaS,MAAA,OAAA,EAAA;;IAXN,OAAK,eAAA,GAAK,MAAA,UAAS,CAAA,UAAA;IACpB,MAAK;IACJ,MAAM,MAAA,QAAO;IACb,WAAW,MAAA,wBAAuB,EAAA;IACnC,MAAK;IACL,cAAW;IACV,SAAK,cAAO,aAAW,CAAA,OAAA,CAAA;;2BAIjB,CAFP,WAEO,KAAA,QAAA,WAAA,EAAA,QAAA,CAAA,gBAAA,gBADF,MAAM,MAAK,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { compatibleUnderlineProp } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { prefixCls, useArray, useIndex } from "./utils.mjs";
|
|
3
|
+
import { ElLink } from "element-plus";
|
|
4
|
+
import { createBlock, createCommentVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
5
|
+
import { isArr } from "@formily/shared";
|
|
6
|
+
import { Delete } from "@element-plus/icons-vue";
|
|
7
|
+
//#region src/array-base/array-base-remove.vue
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ArrayBaseRemove",
|
|
10
|
+
__name: "array-base-remove",
|
|
11
|
+
props: { title: {} },
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const indexRef = useIndex();
|
|
15
|
+
const base = useArray();
|
|
16
|
+
function handleClick() {
|
|
17
|
+
if (isArr(base?.keyMap)) base?.keyMap?.splice(indexRef.value, 1);
|
|
18
|
+
base?.field.value.remove(indexRef.value);
|
|
19
|
+
base?.attrs?.remove?.(indexRef.value);
|
|
20
|
+
}
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(base)?.field.value.pattern === "editable" ? (openBlock(), createBlock(unref(ElLink), {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(`${unref(prefixCls)}-remove`),
|
|
25
|
+
size: "small",
|
|
26
|
+
icon: unref(Delete),
|
|
27
|
+
underline: unref(compatibleUnderlineProp)(),
|
|
28
|
+
role: "button",
|
|
29
|
+
"aria-label": "移除条目",
|
|
30
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(props.title), 1)])]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, [
|
|
35
|
+
"class",
|
|
36
|
+
"icon",
|
|
37
|
+
"underline"
|
|
38
|
+
])) : createCommentVNode("v-if", true);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { _sfc_main as default };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=array-base-remove.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-remove.mjs","names":[],"sources":["../../src/array-base/array-base-remove.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { IArrayBaseOperationProps } from './types'\nimport { Delete } from '@element-plus/icons-vue'\nimport { isArr } from '@formily/shared'\nimport { ElLink } from 'element-plus'\nimport { compatibleUnderlineProp } from '../__builtins__'\nimport { prefixCls, useArray, useIndex } from './utils'\n\ndefineOptions({\n name: 'ArrayBaseRemove',\n})\n\nconst props = defineProps<IArrayBaseOperationProps>()\n\nconst indexRef = useIndex()\nconst base = useArray()\n\nfunction handleClick() {\n if (isArr(base?.keyMap)) {\n base?.keyMap?.splice(indexRef.value, 1)\n }\n\n base?.field.value.remove(indexRef.value as number)\n base?.attrs?.remove?.(indexRef.value as number)\n}\n</script>\n\n<template>\n <ElLink\n v-if=\"base?.field.value.pattern === 'editable'\"\n :class=\"`${prefixCls}-remove`\"\n size=\"small\"\n :icon=\"Delete\"\n :underline=\"compatibleUnderlineProp()\"\n role=\"button\"\n aria-label=\"移除条目\"\n @click.stop=\"handleClick\"\n >\n <slot>\n {{ props.title }}\n </slot>\n </ElLink>\n</template>\n"],"mappings":";;;;;;;;;;;;EAYA,MAAM,QAAQ;EAEd,MAAM,WAAW,UAAS;EAC1B,MAAM,OAAO,UAAS;EAEtB,SAAS,cAAc;AACrB,OAAI,MAAM,MAAM,OAAO,CACrB,OAAM,QAAQ,OAAO,SAAS,OAAO,EAAC;AAGxC,SAAM,MAAM,MAAM,OAAO,SAAS,MAAe;AACjD,SAAM,OAAO,SAAS,SAAS,MAAe;;;UAMtC,MAAA,KAAI,EAAE,MAAM,MAAM,YAAO,cAAA,WAAA,EADjC,YAaS,MAAA,OAAA,EAAA;;IAXN,OAAK,eAAA,GAAK,MAAA,UAAS,CAAA,SAAA;IACpB,MAAK;IACJ,MAAM,MAAA,OAAM;IACZ,WAAW,MAAA,wBAAuB,EAAA;IACnC,MAAK;IACL,cAAW;IACV,SAAK,cAAO,aAAW,CAAA,OAAA,CAAA;;2BAIjB,CAFP,WAEO,KAAA,QAAA,WAAA,EAAA,QAAA,CAAA,gBAAA,gBADF,MAAM,MAAK,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { compatibleUnderlineProp } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { prefixCls, useArray } from "./utils.mjs";
|
|
3
|
+
import { ElLink } from "element-plus";
|
|
4
|
+
import { createBlock, createCommentVNode, defineComponent, normalizeClass, openBlock, unref } from "vue";
|
|
5
|
+
import { Rank } from "@element-plus/icons-vue";
|
|
6
|
+
//#region src/array-base/array-base-sort-handle.vue
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "ArrayBaseSortHandle",
|
|
9
|
+
__name: "array-base-sort-handle",
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const array = useArray();
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return unref(array).field.value?.pattern === "editable" ? (openBlock(), createBlock(unref(ElLink), {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: normalizeClass(`${unref(prefixCls)}-sort-handle`),
|
|
16
|
+
size: "small",
|
|
17
|
+
icon: unref(Rank),
|
|
18
|
+
underline: unref(compatibleUnderlineProp)(),
|
|
19
|
+
role: "button",
|
|
20
|
+
"aria-label": "拖拽排序",
|
|
21
|
+
"aria-dropeffect": "move"
|
|
22
|
+
}, null, 8, [
|
|
23
|
+
"class",
|
|
24
|
+
"icon",
|
|
25
|
+
"underline"
|
|
26
|
+
])) : createCommentVNode("v-if", true);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main as default };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=array-base-sort-handle.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-base-sort-handle.mjs","names":[],"sources":["../../src/array-base/array-base-sort-handle.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { Rank } from '@element-plus/icons-vue'\nimport { ElLink } from 'element-plus'\nimport { compatibleUnderlineProp } from '../__builtins__'\nimport { prefixCls, useArray } from './utils'\n\ndefineOptions({\n name: 'ArrayBaseSortHandle',\n})\n\nconst array = useArray()\n</script>\n\n<template>\n <ElLink\n v-if=\"array.field.value?.pattern === 'editable'\"\n :class=\"`${prefixCls}-sort-handle`\"\n size=\"small\"\n :icon=\"Rank\"\n :underline=\"compatibleUnderlineProp()\"\n role=\"button\"\n aria-label=\"拖拽排序\"\n aria-dropeffect=\"move\"\n />\n</template>\n"],"mappings":";;;;;;;;;;EAUA,MAAM,QAAQ,UAAS;;UAKb,MAAA,MAAK,CAAC,MAAM,OAAO,YAAO,cAAA,WAAA,EADlC,YASE,MAAA,OAAA,EAAA;;IAPC,OAAK,eAAA,GAAK,MAAA,UAAS,CAAA,cAAA;IACpB,MAAK;IACJ,MAAM,MAAA,KAAI;IACV,WAAW,MAAA,wBAAuB,EAAA;IACnC,MAAK;IACL,cAAW;IACX,mBAAgB"}
|
package/esm/array-base/index.mjs
CHANGED
|
@@ -1,209 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
return (s, A) => a(e).field.value.pattern === "editable" ? (i(), f(a(m), {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: c(`${a(d)}-addition`),
|
|
29
|
-
icon: a(R),
|
|
30
|
-
underline: a(b)(),
|
|
31
|
-
role: "button",
|
|
32
|
-
"aria-label": "添加条目",
|
|
33
|
-
onClick: l
|
|
34
|
-
}, {
|
|
35
|
-
default: h(() => [
|
|
36
|
-
_(v(a(t).title || r.title), 1)
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["class", "icon", "underline"])) : y("", !0);
|
|
40
|
-
}
|
|
41
|
-
}), K = /* @__PURE__ */ o({
|
|
42
|
-
name: "ArrayBaseIndex",
|
|
43
|
-
__name: "array-base-index",
|
|
44
|
-
setup(n) {
|
|
45
|
-
const r = k();
|
|
46
|
-
return (t, e) => (i(), C("span", {
|
|
47
|
-
class: c(`${a(d)}-index`)
|
|
48
|
-
}, [
|
|
49
|
-
u(t.$slots, "default", { index: a(r) }, () => [
|
|
50
|
-
_(" #" + v(a(r) + 1) + ". ", 1)
|
|
51
|
-
])
|
|
52
|
-
], 2));
|
|
53
|
-
}
|
|
54
|
-
}), L = /* @__PURE__ */ o({
|
|
55
|
-
name: "ArrayBaseInner",
|
|
56
|
-
inheritAttrs: !1,
|
|
57
|
-
__name: "array-base-inner",
|
|
58
|
-
props: {
|
|
59
|
-
disabled: { type: Boolean },
|
|
60
|
-
keyMap: {}
|
|
61
|
-
},
|
|
62
|
-
setup(n) {
|
|
63
|
-
const r = n, t = B(), e = D();
|
|
64
|
-
return M(H, {
|
|
65
|
-
field: t,
|
|
66
|
-
schema: e,
|
|
67
|
-
props: r,
|
|
68
|
-
attrs: w(),
|
|
69
|
-
keyMap: r.keyMap
|
|
70
|
-
}), (l, s) => u(l.$slots, "default");
|
|
71
|
-
}
|
|
72
|
-
}), T = /* @__PURE__ */ o({
|
|
73
|
-
name: "ArrayBaseItem",
|
|
74
|
-
__name: "array-base-item",
|
|
75
|
-
props: {
|
|
76
|
-
index: {},
|
|
77
|
-
record: {}
|
|
78
|
-
},
|
|
79
|
-
setup(n) {
|
|
80
|
-
return M(N, n), (t, e) => u(t.$slots, "default");
|
|
81
|
-
}
|
|
82
|
-
}), j = /* @__PURE__ */ o({
|
|
83
|
-
name: "ArrayBaseMoveDown",
|
|
84
|
-
__name: "array-base-move-down",
|
|
85
|
-
props: {
|
|
86
|
-
title: {}
|
|
87
|
-
},
|
|
88
|
-
setup(n) {
|
|
89
|
-
const r = n, t = k(), e = p();
|
|
90
|
-
function l() {
|
|
91
|
-
x(e?.keyMap) && e.keyMap.splice(
|
|
92
|
-
t.value + 1,
|
|
93
|
-
0,
|
|
94
|
-
e.keyMap.splice(t.value, 1)[0]
|
|
95
|
-
), e?.field.value.moveDown(t.value), e?.attrs?.moveDown?.(t.value);
|
|
96
|
-
}
|
|
97
|
-
return (s, A) => a(e)?.field.value.pattern === "editable" ? (i(), f(a(m), {
|
|
98
|
-
key: 0,
|
|
99
|
-
class: c(`${a(d)}-move-down`),
|
|
100
|
-
size: "small",
|
|
101
|
-
icon: a(S),
|
|
102
|
-
underline: a(b)(),
|
|
103
|
-
role: "button",
|
|
104
|
-
"aria-label": "下移条目",
|
|
105
|
-
onClick: $(l, ["stop"])
|
|
106
|
-
}, {
|
|
107
|
-
default: h(() => [
|
|
108
|
-
u(s.$slots, "default", {}, () => [
|
|
109
|
-
_(v(r.title), 1)
|
|
110
|
-
])
|
|
111
|
-
]),
|
|
112
|
-
_: 3
|
|
113
|
-
}, 8, ["class", "icon", "underline"])) : y("", !0);
|
|
114
|
-
}
|
|
115
|
-
}), q = /* @__PURE__ */ o({
|
|
116
|
-
name: "ArrayBaseMoveUp",
|
|
117
|
-
__name: "array-base-move-up",
|
|
118
|
-
props: {
|
|
119
|
-
title: {}
|
|
120
|
-
},
|
|
121
|
-
setup(n) {
|
|
122
|
-
const r = n, t = k(), e = p();
|
|
123
|
-
function l() {
|
|
124
|
-
x(e?.keyMap) && e.keyMap.splice(
|
|
125
|
-
t.value - 1,
|
|
126
|
-
0,
|
|
127
|
-
e.keyMap.splice(t.value, 1)[0]
|
|
128
|
-
), e?.field.value.moveUp(t.value), e?.attrs?.moveUp?.(t.value);
|
|
129
|
-
}
|
|
130
|
-
return (s, A) => a(e)?.field.value.pattern === "editable" ? (i(), f(a(m), {
|
|
131
|
-
key: 0,
|
|
132
|
-
class: c(`${a(d)}-move-up`),
|
|
133
|
-
size: "small",
|
|
134
|
-
icon: a(U),
|
|
135
|
-
underline: a(b)(),
|
|
136
|
-
role: "button",
|
|
137
|
-
"aria-label": "上移条目",
|
|
138
|
-
onClick: $(l, ["stop"])
|
|
139
|
-
}, {
|
|
140
|
-
default: h(() => [
|
|
141
|
-
u(s.$slots, "default", {}, () => [
|
|
142
|
-
_(v(r.title), 1)
|
|
143
|
-
])
|
|
144
|
-
]),
|
|
145
|
-
_: 3
|
|
146
|
-
}, 8, ["class", "icon", "underline"])) : y("", !0);
|
|
147
|
-
}
|
|
148
|
-
}), G = /* @__PURE__ */ o({
|
|
149
|
-
name: "ArrayBaseRemove",
|
|
150
|
-
__name: "array-base-remove",
|
|
151
|
-
props: {
|
|
152
|
-
title: {}
|
|
153
|
-
},
|
|
154
|
-
setup(n) {
|
|
155
|
-
const r = n, t = k(), e = p();
|
|
156
|
-
function l() {
|
|
157
|
-
x(e?.keyMap) && e?.keyMap?.splice(t.value, 1), e?.field.value.remove(t.value), e?.attrs?.remove?.(t.value);
|
|
158
|
-
}
|
|
159
|
-
return (s, A) => a(e)?.field.value.pattern === "editable" ? (i(), f(a(m), {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: c(`${a(d)}-remove`),
|
|
162
|
-
size: "small",
|
|
163
|
-
icon: a(V),
|
|
164
|
-
underline: a(b)(),
|
|
165
|
-
role: "button",
|
|
166
|
-
"aria-label": "移除条目",
|
|
167
|
-
onClick: $(l, ["stop"])
|
|
168
|
-
}, {
|
|
169
|
-
default: h(() => [
|
|
170
|
-
u(s.$slots, "default", {}, () => [
|
|
171
|
-
_(v(r.title), 1)
|
|
172
|
-
])
|
|
173
|
-
]),
|
|
174
|
-
_: 3
|
|
175
|
-
}, 8, ["class", "icon", "underline"])) : y("", !0);
|
|
176
|
-
}
|
|
177
|
-
}), J = /* @__PURE__ */ o({
|
|
178
|
-
name: "ArrayBaseSortHandle",
|
|
179
|
-
__name: "array-base-sort-handle",
|
|
180
|
-
setup(n) {
|
|
181
|
-
const r = p();
|
|
182
|
-
return (t, e) => a(r).field.value?.pattern === "editable" ? (i(), f(a(m), {
|
|
183
|
-
key: 0,
|
|
184
|
-
class: c(`${a(d)}-sort-handle`),
|
|
185
|
-
size: "small",
|
|
186
|
-
icon: a(z),
|
|
187
|
-
underline: a(b)(),
|
|
188
|
-
role: "button",
|
|
189
|
-
"aria-label": "拖拽排序",
|
|
190
|
-
"aria-dropeffect": "move"
|
|
191
|
-
}, null, 8, ["class", "icon", "underline"])) : y("", !0);
|
|
192
|
-
}
|
|
193
|
-
}), se = I(L, {
|
|
194
|
-
Index: K,
|
|
195
|
-
Item: T,
|
|
196
|
-
SortHandle: J,
|
|
197
|
-
Addition: P,
|
|
198
|
-
Remove: G,
|
|
199
|
-
MoveDown: j,
|
|
200
|
-
MoveUp: q,
|
|
201
|
-
useArray: p,
|
|
202
|
-
useIndex: k,
|
|
203
|
-
useKey: F,
|
|
204
|
-
useRecord: E
|
|
1
|
+
import { composeExport } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { useArray, useIndex, useKey, useRecord } from "./utils.mjs";
|
|
3
|
+
import _sfc_main from "./array-base-addition.mjs";
|
|
4
|
+
import _sfc_main$1 from "./array-base-index.mjs";
|
|
5
|
+
import _sfc_main$2 from "./array-base-inner.mjs";
|
|
6
|
+
import _sfc_main$3 from "./array-base-item.mjs";
|
|
7
|
+
import _sfc_main$4 from "./array-base-move-down.mjs";
|
|
8
|
+
import _sfc_main$5 from "./array-base-move-up.mjs";
|
|
9
|
+
import _sfc_main$6 from "./array-base-remove.mjs";
|
|
10
|
+
import _sfc_main$7 from "./array-base-sort-handle.mjs";
|
|
11
|
+
import "./style.css";
|
|
12
|
+
//#region src/array-base/index.ts
|
|
13
|
+
const ArrayBase = composeExport(_sfc_main$2, {
|
|
14
|
+
Index: _sfc_main$1,
|
|
15
|
+
Item: _sfc_main$3,
|
|
16
|
+
SortHandle: _sfc_main$7,
|
|
17
|
+
Addition: _sfc_main,
|
|
18
|
+
Remove: _sfc_main$6,
|
|
19
|
+
MoveDown: _sfc_main$4,
|
|
20
|
+
MoveUp: _sfc_main$5,
|
|
21
|
+
useArray,
|
|
22
|
+
useIndex,
|
|
23
|
+
useKey,
|
|
24
|
+
useRecord
|
|
205
25
|
});
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
//# sourceMappingURL=index.mjs.map
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ArrayBase };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=index.mjs.map
|