@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,143 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
__epPropKey: true;
|
|
7
|
-
};
|
|
8
|
-
readonly cellClassName: {
|
|
9
|
-
readonly type: import('vue').PropType<Function>;
|
|
10
|
-
readonly required: false;
|
|
11
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
-
__epPropKey: true;
|
|
13
|
-
};
|
|
14
|
-
readonly shortcuts: import('element-plus/es/utils/index.mjs').EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
15
|
-
readonly arrowControl: BooleanConstructor;
|
|
16
|
-
readonly unlinkPanels: BooleanConstructor;
|
|
17
|
-
readonly showNow: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
18
|
-
readonly showConfirm: BooleanConstructor;
|
|
19
|
-
readonly showFooter: BooleanConstructor;
|
|
20
|
-
readonly showWeekNumber: BooleanConstructor;
|
|
21
|
-
readonly type: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType))[], unknown, unknown, "date", boolean>;
|
|
22
|
-
readonly clearable: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
23
|
-
readonly border: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
24
|
-
readonly editable: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
25
|
-
readonly disabledHours: {
|
|
26
|
-
readonly type: import('vue').PropType<import('element-plus').GetDisabledHours>;
|
|
27
|
-
readonly required: false;
|
|
28
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
-
__epPropKey: true;
|
|
30
|
-
};
|
|
31
|
-
readonly disabledMinutes: {
|
|
32
|
-
readonly type: import('vue').PropType<import('element-plus').GetDisabledMinutes>;
|
|
33
|
-
readonly required: false;
|
|
34
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
-
__epPropKey: true;
|
|
36
|
-
};
|
|
37
|
-
readonly disabledSeconds: {
|
|
38
|
-
readonly type: import('vue').PropType<import('element-plus').GetDisabledSeconds>;
|
|
39
|
-
readonly required: false;
|
|
40
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
-
__epPropKey: true;
|
|
42
|
-
};
|
|
43
|
-
readonly valueFormat: StringConstructor;
|
|
44
|
-
readonly dateFormat: StringConstructor;
|
|
45
|
-
readonly timeFormat: StringConstructor;
|
|
46
|
-
readonly disabled: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
47
|
-
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import('element-plus').ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import('element-plus').ModelValueType))[], unknown, unknown, "", boolean>;
|
|
48
|
-
readonly defaultValue: {
|
|
49
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>))[], unknown, unknown>>;
|
|
50
|
-
readonly required: false;
|
|
51
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
-
__epPropKey: true;
|
|
53
|
-
};
|
|
54
|
-
readonly defaultTime: {
|
|
55
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>))[], unknown, unknown>>;
|
|
56
|
-
readonly required: false;
|
|
57
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
-
__epPropKey: true;
|
|
59
|
-
};
|
|
60
|
-
readonly isRange: BooleanConstructor;
|
|
61
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("clear" | "update:modelValue" | "visible-change" | "calendar-change" | "panel-change")[], "clear" | "update:modelValue" | "visible-change" | "calendar-change" | "panel-change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
-
readonly disabledDate: {
|
|
63
|
-
readonly type: import('vue').PropType<Function>;
|
|
64
|
-
readonly required: false;
|
|
65
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
-
__epPropKey: true;
|
|
67
|
-
};
|
|
68
|
-
readonly cellClassName: {
|
|
69
|
-
readonly type: import('vue').PropType<Function>;
|
|
70
|
-
readonly required: false;
|
|
71
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
|
-
__epPropKey: true;
|
|
73
|
-
};
|
|
74
|
-
readonly shortcuts: import('element-plus/es/utils/index.mjs').EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
75
|
-
readonly arrowControl: BooleanConstructor;
|
|
76
|
-
readonly unlinkPanels: BooleanConstructor;
|
|
77
|
-
readonly showNow: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
78
|
-
readonly showConfirm: BooleanConstructor;
|
|
79
|
-
readonly showFooter: BooleanConstructor;
|
|
80
|
-
readonly showWeekNumber: BooleanConstructor;
|
|
81
|
-
readonly type: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType))[], unknown, unknown, "date", boolean>;
|
|
82
|
-
readonly clearable: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
83
|
-
readonly border: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
84
|
-
readonly editable: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
85
|
-
readonly disabledHours: {
|
|
86
|
-
readonly type: import('vue').PropType<import('element-plus').GetDisabledHours>;
|
|
87
|
-
readonly required: false;
|
|
88
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
89
|
-
__epPropKey: true;
|
|
90
|
-
};
|
|
91
|
-
readonly disabledMinutes: {
|
|
92
|
-
readonly type: import('vue').PropType<import('element-plus').GetDisabledMinutes>;
|
|
93
|
-
readonly required: false;
|
|
94
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
-
__epPropKey: true;
|
|
96
|
-
};
|
|
97
|
-
readonly disabledSeconds: {
|
|
98
|
-
readonly type: import('vue').PropType<import('element-plus').GetDisabledSeconds>;
|
|
99
|
-
readonly required: false;
|
|
100
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
101
|
-
__epPropKey: true;
|
|
102
|
-
};
|
|
103
|
-
readonly valueFormat: StringConstructor;
|
|
104
|
-
readonly dateFormat: StringConstructor;
|
|
105
|
-
readonly timeFormat: StringConstructor;
|
|
106
|
-
readonly disabled: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
107
|
-
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import('element-plus').ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import('element-plus').ModelValueType))[], unknown, unknown, "", boolean>;
|
|
108
|
-
readonly defaultValue: {
|
|
109
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>))[], unknown, unknown>>;
|
|
110
|
-
readonly required: false;
|
|
111
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
112
|
-
__epPropKey: true;
|
|
113
|
-
};
|
|
114
|
-
readonly defaultTime: {
|
|
115
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import('element-plus').SingleOrRange<Date>))[], unknown, unknown>>;
|
|
116
|
-
readonly required: false;
|
|
117
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
-
__epPropKey: true;
|
|
119
|
-
};
|
|
120
|
-
readonly isRange: BooleanConstructor;
|
|
121
|
-
}>> & {
|
|
122
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
123
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
124
|
-
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
125
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
126
|
-
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
readonly disabled: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
129
|
-
readonly border: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
130
|
-
readonly type: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType))[], unknown, unknown>;
|
|
131
|
-
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import('element-plus').ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | number[] | Date[]) | (() => import('element-plus').ModelValueType))[], unknown, unknown>;
|
|
132
|
-
readonly clearable: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
133
|
-
readonly editable: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
134
|
-
readonly shortcuts: unknown[];
|
|
135
|
-
readonly showNow: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
136
|
-
readonly showConfirm: boolean;
|
|
137
|
-
readonly showFooter: boolean;
|
|
138
|
-
readonly showWeekNumber: boolean;
|
|
139
|
-
readonly arrowControl: boolean;
|
|
140
|
-
readonly unlinkPanels: boolean;
|
|
141
|
-
readonly isRange: boolean;
|
|
142
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
143
|
-
export default DatePickerPanel;
|
|
1
|
+
//#region src/date-picker-panel/index.d.ts
|
|
2
|
+
declare const DatePickerPanel: any;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { DatePickerPanel };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "vue";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
i(l.DatePicker)
|
|
25
|
-
);
|
|
26
|
-
export {
|
|
27
|
-
v as DatePickerPanel,
|
|
28
|
-
v as default
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import { mapReadPretty } from "../__builtins__/shared/transform-component.mjs";
|
|
2
|
+
import PreviewText from "../preview-text/index.mjs";
|
|
3
|
+
import { getDefaultFormat } from "../date-picker/utils.mjs";
|
|
4
|
+
import { ElDatePickerPanel } from "element-plus";
|
|
5
|
+
import { connect, mapProps } from "@silver-formily/vue";
|
|
6
|
+
//#region src/date-picker-panel/index.ts
|
|
7
|
+
const DatePickerPanel = connect(ElDatePickerPanel, mapProps({
|
|
8
|
+
disabled: true,
|
|
9
|
+
editable: true
|
|
10
|
+
}, (props) => {
|
|
11
|
+
const next = {};
|
|
12
|
+
if (props.readOnly) next.editable = false;
|
|
13
|
+
if (!props.valueFormat) next.valueFormat = getDefaultFormat(props.type, "valueFormat");
|
|
14
|
+
if (!props.dateFormat) next.dateFormat = getDefaultFormat(props.type);
|
|
15
|
+
return {
|
|
16
|
+
...props,
|
|
17
|
+
...next
|
|
18
|
+
};
|
|
19
|
+
}), mapReadPretty(PreviewText.DatePicker));
|
|
20
|
+
//#endregion
|
|
21
|
+
export { DatePickerPanel as default };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/date-picker-panel/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElDatePickerPanel } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { getDefaultFormat } from '../date-picker/utils'\nimport { PreviewText } from '../preview-text'\n\nexport const DatePickerPanel = connect<typeof ElDatePickerPanel>(\n ElDatePickerPanel,\n mapProps(\n {\n disabled: true,\n editable: true,\n },\n (props: any) => {\n const next: Record<string, any> = {}\n\n if (props.readOnly) {\n next.editable = false\n }\n\n if (!props.valueFormat) {\n next.valueFormat = getDefaultFormat(props.type, 'valueFormat')\n }\n\n if (!props.dateFormat) {\n next.dateFormat = getDefaultFormat(props.type)\n }\n\n return {\n ...props,\n ...next,\n }\n },\n ),\n mapReadPretty(PreviewText.DatePicker),\n)\n\nexport default DatePickerPanel\n"],"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/date-picker-panel/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElDatePickerPanel } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { getDefaultFormat } from '../date-picker/utils'\nimport { PreviewText } from '../preview-text'\n\nexport const DatePickerPanel = connect<typeof ElDatePickerPanel>(\n ElDatePickerPanel,\n mapProps(\n {\n disabled: true,\n editable: true,\n },\n (props: any) => {\n const next: Record<string, any> = {}\n\n if (props.readOnly) {\n next.editable = false\n }\n\n if (!props.valueFormat) {\n next.valueFormat = getDefaultFormat(props.type, 'valueFormat')\n }\n\n if (!props.dateFormat) {\n next.dateFormat = getDefaultFormat(props.type)\n }\n\n return {\n ...props,\n ...next,\n }\n },\n ),\n mapReadPretty(PreviewText.DatePicker),\n)\n\nexport default DatePickerPanel\n"],"mappings":";;;;;;AAMA,MAAa,kBAAkB,QAC7B,mBACA,SACE;CACE,UAAU;CACV,UAAU;CACX,GACA,UAAe;CACd,MAAM,OAA4B,EAAE;AAEpC,KAAI,MAAM,SACR,MAAK,WAAW;AAGlB,KAAI,CAAC,MAAM,YACT,MAAK,cAAc,iBAAiB,MAAM,MAAM,cAAc;AAGhE,KAAI,CAAC,MAAM,WACT,MAAK,aAAa,iBAAiB,MAAM,KAAK;AAGhD,QAAO;EACL,GAAG;EACH,GAAG;EACJ;EAEJ,EACD,cAAc,YAAY,WAAW,CACtC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { stylePrefix } from "../__builtins__/configs/index.mjs";
|
|
2
|
+
import _sfc_main$1 from "../form-item/form-item.mjs";
|
|
3
|
+
import { ClickOutside, ElPopover, ElText } from "element-plus";
|
|
4
|
+
import { reactionWatch } from "@silver-formily/reactive-vue";
|
|
5
|
+
import { createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
6
|
+
import { useField } from "@silver-formily/vue";
|
|
7
|
+
import { isValid } from "@formily/shared";
|
|
8
|
+
import { Edit } from "@element-plus/icons-vue";
|
|
9
|
+
//#region src/editable/editable-popover.vue
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "FEditablePopover",
|
|
12
|
+
inheritAttrs: false,
|
|
13
|
+
__name: "editable-popover",
|
|
14
|
+
props: {
|
|
15
|
+
internalFormItemClass: {},
|
|
16
|
+
label: {},
|
|
17
|
+
for: {},
|
|
18
|
+
tooltip: {},
|
|
19
|
+
addonBefore: {},
|
|
20
|
+
addonAfter: {},
|
|
21
|
+
extra: {},
|
|
22
|
+
feedbackText: {},
|
|
23
|
+
feedbackStatus: {},
|
|
24
|
+
asterisk: { type: Boolean },
|
|
25
|
+
colon: { type: Boolean },
|
|
26
|
+
labelAlign: {},
|
|
27
|
+
wrapperAlign: {},
|
|
28
|
+
labelWrap: { type: Boolean },
|
|
29
|
+
labelWidth: {},
|
|
30
|
+
wrapperWidth: {},
|
|
31
|
+
labelCol: {},
|
|
32
|
+
wrapperCol: {},
|
|
33
|
+
fullness: { type: Boolean },
|
|
34
|
+
size: { default: "default" },
|
|
35
|
+
layout: {},
|
|
36
|
+
feedbackLayout: { default: "popover" },
|
|
37
|
+
tooltipLayout: {}
|
|
38
|
+
},
|
|
39
|
+
setup(__props) {
|
|
40
|
+
const props = __props;
|
|
41
|
+
const fieldRef = useField();
|
|
42
|
+
const prefixCls = `${stylePrefix}-editable`;
|
|
43
|
+
const contentRef = ref();
|
|
44
|
+
const visible = ref(false);
|
|
45
|
+
if (isValid(fieldRef.value.data)) {
|
|
46
|
+
/* istanbul ignore else -- @preserve */
|
|
47
|
+
if (!isValid(fieldRef.value.data.readPretty)) fieldRef.value.data.readPretty = true;
|
|
48
|
+
} else {
|
|
49
|
+
fieldRef.value.data = {};
|
|
50
|
+
fieldRef.value.data.readPretty = true;
|
|
51
|
+
}
|
|
52
|
+
function onClickOutside(e) {
|
|
53
|
+
/* istanbul ignore else -- @preserve */
|
|
54
|
+
if (!contentRef.value.parentElement.contains(e.target)) visible.value = false;
|
|
55
|
+
}
|
|
56
|
+
function onClick() {
|
|
57
|
+
visible.value = true;
|
|
58
|
+
}
|
|
59
|
+
reactionWatch(() => fieldRef.value.form.queryFeedbacks({
|
|
60
|
+
type: "error",
|
|
61
|
+
address: `${fieldRef.value.address.entire}.*`
|
|
62
|
+
}), (errorList) => {
|
|
63
|
+
if (errorList.length > 0) visible.value = true;
|
|
64
|
+
});
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(prefixCls) }, [createVNode(unref(ElPopover), mergeProps(_ctx.$attrs, {
|
|
67
|
+
visible: visible.value,
|
|
68
|
+
title: _ctx.$attrs.title || unref(fieldRef).title,
|
|
69
|
+
trigger: "click",
|
|
70
|
+
width: "auto"
|
|
71
|
+
}), {
|
|
72
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
73
|
+
ref_key: "contentRef",
|
|
74
|
+
ref: contentRef,
|
|
75
|
+
class: normalizeClass(`${prefixCls}-popover-wrapper`)
|
|
76
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)]),
|
|
77
|
+
reference: withCtx(() => [withDirectives((openBlock(), createBlock(unref(_sfc_main$1), mergeProps(props, { class: `${prefixCls}-trigger` }), {
|
|
78
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
79
|
+
class: normalizeClass(`${prefixCls}-content`),
|
|
80
|
+
onClick
|
|
81
|
+
}, [createVNode(unref(ElText), null, {
|
|
82
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(fieldRef).title), 1)]),
|
|
83
|
+
_: 1
|
|
84
|
+
}), createVNode(unref(Edit), { class: normalizeClass(`${prefixCls}-edit-btn`) }, null, 8, ["class"])], 2)]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 16, ["class"])), [[unref(ClickOutside), onClickOutside]])]),
|
|
87
|
+
_: 3
|
|
88
|
+
}, 16, ["visible", "title"])]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
export { _sfc_main as default };
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=editable-popover.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editable-popover.mjs","names":["$attrs"],"sources":["../../src/editable/editable-popover.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { Field } from '@formily/core'\nimport type { IFormItemProps } from '../form-item/types'\nimport { Edit } from '@element-plus/icons-vue'\nimport { isValid } from '@formily/shared'\nimport { reactionWatch } from '@silver-formily/reactive-vue'\nimport { useField } from '@silver-formily/vue'\nimport { ElPopover, ElText, ClickOutside as vClickOutside } from 'element-plus'\nimport { ref } from 'vue'\nimport { stylePrefix } from '../__builtins__/configs'\nimport { FormBaseItem } from '../form-item'\n\ndefineOptions({\n name: 'FEditablePopover',\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<IFormItemProps>(), {\n feedbackLayout: 'popover',\n size: 'default',\n})\n\nconst fieldRef = useField<Field>()\nconst prefixCls = `${stylePrefix}-editable`\nconst contentRef = ref<HTMLElement>()\nconst visible = ref(false)\n\nif (isValid(fieldRef.value.data)) {\n /* istanbul ignore else -- @preserve */\n if (!isValid(fieldRef.value.data.readPretty)) {\n fieldRef.value.data.readPretty = true\n }\n}\nelse {\n fieldRef.value.data = {}\n fieldRef.value.data.readPretty = true\n}\n\nfunction onClickOutside(e) {\n const popoverDOM = contentRef.value.parentElement\n /* istanbul ignore else -- @preserve */\n if (!popoverDOM.contains(e.target)) {\n visible.value = false\n }\n}\nfunction onClick() {\n visible.value = true\n}\n\nreactionWatch(\n () => fieldRef.value.form.queryFeedbacks({\n type: 'error',\n address: `${fieldRef.value.address.entire}.*`,\n }),\n (errorList) => {\n if (errorList.length > 0) {\n visible.value = true\n }\n },\n)\n</script>\n\n<template>\n <div :class=\"prefixCls\">\n <ElPopover\n v-bind=\"$attrs\"\n :visible=\"visible\"\n :title=\"$attrs.title || fieldRef.title\" trigger=\"click\" width=\"auto\"\n >\n <template #default>\n <div ref=\"contentRef\" :class=\"`${prefixCls}-popover-wrapper`\">\n <slot />\n </div>\n </template>\n <template #reference>\n <FormBaseItem v-click-outside=\"onClickOutside\" v-bind=\"props\" :class=\"`${prefixCls}-trigger`\">\n <div :class=\"`${prefixCls}-content`\" @click=\"onClick\">\n <ElText>\n {{ fieldRef.title }}\n </ElText>\n <Edit :class=\"`${prefixCls}-edit-btn`\" />\n </div>\n </FormBaseItem>\n </template>\n </ElPopover>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBA,MAAM,QAAQ;EAKd,MAAM,WAAW,UAAgB;EACjC,MAAM,YAAY,GAAG,YAAY;EACjC,MAAM,aAAa,KAAiB;EACpC,MAAM,UAAU,IAAI,MAAK;AAEzB,MAAI,QAAQ,SAAS,MAAM,KAAK;;OAE1B,CAAC,QAAQ,SAAS,MAAM,KAAK,WAAW,CAC1C,UAAS,MAAM,KAAK,aAAa;SAGhC;AACH,YAAS,MAAM,OAAO,EAAC;AACvB,YAAS,MAAM,KAAK,aAAa;;EAGnC,SAAS,eAAe,GAAG;;AAGzB,OAAI,CAFe,WAAW,MAAM,cAEpB,SAAS,EAAE,OAAO,CAChC,SAAQ,QAAQ;;EAGpB,SAAS,UAAU;AACjB,WAAQ,QAAQ;;AAGlB,sBACQ,SAAS,MAAM,KAAK,eAAe;GACvC,MAAM;GACN,SAAS,GAAG,SAAS,MAAM,QAAQ,OAAO;GAC3C,CAAC,GACD,cAAc;AACb,OAAI,UAAU,SAAS,EACrB,SAAQ,QAAQ;IAGtB;;uBAIE,mBAsBM,OAAA,EAtBA,OAAK,eAAE,UAAS,EAAA,EAAA,CACpB,YAoBY,MAAA,UAAA,EApBZ,WACUA,KAmBE,QAnBI;IACb,SAAS,QAAA;IACT,OAAOA,KAAAA,OAAO,SAAS,MAAA,SAAQ,CAAC;IAAO,SAAQ;IAAQ,OAAM;;IAEnD,SAAO,cAGV,CAFN,mBAEM,OAAA;cAFG;KAAJ,KAAI;KAAc,OAAK,eAAA,GAAK,UAAS,kBAAA;QACxC,WAAQ,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA,CAAA,CAAA;IAGD,WAAS,cAQH,CAAA,gBAAA,WAAA,EAPf,YAOe,MAAA,YAAA,EAPf,WAAuD,OAAK,EAAG,OAAK,GAAK,UAAS,WAAA,CAAA,EAAA;4BAM1E,CALN,mBAKM,OAAA;MALA,OAAK,eAAA,GAAK,UAAS,UAAA;MAAoB;SAC3C,YAES,MAAA,OAAA,EAAA,MAAA;6BADa,CAAA,gBAAA,gBAAjB,MAAA,SAAQ,CAAC,MAAK,EAAA,EAAA,CAAA,CAAA;;SAEnB,YAAyC,MAAA,KAAA,EAAA,EAAlC,OAAK,eAAA,GAAK,UAAS,WAAA,EAAA,EAAA,MAAA,GAAA,CAAA,QAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA;;+CALC,eAAc,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { stylePrefix } from "../__builtins__/configs/index.mjs";
|
|
2
|
+
import _sfc_main$1 from "../form-item/form-item.mjs";
|
|
3
|
+
import { ClickOutside } from "element-plus";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, openBlock, ref, renderSlot, unref, withCtx, withDirectives } from "vue";
|
|
5
|
+
import { useField } from "@silver-formily/vue";
|
|
6
|
+
import { isPlainObj, isValid } from "@formily/shared";
|
|
7
|
+
import { omit } from "lodash-es";
|
|
8
|
+
import { Close, Edit } from "@element-plus/icons-vue";
|
|
9
|
+
//#region src/editable/editable.vue
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "FEditable",
|
|
12
|
+
__name: "editable",
|
|
13
|
+
props: {
|
|
14
|
+
internalFormItemClass: {},
|
|
15
|
+
label: {},
|
|
16
|
+
for: {},
|
|
17
|
+
tooltip: {},
|
|
18
|
+
addonBefore: {},
|
|
19
|
+
addonAfter: {},
|
|
20
|
+
extra: {},
|
|
21
|
+
feedbackText: {},
|
|
22
|
+
feedbackStatus: {},
|
|
23
|
+
asterisk: { type: Boolean },
|
|
24
|
+
colon: { type: Boolean },
|
|
25
|
+
labelAlign: {},
|
|
26
|
+
wrapperAlign: {},
|
|
27
|
+
labelWrap: { type: Boolean },
|
|
28
|
+
labelWidth: {},
|
|
29
|
+
wrapperWidth: {},
|
|
30
|
+
labelCol: {},
|
|
31
|
+
wrapperCol: {},
|
|
32
|
+
fullness: { type: Boolean },
|
|
33
|
+
size: { default: "default" },
|
|
34
|
+
layout: {},
|
|
35
|
+
feedbackLayout: { default: "popover" },
|
|
36
|
+
tooltipLayout: {},
|
|
37
|
+
editProps: {}
|
|
38
|
+
},
|
|
39
|
+
setup(__props) {
|
|
40
|
+
const props = __props;
|
|
41
|
+
const fieldRef = useField();
|
|
42
|
+
const innerRef = ref(null);
|
|
43
|
+
const prefixCls = `${stylePrefix}-editable`;
|
|
44
|
+
const formItemRef = ref(null);
|
|
45
|
+
const commonProps = computed(() => omit(props, "editProps"));
|
|
46
|
+
const editProps = computed(() => {
|
|
47
|
+
if (isPlainObj(props.editProps)) return {
|
|
48
|
+
...omit(props, "editProps"),
|
|
49
|
+
...props.editProps
|
|
50
|
+
};
|
|
51
|
+
return omit(props, "editProps");
|
|
52
|
+
});
|
|
53
|
+
function handleEnsureReadPretty() {
|
|
54
|
+
if (!isValid(fieldRef.value.data)) fieldRef.value.data = {};
|
|
55
|
+
}
|
|
56
|
+
handleEnsureReadPretty();
|
|
57
|
+
fieldRef.value.data.readPretty = true;
|
|
58
|
+
async function onClick() {
|
|
59
|
+
if (fieldRef.value.disabled) return;
|
|
60
|
+
handleEnsureReadPretty();
|
|
61
|
+
fieldRef.value.data.readPretty = false;
|
|
62
|
+
await nextTick();
|
|
63
|
+
formItemRef.value.feedbackTooltipRef.updatePopper();
|
|
64
|
+
innerRef.value?.querySelector("input")?.focus();
|
|
65
|
+
}
|
|
66
|
+
function onClickOutside() {
|
|
67
|
+
if (fieldRef.value.data?.readPretty === true) return;
|
|
68
|
+
handleEnsureReadPretty();
|
|
69
|
+
setTimeout(async () => {
|
|
70
|
+
fieldRef.value.data.readPretty = true;
|
|
71
|
+
await nextTick();
|
|
72
|
+
formItemRef.value?.feedbackTooltipRef.updatePopper();
|
|
73
|
+
}, 0);
|
|
74
|
+
}
|
|
75
|
+
return (_ctx, _cache) => {
|
|
76
|
+
return openBlock(), createElementBlock("div", {
|
|
77
|
+
ref_key: "innerRef",
|
|
78
|
+
ref: innerRef,
|
|
79
|
+
class: normalizeClass([prefixCls, unref(fieldRef).disabled && "is-disabled"])
|
|
80
|
+
}, [withDirectives((openBlock(), createElementBlock("div", { class: normalizeClass(`${prefixCls}-content`) }, [createVNode(unref(_sfc_main$1), mergeProps({
|
|
81
|
+
ref_key: "formItemRef",
|
|
82
|
+
ref: formItemRef
|
|
83
|
+
}, unref(fieldRef).data?.readPretty === false ? editProps.value : commonProps.value, { onClick }), {
|
|
84
|
+
default: withCtx(() => [createElementVNode("div", null, [renderSlot(_ctx.$slots, "default")])]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 16), !unref(fieldRef).disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(fieldRef).data?.readPretty === true ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
87
|
+
key: 0,
|
|
88
|
+
size: props.size,
|
|
89
|
+
"feedback-layout": props.feedbackLayout
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => [createVNode(unref(Edit), {
|
|
92
|
+
class: normalizeClass(`${prefixCls}-edit-btn`),
|
|
93
|
+
onClick
|
|
94
|
+
}, null, 8, ["class"])]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["size", "feedback-layout"])) : (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
97
|
+
key: 1,
|
|
98
|
+
size: props.size,
|
|
99
|
+
"feedback-layout": props.feedbackLayout
|
|
100
|
+
}, {
|
|
101
|
+
default: withCtx(() => [createVNode(unref(Close), {
|
|
102
|
+
class: normalizeClass(`${prefixCls}-close-btn`),
|
|
103
|
+
onClick: onClickOutside
|
|
104
|
+
}, null, 8, ["class"])]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["size", "feedback-layout"]))], 64)) : createCommentVNode("v-if", true)], 2)), [[unref(ClickOutside), onClickOutside]])], 2);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { _sfc_main as default };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=editable.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editable.mjs","names":[],"sources":["../../src/editable/editable.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { Field } from '@formily/core'\nimport type { IFormItemProps } from '../form-item/types'\nimport { Close, Edit } from '@element-plus/icons-vue'\nimport { isPlainObj, isValid } from '@formily/shared'\nimport { useField } from '@silver-formily/vue'\nimport { ClickOutside as vClickOutside } from 'element-plus'\nimport { omit } from 'lodash-es'\nimport { computed, nextTick, ref } from 'vue'\nimport { stylePrefix } from '../__builtins__/configs'\nimport { FormBaseItem } from '../form-item'\n\ndefineOptions({\n name: 'FEditable',\n})\n\nconst props = withDefaults(defineProps<IFormItemProps & { editProps?: IFormItemProps }>(), {\n feedbackLayout: 'popover',\n size: 'default',\n})\n\nconst fieldRef = useField<Field>()\nconst innerRef = ref<HTMLElement>(null)\nconst prefixCls = `${stylePrefix}-editable`\nconst formItemRef = ref<InstanceType<typeof FormBaseItem>>(null)\n\nconst commonProps = computed(() => omit(props, 'editProps'))\nconst editProps = computed(() => {\n if (isPlainObj(props.editProps)) {\n return { ...omit(props, 'editProps'), ...props.editProps }\n }\n return omit(props, 'editProps')\n})\n\nfunction handleEnsureReadPretty() {\n if (!isValid(fieldRef.value.data)) {\n fieldRef.value.data = {}\n }\n}\n\nhandleEnsureReadPretty()\nfieldRef.value.data.readPretty = true\n\nasync function onClick() {\n if (fieldRef.value.disabled)\n return\n handleEnsureReadPretty()\n fieldRef.value.data.readPretty = false\n await nextTick()\n formItemRef.value.feedbackTooltipRef.updatePopper()\n innerRef.value?.querySelector('input')?.focus()\n}\n\nfunction onClickOutside() {\n if (fieldRef.value.data?.readPretty === true)\n return\n handleEnsureReadPretty()\n // 使用下拉菜单等触发的事件完成应有的操作\n setTimeout(async () => {\n fieldRef.value.data.readPretty = true\n await nextTick()\n formItemRef.value?.feedbackTooltipRef.updatePopper()\n }, 0)\n}\n</script>\n\n<template>\n <div ref=\"innerRef\" :class=\"[prefixCls, fieldRef.disabled && 'is-disabled']\">\n <div v-click-outside=\"onClickOutside\" :class=\"`${prefixCls}-content`\">\n <FormBaseItem ref=\"formItemRef\" v-bind=\"fieldRef.data?.readPretty === false ? editProps : commonProps\" @click=\"onClick\">\n <div>\n <slot />\n </div>\n </FormBaseItem>\n <template v-if=\"!fieldRef.disabled\">\n <template v-if=\"fieldRef.data?.readPretty === true\">\n <FormBaseItem :size=\"props.size\" :feedback-layout=\"props.feedbackLayout\">\n <Edit :class=\"`${prefixCls}-edit-btn`\" @click=\"onClick\" />\n </FormBaseItem>\n </template>\n <template v-else>\n <FormBaseItem :size=\"props.size\" :feedback-layout=\"props.feedbackLayout\">\n <Close :class=\"`${prefixCls}-close-btn`\" @click=\"onClickOutside\" />\n </FormBaseItem>\n </template>\n </template>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,QAAQ;EAKd,MAAM,WAAW,UAAgB;EACjC,MAAM,WAAW,IAAiB,KAAI;EACtC,MAAM,YAAY,GAAG,YAAY;EACjC,MAAM,cAAc,IAAuC,KAAI;EAE/D,MAAM,cAAc,eAAe,KAAK,OAAO,YAAY,CAAA;EAC3D,MAAM,YAAY,eAAe;AAC/B,OAAI,WAAW,MAAM,UAAU,CAC7B,QAAO;IAAE,GAAG,KAAK,OAAO,YAAY;IAAE,GAAG,MAAM;IAAU;AAE3D,UAAO,KAAK,OAAO,YAAW;IAC/B;EAED,SAAS,yBAAyB;AAChC,OAAI,CAAC,QAAQ,SAAS,MAAM,KAAK,CAC/B,UAAS,MAAM,OAAO,EAAC;;AAI3B,0BAAuB;AACvB,WAAS,MAAM,KAAK,aAAa;EAEjC,eAAe,UAAU;AACvB,OAAI,SAAS,MAAM,SACjB;AACF,2BAAuB;AACvB,YAAS,MAAM,KAAK,aAAa;AACjC,SAAM,UAAS;AACf,eAAY,MAAM,mBAAmB,cAAa;AAClD,YAAS,OAAO,cAAc,QAAQ,EAAE,OAAM;;EAGhD,SAAS,iBAAiB;AACxB,OAAI,SAAS,MAAM,MAAM,eAAe,KACtC;AACF,2BAAuB;AAEvB,cAAW,YAAY;AACrB,aAAS,MAAM,KAAK,aAAa;AACjC,UAAM,UAAS;AACf,gBAAY,OAAO,mBAAmB,cAAa;MAClD,EAAC;;;uBAKJ,mBAoBM,OAAA;aApBG;IAAJ,KAAI;IAAY,OAAK,eAAA,CAAG,WAAW,MAAA,SAAQ,CAAC,YAAQ,cAAA,CAAA;oCACvD,mBAkBM,OAAA,EAlBiC,OAAK,eAAA,GAAK,UAAS,UAAA,EAAA,EAAA,CACxD,YAIe,MAAA,YAAA,EAJf,WAIe;aAJG;IAAJ,KAAI;MAAsB,MAAA,SAAQ,CAAC,MAAM,eAAU,QAAa,UAAA,QAAY,YAAA,OAAW,EAAU,SAAO,CAAA,EAAA;2BAG9G,CAFN,mBAEM,OAAA,MAAA,CADJ,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA,CAAA,CAAA;;YAGK,MAAA,SAAQ,CAAC,YAAA,WAAA,EAA1B,mBAWW,UAAA,EAAA,KAAA,GAAA,EAAA,CAVO,MAAA,SAAQ,CAAC,MAAM,eAAU,QAAA,WAAA,EACvC,YAEe,MAAA,YAAA,EAAA;;IAFA,MAAM,MAAM;IAAO,mBAAiB,MAAM;;2BACG,CAA1D,YAA0D,MAAA,KAAA,EAAA;KAAnD,OAAK,eAAA,GAAK,UAAS,WAAA;KAAqB;;;uDAIjD,YAEe,MAAA,YAAA,EAAA;;IAFA,MAAM,MAAM;IAAO,mBAAiB,MAAM;;2BACY,CAAnE,YAAmE,MAAA,MAAA,EAAA;KAA3D,OAAK,eAAA,GAAK,UAAS,YAAA;KAAe,SAAO;;;+GAdnC,eAAc,CAAA,CAAA,CAAA,EAAA,EAAA"}
|
package/esm/editable/index.d.ts
CHANGED
|
@@ -1,150 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
12
|
-
innerRef: HTMLDivElement;
|
|
13
|
-
formItemRef: {
|
|
14
|
-
$: import('vue').ComponentInternalInstance;
|
|
15
|
-
$data: {};
|
|
16
|
-
$props: Partial<{
|
|
17
|
-
asterisk: boolean;
|
|
18
|
-
colon: boolean;
|
|
19
|
-
labelWrap: boolean;
|
|
20
|
-
fullness: boolean;
|
|
21
|
-
}> & Omit<{
|
|
22
|
-
readonly internalFormItemClass?: string;
|
|
23
|
-
readonly label?: import('../form-item/types').FormItemContent;
|
|
24
|
-
readonly for?: string;
|
|
25
|
-
readonly tooltip?: import('../form-item/types').FormItemContent;
|
|
26
|
-
readonly addonBefore?: import('../form-item/types').FormItemContent;
|
|
27
|
-
readonly addonAfter?: import('../form-item/types').FormItemContent;
|
|
28
|
-
readonly extra?: import('../form-item/types').FormItemContent;
|
|
29
|
-
readonly feedbackText?: import('../form-item/types').FormItemContent;
|
|
30
|
-
readonly feedbackStatus?: "error" | "warning" | "success" | "pending";
|
|
31
|
-
readonly asterisk?: boolean;
|
|
32
|
-
readonly colon?: boolean;
|
|
33
|
-
readonly labelAlign?: "right" | "left";
|
|
34
|
-
readonly wrapperAlign?: "right" | "left";
|
|
35
|
-
readonly labelWrap?: boolean;
|
|
36
|
-
readonly labelWidth?: number;
|
|
37
|
-
readonly wrapperWidth?: number;
|
|
38
|
-
readonly labelCol?: number;
|
|
39
|
-
readonly wrapperCol?: number;
|
|
40
|
-
readonly fullness?: boolean;
|
|
41
|
-
readonly size?: "small" | "default" | "large";
|
|
42
|
-
readonly layout?: "vertical" | "horizontal" | "inline" | ("vertical" | "horizontal" | "inline")[];
|
|
43
|
-
readonly feedbackLayout?: "loose" | "terse" | "popover";
|
|
44
|
-
readonly tooltipLayout?: "icon" | "text";
|
|
45
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "asterisk" | "colon" | "labelWrap" | "fullness">;
|
|
46
|
-
$attrs: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
};
|
|
49
|
-
$refs: any;
|
|
50
|
-
$slots: Readonly<{
|
|
51
|
-
[name: string]: import('vue').Slot<any>;
|
|
52
|
-
}>;
|
|
53
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
54
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
55
|
-
$host: Element | null;
|
|
56
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
57
|
-
$el: any;
|
|
58
|
-
$options: import('vue').ComponentOptionsBase<Readonly<IFormItemProps> & Readonly<{}>, {
|
|
59
|
-
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
60
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
61
|
-
asterisk: boolean;
|
|
62
|
-
colon: boolean;
|
|
63
|
-
labelWrap: boolean;
|
|
64
|
-
fullness: boolean;
|
|
65
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
66
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
67
|
-
created?: (() => void) | (() => void)[];
|
|
68
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
69
|
-
mounted?: (() => void) | (() => void)[];
|
|
70
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
71
|
-
updated?: (() => void) | (() => void)[];
|
|
72
|
-
activated?: (() => void) | (() => void)[];
|
|
73
|
-
deactivated?: (() => void) | (() => void)[];
|
|
74
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
75
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
76
|
-
destroyed?: (() => void) | (() => void)[];
|
|
77
|
-
unmounted?: (() => void) | (() => void)[];
|
|
78
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
79
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
80
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
81
|
-
};
|
|
82
|
-
$forceUpdate: () => void;
|
|
83
|
-
$nextTick: typeof import('vue').nextTick;
|
|
84
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
85
|
-
} & Readonly<{
|
|
86
|
-
asterisk: boolean;
|
|
87
|
-
colon: boolean;
|
|
88
|
-
labelWrap: boolean;
|
|
89
|
-
fullness: boolean;
|
|
90
|
-
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("asterisk" | "colon" | "labelWrap" | "fullness") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
91
|
-
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
92
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
93
|
-
$slots: any;
|
|
94
|
-
};
|
|
95
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
96
|
-
P: {};
|
|
97
|
-
B: {};
|
|
98
|
-
D: {};
|
|
99
|
-
C: {};
|
|
100
|
-
M: {};
|
|
101
|
-
Defaults: {};
|
|
102
|
-
}, Readonly<IFormItemProps & {
|
|
103
|
-
editProps?: IFormItemProps;
|
|
104
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
105
|
-
size: "small" | "default" | "large";
|
|
106
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
107
|
-
}>;
|
|
108
|
-
__isFragment?: never;
|
|
109
|
-
__isTeleport?: never;
|
|
110
|
-
__isSuspense?: never;
|
|
111
|
-
} & import('vue').ComponentOptionsBase<Readonly<IFormItemProps & {
|
|
112
|
-
editProps?: IFormItemProps;
|
|
113
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
114
|
-
size: "small" | "default" | "large";
|
|
115
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
116
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
117
|
-
$slots: {
|
|
118
|
-
default?(_: {}): any;
|
|
119
|
-
};
|
|
120
|
-
}) & {
|
|
121
|
-
Popover: {
|
|
122
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<IFormItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
123
|
-
size: "small" | "default" | "large";
|
|
124
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
125
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
126
|
-
contentRef: HTMLDivElement;
|
|
127
|
-
}, any, import('vue').ComponentProvideOptions, {
|
|
128
|
-
P: {};
|
|
129
|
-
B: {};
|
|
130
|
-
D: {};
|
|
131
|
-
C: {};
|
|
132
|
-
M: {};
|
|
133
|
-
Defaults: {};
|
|
134
|
-
}, Readonly<IFormItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
135
|
-
size: "small" | "default" | "large";
|
|
136
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
137
|
-
}>;
|
|
138
|
-
__isFragment?: never;
|
|
139
|
-
__isTeleport?: never;
|
|
140
|
-
__isSuspense?: never;
|
|
141
|
-
} & import('vue').ComponentOptionsBase<Readonly<IFormItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
142
|
-
size: "small" | "default" | "large";
|
|
143
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
144
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
145
|
-
$slots: {
|
|
146
|
-
default?(_: {}): any;
|
|
147
|
-
};
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
|
-
export default Editable;
|
|
1
|
+
import { IFormItemProps } from "../form-item/types.js";
|
|
2
|
+
import { ElPopover } from "element-plus";
|
|
3
|
+
|
|
4
|
+
//#region src/editable/index.d.ts
|
|
5
|
+
type EditableProps = IFormItemProps;
|
|
6
|
+
type EditablePopoverProps = typeof ElPopover;
|
|
7
|
+
declare const Editable: any;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Editable, EditablePopoverProps, EditableProps };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|