@aplus-frontend/ui 0.1.8 → 0.1.10
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/es/index.mjs +57 -56
- package/es/src/ap-action/group/index.vue.d.ts +30 -3
- package/es/src/ap-action/item/index.vue.d.ts +30 -3
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +39 -10
- package/es/src/ap-action/item-modal/index.vue.d.ts +33 -6
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +33 -7
- package/es/src/ap-custom-column/column-select.vue.d.ts +14 -5
- package/es/src/ap-custom-column/column-select.vue.mjs +32 -32
- package/es/src/ap-custom-column/custom-column.vue.d.ts +14 -5
- package/es/src/ap-custom-column/custom-column.vue.mjs +46 -46
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -2
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +13 -4
- package/es/src/ap-download/ap-download.vue.d.ts +28 -3
- package/es/src/ap-field/checkbox/index.vue.d.ts +31 -40
- package/es/src/ap-field/date/index.vue.d.ts +64 -19
- package/es/src/ap-field/date-range/index.vue.d.ts +66 -20
- package/es/src/ap-field/interface.d.ts +4 -0
- package/es/src/ap-field/number/index.vue.d.ts +42 -138
- package/es/src/ap-field/radio/index.vue.d.ts +31 -51
- package/es/src/ap-field/rate/index.vue.d.ts +39 -46
- package/es/src/ap-field/segmented/index.vue.d.ts +32 -47
- package/es/src/ap-field/select/index.vue.d.ts +65 -192
- package/es/src/ap-field/select/index.vue.mjs +36 -31
- package/es/src/ap-field/slider/index.vue.d.ts +40 -115
- package/es/src/ap-field/switch/index.vue.d.ts +35 -60
- package/es/src/ap-field/text/index.vue.d.ts +38 -105
- package/es/src/ap-field/text/password.vue.d.ts +45 -113
- package/es/src/ap-field/text-area/index.vue.d.ts +38 -117
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +32 -50
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +25 -30
- package/es/src/ap-form/ap-form-item.vue.d.ts +38 -128
- package/es/src/ap-form/ap-form-item.vue.mjs +52 -42
- package/es/src/ap-form/ap-form-list.vue.d.ts +11 -2
- package/es/src/ap-form/ap-form.vue.d.ts +36 -238
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +37 -7
- package/es/src/ap-form/items/date/index.vue.d.ts +37 -131
- package/es/src/ap-form/items/date-range/index.vue.d.ts +37 -131
- package/es/src/ap-form/items/number/index.vue.d.ts +38 -132
- package/es/src/ap-form/items/radio/index.vue.d.ts +38 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +38 -132
- package/es/src/ap-form/items/switch/index.vue.d.ts +39 -7
- package/es/src/ap-form/items/text/index.vue.d.ts +38 -132
- package/es/src/ap-form/items/text/password.vue.d.ts +38 -132
- package/es/src/ap-form/items/text-area/index.vue.d.ts +38 -9
- package/es/src/ap-form/modal-form/index.vue.d.ts +52 -17
- package/es/src/ap-form/search-form/index.vue.d.ts +50 -254
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +30 -3
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +33 -23
- package/es/src/ap-list/index.vue.d.ts +3 -3
- package/es/src/ap-table/ap-table.vue.d.ts +2 -2
- package/es/src/ap-table/ap-table.vue.mjs +158 -147
- package/es/src/ap-table/components/index/index.vue.d.ts +24 -3
- package/es/src/ap-table/components/status/index.vue.d.ts +11 -2
- package/es/src/ap-table/constants.d.ts +12396 -4527
- package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -10
- package/es/src/ap-table/hooks/use-table-paging.mjs +63 -63
- package/es/src/ap-table/interface.d.ts +13 -1
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +28 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +88 -88
- package/es/src/ap-tag/ap-tag.vue.d.ts +28 -3
- package/es/src/ap-upload/apUpload.vue.d.ts +48 -23
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -2
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/es/src/base-button/button.vue.d.ts +24 -3
- package/es/src/base-button/index.d.ts +110 -7
- package/es/src/base-button/modal-button.vue.d.ts +14 -8
- package/es/src/base-button/pop-confirm-button.vue.d.ts +10 -7
- package/es/src/basic/arrow.vue.d.ts +11 -2
- package/es/src/basic/help.vue.d.ts +50 -324
- package/es/src/basic/index.d.ts +202 -667
- package/es/src/basic/title.vue.d.ts +24 -3
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +11 -2
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +11 -2
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +53 -48
- package/es/src/business/ap-export-group/interface.d.ts +4 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +31 -34
- package/es/src/business/ap-label/ApLabel.vue.d.ts +40 -45
- package/es/src/business/ap-label/ApLabel.vue2.mjs +54 -39
- package/es/src/business/ap-label/ApLabelGroup.d.ts +43 -0
- package/es/src/business/ap-label/ApLabelGroup.mjs +30 -0
- package/es/src/business/ap-label/constans.d.ts +20 -0
- package/es/src/business/ap-label/constans.mjs +21 -0
- package/es/src/business/ap-label/interface.d.ts +21 -2
- package/es/src/business/ap-label/style.css +26 -1
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +23 -23
- package/es/src/business/ap-status/ApStatus.vue.d.ts +28 -3
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +30 -3
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +73 -6
- package/es/src/business/index.d.ts +995 -201
- package/es/src/business/index.mjs +21 -19
- package/es/src/business/title/ApTitle.vue.d.ts +32 -3
- package/es/src/button/button.vue.d.ts +11 -2
- package/es/src/button/index.d.ts +32 -16
- package/es/src/check-card/group.vue.d.ts +41 -17
- package/es/src/check-card/index.vue.d.ts +35 -20
- package/es/src/config-provider/config-provider.d.ts +137 -41
- package/es/src/config-provider/index.d.ts +545 -161
- package/es/src/container/collapse/header.vue.d.ts +13 -11
- package/es/src/container/collapse/index.vue.d.ts +40 -11
- package/es/src/container/index.d.ts +119 -40
- package/es/src/container/scroll-container.vue.d.ts +12 -3
- package/es/src/count-down/button.vue.d.ts +24 -3
- package/es/src/count-down/index.d.ts +111 -12
- package/es/src/count-down/input.vue.d.ts +24 -3
- package/es/src/cropper/cropper-avatar.vue.d.ts +33 -6
- package/es/src/cropper/cropper-image.vue.d.ts +36 -5
- package/es/src/cropper/cropper-modal.vue.d.ts +21 -13
- package/es/src/cropper/index.d.ts +269 -24
- package/es/src/description/description.vue.d.ts +45 -15
- package/es/src/description/index.d.ts +171 -51
- package/es/src/dropdown/dropdown.vue.d.ts +30 -5
- package/es/src/dropdown/index.d.ts +76 -12
- package/es/src/editable-table/form-item.vue.d.ts +4 -4
- package/es/src/editable-table/index.vue.d.ts +4 -4
- package/es/src/hooks/useControllableValue.d.ts +1 -1
- package/es/src/icon/icon.vue.d.ts +29 -3
- package/es/src/icon/index.d.ts +159 -12
- package/es/src/icon/svg-icon.vue.d.ts +28 -3
- package/es/src/icon-picker/icon-picker.vue.d.ts +38 -5
- package/es/src/icon-picker/index.d.ts +139 -12
- package/es/src/index.mjs +184 -183
- package/es/src/modal/basic.vue.d.ts +117 -147
- package/es/src/modal/components/modal-close.vue.d.ts +26 -5
- package/es/src/modal/components/modal-footer.vue.d.ts +116 -146
- package/es/src/modal/components/modal-header.vue.d.ts +11 -2
- package/es/src/modal/components/modal-wrapper.vue.d.ts +43 -19
- package/es/src/modal/components/modal.d.ts +115 -145
- package/es/src/modal/hooks/use-moda-full-screen.d.ts +1 -1
- package/es/src/modal/index.d.ts +462 -287
- package/es/src/pro-form/components/api-cascader.vue.d.ts +38 -5
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +36 -5
- package/es/src/pro-form/components/api-select.vue.d.ts +38 -5
- package/es/src/pro-form/components/api-transfer.vue.d.ts +40 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +36 -5
- package/es/src/pro-form/components/api-tree.vue.d.ts +28 -5
- package/es/src/pro-form/components/form-action.vue.d.ts +38 -5
- package/es/src/pro-form/components/form-item.vue.d.ts +34 -14
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +24 -3
- package/es/src/pro-form/hooks/use-break-point.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.d.ts +57 -6
- package/es/src/pro-form/table-form-inner.vue.d.ts +34 -5
- package/es/src/pro-form/table-form.vue.d.ts +29 -4
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +9 -6
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +26 -96
- package/es/src/pro-table/components/header-cell.vue.d.ts +9 -726
- package/es/src/pro-table/components/settings/column-setting.vue.d.ts +3 -3
- package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
- package/es/src/pro-table/components/settings/index.vue.d.ts +11 -8
- package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
- package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-action.vue.d.ts +24 -10
- package/es/src/pro-table/components/table-footer.vue.d.ts +30 -5
- package/es/src/pro-table/components/table-header.vue.d.ts +31 -15
- package/es/src/pro-table/components/table-image.vue.d.ts +32 -3
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +26 -5
- package/es/src/pro-table/components/table-title.vue.d.ts +13 -7
- package/es/src/pro-table/pro-table.vue.d.ts +61 -8
- package/es/src/prompt/dialog.vue.d.ts +11 -2
- package/es/src/scroll-bar/bar-item.d.ts +9 -10
- package/es/src/scroll-bar/index.d.ts +135 -12
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +36 -5
- package/es/src/strength-meter/index.d.ts +55 -12
- package/es/src/strength-meter/strength-meter.vue.d.ts +26 -5
- package/es/src/tests/wrapper.d.ts +6 -3
- package/es/src/theme/antd-global-overwrite/admin/button.css +3 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +3 -0
- package/es/src/theme/antd-global-overwrite/aplus/button.css +3 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +3 -0
- package/es/src/theme/ap-label/ap-label.css +26 -1
- package/es/src/transition/collapse-transition.vue.d.ts +2 -2
- package/es/src/transition/create-transition.d.ts +25 -13
- package/es/src/transition/index.d.ts +193 -88
- package/es/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/es/src/work-order-modal/help-message.vue2.mjs +19 -19
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +15 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +30 -3
- package/lib/src/ap-action/item/index.vue.d.ts +30 -3
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +39 -10
- package/lib/src/ap-action/item-modal/index.vue.d.ts +33 -6
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +33 -7
- package/lib/src/ap-custom-column/column-select.vue.d.ts +14 -5
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.d.ts +14 -5
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -2
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +13 -4
- package/lib/src/ap-download/ap-download.vue.d.ts +28 -3
- package/lib/src/ap-field/checkbox/index.vue.d.ts +31 -40
- package/lib/src/ap-field/date/index.vue.d.ts +64 -19
- package/lib/src/ap-field/date-range/index.vue.d.ts +66 -20
- package/lib/src/ap-field/interface.d.ts +4 -0
- package/lib/src/ap-field/number/index.vue.d.ts +42 -138
- package/lib/src/ap-field/radio/index.vue.d.ts +31 -51
- package/lib/src/ap-field/rate/index.vue.d.ts +39 -46
- package/lib/src/ap-field/segmented/index.vue.d.ts +32 -47
- package/lib/src/ap-field/select/index.vue.d.ts +65 -192
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +40 -115
- package/lib/src/ap-field/switch/index.vue.d.ts +35 -60
- package/lib/src/ap-field/text/index.vue.d.ts +38 -105
- package/lib/src/ap-field/text/password.vue.d.ts +45 -113
- package/lib/src/ap-field/text-area/index.vue.d.ts +38 -117
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +32 -50
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +38 -128
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.d.ts +11 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +36 -238
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +37 -7
- package/lib/src/ap-form/items/date/index.vue.d.ts +37 -131
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +37 -131
- package/lib/src/ap-form/items/number/index.vue.d.ts +38 -132
- package/lib/src/ap-form/items/radio/index.vue.d.ts +38 -8
- package/lib/src/ap-form/items/select/index.vue.d.ts +38 -132
- package/lib/src/ap-form/items/switch/index.vue.d.ts +39 -7
- package/lib/src/ap-form/items/text/index.vue.d.ts +38 -132
- package/lib/src/ap-form/items/text/password.vue.d.ts +38 -132
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +38 -9
- package/lib/src/ap-form/modal-form/index.vue.d.ts +52 -17
- package/lib/src/ap-form/search-form/index.vue.d.ts +50 -254
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +30 -3
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +3 -3
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -2
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +24 -3
- package/lib/src/ap-table/components/status/index.vue.d.ts +11 -2
- package/lib/src/ap-table/constants.d.ts +12396 -4527
- package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -10
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -1
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +28 -3
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +28 -3
- package/lib/src/ap-upload/apUpload.vue.d.ts +48 -23
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/lib/src/base-button/button.vue.d.ts +24 -3
- package/lib/src/base-button/index.d.ts +110 -7
- package/lib/src/base-button/modal-button.vue.d.ts +14 -8
- package/lib/src/base-button/pop-confirm-button.vue.d.ts +10 -7
- package/lib/src/basic/arrow.vue.d.ts +11 -2
- package/lib/src/basic/help.vue.d.ts +50 -324
- package/lib/src/basic/index.d.ts +202 -667
- package/lib/src/basic/title.vue.d.ts +24 -3
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +11 -2
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +11 -2
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +4 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +31 -34
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +40 -45
- package/lib/src/business/ap-label/ApLabel.vue2.js +1 -1
- package/lib/src/business/ap-label/ApLabelGroup.d.ts +43 -0
- package/lib/src/business/ap-label/ApLabelGroup.js +1 -0
- package/lib/src/business/ap-label/constans.d.ts +20 -0
- package/lib/src/business/ap-label/constans.js +1 -0
- package/lib/src/business/ap-label/interface.d.ts +21 -2
- package/lib/src/business/ap-label/style.css +26 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +28 -3
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +30 -3
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +73 -6
- package/lib/src/business/index.d.ts +995 -201
- package/lib/src/business/index.js +1 -1
- package/lib/src/business/title/ApTitle.vue.d.ts +32 -3
- package/lib/src/button/button.vue.d.ts +11 -2
- package/lib/src/button/index.d.ts +32 -16
- package/lib/src/check-card/group.vue.d.ts +41 -17
- package/lib/src/check-card/index.vue.d.ts +35 -20
- package/lib/src/config-provider/config-provider.d.ts +137 -41
- package/lib/src/config-provider/index.d.ts +545 -161
- package/lib/src/container/collapse/header.vue.d.ts +13 -11
- package/lib/src/container/collapse/index.vue.d.ts +40 -11
- package/lib/src/container/index.d.ts +119 -40
- package/lib/src/container/scroll-container.vue.d.ts +12 -3
- package/lib/src/count-down/button.vue.d.ts +24 -3
- package/lib/src/count-down/index.d.ts +111 -12
- package/lib/src/count-down/input.vue.d.ts +24 -3
- package/lib/src/cropper/cropper-avatar.vue.d.ts +33 -6
- package/lib/src/cropper/cropper-image.vue.d.ts +36 -5
- package/lib/src/cropper/cropper-modal.vue.d.ts +21 -13
- package/lib/src/cropper/index.d.ts +269 -24
- package/lib/src/description/description.vue.d.ts +45 -15
- package/lib/src/description/index.d.ts +171 -51
- package/lib/src/dropdown/dropdown.vue.d.ts +30 -5
- package/lib/src/dropdown/index.d.ts +76 -12
- package/lib/src/editable-table/form-item.vue.d.ts +4 -4
- package/lib/src/editable-table/index.vue.d.ts +4 -4
- package/lib/src/hooks/useControllableValue.d.ts +1 -1
- package/lib/src/icon/icon.vue.d.ts +29 -3
- package/lib/src/icon/index.d.ts +159 -12
- package/lib/src/icon/svg-icon.vue.d.ts +28 -3
- package/lib/src/icon-picker/icon-picker.vue.d.ts +38 -5
- package/lib/src/icon-picker/index.d.ts +139 -12
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +117 -147
- package/lib/src/modal/components/modal-close.vue.d.ts +26 -5
- package/lib/src/modal/components/modal-footer.vue.d.ts +116 -146
- package/lib/src/modal/components/modal-header.vue.d.ts +11 -2
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +43 -19
- package/lib/src/modal/components/modal.d.ts +115 -145
- package/lib/src/modal/hooks/use-moda-full-screen.d.ts +1 -1
- package/lib/src/modal/index.d.ts +462 -287
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +38 -5
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +36 -5
- package/lib/src/pro-form/components/api-select.vue.d.ts +38 -5
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +40 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +36 -5
- package/lib/src/pro-form/components/api-tree.vue.d.ts +28 -5
- package/lib/src/pro-form/components/form-action.vue.d.ts +38 -5
- package/lib/src/pro-form/components/form-item.vue.d.ts +34 -14
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +24 -3
- package/lib/src/pro-form/hooks/use-break-point.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +57 -6
- package/lib/src/pro-form/table-form-inner.vue.d.ts +34 -5
- package/lib/src/pro-form/table-form.vue.d.ts +29 -4
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +9 -6
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +26 -96
- package/lib/src/pro-table/components/header-cell.vue.d.ts +9 -726
- package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +3 -3
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
- package/lib/src/pro-table/components/settings/index.vue.d.ts +11 -8
- package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
- package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-action.vue.d.ts +24 -10
- package/lib/src/pro-table/components/table-footer.vue.d.ts +30 -5
- package/lib/src/pro-table/components/table-header.vue.d.ts +31 -15
- package/lib/src/pro-table/components/table-image.vue.d.ts +32 -3
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +26 -5
- package/lib/src/pro-table/components/table-title.vue.d.ts +13 -7
- package/lib/src/pro-table/pro-table.vue.d.ts +61 -8
- package/lib/src/prompt/dialog.vue.d.ts +11 -2
- package/lib/src/scroll-bar/bar-item.d.ts +9 -10
- package/lib/src/scroll-bar/index.d.ts +135 -12
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +36 -5
- package/lib/src/strength-meter/index.d.ts +55 -12
- package/lib/src/strength-meter/strength-meter.vue.d.ts +26 -5
- package/lib/src/tests/wrapper.d.ts +6 -3
- package/lib/src/theme/antd-global-overwrite/admin/button.css +3 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +3 -0
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +3 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +3 -0
- package/lib/src/theme/ap-label/ap-label.css +26 -1
- package/lib/src/transition/collapse-transition.vue.d.ts +2 -2
- package/lib/src/transition/create-transition.d.ts +25 -13
- package/lib/src/transition/index.d.ts +193 -88
- package/lib/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +15 -6
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ export type TableContentHeightOptions = {
|
|
|
3
3
|
offset?: number;
|
|
4
4
|
};
|
|
5
5
|
declare const useTableContentHeight: (options?: TableContentHeightOptions) => {
|
|
6
|
-
contentRef: Ref<HTMLDivElement | undefined
|
|
6
|
+
contentRef: Ref<HTMLDivElement | undefined>;
|
|
7
7
|
height: ComputedRef<number>;
|
|
8
8
|
};
|
|
9
9
|
export default useTableContentHeight;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { RequestData } from '../interface';
|
|
3
3
|
import { ApFormSearchFormExpose } from '../../ap-form';
|
|
4
|
+
import { DataIndex } from 'ant-design-vue/es/vc-table/interface';
|
|
4
5
|
import { TablePaginationConfig, FilterValue, SorterResult, TableCurrentDataSource } from 'ant-design-vue/es/table/interface';
|
|
5
6
|
export type UseTablePagingParams<DataType, ParamsType> = {
|
|
6
7
|
request: (params: any) => Promise<RequestData<DataType>>;
|
|
@@ -45,14 +46,14 @@ export type UseTablePagingParams<DataType, ParamsType> = {
|
|
|
45
46
|
/**
|
|
46
47
|
* 需要后端筛选的字段列表
|
|
47
48
|
*/
|
|
48
|
-
filterFields?:
|
|
49
|
+
filterFields?: ComputedRef<DataIndex[]>;
|
|
49
50
|
/**
|
|
50
51
|
* 需要后端筛选的排序字段列表
|
|
51
52
|
*/
|
|
52
|
-
sortFields?:
|
|
53
|
+
sortFields?: ComputedRef<DataIndex[]>;
|
|
53
54
|
};
|
|
54
55
|
export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields }: UseTablePagingParams<DataType, ParamsType>) => {
|
|
55
|
-
formRef: Ref<ApFormSearchFormExpose | undefined
|
|
56
|
+
formRef: Ref<ApFormSearchFormExpose | undefined>;
|
|
56
57
|
submit: () => void;
|
|
57
58
|
reset: () => void;
|
|
58
59
|
refresh: () => void;
|
|
@@ -61,13 +62,9 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
61
62
|
total: number;
|
|
62
63
|
records: DataType[];
|
|
63
64
|
loading: boolean;
|
|
64
|
-
}, {
|
|
65
|
-
total: number;
|
|
66
|
-
records: DataType[];
|
|
67
|
-
loading: boolean;
|
|
68
65
|
}>;
|
|
69
|
-
current: Ref<number
|
|
70
|
-
pageSize: Ref<number
|
|
66
|
+
current: Ref<number>;
|
|
67
|
+
pageSize: Ref<number>;
|
|
71
68
|
handleTableChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
|
|
72
69
|
tableProps: ComputedRef<{
|
|
73
70
|
loading: boolean;
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as S, nextTick as N, unref as o, onMounted as U, computed as z } from "vue";
|
|
2
2
|
import { parseFieldValue as W, dataIndexToStr as X } from "../utils.mjs";
|
|
3
3
|
import { isArray as Y } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
6
|
const oe = ({
|
|
7
|
-
manual:
|
|
8
|
-
defaultCurrent:
|
|
9
|
-
defaultPageSize:
|
|
10
|
-
request:
|
|
11
|
-
defaultParams:
|
|
12
|
-
defaultData:
|
|
13
|
-
formatParams:
|
|
14
|
-
paramsValueTypeMap:
|
|
15
|
-
resetFieldsIgnores:
|
|
16
|
-
filterFields:
|
|
17
|
-
sortFields:
|
|
7
|
+
manual: j = !1,
|
|
8
|
+
defaultCurrent: D = 1,
|
|
9
|
+
defaultPageSize: P = 10,
|
|
10
|
+
request: R,
|
|
11
|
+
defaultParams: A = {},
|
|
12
|
+
defaultData: B = [],
|
|
13
|
+
formatParams: w,
|
|
14
|
+
paramsValueTypeMap: V,
|
|
15
|
+
resetFieldsIgnores: b,
|
|
16
|
+
filterFields: E,
|
|
17
|
+
sortFields: L
|
|
18
18
|
}) => {
|
|
19
|
-
let
|
|
20
|
-
const
|
|
19
|
+
let T = 0, f = {};
|
|
20
|
+
const M = (e) => w ? w(e) : e, l = S(), i = S(D), g = S(P), { t: C } = Z(), n = S({
|
|
21
21
|
total: 0,
|
|
22
|
-
records:
|
|
22
|
+
records: B,
|
|
23
23
|
loading: !1
|
|
24
|
-
}),
|
|
24
|
+
}), x = async (e) => {
|
|
25
25
|
var r;
|
|
26
|
-
const a =
|
|
27
|
-
|
|
26
|
+
const a = M(e), t = Date.now();
|
|
27
|
+
T = t, n.value.loading = !0;
|
|
28
28
|
try {
|
|
29
|
-
const s = await
|
|
30
|
-
...
|
|
29
|
+
const s = await R({
|
|
30
|
+
...A,
|
|
31
31
|
...a
|
|
32
32
|
});
|
|
33
|
-
|
|
33
|
+
T === t && (n.value.total = s.total || ((r = s.data) == null ? void 0 : r.length) || 0, n.value.records = [...s.data || []]);
|
|
34
34
|
} catch {
|
|
35
|
-
|
|
35
|
+
T === t && (n.value.records = [], n.value.total = 0);
|
|
36
36
|
} finally {
|
|
37
37
|
n.value.loading = !1;
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, y = (e) => {
|
|
40
40
|
const a = {};
|
|
41
41
|
return Object.entries(e).forEach(([t, r]) => {
|
|
42
|
-
if (a[t] = r,
|
|
43
|
-
const s =
|
|
42
|
+
if (a[t] = r, V && r) {
|
|
43
|
+
const s = V[t];
|
|
44
44
|
s && (a[t] = W(s, r));
|
|
45
45
|
}
|
|
46
46
|
}), a;
|
|
47
|
-
},
|
|
48
|
-
var r, s, d, p, m, u,
|
|
47
|
+
}, q = async (e) => {
|
|
48
|
+
var r, s, d, p, m, u, h;
|
|
49
49
|
const a = ((s = (r = l.value) == null ? void 0 : r.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
|
|
50
|
-
Object.entries(a).forEach(([
|
|
51
|
-
|
|
52
|
-
}), await ((p = (d = l.value) == null ? void 0 : d.apForm) == null ? void 0 : p.resetFields()), (
|
|
50
|
+
Object.entries(a).forEach(([v, c]) => {
|
|
51
|
+
b && b.indexOf(v) > -1 && (t[v] = c);
|
|
52
|
+
}), await ((p = (d = l.value) == null ? void 0 : d.apForm) == null ? void 0 : p.resetFields()), (h = (u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.setFieldsValue) == null || h.call(u, t), N(() => {
|
|
53
53
|
e == null || e();
|
|
54
54
|
});
|
|
55
|
-
},
|
|
55
|
+
}, F = (e) => {
|
|
56
56
|
f = e;
|
|
57
|
-
const a =
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
const a = y(e);
|
|
58
|
+
x(a);
|
|
59
|
+
}, J = (e) => {
|
|
60
|
+
F({
|
|
61
61
|
...f,
|
|
62
62
|
...e
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, O = () => {
|
|
65
65
|
var a, t;
|
|
66
66
|
const e = ((t = (a = l.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
|
|
67
|
-
i.value = 1,
|
|
67
|
+
i.value = 1, F({
|
|
68
68
|
...e,
|
|
69
69
|
current: 1,
|
|
70
|
-
pageSize: f.pageSize ||
|
|
70
|
+
pageSize: f.pageSize || P
|
|
71
71
|
});
|
|
72
|
-
}, J = () => {
|
|
73
|
-
M(x);
|
|
74
72
|
}, Q = () => {
|
|
75
|
-
|
|
76
|
-
}, G = (
|
|
73
|
+
q(O);
|
|
74
|
+
}, G = () => {
|
|
75
|
+
F(f);
|
|
76
|
+
}, H = (e) => {
|
|
77
77
|
const a = o(n).total - e, t = Math.ceil(a / o(g)), r = o(i) > t ? t : o(i);
|
|
78
|
-
|
|
78
|
+
J({
|
|
79
79
|
current: r > 0 ? r : 1
|
|
80
80
|
});
|
|
81
|
-
},
|
|
82
|
-
var m, u;
|
|
81
|
+
}, $ = (e, a, t) => {
|
|
82
|
+
var m, u, h, v;
|
|
83
83
|
const r = ((u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.getFieldsValue(!0)) || {};
|
|
84
84
|
i.value = e.current, g.value = e.pageSize;
|
|
85
85
|
const s = Y(t) ? [...t] : [t], d = {};
|
|
86
86
|
for (const c of s)
|
|
87
|
-
|
|
87
|
+
(h = o(L)) != null && h.includes(c.field) && (d[X(c.field)] = c.order);
|
|
88
88
|
const p = {};
|
|
89
89
|
for (const c of Object.keys(a))
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
(v = o(E)) != null && v.includes(c) && (p[c] = a[c]);
|
|
91
|
+
F({
|
|
92
92
|
...r,
|
|
93
93
|
filter: p,
|
|
94
94
|
sort: d,
|
|
@@ -103,14 +103,14 @@ const oe = ({
|
|
|
103
103
|
current: o(i),
|
|
104
104
|
pageSize: o(g),
|
|
105
105
|
...e
|
|
106
|
-
},
|
|
107
|
-
const r =
|
|
108
|
-
|
|
106
|
+
}, !j) {
|
|
107
|
+
const r = y(f);
|
|
108
|
+
x(r);
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
const
|
|
111
|
+
const I = z(() => o(n).total === 0 ? "-" : `${o(i.value)}/${Math.ceil(
|
|
112
112
|
o(n).total / o(g)
|
|
113
|
-
)}`),
|
|
113
|
+
)}`), K = z(() => ({
|
|
114
114
|
loading: o(n).loading,
|
|
115
115
|
pagination: {
|
|
116
116
|
current: o(i),
|
|
@@ -118,26 +118,26 @@ const oe = ({
|
|
|
118
118
|
total: o(n).total,
|
|
119
119
|
showSizeChanger: !0,
|
|
120
120
|
showQuickJumper: !0,
|
|
121
|
-
showTotal: (e) => `${
|
|
121
|
+
showTotal: (e) => `${C("ap.apTable.pagination.totalLeft", { total: e })} ${C(
|
|
122
122
|
"ap.apTable.pagination.totalRight",
|
|
123
|
-
{ page: o(
|
|
123
|
+
{ page: o(I) }
|
|
124
124
|
)}`
|
|
125
125
|
},
|
|
126
|
-
onChange:
|
|
126
|
+
onChange: $,
|
|
127
127
|
dataSource: o(n).records
|
|
128
128
|
}));
|
|
129
129
|
return {
|
|
130
130
|
formRef: l,
|
|
131
|
-
submit:
|
|
132
|
-
reset:
|
|
133
|
-
refresh:
|
|
134
|
-
refreshByDelete:
|
|
131
|
+
submit: O,
|
|
132
|
+
reset: Q,
|
|
133
|
+
refresh: G,
|
|
134
|
+
refreshByDelete: H,
|
|
135
135
|
data: n,
|
|
136
136
|
current: i,
|
|
137
137
|
pageSize: g,
|
|
138
|
-
handleTableChange:
|
|
139
|
-
tableProps:
|
|
140
|
-
dataSource:
|
|
138
|
+
handleTableChange: $,
|
|
139
|
+
tableProps: K,
|
|
140
|
+
dataSource: z(() => o(n).records)
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
143
|
export {
|
|
@@ -101,6 +101,17 @@ export type ApColumnType<RecordType = any, ValueType extends ApTableValueTypes =
|
|
|
101
101
|
* 自定义查询表单渲染
|
|
102
102
|
*/
|
|
103
103
|
customRenderFormItem?: (config: ApColumnType<RecordType, ValueType>) => any;
|
|
104
|
+
/**
|
|
105
|
+
* 自定义渲染文本,和customRender相比,其必须返回字符串,并且后续的渲染(例如copy/ellipsis)都将使用这个值
|
|
106
|
+
*/
|
|
107
|
+
renderText?: (option: {
|
|
108
|
+
value: any;
|
|
109
|
+
text: any;
|
|
110
|
+
record: RecordType;
|
|
111
|
+
index: number;
|
|
112
|
+
renderIndex: number;
|
|
113
|
+
column: ApColumnType<RecordType>;
|
|
114
|
+
}) => string;
|
|
104
115
|
/**
|
|
105
116
|
* 指定值类型(将会用于默认渲染和查询表单生成)
|
|
106
117
|
*/
|
|
@@ -126,7 +137,7 @@ export type ApColumnType<RecordType = any, ValueType extends ApTableValueTypes =
|
|
|
126
137
|
*/
|
|
127
138
|
filters?: ColumnType<RecordType>['filters'] | true;
|
|
128
139
|
/**
|
|
129
|
-
* 自定义渲染,添加了`editable`以及`originalNode`
|
|
140
|
+
* 自定义渲染,添加了`editable`以及`originalNode、originalText`
|
|
130
141
|
* @param opt
|
|
131
142
|
* @returns
|
|
132
143
|
*/
|
|
@@ -138,6 +149,7 @@ export type ApColumnType<RecordType = any, ValueType extends ApTableValueTypes =
|
|
|
138
149
|
renderIndex: number;
|
|
139
150
|
column: ApColumnType<RecordType>;
|
|
140
151
|
originalNode?: VNode;
|
|
152
|
+
originalText?: any;
|
|
141
153
|
}) => any;
|
|
142
154
|
} : never;
|
|
143
155
|
export type RequestData<T> = {
|
|
@@ -1,20 +1,45 @@
|
|
|
1
1
|
import { ApTagGroupProps, ApTagProps, EllipsisProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
type ApTagGroupSlots = {
|
|
4
4
|
tooltip?: (props: {
|
|
5
5
|
tags: ApTagProps[];
|
|
6
6
|
}) => void;
|
|
7
7
|
};
|
|
8
8
|
declare function __VLS_template(): Readonly<ApTagGroupSlots> & ApTagGroupSlots;
|
|
9
|
-
declare const __VLS_component: DefineComponent<
|
|
9
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagGroupProps>, {
|
|
10
|
+
list: () => ApTagProps[];
|
|
11
|
+
space: number;
|
|
12
|
+
ellipsis: () => {};
|
|
13
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagGroupProps>, {
|
|
14
|
+
list: () => ApTagProps[];
|
|
15
|
+
space: number;
|
|
16
|
+
ellipsis: () => {};
|
|
17
|
+
}>>>, {
|
|
10
18
|
ellipsis: EllipsisProps;
|
|
11
19
|
space: number;
|
|
12
20
|
list: ApTagProps[];
|
|
13
|
-
}, {}
|
|
21
|
+
}, {}>;
|
|
14
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
15
23
|
export default _default;
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
16
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
33
|
new (): {
|
|
18
34
|
$slots: S;
|
|
19
35
|
};
|
|
20
36
|
};
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToOption<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as C, computed as n, unref as
|
|
1
|
+
import { createElementVNode as t, defineComponent as D, ref as C, computed as n, unref as d, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as f, mergeProps as _, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as b, normalizeClass as k, normalizeStyle as W, createElementBlock as T, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
|
|
2
2
|
import { Tooltip as q } from "ant-design-vue";
|
|
3
3
|
import H from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
@@ -9,7 +9,59 @@ import { useLocale as K } from "../config-provider/hooks/use-locale.mjs";
|
|
|
9
9
|
import { useGlobalConfig as O } from "../config-provider/hooks/use-global-config.mjs";
|
|
10
10
|
import { useNamespace as Q } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import X from "./ap-tag.vue.mjs";
|
|
12
|
-
const
|
|
12
|
+
const Y = /* @__PURE__ */ t("svg", {
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
15
|
+
fill: "none",
|
|
16
|
+
version: "1.1",
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "16",
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, [
|
|
21
|
+
/* @__PURE__ */ t("defs", null, [
|
|
22
|
+
/* @__PURE__ */ t("clipPath", { id: "master_svg0_1133_24991" }, [
|
|
23
|
+
/* @__PURE__ */ t("rect", {
|
|
24
|
+
x: "0",
|
|
25
|
+
y: "0",
|
|
26
|
+
width: "16",
|
|
27
|
+
height: "16",
|
|
28
|
+
rx: "0"
|
|
29
|
+
})
|
|
30
|
+
])
|
|
31
|
+
]),
|
|
32
|
+
/* @__PURE__ */ t("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
|
|
33
|
+
/* @__PURE__ */ t("g", null, [
|
|
34
|
+
/* @__PURE__ */ t("ellipse", {
|
|
35
|
+
cx: "8",
|
|
36
|
+
cy: "8",
|
|
37
|
+
rx: "1",
|
|
38
|
+
ry: "1",
|
|
39
|
+
fill: "currentColor",
|
|
40
|
+
"fill-opacity": "1"
|
|
41
|
+
})
|
|
42
|
+
]),
|
|
43
|
+
/* @__PURE__ */ t("g", null, [
|
|
44
|
+
/* @__PURE__ */ t("ellipse", {
|
|
45
|
+
cx: "3.25",
|
|
46
|
+
cy: "8",
|
|
47
|
+
rx: "1",
|
|
48
|
+
ry: "1",
|
|
49
|
+
fill: "currentColor",
|
|
50
|
+
"fill-opacity": "1"
|
|
51
|
+
})
|
|
52
|
+
]),
|
|
53
|
+
/* @__PURE__ */ t("g", null, [
|
|
54
|
+
/* @__PURE__ */ t("ellipse", {
|
|
55
|
+
cx: "12.75",
|
|
56
|
+
cy: "8",
|
|
57
|
+
rx: "1",
|
|
58
|
+
ry: "1",
|
|
59
|
+
fill: "currentColor",
|
|
60
|
+
"fill-opacity": "1"
|
|
61
|
+
})
|
|
62
|
+
])
|
|
63
|
+
])
|
|
64
|
+
], -1), me = /* @__PURE__ */ D({
|
|
13
65
|
__name: "ap-tag-group",
|
|
14
66
|
props: {
|
|
15
67
|
list: { default: () => [] },
|
|
@@ -18,46 +70,46 @@ const pe = /* @__PURE__ */ D({
|
|
|
18
70
|
ellipsis: { default: () => ({}) }
|
|
19
71
|
},
|
|
20
72
|
setup(E) {
|
|
21
|
-
const { t: z } = K(), i = E, B = O("uiMode"), { b: V, bm:
|
|
73
|
+
const { t: z } = K(), i = E, B = O("uiMode"), { b: V, bm: h } = Q("tag-group"), u = C(), s = n(() => ({
|
|
22
74
|
...{
|
|
23
75
|
iconColor: "#34B77C",
|
|
24
76
|
symbol: "icon",
|
|
25
77
|
text: z("ap.common.more")
|
|
26
78
|
},
|
|
27
79
|
...i.ellipsis
|
|
28
|
-
})), $ = n(() =>
|
|
29
|
-
let
|
|
30
|
-
const l =
|
|
80
|
+
})), $ = n(() => s.value.tooltip && typeof s.value.tooltip == "object" ? J(s.value.tooltip, ["trigger", "title"]) : {}), p = n(() => d(m) < i.list.length), m = C(0), L = n(() => i.list.map((e) => e.text).join("、")), M = n(() => [V()].filter(Boolean)), P = n(() => B.value === "aplus" ? [h("ellipsis-text", "aplus")] : [h("ellipsis-text", "admin")]), v = (e, o) => {
|
|
81
|
+
let r = document.createElement("canvas");
|
|
82
|
+
const l = r.getContext("2d");
|
|
31
83
|
l.font = `${e}px system-ui`;
|
|
32
|
-
const a = l.measureText(
|
|
84
|
+
const a = l.measureText(o);
|
|
33
85
|
return setTimeout(() => {
|
|
34
|
-
|
|
86
|
+
r = null;
|
|
35
87
|
}, 0), a.width;
|
|
36
88
|
}, x = () => {
|
|
37
|
-
let e = 0,
|
|
89
|
+
let e = 0, o = 0;
|
|
38
90
|
if (!u.value) return;
|
|
39
|
-
const
|
|
91
|
+
const r = u.value.offsetWidth;
|
|
40
92
|
for (let l of i.list) {
|
|
41
|
-
const a = l.size === "large" ? 16 : 12, w =
|
|
93
|
+
const a = l.size === "large" ? 16 : 12, w = v(
|
|
42
94
|
l.size === "large" ? 14 : 12,
|
|
43
95
|
l.text
|
|
44
96
|
) + a + 2 + i.space;
|
|
45
|
-
if (e += w, e >
|
|
97
|
+
if (e += w, e > r) {
|
|
46
98
|
e -= w;
|
|
47
99
|
break;
|
|
48
100
|
}
|
|
49
|
-
|
|
101
|
+
o++;
|
|
50
102
|
}
|
|
51
|
-
if (
|
|
52
|
-
const a =
|
|
53
|
-
i.ellipsis.symbol === "icon" ? e += 16 : e += a, e >
|
|
103
|
+
if (o < i.list.length) {
|
|
104
|
+
const a = v(12, s.value.text);
|
|
105
|
+
i.ellipsis.symbol === "icon" ? e += 16 : e += a, e > r && o--;
|
|
54
106
|
}
|
|
55
|
-
m.value =
|
|
107
|
+
m.value = o;
|
|
56
108
|
};
|
|
57
109
|
N(
|
|
58
110
|
() => i.list,
|
|
59
|
-
(e,
|
|
60
|
-
e !==
|
|
111
|
+
(e, o) => {
|
|
112
|
+
e !== o && S(() => {
|
|
61
113
|
x();
|
|
62
114
|
});
|
|
63
115
|
},
|
|
@@ -70,101 +122,49 @@ const pe = /* @__PURE__ */ D({
|
|
|
70
122
|
};
|
|
71
123
|
return j(() => {
|
|
72
124
|
[["ellipsisColor", "ellipse.color"]].forEach(
|
|
73
|
-
([e,
|
|
125
|
+
([e, o]) => {
|
|
74
126
|
i[e] && console.error(
|
|
75
|
-
`[ApTagGroup]: \`${e}\` is deprecated, please use \`${
|
|
127
|
+
`[ApTagGroup]: \`${e}\` is deprecated, please use \`${o}\` instead.`
|
|
76
128
|
);
|
|
77
129
|
}
|
|
78
130
|
), window.addEventListener("resize", y);
|
|
79
131
|
}), G(() => {
|
|
80
132
|
window.removeEventListener("resize", y);
|
|
81
|
-
}), (e,
|
|
133
|
+
}), (e, o) => (c(), f(d(q), _({ trigger: "hover" }, $.value), {
|
|
82
134
|
title: g(() => [
|
|
83
135
|
R(e.$slots, "tooltip", { tags: e.list }, () => [
|
|
84
|
-
A(
|
|
136
|
+
A(b(L.value), 1)
|
|
85
137
|
])
|
|
86
138
|
]),
|
|
87
139
|
default: g(() => [
|
|
88
|
-
|
|
89
|
-
class:
|
|
140
|
+
t("div", {
|
|
141
|
+
class: k(M.value),
|
|
90
142
|
ref_key: "container",
|
|
91
143
|
ref: u,
|
|
92
|
-
style:
|
|
144
|
+
style: W({
|
|
93
145
|
pointerEvents: p.value ? "auto" : "none"
|
|
94
146
|
// opacity: isUpdating ? '0' : '1'
|
|
95
147
|
})
|
|
96
148
|
}, [
|
|
97
|
-
(c(!0), T(F, null, I(e.list, (
|
|
149
|
+
(c(!0), T(F, null, I(e.list, (r, l) => (c(), f(X, _({ ref_for: !0 }, r, {
|
|
98
150
|
key: l,
|
|
99
151
|
style: {
|
|
100
152
|
display: l >= m.value ? "none" : "inline-block",
|
|
101
153
|
marginRight: `${e.space}px`
|
|
102
154
|
}
|
|
103
155
|
}), null, 16, ["style"]))), 128)),
|
|
104
|
-
p.value &&
|
|
156
|
+
p.value && s.value.symbol === "icon" ? (c(), f(d(H), {
|
|
105
157
|
key: 0,
|
|
106
|
-
style:
|
|
158
|
+
style: W({ color: e.ellipsisColor || s.value.iconColor })
|
|
107
159
|
}, {
|
|
108
|
-
component: g(() =>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
112
|
-
fill: "none",
|
|
113
|
-
version: "1.1",
|
|
114
|
-
width: "16",
|
|
115
|
-
height: "16",
|
|
116
|
-
viewBox: "0 0 16 16"
|
|
117
|
-
}, [
|
|
118
|
-
o("defs", null, [
|
|
119
|
-
o("clipPath", { id: "master_svg0_1133_24991" }, [
|
|
120
|
-
o("rect", {
|
|
121
|
-
x: "0",
|
|
122
|
-
y: "0",
|
|
123
|
-
width: "16",
|
|
124
|
-
height: "16",
|
|
125
|
-
rx: "0"
|
|
126
|
-
})
|
|
127
|
-
])
|
|
128
|
-
]),
|
|
129
|
-
o("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
|
|
130
|
-
o("g", null, [
|
|
131
|
-
o("ellipse", {
|
|
132
|
-
cx: "8",
|
|
133
|
-
cy: "8",
|
|
134
|
-
rx: "1",
|
|
135
|
-
ry: "1",
|
|
136
|
-
fill: "currentColor",
|
|
137
|
-
"fill-opacity": "1"
|
|
138
|
-
})
|
|
139
|
-
]),
|
|
140
|
-
o("g", null, [
|
|
141
|
-
o("ellipse", {
|
|
142
|
-
cx: "3.25",
|
|
143
|
-
cy: "8",
|
|
144
|
-
rx: "1",
|
|
145
|
-
ry: "1",
|
|
146
|
-
fill: "currentColor",
|
|
147
|
-
"fill-opacity": "1"
|
|
148
|
-
})
|
|
149
|
-
]),
|
|
150
|
-
o("g", null, [
|
|
151
|
-
o("ellipse", {
|
|
152
|
-
cx: "12.75",
|
|
153
|
-
cy: "8",
|
|
154
|
-
rx: "1",
|
|
155
|
-
ry: "1",
|
|
156
|
-
fill: "currentColor",
|
|
157
|
-
"fill-opacity": "1"
|
|
158
|
-
})
|
|
159
|
-
])
|
|
160
|
-
])
|
|
161
|
-
], -1)
|
|
162
|
-
])),
|
|
160
|
+
component: g(() => [
|
|
161
|
+
Y
|
|
162
|
+
]),
|
|
163
163
|
_: 1
|
|
164
|
-
}, 8, ["style"])) : p.value &&
|
|
164
|
+
}, 8, ["style"])) : p.value && s.value.symbol === "text" ? (c(), T("span", {
|
|
165
165
|
key: 1,
|
|
166
|
-
class:
|
|
167
|
-
},
|
|
166
|
+
class: k(P.value)
|
|
167
|
+
}, b(s.value.text), 3)) : U("", !0)
|
|
168
168
|
], 6)
|
|
169
169
|
]),
|
|
170
170
|
_: 3
|
|
@@ -172,5 +172,5 @@ const pe = /* @__PURE__ */ D({
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
export {
|
|
175
|
-
|
|
175
|
+
me as default
|
|
176
176
|
};
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
import { ApTagProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
3
|
-
declare const _default: DefineComponent<
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagProps>, {
|
|
4
|
+
size: string;
|
|
5
|
+
color: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagProps>, {
|
|
8
|
+
size: string;
|
|
9
|
+
color: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}>>>, {
|
|
4
12
|
size: "small" | "middle" | "large";
|
|
5
13
|
disabled: boolean;
|
|
6
14
|
color: string;
|
|
7
|
-
}, {}
|
|
15
|
+
}, {}>;
|
|
8
16
|
export default _default;
|
|
17
|
+
type __VLS_WithDefaults<P, D> = {
|
|
18
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
19
|
+
default: D[K];
|
|
20
|
+
}> : P[K];
|
|
21
|
+
};
|
|
22
|
+
type __VLS_Prettify<T> = {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} & {};
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToOption<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|