@silver-formily/element-plus 3.0.2 → 4.0.1
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 +3 -1
- package/README.md +3 -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 +44 -638
- 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 +34 -27
- 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 +772 -766
- package/esm/checkbox/index.mjs +16 -69
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.d.ts +214 -207
- 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 +118 -110
- 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 +449 -441
- 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 +149 -141
- 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 +60 -141
- 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 +81 -67
- 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 +55 -48
- package/esm/index.mjs +51 -103
- package/esm/input/index.d.ts +41 -46
- 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 +281 -275
- package/esm/input-number/index.mjs +12 -24
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.d.ts +29 -31
- 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 +39 -49
- 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 +43 -48
- package/esm/password/index.mjs +11 -14
- package/esm/password/index.mjs.map +1 -1
- package/esm/picker-select/index.d.ts +47 -0
- package/esm/picker-select/index.mjs +14 -0
- package/esm/picker-select/index.mjs.map +1 -0
- package/esm/picker-select/picker-select.mjs +186 -0
- package/esm/picker-select/picker-select.mjs.map +1 -0
- package/esm/picker-select/types.d.ts +23 -0
- 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 +138 -131
- 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 +482 -472
- 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 +190 -184
- 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 +31 -25
- 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 +108 -121
- 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 +53 -1546
- 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/select-table/types.d.ts +21 -16
- 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 +182 -174
- 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 +255 -249
- package/esm/switch/index.mjs +8 -13
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.d.ts +451 -443
- package/esm/time-picker/index.mjs +10 -17
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +189 -182
- package/esm/time-select/index.mjs +13 -17
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +246 -238
- package/esm/transfer/index.mjs +8 -11
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.d.ts +40 -33
- 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/types.d.ts +17 -12
- package/esm/tree/utils.mjs +157 -149
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.d.ts +22 -15
- 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 +117 -696
- 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 +24 -25
- 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.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.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
package/esm/upload/index.mjs
CHANGED
|
@@ -1,172 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
name: "FUpload",
|
|
13
|
-
inheritAttrs: !1,
|
|
14
|
-
__name: "upload",
|
|
15
|
-
props: {
|
|
16
|
-
textContent: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: ""
|
|
19
|
-
},
|
|
20
|
-
errorAdaptor: {
|
|
21
|
-
type: Function,
|
|
22
|
-
default: (u) => u?.message
|
|
23
|
-
},
|
|
24
|
-
formatValue: {
|
|
25
|
-
type: Function,
|
|
26
|
-
default: (u) => u
|
|
27
|
-
},
|
|
28
|
-
fileList: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default: () => []
|
|
31
|
-
},
|
|
32
|
-
imageViewerProps: {
|
|
33
|
-
type: Object,
|
|
34
|
-
default: () => ({ teleported: !0, showProgress: !0 })
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
emits: ["update:modelValue"],
|
|
38
|
-
setup(u, { emit: S }) {
|
|
39
|
-
const i = u, V = S, d = f(), o = O(), R = w(() => Z(o, [
|
|
40
|
-
"onChange",
|
|
41
|
-
"onRemove",
|
|
42
|
-
"onExceed",
|
|
43
|
-
"onError",
|
|
44
|
-
"onPreview",
|
|
45
|
-
"fileList",
|
|
46
|
-
"onUpdate:fileList"
|
|
47
|
-
])), l = b();
|
|
48
|
-
l.value?.inject({
|
|
49
|
-
getElUploadRef: () => d
|
|
50
|
-
});
|
|
51
|
-
const $ = f(), k = f(0), g = f(!1), U = w(() => i.fileList.map((e) => e.url));
|
|
52
|
-
function E(e) {
|
|
53
|
-
const t = i.errorAdaptor(e);
|
|
54
|
-
l.value?.setFeedback({
|
|
55
|
-
type: "error",
|
|
56
|
-
code: "UploadError",
|
|
57
|
-
messages: t ? [t] : []
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function F(e, t) {
|
|
61
|
-
l.value?.setDataSource([...t]), E();
|
|
62
|
-
}
|
|
63
|
-
function I(e, t) {
|
|
64
|
-
c(o.onRemove) && o.onRemove(e, t), l.value.setDataSource([...t]), E();
|
|
65
|
-
}
|
|
66
|
-
function L(e, t) {
|
|
67
|
-
if (c(o.onExceed) && o.onExceed(e, t), o.limit !== 1)
|
|
68
|
-
return;
|
|
69
|
-
d.value.clearFiles();
|
|
70
|
-
const n = e[0];
|
|
71
|
-
n.uid = X(), d.value.handleStart(n), (o.autoUpload ?? !0) && d.value.submit();
|
|
72
|
-
}
|
|
73
|
-
function A(e, t, n) {
|
|
74
|
-
c(o.onError) && o.onError(e, t, n);
|
|
75
|
-
}
|
|
76
|
-
function _(e) {
|
|
77
|
-
if (c(o.onPreview)) {
|
|
78
|
-
o.onPreview(e);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
if (!e.url && !o.accept?.includes("image"))
|
|
82
|
-
return;
|
|
83
|
-
const t = i.fileList.findIndex((n) => n.uid === e.uid);
|
|
84
|
-
k.value = t, g.value = !0;
|
|
85
|
-
}
|
|
86
|
-
return H(() => l.value?.dataSource ?? [], () => {
|
|
87
|
-
const e = i.formatValue(l.value.dataSource);
|
|
88
|
-
V("update:modelValue", e);
|
|
89
|
-
}), (e, t) => (a(), v(y, null, [
|
|
90
|
-
p(r(J), x({
|
|
91
|
-
ref_key: "uploadRef",
|
|
92
|
-
ref: d
|
|
93
|
-
}, R.value, {
|
|
94
|
-
"file-list": e.$props.fileList,
|
|
95
|
-
onChange: F,
|
|
96
|
-
onRemove: I,
|
|
97
|
-
onExceed: L,
|
|
98
|
-
onError: A,
|
|
99
|
-
onPreview: _
|
|
100
|
-
}), z({
|
|
101
|
-
default: s(() => [
|
|
102
|
-
r(Y)(e.$slots?.default) ? m(e.$slots, "default", { key: 0 }) : (a(), v(y, { key: 1 }, [
|
|
103
|
-
r(o).drag ? (a(), v(y, { key: 0 }, [
|
|
104
|
-
p(r(K), { style: { "font-size": "60px", margin: "40px 0 16px" } }, {
|
|
105
|
-
default: s(() => [
|
|
106
|
-
p(r(W), { color: "gray" })
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}),
|
|
110
|
-
P("div", ee, C(i.textContent), 1)
|
|
111
|
-
], 64)) : r(o).listType === "picture-card" ? (a(), h(r(q), {
|
|
112
|
-
key: 1,
|
|
113
|
-
style: { width: "28px", height: "28px", color: "gray" }
|
|
114
|
-
})) : (a(), h(r(M), { key: 2 }, {
|
|
115
|
-
default: s(() => [
|
|
116
|
-
p(r(G), {
|
|
117
|
-
width: "16px",
|
|
118
|
-
height: "16px"
|
|
119
|
-
}),
|
|
120
|
-
P("span", te, C(i.textContent), 1)
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}))
|
|
124
|
-
], 64))
|
|
125
|
-
]),
|
|
126
|
-
_: 2
|
|
127
|
-
}, [
|
|
128
|
-
e.$slots.file ? {
|
|
129
|
-
name: "file",
|
|
130
|
-
fn: s(({ file: n, index: B }) => [
|
|
131
|
-
m(e.$slots, "file", {
|
|
132
|
-
file: n,
|
|
133
|
-
index: B
|
|
134
|
-
})
|
|
135
|
-
]),
|
|
136
|
-
key: "0"
|
|
137
|
-
} : void 0,
|
|
138
|
-
e.$slots.tip ? {
|
|
139
|
-
name: "tip",
|
|
140
|
-
fn: s(() => [
|
|
141
|
-
m(e.$slots, "tip")
|
|
142
|
-
]),
|
|
143
|
-
key: "1"
|
|
144
|
-
} : void 0,
|
|
145
|
-
e.$slots.trigger ? {
|
|
146
|
-
name: "trigger",
|
|
147
|
-
fn: s(() => [
|
|
148
|
-
m(e.$slots, "trigger")
|
|
149
|
-
]),
|
|
150
|
-
key: "2"
|
|
151
|
-
} : void 0
|
|
152
|
-
]), 1040, ["file-list"]),
|
|
153
|
-
g.value ? (a(), h(r(Q), x({
|
|
154
|
-
key: 0,
|
|
155
|
-
ref_key: "imgPreviewRef",
|
|
156
|
-
ref: $,
|
|
157
|
-
"url-list": U.value,
|
|
158
|
-
"initial-index": k.value
|
|
159
|
-
}, i.imageViewerProps, {
|
|
160
|
-
onClose: t[0] || (t[0] = (n) => g.value = !1)
|
|
161
|
-
}), null, 16, ["url-list", "initial-index"])) : T("", !0)
|
|
162
|
-
], 64));
|
|
163
|
-
}
|
|
164
|
-
}), me = D(
|
|
165
|
-
oe,
|
|
166
|
-
N({ readOnly: "readonly", dataSource: "fileList" })
|
|
167
|
-
);
|
|
168
|
-
export {
|
|
169
|
-
me as Upload,
|
|
170
|
-
me as default
|
|
171
|
-
};
|
|
172
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import _sfc_main from "./upload.mjs";
|
|
2
|
+
import { connect, mapProps } from "@silver-formily/vue";
|
|
3
|
+
//#region src/upload/index.ts
|
|
4
|
+
const Upload = connect(_sfc_main, mapProps({
|
|
5
|
+
readOnly: "readonly",
|
|
6
|
+
dataSource: "fileList"
|
|
7
|
+
}));
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Upload as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
package/esm/upload/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["FUpload"],"sources":["../../src/upload/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\r\nimport FUpload from './upload.vue'\r\n\r\nexport const Upload = connect<typeof FUpload>(\n FUpload,\n mapProps({ readOnly: 'readonly', dataSource: 'fileList' }),\r\n)\r\n\r\nexport default Upload\r\n"],"mappings":";;;AAGA,MAAa,SAAS,QACpBA,WACA,SAAS;CAAE,UAAU;CAAY,YAAY;CAAY,CAAC,CAC3D"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { hasSlotContent } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { ElButton, ElIcon, ElImageViewer, ElUpload, genFileId } from "element-plus";
|
|
3
|
+
import { reactionWatch } from "@silver-formily/reactive-vue";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, toDisplayString, unref, useAttrs as useAttrs$1, withCtx } from "vue";
|
|
5
|
+
import { useField } from "@silver-formily/vue";
|
|
6
|
+
import { isFn } from "@formily/shared";
|
|
7
|
+
import { omit } from "lodash-es";
|
|
8
|
+
import { Plus, Upload, UploadFilled } from "@element-plus/icons-vue";
|
|
9
|
+
//#region src/upload/upload.vue
|
|
10
|
+
const _hoisted_1 = { class: "el-upload__text" };
|
|
11
|
+
const _hoisted_2 = { style: { "margin-left": "6px" } };
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
name: "FUpload",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
__name: "upload",
|
|
16
|
+
props: {
|
|
17
|
+
textContent: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
errorAdaptor: {
|
|
22
|
+
type: Function,
|
|
23
|
+
default: (error) => error?.message
|
|
24
|
+
},
|
|
25
|
+
formatValue: {
|
|
26
|
+
type: Function,
|
|
27
|
+
default: (item) => item
|
|
28
|
+
},
|
|
29
|
+
fileList: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
imageViewerProps: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => ({
|
|
36
|
+
teleported: true,
|
|
37
|
+
showProgress: true
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:modelValue"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const emit = __emit;
|
|
45
|
+
const uploadRef = ref();
|
|
46
|
+
const attrs = useAttrs$1();
|
|
47
|
+
const innerAttrs = computed(() => {
|
|
48
|
+
return omit(attrs, [
|
|
49
|
+
"onChange",
|
|
50
|
+
"onRemove",
|
|
51
|
+
"onExceed",
|
|
52
|
+
"onError",
|
|
53
|
+
"onPreview",
|
|
54
|
+
"fileList",
|
|
55
|
+
"onUpdate:fileList"
|
|
56
|
+
]);
|
|
57
|
+
});
|
|
58
|
+
const fieldRef = useField();
|
|
59
|
+
fieldRef.value?.inject({ getElUploadRef: () => {
|
|
60
|
+
return uploadRef;
|
|
61
|
+
} });
|
|
62
|
+
const imgPreviewRef = ref();
|
|
63
|
+
const activeImageIndex = ref(0);
|
|
64
|
+
const isShowImgViewer = ref(false);
|
|
65
|
+
const imgPreviewList = computed(() => {
|
|
66
|
+
return props.fileList.map((item) => item.url);
|
|
67
|
+
});
|
|
68
|
+
function setFeedBack(error) {
|
|
69
|
+
const message = props.errorAdaptor(error);
|
|
70
|
+
fieldRef.value?.setFeedback({
|
|
71
|
+
type: "error",
|
|
72
|
+
code: "UploadError",
|
|
73
|
+
messages: message ? [message] : []
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function handleChange(file, fileList) {
|
|
77
|
+
fieldRef.value?.setDataSource([...fileList]);
|
|
78
|
+
setFeedBack();
|
|
79
|
+
}
|
|
80
|
+
function handleRemove(file, fileList) {
|
|
81
|
+
if (isFn(attrs.onRemove)) attrs.onRemove(file, fileList);
|
|
82
|
+
fieldRef.value.setDataSource([...fileList]);
|
|
83
|
+
setFeedBack();
|
|
84
|
+
}
|
|
85
|
+
function handleExceed(files, uploadFIles) {
|
|
86
|
+
if (isFn(attrs.onExceed)) attrs.onExceed(files, uploadFIles);
|
|
87
|
+
if (attrs.limit !== 1) return;
|
|
88
|
+
uploadRef.value.clearFiles();
|
|
89
|
+
const file = files[0];
|
|
90
|
+
file.uid = genFileId();
|
|
91
|
+
uploadRef.value.handleStart(file);
|
|
92
|
+
if (attrs.autoUpload ?? true) uploadRef.value.submit();
|
|
93
|
+
}
|
|
94
|
+
function handleError(error, file, fileList) {
|
|
95
|
+
if (isFn(attrs.onError)) attrs.onError(error, file, fileList);
|
|
96
|
+
}
|
|
97
|
+
function onPreviewClick(uploadFile) {
|
|
98
|
+
if (isFn(attrs.onPreview)) {
|
|
99
|
+
attrs.onPreview(uploadFile);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (!uploadFile.url && !attrs.accept?.includes("image")) return;
|
|
103
|
+
activeImageIndex.value = props.fileList.findIndex((element) => element.uid === uploadFile.uid);
|
|
104
|
+
isShowImgViewer.value = true;
|
|
105
|
+
}
|
|
106
|
+
reactionWatch(() => {
|
|
107
|
+
return fieldRef.value?.dataSource ?? [];
|
|
108
|
+
}, () => {
|
|
109
|
+
emit("update:modelValue", props.formatValue(fieldRef.value.dataSource));
|
|
110
|
+
});
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(ElUpload), mergeProps({
|
|
113
|
+
ref_key: "uploadRef",
|
|
114
|
+
ref: uploadRef
|
|
115
|
+
}, innerAttrs.value, {
|
|
116
|
+
"file-list": _ctx.$props.fileList,
|
|
117
|
+
onChange: handleChange,
|
|
118
|
+
onRemove: handleRemove,
|
|
119
|
+
onExceed: handleExceed,
|
|
120
|
+
onError: handleError,
|
|
121
|
+
onPreview: onPreviewClick
|
|
122
|
+
}), createSlots({
|
|
123
|
+
default: withCtx(() => [unref(hasSlotContent)(_ctx.$slots?.default) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [unref(attrs).drag ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(ElIcon), { style: {
|
|
124
|
+
"font-size": "60px",
|
|
125
|
+
"margin": "40px 0 16px"
|
|
126
|
+
} }, {
|
|
127
|
+
default: withCtx(() => [createVNode(unref(UploadFilled), { color: "gray" })]),
|
|
128
|
+
_: 1
|
|
129
|
+
}), createElementVNode("div", _hoisted_1, toDisplayString(props.textContent), 1)], 64)) : unref(attrs).listType === "picture-card" ? (openBlock(), createBlock(unref(Plus), {
|
|
130
|
+
key: 1,
|
|
131
|
+
style: {
|
|
132
|
+
"width": "28px",
|
|
133
|
+
"height": "28px",
|
|
134
|
+
"color": "gray"
|
|
135
|
+
}
|
|
136
|
+
})) : (openBlock(), createBlock(unref(ElButton), { key: 2 }, {
|
|
137
|
+
default: withCtx(() => [createVNode(unref(Upload), {
|
|
138
|
+
width: "16px",
|
|
139
|
+
height: "16px"
|
|
140
|
+
}), createElementVNode("span", _hoisted_2, toDisplayString(props.textContent), 1)]),
|
|
141
|
+
_: 1
|
|
142
|
+
}))], 64))]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, [
|
|
145
|
+
_ctx.$slots.file ? {
|
|
146
|
+
name: "file",
|
|
147
|
+
fn: withCtx(({ file, index }) => [renderSlot(_ctx.$slots, "file", {
|
|
148
|
+
file,
|
|
149
|
+
index
|
|
150
|
+
})]),
|
|
151
|
+
key: "0"
|
|
152
|
+
} : void 0,
|
|
153
|
+
_ctx.$slots.tip ? {
|
|
154
|
+
name: "tip",
|
|
155
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "tip")]),
|
|
156
|
+
key: "1"
|
|
157
|
+
} : void 0,
|
|
158
|
+
_ctx.$slots.trigger ? {
|
|
159
|
+
name: "trigger",
|
|
160
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "trigger")]),
|
|
161
|
+
key: "2"
|
|
162
|
+
} : void 0
|
|
163
|
+
]), 1040, ["file-list"]), isShowImgViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), mergeProps({
|
|
164
|
+
key: 0,
|
|
165
|
+
ref_key: "imgPreviewRef",
|
|
166
|
+
ref: imgPreviewRef,
|
|
167
|
+
"url-list": imgPreviewList.value,
|
|
168
|
+
"initial-index": activeImageIndex.value
|
|
169
|
+
}, props.imageViewerProps, { onClose: _cache[0] || (_cache[0] = ($event) => isShowImgViewer.value = false) }), null, 16, ["url-list", "initial-index"])) : createCommentVNode("v-if", true)], 64);
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
//#endregion
|
|
174
|
+
export { _sfc_main as default };
|
|
175
|
+
|
|
176
|
+
//# sourceMappingURL=upload.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.mjs","names":["$props","$slots"],"sources":["../../src/upload/upload.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { Field } from '@formily/core'\nimport type { ImageViewerInstance, ImageViewerProps, UploadFile, UploadInstance, UploadProps, UploadRawFile } from 'element-plus'\nimport type { PropType } from 'vue'\nimport {\n Plus as PlusIcon,\n UploadFilled as UploadFilledIcon,\n Upload as UploadIcon,\n} from '@element-plus/icons-vue'\nimport { isFn } from '@formily/shared'\nimport { reactionWatch } from '@silver-formily/reactive-vue'\nimport { useField } from '@silver-formily/vue'\nimport { ElButton, ElIcon, ElImageViewer, ElUpload, genFileId } from 'element-plus'\nimport { omit } from 'lodash-es'\nimport { computed, ref, useAttrs } from 'vue'\nimport { hasSlotContent } from '../__builtins__'\n\ndefineOptions({\n name: 'FUpload',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n textContent: {\n type: String,\n default: '',\n },\n errorAdaptor: {\n type: Function as PropType<(error?: Error) => string>,\n default: (error?: Error) => error?.message,\n },\n formatValue: {\n type: Function as PropType<(fileList?: UploadFile[]) => any>,\n default: item => item,\n },\n fileList: {\n type: Array as PropType<UploadFile[]>,\n default: () => [],\n },\n imageViewerProps: {\n type: Object as PropType<ImageViewerProps>,\n default: () => ({ teleported: true, showProgress: true }),\n },\n})\n\nconst emit = defineEmits(['update:modelValue'])\n\nconst uploadRef = ref<UploadInstance>()\nconst attrs = useAttrs() as UploadProps\nconst innerAttrs = computed(() => {\n return omit(attrs, [\n 'onChange',\n 'onRemove',\n 'onExceed',\n 'onError',\n 'onPreview',\n 'fileList',\n 'onUpdate:fileList',\n ])\n})\nconst fieldRef = useField<Field>()\nfieldRef.value?.inject({\n getElUploadRef: () => {\n return uploadRef\n },\n})\n\nconst imgPreviewRef = ref<ImageViewerInstance>()\nconst activeImageIndex = ref(0)\nconst isShowImgViewer = ref(false)\nconst imgPreviewList = computed(() => {\n return props.fileList.map(item => item.url)\n})\n\nfunction setFeedBack(error?: Error) {\n const message = props.errorAdaptor(error)\n fieldRef.value?.setFeedback({\n type: 'error',\n code: 'UploadError',\n messages: message ? [message] : [],\n })\n}\n\nfunction handleChange(file: UploadFile, fileList: UploadFile[]) {\n fieldRef.value?.setDataSource([...fileList])\n setFeedBack()\n}\n\nfunction handleRemove(file: UploadFile, fileList: UploadFile[]) {\n if (isFn(attrs.onRemove)) {\n attrs.onRemove(file, fileList)\n }\n fieldRef.value.setDataSource([...fileList])\n setFeedBack()\n}\n\nfunction handleExceed(files: File[], uploadFIles) {\n if (isFn(attrs.onExceed)) {\n attrs.onExceed(files, uploadFIles)\n }\n if (attrs.limit !== 1)\n return\n uploadRef.value!.clearFiles()\n const file = files[0] as UploadRawFile\n file.uid = genFileId()\n uploadRef.value!.handleStart(file)\n if (attrs.autoUpload ?? true) {\n uploadRef.value!.submit()\n }\n}\n\nfunction handleError(error: Error, file: UploadFile, fileList: UploadFile[]) {\n if (isFn(attrs.onError)) {\n (attrs.onError)(error, file, fileList)\n }\n}\n\nfunction onPreviewClick(uploadFile: UploadFile) {\n if (isFn(attrs.onPreview)) {\n (attrs.onPreview)(uploadFile)\n return\n }\n if (!uploadFile.url && !attrs.accept?.includes('image'))\n return\n const clickIndex = props.fileList.findIndex((element: UploadFile) => element.uid === uploadFile.uid)\n activeImageIndex.value = clickIndex\n isShowImgViewer.value = true\n}\n\nreactionWatch(() => {\n return fieldRef.value?.dataSource ?? []\n}, () => {\n const emitValue = props.formatValue(fieldRef.value.dataSource as UploadFile[])\n emit('update:modelValue', emitValue)\n})\n</script>\n\n<template>\n <ElUpload\n ref=\"uploadRef\"\n v-bind=\"innerAttrs\"\n :file-list=\"$props.fileList\"\n @change=\"handleChange\"\n @remove=\"handleRemove\"\n @exceed=\"handleExceed\"\n @error=\"handleError\"\n @preview=\"onPreviewClick\"\n >\n <slot v-if=\"hasSlotContent($slots?.default)\" />\n <template v-else>\n <template v-if=\"attrs.drag\">\n <ElIcon style=\"font-size: 60px; margin: 40px 0 16px;\">\n <UploadFilledIcon color=\"gray\" />\n </ElIcon>\n <div class=\"el-upload__text\">\n {{ props.textContent }}\n </div>\n </template>\n <template v-else-if=\"attrs.listType === 'picture-card'\">\n <PlusIcon style=\"width: 28px; height: 28px; color: gray\" />\n </template>\n <template v-else>\n <ElButton>\n <UploadIcon width=\"16px\" height=\"16px\" />\n <span style=\"margin-left: 6px\">\n {{ props.textContent }}\n </span>\n </ElButton>\n </template>\n </template>\n <template v-if=\"$slots.file\" #file=\"{ file, index }\">\n <slot name=\"file\" :file=\"file\" :index=\"index\" />\n </template>\n <template v-if=\"$slots.tip\" #tip>\n <slot name=\"tip\" />\n </template>\n <template v-if=\"$slots.trigger\" #trigger>\n <slot name=\"trigger\" />\n </template>\n </ElUpload>\n <ElImageViewer\n v-if=\"isShowImgViewer\"\n ref=\"imgPreviewRef\"\n :url-list=\"imgPreviewList\"\n :initial-index=\"activeImageIndex\"\n v-bind=\"props.imageViewerProps\"\n @close=\"isShowImgViewer = false\"\n />\n</template>\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silver-formily/element-plus",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"description": "Formily 的 Element Plus 封装",
|
|
6
6
|
"author": "hezhengxu",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,47 +44,46 @@
|
|
|
44
44
|
"@silver-formily/reactive-vue": "^1.1.0",
|
|
45
45
|
"@silver-formily/vue": "^2.3.1",
|
|
46
46
|
"@vueuse/core": "*",
|
|
47
|
-
"element-plus": "^2.
|
|
47
|
+
"element-plus": "^2.11.0",
|
|
48
48
|
"vue": "^3.3.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@element-plus/icons-vue": "^2.3.2",
|
|
52
|
+
"lodash-es": "^4.17.23",
|
|
52
53
|
"vue-draggable-plus": "^0.5.6"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
56
|
+
"@tsdown/css": "^0.21.8",
|
|
55
57
|
"@types/lodash-es": "^4.17.12",
|
|
56
58
|
"@types/node": "^24.3.0",
|
|
57
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
58
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
59
|
-
"@vitest/browser": "^4.
|
|
60
|
-
"@vitest/browser-playwright": "^4.
|
|
61
|
-
"@vitest/coverage-istanbul": "^4.
|
|
62
|
-
"fast-glob": "^3.3.3",
|
|
63
|
-
"lodash-es": "^4.17.23",
|
|
59
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
60
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
61
|
+
"@vitest/browser": "^4.1.4",
|
|
62
|
+
"@vitest/browser-playwright": "^4.1.4",
|
|
63
|
+
"@vitest/coverage-istanbul": "^4.1.4",
|
|
64
64
|
"playwright": "^1.58.2",
|
|
65
65
|
"sass-embedded": "^1.97.3",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"vite
|
|
70
|
-
"vitest": "^4.
|
|
66
|
+
"tsdown": "^0.21.7",
|
|
67
|
+
"typescript": "6.0.2",
|
|
68
|
+
"unplugin-vue": "^7.1.1",
|
|
69
|
+
"vite": "^8.0.8",
|
|
70
|
+
"vitest": "^4.1.4",
|
|
71
71
|
"vitest-browser-vue": "^2.0.2",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
72
|
+
"vue": "^3.5.27",
|
|
73
|
+
"vue-tsc": "^3.2.6",
|
|
74
|
+
"@silver-formily/grid": "1.0.2",
|
|
74
75
|
"@silver-formily/typescript-config": "0.0.0",
|
|
75
|
-
"@silver-formily/vue": "2.3.
|
|
76
|
+
"@silver-formily/vue": "2.3.4",
|
|
77
|
+
"@silver-formily/reactive-vue": "1.1.1"
|
|
76
78
|
},
|
|
77
79
|
"scripts": {
|
|
78
|
-
"build": "
|
|
79
|
-
"test": "vitest run --reporter=dot",
|
|
80
|
-
"test:watch": "vitest",
|
|
81
|
-
"test:run": "vitest run --browser.headless",
|
|
82
|
-
"test:coverage": "vitest run --coverage --browser.headless",
|
|
80
|
+
"build": "tsdown --tsconfig tsconfig.build.json",
|
|
83
81
|
"lint": "eslint .",
|
|
84
82
|
"format": "eslint . --fix",
|
|
85
83
|
"check-types": "vue-tsc --noEmit --project tsconfig.check.json",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
84
|
+
"test": "vitest run --reporter=dot",
|
|
85
|
+
"test:watch": "vitest",
|
|
86
|
+
"test:run": "vitest run --browser.headless",
|
|
87
|
+
"test:coverage": "vitest run --coverage --browser.headless"
|
|
89
88
|
}
|
|
90
89
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const stylePrefix = "formily-element-plus";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { stylePrefix as r } from "./configs/index.mjs";
|
|
2
|
-
import { loadElConfigProvider as i } from "./shared/load-config-provider.mjs";
|
|
3
|
-
import { getTransitionDuration as p, loading as m, useDebonceSubmitting as s } from "./shared/loading.mjs";
|
|
4
|
-
import { lt as l, quickVersionCompare as f } from "./shared/simple-version-compare.mjs";
|
|
5
|
-
import { mapReadPretty as d } from "./shared/transform-component.mjs";
|
|
6
|
-
import { compatibleUnderlineProp as c, composeExport as g, hasSlotContent as C, isVnodeEmpty as P, isVueOptions as b, useCleanAttrs as y } from "./shared/utils.mjs";
|
|
7
|
-
export {
|
|
8
|
-
c as compatibleUnderlineProp,
|
|
9
|
-
g as composeExport,
|
|
10
|
-
p as getTransitionDuration,
|
|
11
|
-
C as hasSlotContent,
|
|
12
|
-
P as isVnodeEmpty,
|
|
13
|
-
b as isVueOptions,
|
|
14
|
-
i as loadElConfigProvider,
|
|
15
|
-
m as loading,
|
|
16
|
-
l as lt,
|
|
17
|
-
d as mapReadPretty,
|
|
18
|
-
f as quickVersionCompare,
|
|
19
|
-
r as stylePrefix,
|
|
20
|
-
y as useCleanAttrs,
|
|
21
|
-
s as useDebonceSubmitting
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { loadElConfigProvider as t } from "./load-config-provider.mjs";
|
|
2
|
-
import { getTransitionDuration as i, loading as n, useDebonceSubmitting as p } from "./loading.mjs";
|
|
3
|
-
import { lt as a, quickVersionCompare as s } from "./simple-version-compare.mjs";
|
|
4
|
-
import { mapReadPretty as d } from "./transform-component.mjs";
|
|
5
|
-
import { compatibleUnderlineProp as u, composeExport as x, hasSlotContent as c, isVnodeEmpty as g, isVueOptions as C, useCleanAttrs as b } from "./utils.mjs";
|
|
6
|
-
export {
|
|
7
|
-
u as compatibleUnderlineProp,
|
|
8
|
-
x as composeExport,
|
|
9
|
-
i as getTransitionDuration,
|
|
10
|
-
c as hasSlotContent,
|
|
11
|
-
g as isVnodeEmpty,
|
|
12
|
-
C as isVueOptions,
|
|
13
|
-
t as loadElConfigProvider,
|
|
14
|
-
n as loading,
|
|
15
|
-
a as lt,
|
|
16
|
-
d as mapReadPretty,
|
|
17
|
-
s as quickVersionCompare,
|
|
18
|
-
b as useCleanAttrs,
|
|
19
|
-
p as useDebonceSubmitting
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Form } from '@formily/core';
|
|
2
|
-
export declare function loading(loadingText: string, processor: () => Promise<any>): Promise<any>;
|
|
3
|
-
/**
|
|
4
|
-
* 获取当前element-plus的过渡时长并转换为毫秒
|
|
5
|
-
* @param cssVarName CSS 变量名,默认为 '--el-transition-duration'
|
|
6
|
-
* @param defaultValue 默认值(毫秒),默认为 200
|
|
7
|
-
* @returns 过渡时长(毫秒)
|
|
8
|
-
*/
|
|
9
|
-
export declare function getTransitionDuration(cssVarName?: string, defaultValue?: number): number;
|
|
10
|
-
export declare function useDebonceSubmitting(form: Form): {
|
|
11
|
-
internalSubmitting: import('vue').Ref<boolean, boolean>;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export interface UseEnterSubmitOptions {
|
|
3
|
-
visible: Ref<boolean>;
|
|
4
|
-
resolve: () => void;
|
|
5
|
-
submitting: Ref<boolean>;
|
|
6
|
-
getContainer: () => HTMLElement | null;
|
|
7
|
-
enabled?: Ref<boolean> | boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function useEnterSubmit({ visible, resolve, submitting, getContainer, enabled }: UseEnterSubmitOptions): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Component, ComputedRef, Slot, VNode } from 'vue';
|
|
2
|
-
export declare function useCleanAttrs(removeAttrsList?: string[]): {
|
|
3
|
-
props: ComputedRef<Record<string, any>>;
|
|
4
|
-
};
|
|
5
|
-
export declare function isVueOptions(options: any): options is Component;
|
|
6
|
-
export declare function composeExport<T0 extends object, T1 extends object>(s0: T0, s1: T1): T0 & T1;
|
|
7
|
-
export declare function isVnodeEmpty(vnodes: Array<VNode>): boolean;
|
|
8
|
-
export declare function hasSlotContent(slot: Slot<any> | undefined): boolean;
|
|
9
|
-
export declare function compatibleUnderlineProp(): false | "never";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IArrayBaseAdditionProps } from './types';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<IArrayBaseAdditionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IArrayBaseAdditionProps> & Readonly<{}>, {
|
|
3
|
-
method: "push" | "unshift";
|
|
4
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {
|
|
5
|
-
index: number;
|
|
6
|
-
}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: HTMLSpanElement;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|