@silver-formily/element-plus 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en-US.md +1 -1
- package/README.md +1 -1
- package/esm/__builtins__/configs/index.mjs +6 -5
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/shared/load-config-provider.mjs +19 -11
- package/esm/__builtins__/shared/load-config-provider.mjs.map +1 -1
- package/esm/__builtins__/shared/loading.mjs +50 -46
- package/esm/__builtins__/shared/loading.mjs.map +1 -1
- package/esm/__builtins__/shared/simple-version-compare.mjs +16 -15
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
- package/esm/__builtins__/shared/transform-component.mjs +30 -31
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/use-enter-submit.mjs +74 -62
- package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +44 -32
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/_virtual/_/plugin-vue/export-helper.mjs +8 -0
- package/esm/array-base/array-base-addition.mjs +53 -0
- package/esm/array-base/array-base-addition.mjs.map +1 -0
- package/esm/array-base/array-base-index.mjs +17 -0
- package/esm/array-base/array-base-index.mjs.map +1 -0
- package/esm/array-base/array-base-inner.mjs +30 -0
- package/esm/array-base/array-base-inner.mjs.map +1 -0
- package/esm/array-base/array-base-item.mjs +21 -0
- package/esm/array-base/array-base-item.mjs.map +1 -0
- package/esm/array-base/array-base-move-down.mjs +45 -0
- package/esm/array-base/array-base-move-down.mjs.map +1 -0
- package/esm/array-base/array-base-move-up.mjs +45 -0
- package/esm/array-base/array-base-move-up.mjs.map +1 -0
- package/esm/array-base/array-base-remove.mjs +45 -0
- package/esm/array-base/array-base-remove.mjs.map +1 -0
- package/esm/array-base/array-base-sort-handle.mjs +33 -0
- package/esm/array-base/array-base-sort-handle.mjs.map +1 -0
- package/esm/array-base/index.mjs +28 -208
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/style.css +36 -0
- package/esm/array-base/symbols.mjs +7 -6
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/types.d.ts +23 -24
- package/esm/array-base/utils.d.ts +11 -17
- package/esm/array-base/utils.mjs +58 -60
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/array-cards.mjs +109 -0
- package/esm/array-cards/array-cards.mjs.map +1 -0
- package/esm/array-cards/index.d.ts +120 -113
- package/esm/array-cards/index.mjs +19 -118
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-cards/style.css +20 -0
- package/esm/array-collapse/array-collapse-item.mjs +74 -0
- package/esm/array-collapse/array-collapse-item.mjs.map +1 -0
- package/esm/array-collapse/array-collapse.mjs +117 -0
- package/esm/array-collapse/array-collapse.mjs.map +1 -0
- package/esm/array-collapse/index.d.ts +137 -129
- package/esm/array-collapse/index.mjs +21 -174
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/style.css +20 -0
- package/esm/array-collapse/utils.mjs +7 -12
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/array-items-item.mjs +22 -0
- package/esm/array-items/array-items-item.mjs.map +1 -0
- package/esm/array-items/array-items.mjs +88 -0
- package/esm/array-items/array-items.mjs.map +1 -0
- package/esm/array-items/index.d.ts +132 -125
- package/esm/array-items/index.mjs +21 -107
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-items/style.css +22 -0
- package/esm/array-list-tabs/array-list-tabs.mjs +191 -0
- package/esm/array-list-tabs/array-list-tabs.mjs.map +1 -0
- package/esm/array-list-tabs/index.d.ts +80 -74
- package/esm/array-list-tabs/index.mjs +12 -186
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/style.css +90 -0
- package/esm/array-list-tabs/utils.mjs +11 -15
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/array-table.mjs +236 -0
- package/esm/array-table/array-table.mjs.map +1 -0
- package/esm/array-table/index.d.ts +106 -1597
- package/esm/array-table/index.mjs +24 -223
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/style.css +23 -0
- package/esm/array-table/types.d.ts +11 -6
- package/esm/array-table/utils.mjs +14 -22
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/array-tabs.mjs +92 -0
- package/esm/array-tabs/array-tabs.mjs.map +1 -0
- package/esm/array-tabs/index.d.ts +7 -2
- package/esm/array-tabs/index.mjs +8 -84
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/array-tabs/style.css +7 -0
- package/esm/autocomplete/autocomplete.mjs +99 -0
- package/esm/autocomplete/autocomplete.mjs.map +1 -0
- package/esm/autocomplete/index.d.ts +5 -639
- package/esm/autocomplete/index.mjs +14 -113
- package/esm/autocomplete/index.mjs.map +1 -1
- package/esm/cascader/cascader.mjs +32 -0
- package/esm/cascader/cascader.mjs.map +1 -0
- package/esm/cascader/index.d.ts +5 -28
- package/esm/cascader/index.mjs +13 -50
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.mjs +64 -0
- package/esm/checkbox/checkbox-group.mjs.map +1 -0
- package/esm/checkbox/index.d.ts +5 -817
- package/esm/checkbox/index.mjs +16 -69
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.d.ts +8 -210
- package/esm/color-picker/index.mjs +13 -17
- package/esm/color-picker/index.mjs.map +1 -1
- package/esm/color-picker-panel/index.d.ts +8 -129
- package/esm/color-picker-panel/index.mjs +16 -25
- package/esm/color-picker-panel/index.mjs.map +1 -1
- package/esm/date-picker/index.d.ts +5 -443
- package/esm/date-picker/index.mjs +21 -29
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/date-picker/utils.mjs +21 -26
- package/esm/date-picker/utils.mjs.map +1 -1
- package/esm/date-picker-panel/index.d.ts +5 -143
- package/esm/date-picker-panel/index.mjs +23 -30
- package/esm/date-picker-panel/index.mjs.map +1 -1
- package/esm/editable/editable-popover.mjs +95 -0
- package/esm/editable/editable-popover.mjs.map +1 -0
- package/esm/editable/editable.mjs +113 -0
- package/esm/editable/editable.mjs.map +1 -0
- package/esm/editable/index.d.ts +10 -150
- package/esm/editable/index.mjs +17 -219
- package/esm/editable/index.mjs.map +1 -1
- package/esm/editable/style.css +29 -0
- package/esm/form/form.mjs +50 -70
- package/esm/form/form.mjs.map +1 -1
- package/esm/form/form.vue.d.ts +48 -0
- package/esm/form/index.d.ts +1 -1
- package/esm/form-button-group/form-button-group-sticky.mjs +37 -0
- package/esm/form-button-group/form-button-group-sticky.mjs.map +1 -0
- package/esm/form-button-group/form-button-group.mjs +71 -0
- package/esm/form-button-group/form-button-group.mjs.map +1 -0
- package/esm/form-button-group/index.d.ts +94 -87
- package/esm/form-button-group/index.mjs +10 -96
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/style.css +281 -0
- package/esm/form-button-group/utils.mjs +7 -12
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/form-collapse.mjs +74 -0
- package/esm/form-collapse/form-collapse.mjs.map +1 -0
- package/esm/form-collapse/index.d.ts +43 -39
- package/esm/form-collapse/index.mjs +20 -86
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/style.css +7 -0
- package/esm/form-collapse/utils.d.ts +21 -27
- package/esm/form-collapse/utils.mjs +48 -46
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/dialog-content.mjs +118 -0
- package/esm/form-dialog/dialog-content.mjs.map +1 -0
- package/esm/form-dialog/index.d.ts +8 -4
- package/esm/form-dialog/index.mjs +142 -211
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +38 -32
- package/esm/form-drawer/drawer-content.mjs +118 -0
- package/esm/form-drawer/drawer-content.mjs.map +1 -0
- package/esm/form-drawer/index.d.ts +8 -4
- package/esm/form-drawer/index.mjs +142 -204
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +38 -32
- package/esm/form-grid/form-grid-column.mjs +28 -0
- package/esm/form-grid/form-grid-column.mjs.map +1 -0
- package/esm/form-grid/form-grid.mjs +69 -0
- package/esm/form-grid/form-grid.mjs.map +1 -0
- package/esm/form-grid/hooks.mjs +7 -7
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.d.ts +5 -2
- package/esm/form-grid/index.mjs +10 -109
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-grid/style.css +128 -0
- package/esm/form-item/form-item.mjs +308 -0
- package/esm/form-item/form-item.mjs.map +1 -0
- package/esm/form-item/form-item.vue.d.ts +29 -0
- package/esm/form-item/index.d.ts +9 -77
- package/esm/form-item/index.mjs +28 -332
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/style.css +263 -0
- package/esm/form-item/types.d.ts +34 -29
- package/esm/form-item/utils.mjs +15 -15
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.mjs +103 -83
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/form-layout.vue.d.ts +28 -0
- package/esm/form-layout/index.d.ts +1 -1
- package/esm/form-layout/types.d.ts +24 -40
- package/esm/form-layout/utils.mjs +73 -99
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/form-step-pane.mjs +15 -0
- package/esm/form-step/form-step-pane.mjs.map +1 -0
- package/esm/form-step/form-step.mjs +63 -0
- package/esm/form-step/form-step.mjs.map +1 -0
- package/esm/form-step/index.d.ts +29 -23
- package/esm/form-step/index.mjs +12 -93
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-step/types.d.ts +19 -19
- package/esm/form-step/utils.d.ts +14 -10
- package/esm/form-step/utils.mjs +75 -59
- package/esm/form-step/utils.mjs.map +1 -1
- package/esm/form-tab/form-tab.mjs +79 -0
- package/esm/form-tab/form-tab.mjs.map +1 -0
- package/esm/form-tab/hooks.mjs +18 -16
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +5 -3
- package/esm/form-tab/index.mjs +10 -76
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/style.css +4 -0
- package/esm/form-tab/utils.mjs +14 -13
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.d.ts +53 -48
- package/esm/index.mjs +50 -103
- package/esm/input/index.d.ts +5 -52
- package/esm/input/index.mjs +16 -68
- package/esm/input/index.mjs.map +1 -1
- package/esm/input/input.mjs +41 -0
- package/esm/input/input.mjs.map +1 -0
- package/esm/input-number/index.d.ts +8 -329
- package/esm/input-number/index.mjs +12 -24
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.d.ts +5 -32
- package/esm/input-tag/index.mjs +13 -49
- package/esm/input-tag/index.mjs.map +1 -1
- package/esm/input-tag/input-tag.mjs +41 -0
- package/esm/input-tag/input-tag.mjs.map +1 -0
- package/esm/mention/index.d.ts +5 -50
- package/esm/mention/index.mjs +15 -96
- package/esm/mention/index.mjs.map +1 -1
- package/esm/mention/mention.mjs +77 -0
- package/esm/mention/mention.mjs.map +1 -0
- package/esm/pagination/components/jumper.mjs +11 -12
- package/esm/pagination/components/jumper.mjs.map +1 -1
- package/esm/pagination/components/jumper2.mjs +59 -0
- package/esm/pagination/components/jumper2.mjs.map +1 -0
- package/esm/pagination/components/next.mjs +18 -22
- package/esm/pagination/components/next.mjs.map +1 -1
- package/esm/pagination/components/next2.mjs +38 -0
- package/esm/pagination/components/next2.mjs.map +1 -0
- package/esm/pagination/components/pager.mjs +21 -22
- package/esm/pagination/components/pager.mjs.map +1 -1
- package/esm/pagination/components/pager2.mjs +229 -0
- package/esm/pagination/components/pager2.mjs.map +1 -0
- package/esm/pagination/components/prev.mjs +16 -22
- package/esm/pagination/components/prev.mjs.map +1 -1
- package/esm/pagination/components/prev2.mjs +38 -0
- package/esm/pagination/components/prev2.mjs.map +1 -0
- package/esm/pagination/components/sizes.mjs +32 -7
- package/esm/pagination/components/sizes.mjs.map +1 -1
- package/esm/pagination/components/sizes2.mjs +66 -0
- package/esm/pagination/components/sizes2.mjs.map +1 -0
- package/esm/pagination/components/total.mjs +10 -11
- package/esm/pagination/components/total.mjs.map +1 -1
- package/esm/pagination/components/total2.mjs +26 -0
- package/esm/pagination/components/total2.mjs.map +1 -0
- package/esm/pagination/pagination.mjs +271 -626
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.d.ts +8 -54
- package/esm/password/index.mjs +11 -14
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/cascader.mjs +51 -0
- package/esm/preview-text/cascader.mjs.map +1 -0
- package/esm/preview-text/color-picker.mjs +37 -0
- package/esm/preview-text/color-picker.mjs.map +1 -0
- package/esm/preview-text/date-picker.mjs +61 -0
- package/esm/preview-text/date-picker.mjs.map +1 -0
- package/esm/preview-text/index.d.ts +107 -106
- package/esm/preview-text/index.mjs +25 -363
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/input.mjs +39 -0
- package/esm/preview-text/input.mjs.map +1 -0
- package/esm/preview-text/preview.mjs +30 -0
- package/esm/preview-text/preview.mjs.map +1 -0
- package/esm/preview-text/rate.mjs +32 -0
- package/esm/preview-text/rate.mjs.map +1 -0
- package/esm/preview-text/select.mjs +42 -0
- package/esm/preview-text/select.mjs.map +1 -0
- package/esm/preview-text/style.css +16 -0
- package/esm/preview-text/time-picker.mjs +39 -0
- package/esm/preview-text/time-picker.mjs.map +1 -0
- package/esm/preview-text/tree.mjs +73 -0
- package/esm/preview-text/tree.mjs.map +1 -0
- package/esm/preview-text/utils.d.ts +10 -13
- package/esm/preview-text/utils.mjs +15 -15
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/query-form/default-components.mjs +45 -45
- package/esm/query-form/default-components.mjs.map +1 -1
- package/esm/query-form/hooks.mjs +31 -26
- package/esm/query-form/hooks.mjs.map +1 -1
- package/esm/query-form/index.d.ts +115 -105
- package/esm/query-form/index.mjs +10 -333
- package/esm/query-form/index.mjs.map +1 -1
- package/esm/query-form/query-form-light.mjs +86 -0
- package/esm/query-form/query-form-light.mjs.map +1 -0
- package/esm/query-form/query-form.mjs +263 -0
- package/esm/query-form/query-form.mjs.map +1 -0
- package/esm/query-form/style.css +27 -0
- package/esm/query-form/types.d.ts +42 -41
- package/esm/query-form-item/index.d.ts +7 -151
- package/esm/query-form-item/index.mjs +15 -183
- package/esm/query-form-item/index.mjs.map +1 -1
- package/esm/query-form-item/query-form-item.mjs +195 -0
- package/esm/query-form-item/query-form-item.mjs.map +1 -0
- package/esm/query-form-item/style.css +12 -0
- package/esm/query-form-item/types.d.ts +42 -38
- package/esm/radio/index.d.ts +429 -473
- package/esm/radio/index.mjs +15 -68
- package/esm/radio/index.mjs.map +1 -1
- package/esm/radio/radio-group.mjs +70 -0
- package/esm/radio/radio-group.mjs.map +1 -0
- package/esm/{styles/radio/index.css → radio/style.css} +3 -1
- package/esm/rate/index.d.ts +8 -187
- package/esm/rate/index.mjs +13 -17
- package/esm/rate/index.mjs.map +1 -1
- package/esm/reset/index.d.ts +5 -2
- package/esm/reset/index.mjs +8 -44
- package/esm/reset/index.mjs.map +1 -1
- package/esm/reset/reset.mjs +42 -0
- package/esm/reset/reset.mjs.map +1 -0
- package/esm/segmented/index.d.ts +5 -26
- package/esm/segmented/index.mjs +13 -40
- package/esm/segmented/index.mjs.map +1 -1
- package/esm/segmented/segmented.mjs +26 -0
- package/esm/segmented/segmented.mjs.map +1 -0
- package/esm/select/index.d.ts +5 -129
- package/esm/select/index.mjs +14 -127
- package/esm/select/index.mjs.map +1 -1
- package/esm/select/select.mjs +95 -0
- package/esm/select/select.mjs.map +1 -0
- package/esm/select-table/index.d.ts +4 -1557
- package/esm/select-table/index.mjs +12 -204
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.mjs +202 -0
- package/esm/select-table/select-table.mjs.map +1 -0
- package/esm/select-table/style.css +14 -0
- package/esm/shared/overlay-elements.mjs +15 -16
- package/esm/shared/overlay-elements.mjs.map +1 -1
- package/esm/shared/url-change-listener.mjs +50 -0
- package/esm/shared/url-change-listener.mjs.map +1 -0
- package/esm/slider/index.d.ts +8 -177
- package/esm/slider/index.mjs +13 -17
- package/esm/slider/index.mjs.map +1 -1
- package/esm/space/index.d.ts +2 -1
- package/esm/space/index.mjs +2 -6
- package/esm/submit/index.d.ts +5 -2
- package/esm/submit/index.mjs +8 -40
- package/esm/submit/index.mjs.map +1 -1
- package/esm/submit/submit.mjs +41 -0
- package/esm/submit/submit.mjs.map +1 -0
- package/esm/switch/index.d.ts +8 -299
- package/esm/switch/index.mjs +8 -13
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.d.ts +8 -445
- package/esm/time-picker/index.mjs +10 -17
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +5 -185
- package/esm/time-select/index.mjs +13 -17
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +8 -267
- package/esm/transfer/index.mjs +8 -11
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.d.ts +4 -41
- package/esm/tree/index.mjs +14 -104
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/tree.mjs +127 -0
- package/esm/tree/tree.mjs.map +1 -0
- package/esm/tree/utils.mjs +157 -149
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.d.ts +5 -16
- package/esm/tree-select/index.mjs +13 -40
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/tree-select/tree-select.mjs +38 -0
- package/esm/tree-select/tree-select.mjs.map +1 -0
- package/esm/upload/index.d.ts +5 -712
- package/esm/upload/index.mjs +11 -172
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.mjs +176 -0
- package/esm/upload/upload.mjs.map +1 -0
- package/package.json +23 -24
- package/esm/__builtins__/configs/index.d.ts +0 -1
- package/esm/__builtins__/index.d.ts +0 -2
- package/esm/__builtins__/index.mjs +0 -23
- package/esm/__builtins__/index.mjs.map +0 -1
- package/esm/__builtins__/shared/index.d.ts +0 -6
- package/esm/__builtins__/shared/index.mjs +0 -21
- package/esm/__builtins__/shared/index.mjs.map +0 -1
- package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
- package/esm/__builtins__/shared/loading.d.ts +0 -12
- package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
- package/esm/__builtins__/shared/transform-component.d.ts +0 -3
- package/esm/__builtins__/shared/types.d.ts +0 -2
- package/esm/__builtins__/shared/types.mjs +0 -2
- package/esm/__builtins__/shared/types.mjs.map +0 -1
- package/esm/__builtins__/shared/use-enter-submit.d.ts +0 -9
- package/esm/__builtins__/shared/utils.d.ts +0 -9
- package/esm/array-base/array-base-addition.d.ts +0 -5
- package/esm/array-base/array-base-index.d.ts +0 -19
- package/esm/array-base/array-base-inner.d.ts +0 -18
- package/esm/array-base/array-base-item.d.ts +0 -18
- package/esm/array-base/array-base-move-down.d.ts +0 -18
- package/esm/array-base/array-base-move-up.d.ts +0 -18
- package/esm/array-base/array-base-remove.d.ts +0 -18
- package/esm/array-base/array-base-sort-handle.d.ts +0 -2
- package/esm/array-base/index.d.ts +0 -114
- package/esm/array-base/symbols.d.ts +0 -4
- package/esm/array-base/types.mjs +0 -2
- package/esm/array-base/types.mjs.map +0 -1
- package/esm/array-cards/array-cards.d.ts +0 -13
- package/esm/array-collapse/array-collapse-item.d.ts +0 -18
- package/esm/array-collapse/array-collapse.d.ts +0 -16
- package/esm/array-collapse/utils.d.ts +0 -1
- package/esm/array-items/array-items-item.d.ts +0 -30
- package/esm/array-items/array-items.d.ts +0 -2
- package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
- package/esm/array-list-tabs/utils.d.ts +0 -3
- package/esm/array-table/array-table.d.ts +0 -1505
- package/esm/array-table/types.mjs +0 -2
- package/esm/array-table/types.mjs.map +0 -1
- package/esm/array-table/utils.d.ts +0 -5
- package/esm/array-tabs/array-tabs.d.ts +0 -2
- package/esm/autocomplete/autocomplete.d.ts +0 -1222
- package/esm/cascader/cascader.d.ts +0 -25
- package/esm/checkbox/checkbox-group.d.ts +0 -42
- package/esm/date-picker/utils.d.ts +0 -4
- package/esm/editable/editable-popover.d.ts +0 -25
- package/esm/editable/editable.d.ts +0 -193
- package/esm/env.d.d.ts +0 -1
- package/esm/env.d.mjs +0 -2
- package/esm/env.d.mjs.map +0 -1
- package/esm/form/form.d.ts +0 -46
- package/esm/form/index.mjs +0 -6
- package/esm/form/index.mjs.map +0 -1
- package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
- package/esm/form-button-group/form-button-group.d.ts +0 -57
- package/esm/form-button-group/utils.d.ts +0 -1
- package/esm/form-collapse/form-collapse.d.ts +0 -18
- package/esm/form-dialog/dialog-content.d.ts +0 -846
- package/esm/form-dialog/types.mjs +0 -2
- package/esm/form-dialog/types.mjs.map +0 -1
- package/esm/form-drawer/drawer-content.d.ts +0 -976
- package/esm/form-drawer/types.mjs +0 -2
- package/esm/form-drawer/types.mjs.map +0 -1
- package/esm/form-grid/form-grid-column.d.ts +0 -29
- package/esm/form-grid/form-grid.d.ts +0 -101
- package/esm/form-grid/hooks.d.ts +0 -4
- package/esm/form-item/form-item.d.ts +0 -19
- package/esm/form-item/types.mjs +0 -2
- package/esm/form-item/types.mjs.map +0 -1
- package/esm/form-item/utils.d.ts +0 -3
- package/esm/form-layout/form-layout.d.ts +0 -31
- package/esm/form-layout/index.mjs +0 -6
- package/esm/form-layout/index.mjs.map +0 -1
- package/esm/form-layout/types.mjs +0 -2
- package/esm/form-layout/types.mjs.map +0 -1
- package/esm/form-layout/utils.d.ts +0 -57
- package/esm/form-step/form-step-pane.d.ts +0 -2
- package/esm/form-step/form-step.d.ts +0 -5
- package/esm/form-step/types.mjs +0 -2
- package/esm/form-step/types.mjs.map +0 -1
- package/esm/form-tab/form-tab.d.ts +0 -7
- package/esm/form-tab/hooks.d.ts +0 -8
- package/esm/form-tab/types.d.ts +0 -12
- package/esm/form-tab/types.mjs +0 -2
- package/esm/form-tab/types.mjs.map +0 -1
- package/esm/form-tab/utils.d.ts +0 -4
- package/esm/index.mjs.map +0 -1
- package/esm/input/input.d.ts +0 -25
- package/esm/input-tag/input-tag.d.ts +0 -32
- package/esm/mention/mention.d.ts +0 -51
- package/esm/pagination/components/jumper.d.ts +0 -16
- package/esm/pagination/components/next.d.ts +0 -42
- package/esm/pagination/components/pager.d.ts +0 -42
- package/esm/pagination/components/prev.d.ts +0 -39
- package/esm/pagination/components/sizes.d.ts +0 -56
- package/esm/pagination/components/total.d.ts +0 -8
- package/esm/pagination/pagination.d.ts +0 -128
- package/esm/preview-text/cascader.d.ts +0 -5
- package/esm/preview-text/color-picker.d.ts +0 -5
- package/esm/preview-text/date-picker.d.ts +0 -5
- package/esm/preview-text/input.d.ts +0 -28
- package/esm/preview-text/preview.d.ts +0 -18
- package/esm/preview-text/rate.d.ts +0 -5
- package/esm/preview-text/select.d.ts +0 -5
- package/esm/preview-text/time-picker.d.ts +0 -5
- package/esm/preview-text/tree.d.ts +0 -22
- package/esm/query-form/default-components.d.ts +0 -5
- package/esm/query-form/hooks.d.ts +0 -25
- package/esm/query-form/query-form-light.d.ts +0 -27
- package/esm/query-form/query-form.d.ts +0 -52
- package/esm/query-form/types.mjs +0 -2
- package/esm/query-form/types.mjs.map +0 -1
- package/esm/query-form-item/query-form-item.d.ts +0 -96
- package/esm/query-form-item/types.mjs +0 -2
- package/esm/query-form-item/types.mjs.map +0 -1
- package/esm/radio/radio-group.d.ts +0 -33
- package/esm/reset/reset.d.ts +0 -45
- package/esm/segmented/segmented.d.ts +0 -25
- package/esm/select/select.d.ts +0 -45
- package/esm/select-table/select-table.d.ts +0 -3030
- package/esm/select-table/types.d.ts +0 -17
- package/esm/select-table/types.mjs +0 -2
- package/esm/select-table/types.mjs.map +0 -1
- package/esm/shared/overlay-elements.d.ts +0 -6
- package/esm/space/index.mjs.map +0 -1
- package/esm/styles/array-base/index.css +0 -1
- package/esm/styles/array-cards/index.css +0 -1
- package/esm/styles/array-collapse/index.css +0 -1
- package/esm/styles/array-items/index.css +0 -1
- package/esm/styles/array-list-tabs/index.css +0 -1
- package/esm/styles/array-table/index.css +0 -1
- package/esm/styles/array-tabs/index.css +0 -1
- package/esm/styles/editable/index.css +0 -1
- package/esm/styles/form-button-group/index.css +0 -1
- package/esm/styles/form-collapse/index.css +0 -1
- package/esm/styles/form-grid/index.css +0 -1
- package/esm/styles/form-item/index.css +0 -1
- package/esm/styles/form-tab/index.css +0 -1
- package/esm/styles/preview-text/index.css +0 -1
- package/esm/styles/query-form/index.css +0 -1
- package/esm/styles/query-form-item/index.css +0 -1
- package/esm/styles/select-table/index.css +0 -1
- package/esm/submit/submit.d.ts +0 -36
- package/esm/tree/tree.d.ts +0 -20
- package/esm/tree/types.d.ts +0 -13
- package/esm/tree/types.mjs +0 -2
- package/esm/tree/types.mjs.map +0 -1
- package/esm/tree/utils.d.ts +0 -45
- package/esm/tree-select/tree-select.d.ts +0 -10
- package/esm/upload/upload.d.ts +0 -1259
- package/esm/vendor/icon.mjs +0 -11
- package/esm/vendor/icon.mjs.map +0 -1
- package/esm/vendor/lodash.mjs +0 -1506
- package/esm/vendor/lodash.mjs.map +0 -1
- package/esm/vendor/runtime.mjs +0 -34
- package/esm/vendor/runtime.mjs.map +0 -1
- package/esm/vendor/shared.esm-bundler.mjs +0 -9
- package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
- package/esm/vendor/sizes.mjs +0 -27
- package/esm/vendor/sizes.mjs.map +0 -1
- package/esm/vendor/types.mjs +0 -19
- package/esm/vendor/types.mjs.map +0 -1
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
.formily-element-plus-form-item--isolated {
|
|
2
|
+
display: flex;
|
|
3
|
+
--font-size: 14px;
|
|
4
|
+
--el-form-label-font-size: var(--font-size);
|
|
5
|
+
}
|
|
6
|
+
.formily-element-plus-form-item--isolated.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label-wrap > .el-form-item__label::before, .formily-element-plus-form-item--isolated.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label::before {
|
|
7
|
+
color: var(--el-color-danger);
|
|
8
|
+
content: "*";
|
|
9
|
+
margin-right: 4px;
|
|
10
|
+
}
|
|
11
|
+
.formily-element-plus-form-item--isolated.is-required:not(.is-no-asterisk).asterisk-right > .el-form-item__label-wrap > .el-form-item__label::after, .formily-element-plus-form-item--isolated.is-required:not(.is-no-asterisk).asterisk-right > .el-form-item__label::after {
|
|
12
|
+
color: var(--el-color-danger);
|
|
13
|
+
content: "*";
|
|
14
|
+
margin-left: 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.formily-element-plus-form-item .el-form-item__content {
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
.formily-element-plus-form-item.el-form-item--label-top .el-form-item__label {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-0 {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-1 {
|
|
28
|
+
flex: 0 0 4.1666666667%;
|
|
29
|
+
max-width: 4.1666666667%;
|
|
30
|
+
}
|
|
31
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-2 {
|
|
32
|
+
flex: 0 0 8.3333333333%;
|
|
33
|
+
max-width: 8.3333333333%;
|
|
34
|
+
}
|
|
35
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-3 {
|
|
36
|
+
flex: 0 0 12.5%;
|
|
37
|
+
max-width: 12.5%;
|
|
38
|
+
}
|
|
39
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-4 {
|
|
40
|
+
flex: 0 0 16.6666666667%;
|
|
41
|
+
max-width: 16.6666666667%;
|
|
42
|
+
}
|
|
43
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-5 {
|
|
44
|
+
flex: 0 0 20.8333333333%;
|
|
45
|
+
max-width: 20.8333333333%;
|
|
46
|
+
}
|
|
47
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-6 {
|
|
48
|
+
flex: 0 0 25%;
|
|
49
|
+
max-width: 25%;
|
|
50
|
+
}
|
|
51
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-7 {
|
|
52
|
+
flex: 0 0 29.1666666667%;
|
|
53
|
+
max-width: 29.1666666667%;
|
|
54
|
+
}
|
|
55
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-8 {
|
|
56
|
+
flex: 0 0 33.3333333333%;
|
|
57
|
+
max-width: 33.3333333333%;
|
|
58
|
+
}
|
|
59
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-9 {
|
|
60
|
+
flex: 0 0 37.5%;
|
|
61
|
+
max-width: 37.5%;
|
|
62
|
+
}
|
|
63
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-10 {
|
|
64
|
+
flex: 0 0 41.6666666667%;
|
|
65
|
+
max-width: 41.6666666667%;
|
|
66
|
+
}
|
|
67
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-11 {
|
|
68
|
+
flex: 0 0 45.8333333333%;
|
|
69
|
+
max-width: 45.8333333333%;
|
|
70
|
+
}
|
|
71
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-12 {
|
|
72
|
+
flex: 0 0 50%;
|
|
73
|
+
max-width: 50%;
|
|
74
|
+
}
|
|
75
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-13 {
|
|
76
|
+
flex: 0 0 54.1666666667%;
|
|
77
|
+
max-width: 54.1666666667%;
|
|
78
|
+
}
|
|
79
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-14 {
|
|
80
|
+
flex: 0 0 58.3333333333%;
|
|
81
|
+
max-width: 58.3333333333%;
|
|
82
|
+
}
|
|
83
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-15 {
|
|
84
|
+
flex: 0 0 62.5%;
|
|
85
|
+
max-width: 62.5%;
|
|
86
|
+
}
|
|
87
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-16 {
|
|
88
|
+
flex: 0 0 66.6666666667%;
|
|
89
|
+
max-width: 66.6666666667%;
|
|
90
|
+
}
|
|
91
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-17 {
|
|
92
|
+
flex: 0 0 70.8333333333%;
|
|
93
|
+
max-width: 70.8333333333%;
|
|
94
|
+
}
|
|
95
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-18 {
|
|
96
|
+
flex: 0 0 75%;
|
|
97
|
+
max-width: 75%;
|
|
98
|
+
}
|
|
99
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-19 {
|
|
100
|
+
flex: 0 0 79.1666666667%;
|
|
101
|
+
max-width: 79.1666666667%;
|
|
102
|
+
}
|
|
103
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-20 {
|
|
104
|
+
flex: 0 0 83.3333333333%;
|
|
105
|
+
max-width: 83.3333333333%;
|
|
106
|
+
}
|
|
107
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-21 {
|
|
108
|
+
flex: 0 0 87.5%;
|
|
109
|
+
max-width: 87.5%;
|
|
110
|
+
}
|
|
111
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-22 {
|
|
112
|
+
flex: 0 0 91.6666666667%;
|
|
113
|
+
max-width: 91.6666666667%;
|
|
114
|
+
}
|
|
115
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-23 {
|
|
116
|
+
flex: 0 0 95.8333333333%;
|
|
117
|
+
max-width: 95.8333333333%;
|
|
118
|
+
}
|
|
119
|
+
.formily-element-plus-form-item .formily-element-plus-form-item-col-24 {
|
|
120
|
+
flex: 0 0 100%;
|
|
121
|
+
max-width: 100%;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.formily-element-plus-form-item-label__wrapper {
|
|
125
|
+
display: flex;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.is-warp .formily-element-plus-form-item-label-content > span {
|
|
130
|
+
overflow: visible;
|
|
131
|
+
white-space: wrap;
|
|
132
|
+
}
|
|
133
|
+
.is-warp .el-form-item__content {
|
|
134
|
+
align-items: flex-start;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
}
|
|
137
|
+
.is-warp .el-form-item__label {
|
|
138
|
+
height: auto;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.formily-element-plus-form-item-label-content {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
flex: 1;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
}
|
|
147
|
+
.formily-element-plus-form-item-label-content > span {
|
|
148
|
+
display: inline;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
white-space: nowrap;
|
|
152
|
+
}
|
|
153
|
+
.formily-element-plus-form-item-label-content.is-tooltip {
|
|
154
|
+
border-bottom: 1px dashed;
|
|
155
|
+
border-color: var(--el-border-color);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.formily-element-plus-form-item-label-tooltip {
|
|
159
|
+
margin-left: 4px;
|
|
160
|
+
color: var(--el-text-color-secondary);
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
height: 32px;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.formily-element-plus-form-item-colon {
|
|
168
|
+
display: flex;
|
|
169
|
+
margin-left: 2px;
|
|
170
|
+
line-height: 2.3;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.formily-element-plus-form-item-content__wrapper {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex: 1;
|
|
176
|
+
}
|
|
177
|
+
.formily-element-plus-form-item-content__wrapper .is-fullness > div {
|
|
178
|
+
width: 100%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.formily-element-plus-form-item-addon-before {
|
|
182
|
+
margin-right: 8px;
|
|
183
|
+
font-size: var(--el-font-size-base);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.formily-element-plus-form-item-addon-after {
|
|
187
|
+
margin-left: 8px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.formily-element-plus-form-item-addon-before,
|
|
191
|
+
.formily-element-plus-form-item-addon-after {
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
min-height: 32px;
|
|
195
|
+
flex-shrink: 0;
|
|
196
|
+
font-size: var(--el-font-size-base);
|
|
197
|
+
color: var(--el-text-color-regular);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.el-form-item__content.is-addon-after {
|
|
201
|
+
flex: unset;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.formily-element-plus-form-item-feedback {
|
|
205
|
+
color: var(--el-text-color-secondary);
|
|
206
|
+
font-size: 12px;
|
|
207
|
+
line-height: 1;
|
|
208
|
+
padding-top: 2px;
|
|
209
|
+
}
|
|
210
|
+
.formily-element-plus-form-item-feedback.is-error {
|
|
211
|
+
color: var(--el-color-danger);
|
|
212
|
+
}
|
|
213
|
+
.formily-element-plus-form-item-feedback.is-success {
|
|
214
|
+
color: var(--el-color-success);
|
|
215
|
+
}
|
|
216
|
+
.formily-element-plus-form-item-feedback.is-warning {
|
|
217
|
+
color: var(--el-color-warning);
|
|
218
|
+
}
|
|
219
|
+
.formily-element-plus-form-item-feedback.is-loose {
|
|
220
|
+
position: absolute;
|
|
221
|
+
top: 100%;
|
|
222
|
+
left: 0;
|
|
223
|
+
}
|
|
224
|
+
.formily-element-plus-form-item-feedback.is-tooltip {
|
|
225
|
+
font-size: var(--el-font-size-base);
|
|
226
|
+
display: inline-flex;
|
|
227
|
+
}
|
|
228
|
+
.formily-element-plus-form-item-feedback.is-tooltip i {
|
|
229
|
+
margin-right: 4px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.formily-element-plus-form-item-extra {
|
|
233
|
+
color: var(--el-text-color-secondary);
|
|
234
|
+
font-size: 12px;
|
|
235
|
+
line-height: 1;
|
|
236
|
+
padding-top: 2px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.formily-element-plus-form-item {
|
|
240
|
+
margin-bottom: 6px;
|
|
241
|
+
}
|
|
242
|
+
.formily-element-plus-form-item.is-loose {
|
|
243
|
+
margin-bottom: 18px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.el-form-item.is-warning .el-input__wrapper,
|
|
247
|
+
.el-form-item.is-warning .el-input__wrapper:hover,
|
|
248
|
+
.el-form-item.is-warning .el-input__wrapper:focus,
|
|
249
|
+
.el-form-item.is-warning .el-input__wrapper.is-focus,
|
|
250
|
+
.el-form-item.is-warning .el-textarea__inner,
|
|
251
|
+
.el-form-item.is-warning .el-textarea__inner:hover,
|
|
252
|
+
.el-form-item.is-warning .el-textarea__inner:focus,
|
|
253
|
+
.el-form-item.is-warning .el-textarea__inner.is-focus,
|
|
254
|
+
.el-form-item.is-warning .el-select__wrapper,
|
|
255
|
+
.el-form-item.is-warning .el-select__wrapper:hover,
|
|
256
|
+
.el-form-item.is-warning .el-select__wrapper:focus,
|
|
257
|
+
.el-form-item.is-warning .el-select__wrapper.is-focus,
|
|
258
|
+
.el-form-item.is-warning .el-input-tag__wrapper,
|
|
259
|
+
.el-form-item.is-warning .el-input-tag__wrapper:hover,
|
|
260
|
+
.el-form-item.is-warning .el-input-tag__wrapper:focus,
|
|
261
|
+
.el-form-item.is-warning .el-input-tag__wrapper.is-focus {
|
|
262
|
+
box-shadow: 0 0 0 1px var(--el-color-warning) inset;
|
|
263
|
+
}
|
package/esm/form-item/types.d.ts
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import { VNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/form-item/types.d.ts
|
|
4
|
+
type FormItemContent = string | VNode;
|
|
5
|
+
interface IFormItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* Internal: override Element Plus root class for isolated scenes (e.g. QueryFormItem).
|
|
8
|
+
*/
|
|
9
|
+
internalFormItemClass?: string;
|
|
10
|
+
label?: FormItemContent;
|
|
11
|
+
for?: string;
|
|
12
|
+
tooltip?: FormItemContent;
|
|
13
|
+
addonBefore?: FormItemContent;
|
|
14
|
+
addonAfter?: FormItemContent;
|
|
15
|
+
extra?: FormItemContent;
|
|
16
|
+
feedbackText?: FormItemContent;
|
|
17
|
+
feedbackStatus?: 'error' | 'warning' | 'success' | 'pending';
|
|
18
|
+
asterisk?: boolean;
|
|
19
|
+
colon?: boolean;
|
|
20
|
+
labelAlign?: 'right' | 'left';
|
|
21
|
+
wrapperAlign?: 'right' | 'left';
|
|
22
|
+
labelWrap?: boolean;
|
|
23
|
+
labelWidth?: number;
|
|
24
|
+
wrapperWidth?: number;
|
|
25
|
+
labelCol?: number;
|
|
26
|
+
wrapperCol?: number;
|
|
27
|
+
fullness?: boolean;
|
|
28
|
+
size?: 'small' | 'default' | 'large';
|
|
29
|
+
layout?: 'vertical' | 'horizontal' | 'inline' | ('vertical' | 'horizontal' | 'inline')[];
|
|
30
|
+
feedbackLayout?: 'loose' | 'terse' | 'popover';
|
|
31
|
+
tooltipLayout?: 'icon' | 'text';
|
|
30
32
|
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { IFormItemProps };
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
package/esm/form-item/utils.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { isArr
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { isArr } from "@formily/shared";
|
|
2
|
+
//#region src/form-item/utils.ts
|
|
3
|
+
function getFeedbackMessage(field) {
|
|
4
|
+
const messages = {
|
|
5
|
+
errors: field.selfErrors.join(", "),
|
|
6
|
+
warnings: field.selfWarnings.join(", "),
|
|
7
|
+
successes: field.selfSuccesses.join(", ")
|
|
8
|
+
};
|
|
9
|
+
return messages.errors || messages.warnings || messages.successes;
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
11
|
+
function determineFeedbackStatus(field) {
|
|
12
|
+
return isArr(field.decorator) ? field.decorator[1]?.feedbackStatus ?? field.validateStatus : field.validateStatus;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=utils.mjs.map
|
|
14
|
+
//#endregion
|
|
15
|
+
export { determineFeedbackStatus, getFeedbackMessage };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../src/form-item/utils.ts"],"sourcesContent":["import type { Field } from '@formily/core'\nimport { isArr } from '@formily/shared'\n\nexport function getFeedbackMessage(field: Field) {\n const messages = {\n errors: field.selfErrors.join(', '),\n warnings: field.selfWarnings.join(', '),\n successes: field.selfSuccesses.join(', '),\n }\n\n return messages.errors || messages.warnings || messages.successes\n}\n\nexport function determineFeedbackStatus(field: Field) {\n return isArr(field.decorator)\n ? (field.decorator[1]?.feedbackStatus ?? field.validateStatus)\n : field.validateStatus\n}\n"],"
|
|
1
|
+
{"version":3,"file":"utils.mjs","names":[],"sources":["../../src/form-item/utils.ts"],"sourcesContent":["import type { Field } from '@formily/core'\nimport { isArr } from '@formily/shared'\n\nexport function getFeedbackMessage(field: Field) {\n const messages = {\n errors: field.selfErrors.join(', '),\n warnings: field.selfWarnings.join(', '),\n successes: field.selfSuccesses.join(', '),\n }\n\n return messages.errors || messages.warnings || messages.successes\n}\n\nexport function determineFeedbackStatus(field: Field) {\n return isArr(field.decorator)\n ? (field.decorator[1]?.feedbackStatus ?? field.validateStatus)\n : field.validateStatus\n}\n"],"mappings":";;AAGA,SAAgB,mBAAmB,OAAc;CAC/C,MAAM,WAAW;EACf,QAAQ,MAAM,WAAW,KAAK,KAAK;EACnC,UAAU,MAAM,aAAa,KAAK,KAAK;EACvC,WAAW,MAAM,cAAc,KAAK,KAAK;EAC1C;AAED,QAAO,SAAS,UAAU,SAAS,YAAY,SAAS;;AAG1D,SAAgB,wBAAwB,OAAc;AACpD,QAAO,MAAM,MAAM,UAAU,GACxB,MAAM,UAAU,IAAI,kBAAkB,MAAM,iBAC7C,MAAM"}
|
|
@@ -1,84 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import "@formily/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { stylePrefix } from "../__builtins__/configs/index.mjs";
|
|
3
|
+
import { filterValidFormLayoutProps, formLayoutDeepContext, formLayoutIdContext, formLayoutShallowContext, useFormDeepLayout, useResponsiveFormLayout } from "./utils.mjs";
|
|
4
|
+
import { formContextKey, useId } from "element-plus";
|
|
5
|
+
import { useThrottleFn } from "@vueuse/core";
|
|
6
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, toRef, unref, watch, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { isEmpty, isValid } from "@formily/shared";
|
|
8
|
+
//#region src/form-layout/form-layout.vue
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "FFormLayout",
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
__name: "form-layout",
|
|
13
|
+
props: {
|
|
14
|
+
tag: { default: "form" },
|
|
15
|
+
colon: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
labelAlign: {},
|
|
20
|
+
wrapperAlign: {},
|
|
21
|
+
labelWrap: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
labelWidth: {},
|
|
26
|
+
wrapperWidth: {},
|
|
27
|
+
labelCol: {},
|
|
28
|
+
wrapperCol: {},
|
|
29
|
+
fullness: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: void 0
|
|
32
|
+
},
|
|
33
|
+
size: { default: "default" },
|
|
34
|
+
layout: { default: "horizontal" },
|
|
35
|
+
feedbackLayout: {},
|
|
36
|
+
tooltipLayout: {},
|
|
37
|
+
breakpoints: {},
|
|
38
|
+
shallow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
hideRequiredAsterisk: { type: Boolean },
|
|
43
|
+
statusIcon: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
requireAsteriskPosition: {}
|
|
48
|
+
},
|
|
49
|
+
setup(__props) {
|
|
50
|
+
const props = __props;
|
|
51
|
+
const formPrefixCls = `${stylePrefix}-form`;
|
|
52
|
+
const { props: attrs } = useCleanAttrs();
|
|
53
|
+
const rootHTMLRef = ref();
|
|
54
|
+
const isFormTag = props.tag === "form";
|
|
55
|
+
const formLayoutBaseId = useId();
|
|
56
|
+
const formLayoutId = computed(() => attrs.value.id ?? `formily-${formLayoutBaseId.value}`);
|
|
57
|
+
const formLayoutDomId = computed(() => isFormTag ? formLayoutId.value : attrs.value.id);
|
|
58
|
+
if (isFormTag) provide(formLayoutIdContext, formLayoutId);
|
|
59
|
+
const formLayoutDeepConfig = useFormDeepLayout();
|
|
60
|
+
const { props: responsiveProps } = useResponsiveFormLayout(props, rootHTMLRef);
|
|
61
|
+
provide(formLayoutDeepContext, ref({
|
|
62
|
+
...formLayoutDeepConfig.value,
|
|
63
|
+
...props.shallow ? {
|
|
64
|
+
size: props.size,
|
|
65
|
+
...isValid(props.colon) && { colon: props.colon }
|
|
66
|
+
} : filterValidFormLayoutProps(props)
|
|
67
|
+
}));
|
|
68
|
+
const shallowLayout = ref(props.shallow ? filterValidFormLayoutProps(props) : {});
|
|
69
|
+
provide(formLayoutShallowContext, shallowLayout);
|
|
70
|
+
watch(() => [props, responsiveProps], useThrottleFn(() => {
|
|
71
|
+
if (!isEmpty(responsiveProps.value)) {
|
|
72
|
+
const _responsiveProps = filterValidFormLayoutProps(responsiveProps.value);
|
|
73
|
+
shallowLayout.value = filterValidFormLayoutProps({
|
|
74
|
+
...props,
|
|
75
|
+
..._responsiveProps
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}, 200, true), {
|
|
79
|
+
deep: true,
|
|
80
|
+
immediate: true
|
|
81
|
+
});
|
|
82
|
+
provide(formContextKey, reactive({
|
|
83
|
+
size: toRef(props, "size"),
|
|
84
|
+
statusIcon: toRef(props, "statusIcon"),
|
|
85
|
+
hideRequiredAsterisk: toRef(props, "hideRequiredAsterisk"),
|
|
86
|
+
requireAsteriskPosition: toRef(props, "requireAsteriskPosition")
|
|
87
|
+
}));
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
return openBlock(), createBlock(resolveDynamicComponent(props.tag), mergeProps({
|
|
90
|
+
id: formLayoutDomId.value,
|
|
91
|
+
ref_key: "rootHTMLRef",
|
|
92
|
+
ref: rootHTMLRef,
|
|
93
|
+
class: formPrefixCls
|
|
94
|
+
}, unref(attrs), { onSubmit: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent", "stop"])) }), {
|
|
95
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 16, ["id"]);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
80
100
|
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
//# sourceMappingURL=form-layout.mjs.map
|
|
101
|
+
//#endregion
|
|
102
|
+
export { _sfc_main as default };
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=form-layout.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout.mjs","sources":["../../src/form-layout/form-layout.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { FormContext } from 'element-plus'\nimport type { IFormLayoutProps } from './types'\nimport { isEmpty, isValid } from '@formily/shared'\nimport { useThrottleFn } from '@vueuse/core'\nimport { formContextKey, useId } from 'element-plus'\nimport { computed, provide, reactive, ref, toRef, watch } from 'vue'\nimport { stylePrefix, useCleanAttrs } from '../__builtins__'\nimport { filterValidFormLayoutProps, formLayoutDeepContext, formLayoutIdContext, formLayoutShallowContext, useFormDeepLayout, useResponsiveFormLayout } from './utils'\n\ndefineOptions({\n name: 'FFormLayout',\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<IFormLayoutProps>(), {\n tag: 'form',\n colon: undefined,\n labelWrap: undefined,\n fullness: undefined,\n size: 'default',\n layout: 'horizontal',\n shallow: true,\n statusIcon: true,\n asterisk: undefined,\n})\nconst formPrefixCls = `${stylePrefix}-form`\nconst { props: attrs } = useCleanAttrs()\nconst rootHTMLRef = ref<HTMLElement>()\nconst isFormTag = props.tag === 'form'\nconst formLayoutBaseId = useId()\nconst formLayoutId = computed(() => attrs.value.id ?? `formily-${formLayoutBaseId.value}`)\nconst formLayoutDomId = computed(() => (isFormTag ? formLayoutId.value : attrs.value.id))\nif (isFormTag) {\n provide(formLayoutIdContext, formLayoutId)\n}\n\nconst formLayoutDeepConfig = useFormDeepLayout()\nconst { props: responsiveProps } = useResponsiveFormLayout(props, rootHTMLRef)\n\nconst deepLayout = ref({\n ...formLayoutDeepConfig.value,\n ...(props.shallow\n ? {\n size: props.size,\n ...(isValid(props.colon) && { colon: props.colon }),\n }\n : filterValidFormLayoutProps(props)),\n})\nprovide(formLayoutDeepContext, deepLayout)\n\nconst shallowLayout = ref(props.shallow ? filterValidFormLayoutProps(props) : {})\nprovide(formLayoutShallowContext, shallowLayout)\n\nconst updateLayout = useThrottleFn(() => {\n if (!isEmpty(responsiveProps.value)) {\n const _responsiveProps = filterValidFormLayoutProps(responsiveProps.value)\n shallowLayout.value = filterValidFormLayoutProps({ ...props, ..._responsiveProps })\n }\n}, 200, true)\n\nwatch(() => [props, responsiveProps], updateLayout, {\n deep: true,\n immediate: true,\n})\n\nconst formContext = reactive({\n size: toRef(props, 'size'),\n statusIcon: toRef(props, 'statusIcon'),\n hideRequiredAsterisk: toRef(props, 'hideRequiredAsterisk'),\n requireAsteriskPosition: toRef(props, 'requireAsteriskPosition'),\n})\nprovide(formContextKey, formContext as FormContext)\n</script>\n\n<template>\n <component\n :is=\"props.tag\"\n :id=\"formLayoutDomId\"\n ref=\"rootHTMLRef\"\n :class=\"formPrefixCls\"\n v-bind=\"attrs\"\n @submit.prevent.stop\n >\n <slot />\n </component>\n</template>\n"],"
|
|
1
|
+
{"version":3,"file":"form-layout.mjs","names":[],"sources":["../../src/form-layout/form-layout.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { FormContext } from 'element-plus'\nimport type { IFormLayoutProps } from './types'\nimport { isEmpty, isValid } from '@formily/shared'\nimport { useThrottleFn } from '@vueuse/core'\nimport { formContextKey, useId } from 'element-plus'\nimport { computed, provide, reactive, ref, toRef, watch } from 'vue'\nimport { stylePrefix, useCleanAttrs } from '../__builtins__'\nimport { filterValidFormLayoutProps, formLayoutDeepContext, formLayoutIdContext, formLayoutShallowContext, useFormDeepLayout, useResponsiveFormLayout } from './utils'\n\ndefineOptions({\n name: 'FFormLayout',\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<IFormLayoutProps>(), {\n tag: 'form',\n colon: undefined,\n labelWrap: undefined,\n fullness: undefined,\n size: 'default',\n layout: 'horizontal',\n shallow: true,\n statusIcon: true,\n asterisk: undefined,\n})\nconst formPrefixCls = `${stylePrefix}-form`\nconst { props: attrs } = useCleanAttrs()\nconst rootHTMLRef = ref<HTMLElement>()\nconst isFormTag = props.tag === 'form'\nconst formLayoutBaseId = useId()\nconst formLayoutId = computed(() => attrs.value.id ?? `formily-${formLayoutBaseId.value}`)\nconst formLayoutDomId = computed(() => (isFormTag ? formLayoutId.value : attrs.value.id))\nif (isFormTag) {\n provide(formLayoutIdContext, formLayoutId)\n}\n\nconst formLayoutDeepConfig = useFormDeepLayout()\nconst { props: responsiveProps } = useResponsiveFormLayout(props, rootHTMLRef)\n\nconst deepLayout = ref({\n ...formLayoutDeepConfig.value,\n ...(props.shallow\n ? {\n size: props.size,\n ...(isValid(props.colon) && { colon: props.colon }),\n }\n : filterValidFormLayoutProps(props)),\n})\nprovide(formLayoutDeepContext, deepLayout)\n\nconst shallowLayout = ref(props.shallow ? filterValidFormLayoutProps(props) : {})\nprovide(formLayoutShallowContext, shallowLayout)\n\nconst updateLayout = useThrottleFn(() => {\n if (!isEmpty(responsiveProps.value)) {\n const _responsiveProps = filterValidFormLayoutProps(responsiveProps.value)\n shallowLayout.value = filterValidFormLayoutProps({ ...props, ..._responsiveProps })\n }\n}, 200, true)\n\nwatch(() => [props, responsiveProps], updateLayout, {\n deep: true,\n immediate: true,\n})\n\nconst formContext = reactive({\n size: toRef(props, 'size'),\n statusIcon: toRef(props, 'statusIcon'),\n hideRequiredAsterisk: toRef(props, 'hideRequiredAsterisk'),\n requireAsteriskPosition: toRef(props, 'requireAsteriskPosition'),\n})\nprovide(formContextKey, formContext as FormContext)\n</script>\n\n<template>\n <component\n :is=\"props.tag\"\n :id=\"formLayoutDomId\"\n ref=\"rootHTMLRef\"\n :class=\"formPrefixCls\"\n v-bind=\"attrs\"\n @submit.prevent.stop\n >\n <slot />\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeA,MAAM,QAAQ;EAWd,MAAM,gBAAgB,GAAG,YAAY;EACrC,MAAM,EAAE,OAAO,UAAU,eAAc;EACvC,MAAM,cAAc,KAAiB;EACrC,MAAM,YAAY,MAAM,QAAQ;EAChC,MAAM,mBAAmB,OAAM;EAC/B,MAAM,eAAe,eAAe,MAAM,MAAM,MAAM,WAAW,iBAAiB,QAAO;EACzF,MAAM,kBAAkB,eAAgB,YAAY,aAAa,QAAQ,MAAM,MAAM,GAAG;AACxF,MAAI,UACF,SAAQ,qBAAqB,aAAY;EAG3C,MAAM,uBAAuB,mBAAkB;EAC/C,MAAM,EAAE,OAAO,oBAAoB,wBAAwB,OAAO,YAAW;AAW7E,UAAQ,uBATW,IAAI;GACrB,GAAG,qBAAqB;GACxB,GAAI,MAAM,UACN;IACE,MAAM,MAAM;IACZ,GAAI,QAAQ,MAAM,MAAM,IAAI,EAAE,OAAO,MAAM,OAAO;IACpD,GACA,2BAA2B,MAAM;GACtC,CAAA,CACwC;EAEzC,MAAM,gBAAgB,IAAI,MAAM,UAAU,2BAA2B,MAAM,GAAG,EAAE,CAAA;AAChF,UAAQ,0BAA0B,cAAa;AAS/C,cAAY,CAAC,OAAO,gBAAgB,EAPf,oBAAoB;AACvC,OAAI,CAAC,QAAQ,gBAAgB,MAAM,EAAE;IACnC,MAAM,mBAAmB,2BAA2B,gBAAgB,MAAK;AACzE,kBAAc,QAAQ,2BAA2B;KAAE,GAAG;KAAO,GAAG;KAAkB,CAAA;;KAEnF,KAAK,KAAI,EAEwC;GAClD,MAAM;GACN,WAAW;GACZ,CAAA;AAQD,UAAQ,gBANY,SAAS;GAC3B,MAAM,MAAM,OAAO,OAAO;GAC1B,YAAY,MAAM,OAAO,aAAa;GACtC,sBAAsB,MAAM,OAAO,uBAAuB;GAC1D,yBAAyB,MAAM,OAAO,0BAA0B;GACjE,CAAA,CACiD;;uBAIhD,YASY,wBARL,MAAM,IAAG,EADhB,WASY;IAPT,IAAI,gBAAA;aACD;IAAJ,KAAI;IACH,OAAO;MACA,MAAA,MAAK,EAAA,EACZ,UAAM,OAAA,OAAA,OAAA,KAAA,oBAAP,IAAoB,CAAA,WAAA,OAAA,CAAA,GAAA,CAAA,EAAA;2BAEZ,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IFormLayoutProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/form-layout/form-layout.vue.d.ts
|
|
5
|
+
declare var __VLS_11: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_11) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<IFormLayoutProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<IFormLayoutProps> & Readonly<{}>, {
|
|
10
|
+
layout: "vertical" | "horizontal" | "inline" | ("vertical" | "horizontal" | "inline")[];
|
|
11
|
+
size: "small" | "default" | "large";
|
|
12
|
+
colon: boolean;
|
|
13
|
+
labelWrap: boolean;
|
|
14
|
+
fullness: boolean;
|
|
15
|
+
tag: string;
|
|
16
|
+
shallow: boolean;
|
|
17
|
+
statusIcon: boolean;
|
|
18
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _default };
|
|
28
|
+
//# sourceMappingURL=form-layout.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { _default } from "./form-layout.vue.js";
|