@silver-formily/element-plus 3.0.2 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en-US.md +3 -1
- package/README.md +3 -1
- package/esm/__builtins__/configs/index.mjs +6 -5
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/shared/load-config-provider.mjs +19 -11
- package/esm/__builtins__/shared/load-config-provider.mjs.map +1 -1
- package/esm/__builtins__/shared/loading.mjs +50 -46
- package/esm/__builtins__/shared/loading.mjs.map +1 -1
- package/esm/__builtins__/shared/simple-version-compare.mjs +16 -15
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
- package/esm/__builtins__/shared/transform-component.mjs +30 -31
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/use-enter-submit.mjs +74 -62
- package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +44 -32
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/_virtual/_/plugin-vue/export-helper.mjs +8 -0
- package/esm/array-base/array-base-addition.mjs +53 -0
- package/esm/array-base/array-base-addition.mjs.map +1 -0
- package/esm/array-base/array-base-index.mjs +17 -0
- package/esm/array-base/array-base-index.mjs.map +1 -0
- package/esm/array-base/array-base-inner.mjs +30 -0
- package/esm/array-base/array-base-inner.mjs.map +1 -0
- package/esm/array-base/array-base-item.mjs +21 -0
- package/esm/array-base/array-base-item.mjs.map +1 -0
- package/esm/array-base/array-base-move-down.mjs +45 -0
- package/esm/array-base/array-base-move-down.mjs.map +1 -0
- package/esm/array-base/array-base-move-up.mjs +45 -0
- package/esm/array-base/array-base-move-up.mjs.map +1 -0
- package/esm/array-base/array-base-remove.mjs +45 -0
- package/esm/array-base/array-base-remove.mjs.map +1 -0
- package/esm/array-base/array-base-sort-handle.mjs +33 -0
- package/esm/array-base/array-base-sort-handle.mjs.map +1 -0
- package/esm/array-base/index.mjs +28 -208
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/style.css +36 -0
- package/esm/array-base/symbols.mjs +7 -6
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/types.d.ts +23 -24
- package/esm/array-base/utils.d.ts +11 -17
- package/esm/array-base/utils.mjs +58 -60
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/array-cards.mjs +109 -0
- package/esm/array-cards/array-cards.mjs.map +1 -0
- package/esm/array-cards/index.d.ts +120 -113
- package/esm/array-cards/index.mjs +19 -118
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-cards/style.css +20 -0
- package/esm/array-collapse/array-collapse-item.mjs +74 -0
- package/esm/array-collapse/array-collapse-item.mjs.map +1 -0
- package/esm/array-collapse/array-collapse.mjs +117 -0
- package/esm/array-collapse/array-collapse.mjs.map +1 -0
- package/esm/array-collapse/index.d.ts +137 -129
- package/esm/array-collapse/index.mjs +21 -174
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/style.css +20 -0
- package/esm/array-collapse/utils.mjs +7 -12
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/array-items-item.mjs +22 -0
- package/esm/array-items/array-items-item.mjs.map +1 -0
- package/esm/array-items/array-items.mjs +88 -0
- package/esm/array-items/array-items.mjs.map +1 -0
- package/esm/array-items/index.d.ts +132 -125
- package/esm/array-items/index.mjs +21 -107
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-items/style.css +22 -0
- package/esm/array-list-tabs/array-list-tabs.mjs +191 -0
- package/esm/array-list-tabs/array-list-tabs.mjs.map +1 -0
- package/esm/array-list-tabs/index.d.ts +80 -74
- package/esm/array-list-tabs/index.mjs +12 -186
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/style.css +90 -0
- package/esm/array-list-tabs/utils.mjs +11 -15
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/array-table.mjs +236 -0
- package/esm/array-table/array-table.mjs.map +1 -0
- package/esm/array-table/index.d.ts +106 -1597
- package/esm/array-table/index.mjs +24 -223
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/style.css +23 -0
- package/esm/array-table/types.d.ts +11 -6
- package/esm/array-table/utils.mjs +14 -22
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/array-tabs.mjs +92 -0
- package/esm/array-tabs/array-tabs.mjs.map +1 -0
- package/esm/array-tabs/index.d.ts +7 -2
- package/esm/array-tabs/index.mjs +8 -84
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/array-tabs/style.css +7 -0
- package/esm/autocomplete/autocomplete.mjs +99 -0
- package/esm/autocomplete/autocomplete.mjs.map +1 -0
- package/esm/autocomplete/index.d.ts +44 -638
- package/esm/autocomplete/index.mjs +14 -113
- package/esm/autocomplete/index.mjs.map +1 -1
- package/esm/cascader/cascader.mjs +32 -0
- package/esm/cascader/cascader.mjs.map +1 -0
- package/esm/cascader/index.d.ts +34 -27
- package/esm/cascader/index.mjs +13 -50
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.mjs +64 -0
- package/esm/checkbox/checkbox-group.mjs.map +1 -0
- package/esm/checkbox/index.d.ts +772 -766
- package/esm/checkbox/index.mjs +16 -69
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.d.ts +214 -207
- package/esm/color-picker/index.mjs +13 -17
- package/esm/color-picker/index.mjs.map +1 -1
- package/esm/color-picker-panel/index.d.ts +118 -110
- package/esm/color-picker-panel/index.mjs +16 -25
- package/esm/color-picker-panel/index.mjs.map +1 -1
- package/esm/date-picker/index.d.ts +449 -441
- package/esm/date-picker/index.mjs +21 -29
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/date-picker/utils.mjs +21 -26
- package/esm/date-picker/utils.mjs.map +1 -1
- package/esm/date-picker-panel/index.d.ts +149 -141
- package/esm/date-picker-panel/index.mjs +23 -30
- package/esm/date-picker-panel/index.mjs.map +1 -1
- package/esm/editable/editable-popover.mjs +95 -0
- package/esm/editable/editable-popover.mjs.map +1 -0
- package/esm/editable/editable.mjs +113 -0
- package/esm/editable/editable.mjs.map +1 -0
- package/esm/editable/index.d.ts +60 -141
- package/esm/editable/index.mjs +17 -219
- package/esm/editable/index.mjs.map +1 -1
- package/esm/editable/style.css +29 -0
- package/esm/form/form.mjs +50 -70
- package/esm/form/form.mjs.map +1 -1
- package/esm/form/form.vue.d.ts +48 -0
- package/esm/form/index.d.ts +1 -1
- package/esm/form-button-group/form-button-group-sticky.mjs +37 -0
- package/esm/form-button-group/form-button-group-sticky.mjs.map +1 -0
- package/esm/form-button-group/form-button-group.mjs +71 -0
- package/esm/form-button-group/form-button-group.mjs.map +1 -0
- package/esm/form-button-group/index.d.ts +94 -87
- package/esm/form-button-group/index.mjs +10 -96
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/style.css +281 -0
- package/esm/form-button-group/utils.mjs +7 -12
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/form-collapse.mjs +74 -0
- package/esm/form-collapse/form-collapse.mjs.map +1 -0
- package/esm/form-collapse/index.d.ts +43 -39
- package/esm/form-collapse/index.mjs +20 -86
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/style.css +7 -0
- package/esm/form-collapse/utils.d.ts +21 -27
- package/esm/form-collapse/utils.mjs +48 -46
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/dialog-content.mjs +118 -0
- package/esm/form-dialog/dialog-content.mjs.map +1 -0
- package/esm/form-dialog/index.d.ts +8 -4
- package/esm/form-dialog/index.mjs +142 -211
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +38 -32
- package/esm/form-drawer/drawer-content.mjs +118 -0
- package/esm/form-drawer/drawer-content.mjs.map +1 -0
- package/esm/form-drawer/index.d.ts +8 -4
- package/esm/form-drawer/index.mjs +142 -204
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +38 -32
- package/esm/form-grid/form-grid-column.mjs +28 -0
- package/esm/form-grid/form-grid-column.mjs.map +1 -0
- package/esm/form-grid/form-grid.mjs +69 -0
- package/esm/form-grid/form-grid.mjs.map +1 -0
- package/esm/form-grid/hooks.mjs +7 -7
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.d.ts +5 -2
- package/esm/form-grid/index.mjs +10 -109
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-grid/style.css +128 -0
- package/esm/form-item/form-item.mjs +308 -0
- package/esm/form-item/form-item.mjs.map +1 -0
- package/esm/form-item/form-item.vue.d.ts +29 -0
- package/esm/form-item/index.d.ts +81 -67
- package/esm/form-item/index.mjs +28 -332
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/style.css +263 -0
- package/esm/form-item/types.d.ts +34 -29
- package/esm/form-item/utils.mjs +15 -15
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.mjs +103 -83
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/form-layout.vue.d.ts +28 -0
- package/esm/form-layout/index.d.ts +1 -1
- package/esm/form-layout/types.d.ts +24 -40
- package/esm/form-layout/utils.mjs +73 -99
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/form-step-pane.mjs +15 -0
- package/esm/form-step/form-step-pane.mjs.map +1 -0
- package/esm/form-step/form-step.mjs +63 -0
- package/esm/form-step/form-step.mjs.map +1 -0
- package/esm/form-step/index.d.ts +29 -23
- package/esm/form-step/index.mjs +12 -93
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-step/types.d.ts +19 -19
- package/esm/form-step/utils.d.ts +14 -10
- package/esm/form-step/utils.mjs +75 -59
- package/esm/form-step/utils.mjs.map +1 -1
- package/esm/form-tab/form-tab.mjs +79 -0
- package/esm/form-tab/form-tab.mjs.map +1 -0
- package/esm/form-tab/hooks.mjs +18 -16
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +5 -3
- package/esm/form-tab/index.mjs +10 -76
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/style.css +4 -0
- package/esm/form-tab/utils.mjs +14 -13
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.d.ts +55 -48
- package/esm/index.mjs +51 -103
- package/esm/input/index.d.ts +41 -46
- package/esm/input/index.mjs +16 -68
- package/esm/input/index.mjs.map +1 -1
- package/esm/input/input.mjs +41 -0
- package/esm/input/input.mjs.map +1 -0
- package/esm/input-number/index.d.ts +281 -275
- package/esm/input-number/index.mjs +12 -24
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.d.ts +29 -31
- package/esm/input-tag/index.mjs +13 -49
- package/esm/input-tag/index.mjs.map +1 -1
- package/esm/input-tag/input-tag.mjs +41 -0
- package/esm/input-tag/input-tag.mjs.map +1 -0
- package/esm/mention/index.d.ts +39 -49
- package/esm/mention/index.mjs +15 -96
- package/esm/mention/index.mjs.map +1 -1
- package/esm/mention/mention.mjs +77 -0
- package/esm/mention/mention.mjs.map +1 -0
- package/esm/pagination/components/jumper.mjs +11 -12
- package/esm/pagination/components/jumper.mjs.map +1 -1
- package/esm/pagination/components/jumper2.mjs +59 -0
- package/esm/pagination/components/jumper2.mjs.map +1 -0
- package/esm/pagination/components/next.mjs +18 -22
- package/esm/pagination/components/next.mjs.map +1 -1
- package/esm/pagination/components/next2.mjs +38 -0
- package/esm/pagination/components/next2.mjs.map +1 -0
- package/esm/pagination/components/pager.mjs +21 -22
- package/esm/pagination/components/pager.mjs.map +1 -1
- package/esm/pagination/components/pager2.mjs +229 -0
- package/esm/pagination/components/pager2.mjs.map +1 -0
- package/esm/pagination/components/prev.mjs +16 -22
- package/esm/pagination/components/prev.mjs.map +1 -1
- package/esm/pagination/components/prev2.mjs +38 -0
- package/esm/pagination/components/prev2.mjs.map +1 -0
- package/esm/pagination/components/sizes.mjs +32 -7
- package/esm/pagination/components/sizes.mjs.map +1 -1
- package/esm/pagination/components/sizes2.mjs +66 -0
- package/esm/pagination/components/sizes2.mjs.map +1 -0
- package/esm/pagination/components/total.mjs +10 -11
- package/esm/pagination/components/total.mjs.map +1 -1
- package/esm/pagination/components/total2.mjs +26 -0
- package/esm/pagination/components/total2.mjs.map +1 -0
- package/esm/pagination/pagination.mjs +271 -626
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.d.ts +43 -48
- package/esm/password/index.mjs +11 -14
- package/esm/password/index.mjs.map +1 -1
- package/esm/picker-select/index.d.ts +47 -0
- package/esm/picker-select/index.mjs +14 -0
- package/esm/picker-select/index.mjs.map +1 -0
- package/esm/picker-select/picker-select.mjs +186 -0
- package/esm/picker-select/picker-select.mjs.map +1 -0
- package/esm/picker-select/types.d.ts +23 -0
- package/esm/preview-text/cascader.mjs +51 -0
- package/esm/preview-text/cascader.mjs.map +1 -0
- package/esm/preview-text/color-picker.mjs +37 -0
- package/esm/preview-text/color-picker.mjs.map +1 -0
- package/esm/preview-text/date-picker.mjs +61 -0
- package/esm/preview-text/date-picker.mjs.map +1 -0
- package/esm/preview-text/index.d.ts +107 -106
- package/esm/preview-text/index.mjs +25 -363
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/input.mjs +39 -0
- package/esm/preview-text/input.mjs.map +1 -0
- package/esm/preview-text/preview.mjs +30 -0
- package/esm/preview-text/preview.mjs.map +1 -0
- package/esm/preview-text/rate.mjs +32 -0
- package/esm/preview-text/rate.mjs.map +1 -0
- package/esm/preview-text/select.mjs +42 -0
- package/esm/preview-text/select.mjs.map +1 -0
- package/esm/preview-text/style.css +16 -0
- package/esm/preview-text/time-picker.mjs +39 -0
- package/esm/preview-text/time-picker.mjs.map +1 -0
- package/esm/preview-text/tree.mjs +73 -0
- package/esm/preview-text/tree.mjs.map +1 -0
- package/esm/preview-text/utils.d.ts +10 -13
- package/esm/preview-text/utils.mjs +15 -15
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/query-form/default-components.mjs +45 -45
- package/esm/query-form/default-components.mjs.map +1 -1
- package/esm/query-form/hooks.mjs +31 -26
- package/esm/query-form/hooks.mjs.map +1 -1
- package/esm/query-form/index.d.ts +115 -105
- package/esm/query-form/index.mjs +10 -333
- package/esm/query-form/index.mjs.map +1 -1
- package/esm/query-form/query-form-light.mjs +86 -0
- package/esm/query-form/query-form-light.mjs.map +1 -0
- package/esm/query-form/query-form.mjs +263 -0
- package/esm/query-form/query-form.mjs.map +1 -0
- package/esm/query-form/style.css +27 -0
- package/esm/query-form/types.d.ts +42 -41
- package/esm/query-form-item/index.d.ts +138 -131
- package/esm/query-form-item/index.mjs +15 -183
- package/esm/query-form-item/index.mjs.map +1 -1
- package/esm/query-form-item/query-form-item.mjs +195 -0
- package/esm/query-form-item/query-form-item.mjs.map +1 -0
- package/esm/query-form-item/style.css +12 -0
- package/esm/query-form-item/types.d.ts +42 -38
- package/esm/radio/index.d.ts +482 -472
- package/esm/radio/index.mjs +15 -68
- package/esm/radio/index.mjs.map +1 -1
- package/esm/radio/radio-group.mjs +70 -0
- package/esm/radio/radio-group.mjs.map +1 -0
- package/esm/{styles/radio/index.css → radio/style.css} +3 -1
- package/esm/rate/index.d.ts +190 -184
- package/esm/rate/index.mjs +13 -17
- package/esm/rate/index.mjs.map +1 -1
- package/esm/reset/index.d.ts +5 -2
- package/esm/reset/index.mjs +8 -44
- package/esm/reset/index.mjs.map +1 -1
- package/esm/reset/reset.mjs +42 -0
- package/esm/reset/reset.mjs.map +1 -0
- package/esm/segmented/index.d.ts +31 -25
- package/esm/segmented/index.mjs +13 -40
- package/esm/segmented/index.mjs.map +1 -1
- package/esm/segmented/segmented.mjs +26 -0
- package/esm/segmented/segmented.mjs.map +1 -0
- package/esm/select/index.d.ts +108 -121
- package/esm/select/index.mjs +14 -127
- package/esm/select/index.mjs.map +1 -1
- package/esm/select/select.mjs +95 -0
- package/esm/select/select.mjs.map +1 -0
- package/esm/select-table/index.d.ts +53 -1546
- package/esm/select-table/index.mjs +12 -204
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.mjs +202 -0
- package/esm/select-table/select-table.mjs.map +1 -0
- package/esm/select-table/style.css +14 -0
- package/esm/select-table/types.d.ts +21 -16
- package/esm/shared/overlay-elements.mjs +15 -16
- package/esm/shared/overlay-elements.mjs.map +1 -1
- package/esm/shared/url-change-listener.mjs +50 -0
- package/esm/shared/url-change-listener.mjs.map +1 -0
- package/esm/slider/index.d.ts +182 -174
- package/esm/slider/index.mjs +13 -17
- package/esm/slider/index.mjs.map +1 -1
- package/esm/space/index.d.ts +2 -1
- package/esm/space/index.mjs +2 -6
- package/esm/submit/index.d.ts +5 -2
- package/esm/submit/index.mjs +8 -40
- package/esm/submit/index.mjs.map +1 -1
- package/esm/submit/submit.mjs +41 -0
- package/esm/submit/submit.mjs.map +1 -0
- package/esm/switch/index.d.ts +255 -249
- package/esm/switch/index.mjs +8 -13
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.d.ts +451 -443
- package/esm/time-picker/index.mjs +10 -17
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +189 -182
- package/esm/time-select/index.mjs +13 -17
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +246 -238
- package/esm/transfer/index.mjs +8 -11
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.d.ts +40 -33
- package/esm/tree/index.mjs +14 -104
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/tree.mjs +127 -0
- package/esm/tree/tree.mjs.map +1 -0
- package/esm/tree/types.d.ts +17 -12
- package/esm/tree/utils.mjs +157 -149
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.d.ts +22 -15
- package/esm/tree-select/index.mjs +13 -40
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/tree-select/tree-select.mjs +38 -0
- package/esm/tree-select/tree-select.mjs.map +1 -0
- package/esm/upload/index.d.ts +117 -696
- package/esm/upload/index.mjs +11 -172
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.mjs +176 -0
- package/esm/upload/upload.mjs.map +1 -0
- package/package.json +24 -25
- package/esm/__builtins__/configs/index.d.ts +0 -1
- package/esm/__builtins__/index.d.ts +0 -2
- package/esm/__builtins__/index.mjs +0 -23
- package/esm/__builtins__/index.mjs.map +0 -1
- package/esm/__builtins__/shared/index.d.ts +0 -6
- package/esm/__builtins__/shared/index.mjs +0 -21
- package/esm/__builtins__/shared/index.mjs.map +0 -1
- package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
- package/esm/__builtins__/shared/loading.d.ts +0 -12
- package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
- package/esm/__builtins__/shared/transform-component.d.ts +0 -3
- package/esm/__builtins__/shared/types.d.ts +0 -2
- package/esm/__builtins__/shared/types.mjs +0 -2
- package/esm/__builtins__/shared/types.mjs.map +0 -1
- package/esm/__builtins__/shared/use-enter-submit.d.ts +0 -9
- package/esm/__builtins__/shared/utils.d.ts +0 -9
- package/esm/array-base/array-base-addition.d.ts +0 -5
- package/esm/array-base/array-base-index.d.ts +0 -19
- package/esm/array-base/array-base-inner.d.ts +0 -18
- package/esm/array-base/array-base-item.d.ts +0 -18
- package/esm/array-base/array-base-move-down.d.ts +0 -18
- package/esm/array-base/array-base-move-up.d.ts +0 -18
- package/esm/array-base/array-base-remove.d.ts +0 -18
- package/esm/array-base/array-base-sort-handle.d.ts +0 -2
- package/esm/array-base/index.d.ts +0 -114
- package/esm/array-base/symbols.d.ts +0 -4
- package/esm/array-base/types.mjs +0 -2
- package/esm/array-base/types.mjs.map +0 -1
- package/esm/array-cards/array-cards.d.ts +0 -13
- package/esm/array-collapse/array-collapse-item.d.ts +0 -18
- package/esm/array-collapse/array-collapse.d.ts +0 -16
- package/esm/array-collapse/utils.d.ts +0 -1
- package/esm/array-items/array-items-item.d.ts +0 -30
- package/esm/array-items/array-items.d.ts +0 -2
- package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
- package/esm/array-list-tabs/utils.d.ts +0 -3
- package/esm/array-table/array-table.d.ts +0 -1505
- package/esm/array-table/types.mjs +0 -2
- package/esm/array-table/types.mjs.map +0 -1
- package/esm/array-table/utils.d.ts +0 -5
- package/esm/array-tabs/array-tabs.d.ts +0 -2
- package/esm/autocomplete/autocomplete.d.ts +0 -1222
- package/esm/cascader/cascader.d.ts +0 -25
- package/esm/checkbox/checkbox-group.d.ts +0 -42
- package/esm/date-picker/utils.d.ts +0 -4
- package/esm/editable/editable-popover.d.ts +0 -25
- package/esm/editable/editable.d.ts +0 -193
- package/esm/env.d.d.ts +0 -1
- package/esm/env.d.mjs +0 -2
- package/esm/env.d.mjs.map +0 -1
- package/esm/form/form.d.ts +0 -46
- package/esm/form/index.mjs +0 -6
- package/esm/form/index.mjs.map +0 -1
- package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
- package/esm/form-button-group/form-button-group.d.ts +0 -57
- package/esm/form-button-group/utils.d.ts +0 -1
- package/esm/form-collapse/form-collapse.d.ts +0 -18
- package/esm/form-dialog/dialog-content.d.ts +0 -846
- package/esm/form-dialog/types.mjs +0 -2
- package/esm/form-dialog/types.mjs.map +0 -1
- package/esm/form-drawer/drawer-content.d.ts +0 -976
- package/esm/form-drawer/types.mjs +0 -2
- package/esm/form-drawer/types.mjs.map +0 -1
- package/esm/form-grid/form-grid-column.d.ts +0 -29
- package/esm/form-grid/form-grid.d.ts +0 -101
- package/esm/form-grid/hooks.d.ts +0 -4
- package/esm/form-item/form-item.d.ts +0 -19
- package/esm/form-item/types.mjs +0 -2
- package/esm/form-item/types.mjs.map +0 -1
- package/esm/form-item/utils.d.ts +0 -3
- package/esm/form-layout/form-layout.d.ts +0 -31
- package/esm/form-layout/index.mjs +0 -6
- package/esm/form-layout/index.mjs.map +0 -1
- package/esm/form-layout/types.mjs +0 -2
- package/esm/form-layout/types.mjs.map +0 -1
- package/esm/form-layout/utils.d.ts +0 -57
- package/esm/form-step/form-step-pane.d.ts +0 -2
- package/esm/form-step/form-step.d.ts +0 -5
- package/esm/form-step/types.mjs +0 -2
- package/esm/form-step/types.mjs.map +0 -1
- package/esm/form-tab/form-tab.d.ts +0 -7
- package/esm/form-tab/hooks.d.ts +0 -8
- package/esm/form-tab/types.d.ts +0 -12
- package/esm/form-tab/types.mjs +0 -2
- package/esm/form-tab/types.mjs.map +0 -1
- package/esm/form-tab/utils.d.ts +0 -4
- package/esm/index.mjs.map +0 -1
- package/esm/input/input.d.ts +0 -25
- package/esm/input-tag/input-tag.d.ts +0 -32
- package/esm/mention/mention.d.ts +0 -51
- package/esm/pagination/components/jumper.d.ts +0 -16
- package/esm/pagination/components/next.d.ts +0 -42
- package/esm/pagination/components/pager.d.ts +0 -42
- package/esm/pagination/components/prev.d.ts +0 -39
- package/esm/pagination/components/sizes.d.ts +0 -56
- package/esm/pagination/components/total.d.ts +0 -8
- package/esm/pagination/pagination.d.ts +0 -128
- package/esm/preview-text/cascader.d.ts +0 -5
- package/esm/preview-text/color-picker.d.ts +0 -5
- package/esm/preview-text/date-picker.d.ts +0 -5
- package/esm/preview-text/input.d.ts +0 -28
- package/esm/preview-text/preview.d.ts +0 -18
- package/esm/preview-text/rate.d.ts +0 -5
- package/esm/preview-text/select.d.ts +0 -5
- package/esm/preview-text/time-picker.d.ts +0 -5
- package/esm/preview-text/tree.d.ts +0 -22
- package/esm/query-form/default-components.d.ts +0 -5
- package/esm/query-form/hooks.d.ts +0 -25
- package/esm/query-form/query-form-light.d.ts +0 -27
- package/esm/query-form/query-form.d.ts +0 -52
- package/esm/query-form/types.mjs +0 -2
- package/esm/query-form/types.mjs.map +0 -1
- package/esm/query-form-item/query-form-item.d.ts +0 -96
- package/esm/query-form-item/types.mjs +0 -2
- package/esm/query-form-item/types.mjs.map +0 -1
- package/esm/radio/radio-group.d.ts +0 -33
- package/esm/reset/reset.d.ts +0 -45
- package/esm/segmented/segmented.d.ts +0 -25
- package/esm/select/select.d.ts +0 -45
- package/esm/select-table/select-table.d.ts +0 -3030
- package/esm/select-table/types.mjs +0 -2
- package/esm/select-table/types.mjs.map +0 -1
- package/esm/shared/overlay-elements.d.ts +0 -6
- package/esm/space/index.mjs.map +0 -1
- package/esm/styles/array-base/index.css +0 -1
- package/esm/styles/array-cards/index.css +0 -1
- package/esm/styles/array-collapse/index.css +0 -1
- package/esm/styles/array-items/index.css +0 -1
- package/esm/styles/array-list-tabs/index.css +0 -1
- package/esm/styles/array-table/index.css +0 -1
- package/esm/styles/array-tabs/index.css +0 -1
- package/esm/styles/editable/index.css +0 -1
- package/esm/styles/form-button-group/index.css +0 -1
- package/esm/styles/form-collapse/index.css +0 -1
- package/esm/styles/form-grid/index.css +0 -1
- package/esm/styles/form-item/index.css +0 -1
- package/esm/styles/form-tab/index.css +0 -1
- package/esm/styles/preview-text/index.css +0 -1
- package/esm/styles/query-form/index.css +0 -1
- package/esm/styles/query-form-item/index.css +0 -1
- package/esm/styles/select-table/index.css +0 -1
- package/esm/submit/submit.d.ts +0 -36
- package/esm/tree/tree.d.ts +0 -20
- package/esm/tree/types.mjs +0 -2
- package/esm/tree/types.mjs.map +0 -1
- package/esm/tree/utils.d.ts +0 -45
- package/esm/tree-select/tree-select.d.ts +0 -10
- package/esm/upload/upload.d.ts +0 -1259
- package/esm/vendor/icon.mjs +0 -11
- package/esm/vendor/icon.mjs.map +0 -1
- package/esm/vendor/lodash.mjs +0 -1506
- package/esm/vendor/lodash.mjs.map +0 -1
- package/esm/vendor/runtime.mjs +0 -34
- package/esm/vendor/runtime.mjs.map +0 -1
- package/esm/vendor/shared.esm-bundler.mjs +0 -9
- package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
- package/esm/vendor/sizes.mjs +0 -27
- package/esm/vendor/sizes.mjs.map +0 -1
- package/esm/vendor/types.mjs +0 -19
- package/esm/vendor/types.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.mjs","sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"next.mjs","names":[],"sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"mappings":";;AAIA,MAAa,sBAAsB,WAAW;CAC5C,UAAU;CACV,aAAa;EACX,MAAM;EACN,SAAS;EACV;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;CACD,UAAU,EACR,MAAM,QACP;CACD,UAAU,EACR,MAAM,cACP;CACF,CAAU"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { paginationNextProps } from "./next.mjs";
|
|
2
|
+
import { ElIcon, useLocale } from "element-plus";
|
|
3
|
+
import { computed, createBlock, createElementBlock, defineComponent, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
//#region src/pagination/components/next.vue
|
|
5
|
+
const _hoisted_1 = [
|
|
6
|
+
"disabled",
|
|
7
|
+
"aria-label",
|
|
8
|
+
"aria-disabled"
|
|
9
|
+
];
|
|
10
|
+
const _hoisted_2 = { key: 0 };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
name: "ElPaginationNext",
|
|
13
|
+
__name: "next",
|
|
14
|
+
props: paginationNextProps,
|
|
15
|
+
emits: ["click"],
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { t } = useLocale();
|
|
19
|
+
const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
class: "btn-next",
|
|
24
|
+
disabled: internalDisabled.value,
|
|
25
|
+
"aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
|
|
26
|
+
"aria-disabled": internalDisabled.value,
|
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
28
|
+
}, [_ctx.nextText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
29
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))]),
|
|
30
|
+
_: 1
|
|
31
|
+
}))], 8, _hoisted_1);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { _sfc_main as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=next2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next2.mjs","names":["nextText","$emit","nextIcon"],"sources":["../../../src/pagination/components/next.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ElIcon, useLocale } from 'element-plus'\nimport { computed } from 'vue'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled\n || props.currentPage === props.pageCount\n || props.pageCount === 0,\n)\n</script>\n\n<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <ElIcon v-else>\n <component :is=\"nextIcon\" />\n </ElIcon>\n </button>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EASA,MAAM,QAAQ;EAId,MAAM,EAAE,MAAM,WAAU;EAExB,MAAM,mBAAmB,eAErB,MAAM,YACH,MAAM,gBAAgB,MAAM,aAC5B,MAAM,cAAc,EAC3B;;uBAIE,mBAYS,UAAA;IAXP,MAAK;IACL,OAAM;IACL,UAAU,iBAAA;IACV,cAAYA,KAAAA,YAAY,MAAA,EAAC,CAAA,qBAAA;IACzB,iBAAe,iBAAA;IACf,SAAK,OAAA,OAAA,OAAA,MAAA,WAAEC,KAAAA,MAAK,SAAU,OAAM;OAEjBD,KAAAA,YAAAA,WAAAA,EAAZ,mBAA2C,QAAA,YAAA,gBAAlBA,KAAAA,SAAQ,EAAA,EAAA,KAAA,WAAA,EACjC,YAES,MAAA,OAAA,EAAA,EAAA,KAAA,GAAA,EAAA;2BADqB,EAAA,WAAA,EAA5B,YAA4B,wBAAZE,KAAAA,SAAQ,CAAA,EAAA,CAAA"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
disabled: Boolean
|
|
1
|
+
import { buildProps } from "element-plus/es/utils/index";
|
|
2
|
+
//#region src/pagination/components/pager.ts
|
|
3
|
+
const paginationPagerProps = buildProps({
|
|
4
|
+
currentPage: {
|
|
5
|
+
type: Number,
|
|
6
|
+
default: 1
|
|
7
|
+
},
|
|
8
|
+
pageCount: {
|
|
9
|
+
type: Number,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
pagerCount: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 7
|
|
15
|
+
},
|
|
16
|
+
pageSize: { type: Number },
|
|
17
|
+
disabled: Boolean
|
|
19
18
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=pager.mjs.map
|
|
19
|
+
//#endregion
|
|
20
|
+
export { paginationPagerProps };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=pager.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pager.mjs","sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Pager from './pager.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n pageSize: {\n type: Number,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"pager.mjs","names":[],"sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Pager from './pager.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n pageSize: {\n type: Number,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"mappings":";;AAIA,MAAa,uBAAuB,WAAW;CAC7C,aAAa;EACX,MAAM;EACN,SAAS;EACV;CACD,WAAW;EACT,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,UAAU,EACR,MAAM,QACP;CACD,UAAU;CACX,CAAU"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { paginationPagerProps } from "./pager.mjs";
|
|
2
|
+
import { CHANGE_EVENT, ElBadge, useLocale, useNamespace } from "element-plus";
|
|
3
|
+
import { formilyComputed, useObserver } from "@silver-formily/reactive-vue";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, watchEffect, withCtx, withKeys } from "vue";
|
|
5
|
+
import { useField } from "@silver-formily/vue";
|
|
6
|
+
import { DArrowLeft, DArrowRight, MoreFilled } from "@element-plus/icons-vue";
|
|
7
|
+
//#region src/pagination/components/pager.vue
|
|
8
|
+
const _hoisted_1 = [
|
|
9
|
+
"aria-current",
|
|
10
|
+
"aria-label",
|
|
11
|
+
"tabindex"
|
|
12
|
+
];
|
|
13
|
+
const _hoisted_2 = ["tabindex", "aria-label"];
|
|
14
|
+
const _hoisted_3 = [
|
|
15
|
+
"aria-current",
|
|
16
|
+
"aria-label",
|
|
17
|
+
"tabindex"
|
|
18
|
+
];
|
|
19
|
+
const _hoisted_4 = ["tabindex", "aria-label"];
|
|
20
|
+
const _hoisted_5 = [
|
|
21
|
+
"aria-current",
|
|
22
|
+
"aria-label",
|
|
23
|
+
"tabindex"
|
|
24
|
+
];
|
|
25
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
|
+
name: "ElPaginationPager",
|
|
27
|
+
__name: "pager",
|
|
28
|
+
props: paginationPagerProps,
|
|
29
|
+
emits: [CHANGE_EVENT],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const emit = __emit;
|
|
33
|
+
const nsPager = useNamespace("pager");
|
|
34
|
+
const nsIcon = useNamespace("icon");
|
|
35
|
+
const { t } = useLocale();
|
|
36
|
+
const showPrevMore = ref(false);
|
|
37
|
+
const showNextMore = ref(false);
|
|
38
|
+
const quickPrevHover = ref(false);
|
|
39
|
+
const quickNextHover = ref(false);
|
|
40
|
+
const quickPrevFocus = ref(false);
|
|
41
|
+
const quickNextFocus = ref(false);
|
|
42
|
+
const pagers = computed(() => {
|
|
43
|
+
const pagerCount = props.pagerCount;
|
|
44
|
+
const halfPagerCount = (pagerCount - 1) / 2;
|
|
45
|
+
const currentPage = Number(props.currentPage);
|
|
46
|
+
const pageCount = Number(props.pageCount);
|
|
47
|
+
let showPrevMore = false;
|
|
48
|
+
let showNextMore = false;
|
|
49
|
+
if (pageCount > pagerCount) {
|
|
50
|
+
if (currentPage > pagerCount - halfPagerCount) showPrevMore = true;
|
|
51
|
+
if (currentPage < pageCount - halfPagerCount) showNextMore = true;
|
|
52
|
+
}
|
|
53
|
+
const array = [];
|
|
54
|
+
if (showPrevMore && !showNextMore) {
|
|
55
|
+
const startPage = pageCount - (pagerCount - 2);
|
|
56
|
+
for (let i = startPage; i < pageCount; i++) array.push(i);
|
|
57
|
+
} else if (!showPrevMore && showNextMore) for (let i = 2; i < pagerCount; i++) array.push(i);
|
|
58
|
+
else if (showPrevMore && showNextMore) {
|
|
59
|
+
const offset = Math.floor(pagerCount / 2) - 1;
|
|
60
|
+
for (let i = currentPage - offset; i <= currentPage + offset; i++) array.push(i);
|
|
61
|
+
} else for (let i = 2; i < pageCount; i++) array.push(i);
|
|
62
|
+
return array;
|
|
63
|
+
});
|
|
64
|
+
const prevMoreKls = computed(() => [
|
|
65
|
+
"more",
|
|
66
|
+
"btn-quickprev",
|
|
67
|
+
nsIcon.b(),
|
|
68
|
+
nsPager.is("disabled", props.disabled)
|
|
69
|
+
]);
|
|
70
|
+
const nextMoreKls = computed(() => [
|
|
71
|
+
"more",
|
|
72
|
+
"btn-quicknext",
|
|
73
|
+
nsIcon.b(),
|
|
74
|
+
nsPager.is("disabled", props.disabled)
|
|
75
|
+
]);
|
|
76
|
+
const tabindex = computed(() => props.disabled ? -1 : 0);
|
|
77
|
+
watchEffect(() => {
|
|
78
|
+
const halfPagerCount = (props.pagerCount - 1) / 2;
|
|
79
|
+
showPrevMore.value = false;
|
|
80
|
+
showNextMore.value = false;
|
|
81
|
+
if (props.pageCount > props.pagerCount) {
|
|
82
|
+
if (props.currentPage > props.pagerCount - halfPagerCount) showPrevMore.value = true;
|
|
83
|
+
if (props.currentPage < props.pageCount - halfPagerCount) showNextMore.value = true;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
function onMouseEnter(forward = false) {
|
|
87
|
+
if (props.disabled) return;
|
|
88
|
+
if (forward) quickPrevHover.value = true;
|
|
89
|
+
else quickNextHover.value = true;
|
|
90
|
+
}
|
|
91
|
+
function onFocus(forward = false) {
|
|
92
|
+
if (forward) quickPrevFocus.value = true;
|
|
93
|
+
else quickNextFocus.value = true;
|
|
94
|
+
}
|
|
95
|
+
function onEnter(e) {
|
|
96
|
+
const target = e.target;
|
|
97
|
+
if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("number")) {
|
|
98
|
+
const newPage = Number(target.textContent);
|
|
99
|
+
if (newPage !== props.currentPage) emit(CHANGE_EVENT, newPage);
|
|
100
|
+
} else if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("more")) onPagerClick(e);
|
|
101
|
+
}
|
|
102
|
+
function onPagerClick(event) {
|
|
103
|
+
const target = event.target;
|
|
104
|
+
if (target.tagName.toLowerCase() === "ul" || props.disabled) return;
|
|
105
|
+
let newPage = Number(target.textContent);
|
|
106
|
+
const pageCount = props.pageCount;
|
|
107
|
+
const currentPage = props.currentPage;
|
|
108
|
+
const pagerCountOffset = props.pagerCount - 2;
|
|
109
|
+
if (target.className.includes("more")) {
|
|
110
|
+
if (target.className.includes("quickprev")) newPage = currentPage - pagerCountOffset;
|
|
111
|
+
else if (target.className.includes("quicknext")) newPage = currentPage + pagerCountOffset;
|
|
112
|
+
}
|
|
113
|
+
if (!Number.isNaN(+newPage)) {
|
|
114
|
+
if (newPage < 1) newPage = 1;
|
|
115
|
+
if (newPage > pageCount) newPage = pageCount;
|
|
116
|
+
}
|
|
117
|
+
if (newPage !== currentPage) emit(CHANGE_EVENT, newPage);
|
|
118
|
+
}
|
|
119
|
+
useObserver();
|
|
120
|
+
const field = useField().value;
|
|
121
|
+
const path = field.address.entire;
|
|
122
|
+
const errorPageIndexList = formilyComputed(() => {
|
|
123
|
+
const errorPageSet = field.form.queryFeedbacks({
|
|
124
|
+
type: "error",
|
|
125
|
+
address: `${path}.**`
|
|
126
|
+
}).map((feedback) => Number(feedback.path.split(`${path}.`)[1].split(".")[0])).reduce((acc, cur) => {
|
|
127
|
+
const pageIndex = Math.floor(cur / props.pageSize);
|
|
128
|
+
acc.add(pageIndex);
|
|
129
|
+
return acc;
|
|
130
|
+
}, /* @__PURE__ */ new Set());
|
|
131
|
+
return Array.from(errorPageSet).sort((a, b) => a - b);
|
|
132
|
+
});
|
|
133
|
+
const isPrevMoreError = formilyComputed(() => {
|
|
134
|
+
return errorPageIndexList.value.some((pageIdx) => pageIdx < pagers.value[0] - 1 && pageIdx !== 0);
|
|
135
|
+
});
|
|
136
|
+
const isNextMoreError = formilyComputed(() => {
|
|
137
|
+
return errorPageIndexList.value.some((pageIdx) => pageIdx > pagers.value.at(-1) - 1 && pageIdx !== errorPageIndexList.value.length - 1);
|
|
138
|
+
});
|
|
139
|
+
return (_ctx, _cache) => {
|
|
140
|
+
return openBlock(), createElementBlock("ul", {
|
|
141
|
+
class: normalizeClass(unref(nsPager).b()),
|
|
142
|
+
onClick: onPagerClick,
|
|
143
|
+
onKeyup: withKeys(onEnter, ["enter"])
|
|
144
|
+
}, [
|
|
145
|
+
_ctx.pageCount > 1 ? (openBlock(), createBlock(unref(ElBadge), {
|
|
146
|
+
key: 0,
|
|
147
|
+
"is-dot": "",
|
|
148
|
+
value: 1,
|
|
149
|
+
hidden: unref(errorPageIndexList)[0] !== 0
|
|
150
|
+
}, {
|
|
151
|
+
default: withCtx(() => [createElementVNode("li", {
|
|
152
|
+
class: normalizeClass([[unref(nsPager).is("active", _ctx.currentPage === 1), unref(nsPager).is("disabled", _ctx.disabled)], "number"]),
|
|
153
|
+
"aria-current": _ctx.currentPage === 1,
|
|
154
|
+
"aria-label": unref(t)("el.pagination.currentPage", { pager: 1 }),
|
|
155
|
+
tabindex: tabindex.value
|
|
156
|
+
}, " 1 ", 10, _hoisted_1)]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["hidden"])) : createCommentVNode("v-if", true),
|
|
159
|
+
showPrevMore.value ? (openBlock(), createBlock(unref(ElBadge), {
|
|
160
|
+
key: 1,
|
|
161
|
+
"is-dot": "",
|
|
162
|
+
value: 1,
|
|
163
|
+
hidden: !unref(isPrevMoreError)
|
|
164
|
+
}, {
|
|
165
|
+
default: withCtx(() => [createElementVNode("li", {
|
|
166
|
+
class: normalizeClass(prevMoreKls.value),
|
|
167
|
+
tabindex: tabindex.value,
|
|
168
|
+
"aria-label": unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
|
|
169
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
|
|
170
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => quickPrevHover.value = false),
|
|
171
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
|
|
172
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
173
|
+
}, [(quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(DArrowLeft), { key: 0 })) : (openBlock(), createBlock(unref(MoreFilled), { key: 1 }))], 42, _hoisted_2)]),
|
|
174
|
+
_: 1
|
|
175
|
+
}, 8, ["hidden"])) : createCommentVNode("v-if", true),
|
|
176
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pagers.value, (pager) => {
|
|
177
|
+
return openBlock(), createBlock(unref(ElBadge), {
|
|
178
|
+
key: pager,
|
|
179
|
+
"is-dot": "",
|
|
180
|
+
value: 1,
|
|
181
|
+
hidden: !unref(errorPageIndexList).includes(pager - 1)
|
|
182
|
+
}, {
|
|
183
|
+
default: withCtx(() => [createElementVNode("li", {
|
|
184
|
+
class: normalizeClass([[unref(nsPager).is("active", _ctx.currentPage === pager), unref(nsPager).is("disabled", _ctx.disabled)], "number"]),
|
|
185
|
+
"aria-current": _ctx.currentPage === pager,
|
|
186
|
+
"aria-label": unref(t)("el.pagination.currentPage", { pager }),
|
|
187
|
+
tabindex: tabindex.value
|
|
188
|
+
}, toDisplayString(pager), 11, _hoisted_3)]),
|
|
189
|
+
_: 2
|
|
190
|
+
}, 1032, ["hidden"]);
|
|
191
|
+
}), 128)),
|
|
192
|
+
showNextMore.value ? (openBlock(), createBlock(unref(ElBadge), {
|
|
193
|
+
key: 2,
|
|
194
|
+
"is-dot": "",
|
|
195
|
+
value: 1,
|
|
196
|
+
hidden: !unref(isNextMoreError)
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [createElementVNode("li", {
|
|
199
|
+
class: normalizeClass(nextMoreKls.value),
|
|
200
|
+
tabindex: tabindex.value,
|
|
201
|
+
"aria-label": unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
|
|
202
|
+
onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
|
|
203
|
+
onMouseleave: _cache[5] || (_cache[5] = ($event) => quickNextHover.value = false),
|
|
204
|
+
onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
|
|
205
|
+
onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
|
|
206
|
+
}, [(quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (openBlock(), createBlock(unref(DArrowRight), { key: 0 })) : (openBlock(), createBlock(unref(MoreFilled), { key: 1 }))], 42, _hoisted_4)]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["hidden"])) : createCommentVNode("v-if", true),
|
|
209
|
+
createVNode(unref(ElBadge), {
|
|
210
|
+
"is-dot": "",
|
|
211
|
+
value: 1,
|
|
212
|
+
hidden: unref(errorPageIndexList)[unref(errorPageIndexList).length - 1] !== _ctx.pageCount - 1
|
|
213
|
+
}, {
|
|
214
|
+
default: withCtx(() => [createElementVNode("li", {
|
|
215
|
+
class: normalizeClass([[unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount), unref(nsPager).is("disabled", _ctx.disabled)], "number"]),
|
|
216
|
+
"aria-current": _ctx.currentPage === _ctx.pageCount,
|
|
217
|
+
"aria-label": unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
|
|
218
|
+
tabindex: tabindex.value
|
|
219
|
+
}, toDisplayString(_ctx.pageCount), 11, _hoisted_5)]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["hidden"])
|
|
222
|
+
], 34);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
//#endregion
|
|
227
|
+
export { _sfc_main as default };
|
|
228
|
+
|
|
229
|
+
//# sourceMappingURL=pager2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pager2.mjs","names":["pageCount","currentPage","disabled","pagerCount"],"sources":["../../../src/pagination/components/pager.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { ArrayField } from '@formily/core'\nimport { DArrowLeft, DArrowRight, MoreFilled } from '@element-plus/icons-vue'\nimport { formilyComputed, useObserver } from '@silver-formily/reactive-vue'\nimport { useField } from '@silver-formily/vue'\nimport { CHANGE_EVENT, ElBadge, useLocale, useNamespace } from 'element-plus'\nimport { computed, ref, watchEffect } from 'vue'\nimport { paginationPagerProps } from './pager'\n\ndefineOptions({\n name: 'ElPaginationPager',\n})\nconst props = defineProps(paginationPagerProps)\nconst emit = defineEmits([CHANGE_EVENT])\nconst nsPager = useNamespace('pager')\nconst nsIcon = useNamespace('icon')\nconst { t } = useLocale()\n\nconst showPrevMore = ref(false)\nconst showNextMore = ref(false)\nconst quickPrevHover = ref(false)\nconst quickNextHover = ref(false)\nconst quickPrevFocus = ref(false)\nconst quickNextFocus = ref(false)\nconst pagers = computed(() => {\n const pagerCount = props.pagerCount\n const halfPagerCount = (pagerCount - 1) / 2\n const currentPage = Number(props.currentPage)\n const pageCount = Number(props.pageCount)\n let showPrevMore = false\n let showNextMore = false\n if (pageCount > pagerCount) {\n if (currentPage > pagerCount - halfPagerCount) {\n showPrevMore = true\n }\n if (currentPage < pageCount - halfPagerCount) {\n showNextMore = true\n }\n }\n const array: number[] = []\n if (showPrevMore && !showNextMore) {\n const startPage = pageCount - (pagerCount - 2)\n for (let i = startPage; i < pageCount; i++) {\n array.push(i)\n }\n }\n else if (!showPrevMore && showNextMore) {\n for (let i = 2; i < pagerCount; i++) {\n array.push(i)\n }\n }\n else if (showPrevMore && showNextMore) {\n const offset = Math.floor(pagerCount / 2) - 1\n for (let i = currentPage - offset; i <= currentPage + offset; i++) {\n array.push(i)\n }\n }\n else {\n for (let i = 2; i < pageCount; i++) {\n array.push(i)\n }\n }\n return array\n})\n\nconst prevMoreKls = computed(() => [\n 'more',\n 'btn-quickprev',\n nsIcon.b(),\n nsPager.is('disabled', props.disabled),\n])\nconst nextMoreKls = computed(() => [\n 'more',\n 'btn-quicknext',\n nsIcon.b(),\n nsPager.is('disabled', props.disabled),\n])\n\nconst tabindex = computed(() => (props.disabled ? -1 : 0))\nwatchEffect(() => {\n const halfPagerCount = (props.pagerCount - 1) / 2\n showPrevMore.value = false\n showNextMore.value = false\n if (props.pageCount! > props.pagerCount) {\n if (props.currentPage > props.pagerCount - halfPagerCount) {\n showPrevMore.value = true\n }\n if (props.currentPage < props.pageCount! - halfPagerCount) {\n showNextMore.value = true\n }\n }\n})\nfunction onMouseEnter(forward = false) {\n if (props.disabled)\n return\n if (forward) {\n quickPrevHover.value = true\n }\n else {\n quickNextHover.value = true\n }\n}\nfunction onFocus(forward = false) {\n if (forward) {\n quickPrevFocus.value = true\n }\n else {\n quickNextFocus.value = true\n }\n}\nfunction onEnter(e: UIEvent) {\n const target = e.target as HTMLElement\n if (\n target.tagName.toLowerCase() === 'li'\n && Array.from(target.classList).includes('number')\n ) {\n const newPage = Number(target.textContent)\n if (newPage !== props.currentPage) {\n emit(CHANGE_EVENT, newPage)\n }\n }\n else if (\n target.tagName.toLowerCase() === 'li'\n && Array.from(target.classList).includes('more')\n ) {\n onPagerClick(e)\n }\n}\nfunction onPagerClick(event: UIEvent) {\n const target = event.target as HTMLElement\n if (target.tagName.toLowerCase() === 'ul' || props.disabled) {\n return\n }\n let newPage = Number(target.textContent)\n const pageCount = props.pageCount!\n const currentPage = props.currentPage\n const pagerCountOffset = props.pagerCount - 2\n if (target.className.includes('more')) {\n if (target.className.includes('quickprev')) {\n newPage = currentPage - pagerCountOffset\n }\n else if (target.className.includes('quicknext')) {\n newPage = currentPage + pagerCountOffset\n }\n }\n if (!Number.isNaN(+newPage)) {\n if (newPage < 1) {\n newPage = 1\n }\n if (newPage > pageCount) {\n newPage = pageCount\n }\n }\n if (newPage !== currentPage) {\n emit(CHANGE_EVENT, newPage)\n }\n}\n/* formily error count */\nuseObserver()\nconst fieldRef = useField<ArrayField>()\nconst field = fieldRef.value\nconst path = field.address.entire\nconst errorPageIndexList = formilyComputed(() => {\n const errorPageSet = field.form\n .queryFeedbacks({\n type: 'error',\n address: `${path}.**`,\n })\n .map(feedback => Number(feedback.path.split(`${path}.`)[1].split('.')[0]))\n .reduce((acc, cur) => {\n const pageIndex = Math.floor(cur / props.pageSize)\n acc.add(pageIndex)\n return acc\n }, new Set<number>())\n\n const errorPageList = Array.from(errorPageSet).sort((a, b) => a - b)\n return errorPageList\n})\n\nconst isPrevMoreError = formilyComputed(() => {\n return errorPageIndexList.value.some(pageIdx => (pageIdx < pagers.value[0] - 1) && pageIdx !== 0)\n})\nconst isNextMoreError = formilyComputed(() => {\n return errorPageIndexList.value.some(pageIdx => (pageIdx > pagers.value.at(-1) - 1) && pageIdx !== errorPageIndexList.value.length - 1)\n})\n</script>\n\n<template>\n <ul :class=\"nsPager.b()\" @click=\"onPagerClick\" @keyup.enter=\"onEnter\">\n <ElBadge v-if=\"pageCount > 1\" is-dot :value=\"1\" :hidden=\"errorPageIndexList[0] !== 0\">\n <li\n :class=\"[\n nsPager.is('active', currentPage === 1),\n nsPager.is('disabled', disabled),\n ]\" class=\"number\" :aria-current=\"currentPage === 1\" :aria-label=\"t('el.pagination.currentPage', { pager: 1 })\"\n :tabindex=\"tabindex\"\n >\n 1\n </li>\n </ElBadge>\n <ElBadge v-if=\"showPrevMore\" is-dot :value=\"1\" :hidden=\"!isPrevMoreError\">\n <li\n :class=\"prevMoreKls\" :tabindex=\"tabindex\"\n :aria-label=\"t('el.pagination.prevPages', { pager: pagerCount - 2 })\" @mouseenter=\"onMouseEnter(true)\"\n @mouseleave=\"quickPrevHover = false\" @focus=\"onFocus(true)\" @blur=\"quickPrevFocus = false\"\n >\n <DArrowLeft v-if=\"(quickPrevHover || quickPrevFocus) && !disabled\" />\n <MoreFilled v-else />\n </li>\n </ElBadge>\n <ElBadge\n v-for=\"pager in pagers\" :key=\"pager\" is-dot :value=\"1\"\n :hidden=\"!errorPageIndexList.includes(pager - 1)\"\n >\n <li\n :class=\"[\n nsPager.is('active', currentPage === pager),\n nsPager.is('disabled', disabled),\n ]\" class=\"number\" :aria-current=\"currentPage === pager\" :aria-label=\"t('el.pagination.currentPage', { pager })\"\n :tabindex=\"tabindex\"\n >\n {{ pager }}\n </li>\n </ElBadge>\n <ElBadge v-if=\"showNextMore\" is-dot :value=\"1\" :hidden=\"!isNextMoreError\">\n <li\n :class=\"nextMoreKls\" :tabindex=\"tabindex\"\n :aria-label=\"t('el.pagination.nextPages', { pager: pagerCount - 2 })\" @mouseenter=\"onMouseEnter()\"\n @mouseleave=\"quickNextHover = false\" @focus=\"onFocus()\" @blur=\"quickNextFocus = false\"\n >\n <DArrowRight v-if=\"(quickNextHover || quickNextFocus) && !disabled\" />\n <MoreFilled v-else />\n </li>\n </ElBadge>\n <ElBadge\n is-dot\n :value=\"1\"\n :hidden=\"errorPageIndexList[errorPageIndexList.length - 1] !== pageCount - 1\"\n >\n <li\n :class=\"[\n nsPager.is('active', currentPage === pageCount),\n nsPager.is('disabled', disabled),\n ]\" class=\"number\" :aria-current=\"currentPage === pageCount\"\n :aria-label=\"t('el.pagination.currentPage', { pager: pageCount })\" :tabindex=\"tabindex\"\n >\n {{ pageCount }}\n </li>\n </ElBadge>\n </ul>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EACd,MAAM,OAAO;EACb,MAAM,UAAU,aAAa,QAAO;EACpC,MAAM,SAAS,aAAa,OAAM;EAClC,MAAM,EAAE,MAAM,WAAU;EAExB,MAAM,eAAe,IAAI,MAAK;EAC9B,MAAM,eAAe,IAAI,MAAK;EAC9B,MAAM,iBAAiB,IAAI,MAAK;EAChC,MAAM,iBAAiB,IAAI,MAAK;EAChC,MAAM,iBAAiB,IAAI,MAAK;EAChC,MAAM,iBAAiB,IAAI,MAAK;EAChC,MAAM,SAAS,eAAe;GAC5B,MAAM,aAAa,MAAM;GACzB,MAAM,kBAAkB,aAAa,KAAK;GAC1C,MAAM,cAAc,OAAO,MAAM,YAAW;GAC5C,MAAM,YAAY,OAAO,MAAM,UAAS;GACxC,IAAI,eAAe;GACnB,IAAI,eAAe;AACnB,OAAI,YAAY,YAAY;AAC1B,QAAI,cAAc,aAAa,eAC7B,gBAAe;AAEjB,QAAI,cAAc,YAAY,eAC5B,gBAAe;;GAGnB,MAAM,QAAkB,EAAC;AACzB,OAAI,gBAAgB,CAAC,cAAc;IACjC,MAAM,YAAY,aAAa,aAAa;AAC5C,SAAK,IAAI,IAAI,WAAW,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A,WAAE,eAAA,QAAc;UAEzD,eAAA,SAAkB,eAAA,UAAc,CAAMD,KAAAA,YAAAA,WAAAA,EAA1D,YAAsE,MAAA,YAAA,EAAA,EAAA,KAAA,GAAA,CAAA,KAAA,WAAA,EACtE,YAAqB,MAAA,WAAA,EAAA,EAAA,KAAA,GAAA,CAAA,EAAA,EAAA,IAAA,WAAA,CAAA,CAAA;;;IAGzB,YAcU,MAAA,QAAA,EAAA;KAbR,UAAA;KACC,OAAO;KACP,QAAQ,MAAA,mBAAkB,CAAC,MAAA,mBAAkB,CAAC,SAAM,OAAUF,KAAAA,YAAS;;4BAUnE,CARL,mBAQK,MAAA;MAPF,OAAK,eAAA,CAAA,CAAc,MAAA,QAAO,CAAC,GAAE,UAAWC,KAAAA,gBAAgBD,KAAAA,UAAS,EAAa,MAAA,QAAO,CAAC,GAAE,YAAaE,KAAAA,SAAQ,CAAA,EAGrG,SAAQ,CAAA;MAAE,gBAAcD,KAAAA,gBAAgBD,KAAAA;MAChD,cAAY,MAAA,EAAC,CAAA,6BAAA,EAAA,OAAuCA,KAAAA,WAAS,CAAA;MAAM,UAAU,SAAA;wBAE3EA,KAAAA,UAAS,EAAA,IAAA,WAAA,CAAA,CAAA"}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
p as paginationPrevEmits,
|
|
20
|
-
n as paginationPrevProps
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=prev.mjs.map
|
|
1
|
+
import { buildProps, iconPropType } from "element-plus/es/utils/index";
|
|
2
|
+
//#region src/pagination/components/prev.ts
|
|
3
|
+
const paginationPrevProps = buildProps({
|
|
4
|
+
disabled: Boolean,
|
|
5
|
+
currentPage: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: 1
|
|
8
|
+
},
|
|
9
|
+
prevText: { type: String },
|
|
10
|
+
prevIcon: { type: iconPropType }
|
|
11
|
+
});
|
|
12
|
+
const paginationPrevEmits = { click: (evt) => evt instanceof MouseEvent };
|
|
13
|
+
//#endregion
|
|
14
|
+
export { paginationPrevEmits, paginationPrevProps };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=prev.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prev.mjs","sources":["../../../src/pagination/components/prev.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Prev from './prev.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationPrevProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n prevText: {\n type: String,\n },\n prevIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport const paginationPrevEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type PaginationPrevProps = ExtractPropTypes<typeof paginationPrevProps>\n\nexport type PrevInstance = InstanceType<typeof Prev> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"prev.mjs","names":[],"sources":["../../../src/pagination/components/prev.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Prev from './prev.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationPrevProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n prevText: {\n type: String,\n },\n prevIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport const paginationPrevEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type PaginationPrevProps = ExtractPropTypes<typeof paginationPrevProps>\n\nexport type PrevInstance = InstanceType<typeof Prev> & unknown\n"],"mappings":";;AAIA,MAAa,sBAAsB,WAAW;CAC5C,UAAU;CACV,aAAa;EACX,MAAM;EACN,SAAS;EACV;CACD,UAAU,EACR,MAAM,QACP;CACD,UAAU,EACR,MAAM,cACP;CACF,CAAU;AAEX,MAAa,sBAAsB,EACjC,QAAQ,QAAoB,eAAe,YAC5C"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { paginationPrevEmits, paginationPrevProps } from "./prev.mjs";
|
|
2
|
+
import { ElIcon, useLocale } from "element-plus";
|
|
3
|
+
import { computed, createBlock, createElementBlock, defineComponent, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
//#region src/pagination/components/prev.vue
|
|
5
|
+
const _hoisted_1 = [
|
|
6
|
+
"disabled",
|
|
7
|
+
"aria-label",
|
|
8
|
+
"aria-disabled"
|
|
9
|
+
];
|
|
10
|
+
const _hoisted_2 = { key: 0 };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
name: "ElPaginationPrev",
|
|
13
|
+
__name: "prev",
|
|
14
|
+
props: paginationPrevProps,
|
|
15
|
+
emits: paginationPrevEmits,
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { t } = useLocale();
|
|
19
|
+
const internalDisabled = computed(() => props.disabled || props.currentPage <= 1);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
class: "btn-prev",
|
|
24
|
+
disabled: internalDisabled.value,
|
|
25
|
+
"aria-label": _ctx.prevText || unref(t)("el.pagination.prev"),
|
|
26
|
+
"aria-disabled": internalDisabled.value,
|
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
28
|
+
}, [_ctx.prevText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.prevText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
29
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.prevIcon)))]),
|
|
30
|
+
_: 1
|
|
31
|
+
}))], 8, _hoisted_1);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { _sfc_main as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=prev2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prev2.mjs","names":["prevText","$emit","prevIcon"],"sources":["../../../src/pagination/components/prev.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ElIcon, useLocale } from 'element-plus'\nimport { computed } from 'vue'\nimport { paginationPrevEmits, paginationPrevProps } from './prev'\n\ndefineOptions({\n name: 'ElPaginationPrev',\n})\n\nconst props = defineProps(paginationPrevProps)\ndefineEmits(paginationPrevEmits)\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () => props.disabled || props.currentPage <= 1,\n)\n</script>\n\n<template>\n <button\n type=\"button\"\n class=\"btn-prev\"\n :disabled=\"internalDisabled\"\n :aria-label=\"prevText || t('el.pagination.prev')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"prevText\">{{ prevText }}</span>\n <ElIcon v-else>\n <component :is=\"prevIcon\" />\n </ElIcon>\n </button>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EASA,MAAM,QAAQ;EAGd,MAAM,EAAE,MAAM,WAAU;EAExB,MAAM,mBAAmB,eACjB,MAAM,YAAY,MAAM,eAAe,EAC/C;;uBAIE,mBAYS,UAAA;IAXP,MAAK;IACL,OAAM;IACL,UAAU,iBAAA;IACV,cAAYA,KAAAA,YAAY,MAAA,EAAC,CAAA,qBAAA;IACzB,iBAAe,iBAAA;IACf,SAAK,OAAA,OAAA,OAAA,MAAA,WAAEC,KAAAA,MAAK,SAAU,OAAM;OAEjBD,KAAAA,YAAAA,WAAAA,EAAZ,mBAA2C,QAAA,YAAA,gBAAlBA,KAAAA,SAAQ,EAAA,EAAA,KAAA,WAAA,EACjC,YAES,MAAA,OAAA,EAAA,EAAA,KAAA,GAAA,EAAA;2BADqB,EAAA,WAAA,EAA5B,YAA4B,wBAAZE,KAAAA,SAAQ,CAAA,EAAA,CAAA"}
|
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
import "element-plus";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { componentSizes } from "element-plus";
|
|
2
|
+
import { buildProps, definePropType, mutable } from "element-plus/es/utils/index";
|
|
3
|
+
//#region src/pagination/components/sizes.ts
|
|
4
|
+
const paginationSizesProps = buildProps({
|
|
5
|
+
pageSize: {
|
|
6
|
+
type: Number,
|
|
7
|
+
required: true
|
|
8
|
+
},
|
|
9
|
+
pageSizes: {
|
|
10
|
+
type: definePropType(Array),
|
|
11
|
+
default: () => mutable([
|
|
12
|
+
10,
|
|
13
|
+
20,
|
|
14
|
+
30,
|
|
15
|
+
40,
|
|
16
|
+
50,
|
|
17
|
+
100
|
|
18
|
+
])
|
|
19
|
+
},
|
|
20
|
+
popperClass: { type: String },
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
teleported: Boolean,
|
|
23
|
+
size: {
|
|
24
|
+
type: String,
|
|
25
|
+
values: componentSizes
|
|
26
|
+
},
|
|
27
|
+
appendSizeTo: String
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { paginationSizesProps };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=sizes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizes.mjs","
|
|
1
|
+
{"version":3,"file":"sizes.mjs","names":[],"sources":["../../../src/pagination/components/sizes.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Sizes from './sizes.vue'\nimport { componentSizes } from 'element-plus'\nimport { buildProps, definePropType, mutable } from 'element-plus/es/utils/index'\n\nexport const paginationSizesProps = buildProps({\n pageSize: {\n type: Number,\n required: true,\n },\n pageSizes: {\n type: definePropType<number[]>(Array),\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\n },\n popperClass: {\n type: String,\n },\n disabled: Boolean,\n teleported: Boolean,\n size: {\n type: String,\n values: componentSizes,\n },\n appendSizeTo: String,\n} as const)\n\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\n\nexport type SizesInstance = InstanceType<typeof Sizes> & unknown\n"],"mappings":";;;AAKA,MAAa,uBAAuB,WAAW;CAC7C,UAAU;EACR,MAAM;EACN,UAAU;EACX;CACD,WAAW;EACT,MAAM,eAAyB,MAAM;EACrC,eAAe,QAAQ;GAAC;GAAI;GAAI;GAAI;GAAI;GAAI;GAAI,CAAU;EAC3D;CACD,aAAa,EACX,MAAM,QACP;CACD,UAAU;CACV,YAAY;CACZ,MAAM;EACJ,MAAM;EACN,QAAQ;EACT;CACD,cAAc;CACf,CAAU"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { paginationSizesProps } from "./sizes.mjs";
|
|
2
|
+
import { ElOption, ElSelect, useLocale, useNamespace } from "element-plus";
|
|
3
|
+
import { Fragment, computed, createBlock, createElementBlock, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, unref, watch, withCtx } from "vue";
|
|
4
|
+
import { isArr, isEqual } from "@formily/shared";
|
|
5
|
+
import { usePagination } from "element-plus/es/components/pagination/src/usePagination";
|
|
6
|
+
//#region src/pagination/components/sizes.vue
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "ElPaginationSizes",
|
|
9
|
+
__name: "sizes",
|
|
10
|
+
props: paginationSizesProps,
|
|
11
|
+
emits: ["page-size-change"],
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const emit = __emit;
|
|
15
|
+
const { t } = useLocale();
|
|
16
|
+
const ns = useNamespace("pagination");
|
|
17
|
+
const pagination = usePagination();
|
|
18
|
+
const innerPageSize = ref(props.pageSize);
|
|
19
|
+
watch(() => props.pageSizes, (newVal, oldVal) => {
|
|
20
|
+
if (isEqual(newVal, oldVal)) return;
|
|
21
|
+
if (isArr(newVal)) emit("page-size-change", newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0]);
|
|
22
|
+
});
|
|
23
|
+
watch(() => props.pageSize, (newVal) => {
|
|
24
|
+
innerPageSize.value = newVal;
|
|
25
|
+
});
|
|
26
|
+
const innerPageSizes = computed(() => props.pageSizes);
|
|
27
|
+
function handleChange(val) {
|
|
28
|
+
if (val !== innerPageSize.value) {
|
|
29
|
+
innerPageSize.value = val;
|
|
30
|
+
pagination.handleSizeChange?.(Number(val));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(unref(ns).e("sizes")) }, [createVNode(unref(ElSelect), {
|
|
35
|
+
"model-value": innerPageSize.value,
|
|
36
|
+
disabled: _ctx.disabled,
|
|
37
|
+
"popper-class": _ctx.popperClass,
|
|
38
|
+
size: _ctx.size,
|
|
39
|
+
teleported: _ctx.teleported,
|
|
40
|
+
"validate-event": false,
|
|
41
|
+
"append-to": _ctx.appendSizeTo,
|
|
42
|
+
onChange: handleChange
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(innerPageSizes.value, (item) => {
|
|
45
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
46
|
+
key: item,
|
|
47
|
+
value: item,
|
|
48
|
+
label: item + unref(t)("el.pagination.pagesize")
|
|
49
|
+
}, null, 8, ["value", "label"]);
|
|
50
|
+
}), 128))]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, [
|
|
53
|
+
"model-value",
|
|
54
|
+
"disabled",
|
|
55
|
+
"popper-class",
|
|
56
|
+
"size",
|
|
57
|
+
"teleported",
|
|
58
|
+
"append-to"
|
|
59
|
+
])], 2);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
export { _sfc_main as default };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=sizes2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes2.mjs","names":["disabled","popperClass","size","teleported","appendSizeTo"],"sources":["../../../src/pagination/components/sizes.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { isArr, isEqual } from '@formily/shared'\nimport { ElOption, ElSelect, useLocale, useNamespace } from 'element-plus'\nimport { usePagination } from 'element-plus/es/components/pagination/src/usePagination'\nimport { computed, ref, watch } from 'vue'\nimport { paginationSizesProps } from './sizes'\n\ndefineOptions({\n name: 'ElPaginationSizes',\n})\n\nconst props = defineProps(paginationSizesProps)\nconst emit = defineEmits(['page-size-change'])\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst pagination = usePagination()\nconst innerPageSize = ref<number>(props.pageSize!)\n\nwatch(\n () => props.pageSizes,\n (newVal, oldVal) => {\n if (isEqual(newVal, oldVal))\n return\n if (isArr(newVal)) {\n const pageSize = newVal.includes(props.pageSize!)\n ? props.pageSize\n : props.pageSizes[0]\n // eslint-disable-next-line vue/custom-event-name-casing\n emit('page-size-change', pageSize)\n }\n },\n)\n\nwatch(\n () => props.pageSize,\n (newVal) => {\n innerPageSize.value = newVal!\n },\n)\n\nconst innerPageSizes = computed(() => props.pageSizes)\nfunction handleChange(val: number) {\n if (val !== innerPageSize.value) {\n innerPageSize.value = val\n pagination.handleSizeChange?.(Number(val))\n }\n}\n</script>\n\n<template>\n <span :class=\"ns.e('sizes')\">\n <ElSelect\n :model-value=\"innerPageSize\"\n :disabled=\"disabled\"\n :popper-class=\"popperClass\"\n :size=\"size\"\n :teleported=\"teleported\"\n :validate-event=\"false\"\n :append-to=\"appendSizeTo\"\n @change=\"handleChange\"\n >\n <ElOption\n v-for=\"item in innerPageSizes\"\n :key=\"item\"\n :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
|
-
|
|
11
|
-
//# sourceMappingURL=total.mjs.map
|
|
1
|
+
import { buildProps } from "element-plus/es/utils/index";
|
|
2
|
+
//#region src/pagination/components/total.ts
|
|
3
|
+
const paginationTotalProps = buildProps({ total: {
|
|
4
|
+
type: Number,
|
|
5
|
+
default: 1e3
|
|
6
|
+
} });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paginationTotalProps };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=total.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"total.mjs","sources":["../../../src/pagination/components/total.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Total from './total.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationTotalProps = buildProps({\n total: {\n type: Number,\n default: 1000,\n },\n} as const)\n\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\n\nexport type TotalInstance = InstanceType<typeof Total> & unknown\n"],"
|
|
1
|
+
{"version":3,"file":"total.mjs","names":[],"sources":["../../../src/pagination/components/total.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Total from './total.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationTotalProps = buildProps({\n total: {\n type: Number,\n default: 1000,\n },\n} as const)\n\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\n\nexport type TotalInstance = InstanceType<typeof Total> & unknown\n"],"mappings":";;AAIA,MAAa,uBAAuB,WAAW,EAC7C,OAAO;CACL,MAAM;CACN,SAAS;CACV,EACF,CAAU"}
|