@aplus-frontend/ui 6.17.2 → 6.19.0
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/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -7
- package/es/src/ap-button/ap-button.vue.mjs +24 -20
- package/es/src/ap-button/ap-confirm-button.vue.mjs +15 -11
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +21 -18
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.d.ts +29 -29
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +4 -4
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +17 -12
- package/es/src/ap-field/select/index.vue.d.ts +97 -97
- package/es/src/ap-field/select/index.vue.mjs +10 -10
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.d.ts +8 -8
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/es/src/ap-field/text-area/index.vue.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/es/src/ap-field/tree-select/index.vue.mjs +19 -19
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +14 -15
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +105 -105
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +26 -19
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +31 -31
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +331 -331
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +73 -78
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +45 -30
- package/es/src/ap-tag/interface.d.ts +6 -0
- package/es/src/ap-tag/utils.d.ts +1 -0
- package/es/src/ap-tag/utils.mjs +12 -0
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +395 -144
- package/es/src/business/ap-draggable-grid/constans.d.ts +0 -8
- package/es/src/business/ap-draggable-grid/constans.mjs +0 -8
- package/es/src/business/ap-draggable-grid/index.d.ts +3 -31
- package/es/src/business/ap-draggable-grid/interface.d.ts +2 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/config-provider-props.d.ts +4 -5
- package/es/src/config-provider/config-provider.d.ts +8 -9
- package/es/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +13 -14
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +5 -5
- package/es/src/utils/config-provider-preset.d.ts +5 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +29 -29
- package/lib/src/ap-field/rate/index.vue.d.ts +4 -4
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +97 -97
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/slider/index.vue.d.ts +8 -8
- package/lib/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +14 -15
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.d.ts +105 -105
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/lib/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/lib/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +331 -331
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +6 -0
- package/lib/src/ap-tag/utils.d.ts +1 -0
- package/lib/src/ap-tag/utils.js +1 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.d.ts +0 -8
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +3 -31
- package/lib/src/business/ap-draggable-grid/interface.d.ts +2 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/lib/src/config-provider/config-provider-props.d.ts +4 -5
- package/lib/src/config-provider/config-provider.d.ts +8 -9
- package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +13 -14
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/config-provider-preset.d.ts +5 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/package.json +3 -3
- package/theme/antdv-override.css +2 -6
- package/theme/antdv-override.less +2 -6
- package/theme/ap-descriptions/ap-descriptions.css +1 -1
- package/theme/ap-descriptions/ap-descriptions.less +1 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +4 -2
- package/theme/ap-label/ap-label.css +1 -0
- package/theme/ap-label/ap-label.less +1 -0
- package/theme/ap-tag/ap-tag.css +3 -1
- package/theme/ap-tag/ap-tag.less +3 -1
- package/theme/index.css +11 -11
- package/theme/antd-global-overwrite/admin/alert.css +0 -37
- package/theme/antd-global-overwrite/admin/alert.less +0 -51
- package/theme/antd-global-overwrite/admin/button.css +0 -27
- package/theme/antd-global-overwrite/admin/button.less +0 -31
- package/theme/antd-global-overwrite/admin/field.css +0 -42
- package/theme/antd-global-overwrite/admin/field.less +0 -43
- package/theme/antd-global-overwrite/admin/form.css +0 -57
- package/theme/antd-global-overwrite/admin/form.less +0 -97
- package/theme/antd-global-overwrite/admin/message.css +0 -10
- package/theme/antd-global-overwrite/admin/message.less +0 -13
- package/theme/antd-global-overwrite/admin/modal.css +0 -94
- package/theme/antd-global-overwrite/admin/modal.less +0 -128
- package/theme/antd-global-overwrite/admin/pagination.css +0 -122
- package/theme/antd-global-overwrite/admin/pagination.less +0 -91
- package/theme/antd-global-overwrite/admin/steps.css +0 -127
- package/theme/antd-global-overwrite/admin/steps.less +0 -197
- package/theme/antd-global-overwrite/admin/table.css +0 -78
- package/theme/antd-global-overwrite/admin/table.less +0 -62
- package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
- package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
- package/theme/antd-global-overwrite/aplus/alert.css +0 -40
- package/theme/antd-global-overwrite/aplus/alert.less +0 -55
- package/theme/antd-global-overwrite/aplus/button.css +0 -27
- package/theme/antd-global-overwrite/aplus/button.less +0 -31
- package/theme/antd-global-overwrite/aplus/field.css +0 -42
- package/theme/antd-global-overwrite/aplus/field.less +0 -43
- package/theme/antd-global-overwrite/aplus/form.css +0 -87
- package/theme/antd-global-overwrite/aplus/form.less +0 -133
- package/theme/antd-global-overwrite/aplus/message.css +0 -10
- package/theme/antd-global-overwrite/aplus/message.less +0 -13
- package/theme/antd-global-overwrite/aplus/modal.css +0 -87
- package/theme/antd-global-overwrite/aplus/modal.less +0 -120
- package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
- package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
- package/theme/antd-global-overwrite/aplus/steps.css +0 -125
- package/theme/antd-global-overwrite/aplus/steps.less +0 -198
- package/theme/antd-global-overwrite/aplus/table.css +0 -78
- package/theme/antd-global-overwrite/aplus/table.less +0 -61
- package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
- package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
- package/theme/ap-table/ap-table-pagination.css +0 -12
- package/theme/ap-table/ap-table-pagination.less +0 -14
- package/theme/ui-mode.css +0 -60
- package/theme/ui-mode.less +0 -109
|
@@ -3,57 +3,57 @@ import "../ap-field/index.mjs";
|
|
|
3
3
|
import "../ap-form/index.mjs";
|
|
4
4
|
import "./components/index/index.vue.mjs";
|
|
5
5
|
import "./components/status/index.vue.mjs";
|
|
6
|
-
import o from "../ap-form/items/
|
|
7
|
-
import r from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
-
import t from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
-
import i from "../ap-form/items/radio/index.vue.mjs";
|
|
10
|
-
import f from "../ap-form/items/select/index.vue.mjs";
|
|
11
|
-
import a from "../ap-form/items/switch/index.vue.mjs";
|
|
6
|
+
import o from "../ap-form/items/tree-select/index.vue.mjs";
|
|
12
7
|
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
8
|
+
import r from "../ap-form/items/checkbox/index.vue.mjs";
|
|
9
|
+
import t from "../ap-form/items/text-area/index.vue.mjs";
|
|
10
|
+
import i from "../ap-form/items/switch/index.vue.mjs";
|
|
11
|
+
import f from "../ap-form/items/select/index.vue.mjs";
|
|
12
|
+
import a from "../ap-form/items/radio/index.vue.mjs";
|
|
13
|
+
import e from "../ap-form/items/number/index.vue.mjs";
|
|
14
|
+
import _ from "../ap-form/items/date-range/index.vue.mjs";
|
|
15
|
+
import s from "../ap-form/items/date/index.vue.mjs";
|
|
16
|
+
import c from "../ap-field/tree-select/index.vue.mjs";
|
|
17
|
+
import p from "../ap-field/text/password.vue.mjs";
|
|
18
|
+
import n from "./components/status/index.vue2.mjs";
|
|
19
|
+
import $ from "./components/index/index.vue2.mjs";
|
|
20
|
+
import d from "../ap-action/group/index.vue.mjs";
|
|
21
|
+
import x from "../ap-field/checkbox/index.vue.mjs";
|
|
22
|
+
import l from "../ap-field/text-area/index.vue.mjs";
|
|
23
|
+
import { ApFieldText as b } from "../ap-field/text/index.mjs";
|
|
24
|
+
import h from "../ap-field/switch/index.vue.mjs";
|
|
25
|
+
import w from "../ap-field/select/index.vue.mjs";
|
|
26
|
+
import A from "../ap-field/radio/index.vue.mjs";
|
|
27
|
+
import u from "../ap-field/number/index.vue.mjs";
|
|
28
|
+
import F from "../ap-field/date-range/index.vue.mjs";
|
|
29
|
+
import I from "../ap-field/date/index.vue.mjs";
|
|
30
30
|
const Z = {
|
|
31
|
-
date:
|
|
32
|
-
dateRange:
|
|
33
|
-
number:
|
|
34
|
-
radio:
|
|
31
|
+
date: s,
|
|
32
|
+
dateRange: _,
|
|
33
|
+
number: e,
|
|
34
|
+
radio: a,
|
|
35
35
|
select: f,
|
|
36
|
-
switch:
|
|
36
|
+
switch: i,
|
|
37
37
|
text: m,
|
|
38
|
-
textArea:
|
|
39
|
-
checkbox:
|
|
38
|
+
textArea: t,
|
|
39
|
+
checkbox: r,
|
|
40
40
|
password: m.Password,
|
|
41
|
-
treeSelect:
|
|
41
|
+
treeSelect: o
|
|
42
42
|
}, mm = {
|
|
43
|
-
date:
|
|
44
|
-
dateRange:
|
|
45
|
-
number:
|
|
46
|
-
radio:
|
|
47
|
-
select:
|
|
48
|
-
switch:
|
|
49
|
-
text:
|
|
50
|
-
textArea:
|
|
51
|
-
checkbox:
|
|
52
|
-
action:
|
|
53
|
-
index:
|
|
54
|
-
status:
|
|
55
|
-
password:
|
|
56
|
-
treeSelect:
|
|
43
|
+
date: I,
|
|
44
|
+
dateRange: F,
|
|
45
|
+
number: u,
|
|
46
|
+
radio: A,
|
|
47
|
+
select: w,
|
|
48
|
+
switch: h,
|
|
49
|
+
text: b,
|
|
50
|
+
textArea: l,
|
|
51
|
+
checkbox: x,
|
|
52
|
+
action: d,
|
|
53
|
+
index: $,
|
|
54
|
+
status: n,
|
|
55
|
+
password: p,
|
|
56
|
+
treeSelect: c
|
|
57
57
|
}, om = [
|
|
58
58
|
"action",
|
|
59
59
|
"index"
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -2,7 +2,7 @@ import { ref as P, shallowRef as W, unref as i, computed as X, watchEffect as q
|
|
|
2
2
|
import { isDef as H } from "../../utils/index.mjs";
|
|
3
3
|
import L, { customCloneColumnStates as T, getColumnStateString as Q } from "../components/setting/utils.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../context.mjs";
|
|
5
|
-
import { isObject as N, mergeWith as F, isBoolean as V,
|
|
5
|
+
import { isObject as N, mergeWith as F, isBoolean as V, omit as Y, isString as Z, isNumber as B } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { useToken as $ } from "@aplus-frontend/antdv/es/theme/internal";
|
|
8
8
|
import { getTableTitle as K } from "../utils.mjs";
|
|
@@ -46,7 +46,7 @@ const he = (r, o, n) => {
|
|
|
46
46
|
var y, A;
|
|
47
47
|
const b = (m == null ? void 0 : m[f.key]) || {}, g = {
|
|
48
48
|
key: f.key,
|
|
49
|
-
label:
|
|
49
|
+
label: Z(f.title) ? K(
|
|
50
50
|
f,
|
|
51
51
|
a("table-header", "title"),
|
|
52
52
|
void 0,
|
|
@@ -60,7 +60,7 @@ const he = (r, o, n) => {
|
|
|
60
60
|
G
|
|
61
61
|
),
|
|
62
62
|
disabled: !1,
|
|
63
|
-
...
|
|
63
|
+
...Y(b, ["children", "fixed"])
|
|
64
64
|
};
|
|
65
65
|
return g.children = (A = f.children) != null && A.length ? d(
|
|
66
66
|
f.children,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as G, ref as C, computed as n, unref as f, watch as L, nextTick as A, onMounted as F, onUnmounted as I, createBlock as d, openBlock as a, mergeProps as b, withCtx as g, createElementVNode as t, normalizeStyle as w, normalizeClass as k, createElementBlock as _, createCommentVNode as U, Fragment as q, renderList as H, toDisplayString as W, renderSlot as J, createTextVNode as K } from "vue";
|
|
2
|
+
import { Tooltip as O } from "@aplus-frontend/antdv";
|
|
3
|
+
import Q from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
-
import { omit as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
6
|
+
import { omit as X } from "lodash-unified";
|
|
7
|
+
import { getTextWidth as T } from "./utils.mjs";
|
|
8
|
+
import "../hooks/index.mjs";
|
|
9
|
+
import { useLocale as Y } from "../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useGlobalConfig as Z } from "../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useNamespace as ee } from "../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import { useResize as te } from "../hooks/useResize.mjs";
|
|
13
|
+
import le from "./ap-tag.vue.mjs";
|
|
14
|
+
const ve = /* @__PURE__ */ G({
|
|
12
15
|
__name: "ap-tag-group",
|
|
13
16
|
props: {
|
|
14
17
|
list: { default: () => [] },
|
|
@@ -17,98 +20,90 @@ const ce = /* @__PURE__ */ D({
|
|
|
17
20
|
ellipsis: { default: () => ({}) }
|
|
18
21
|
},
|
|
19
22
|
setup(z) {
|
|
20
|
-
const { t: V } =
|
|
23
|
+
const { t: V } = Y(), o = z, v = Z("uiMode"), { b: B, bm: y } = ee("tag-group"), s = C(), { observe: E, unobserve: $ } = te(), i = n(() => ({
|
|
21
24
|
...{
|
|
22
25
|
iconColor: v.value === "aplus" ? "#182948" : "#333",
|
|
23
26
|
symbol: "icon",
|
|
24
27
|
text: V("ap.common.more")
|
|
25
28
|
},
|
|
26
|
-
...
|
|
27
|
-
})),
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const s = c.value.offsetWidth;
|
|
39
|
-
for (let l of i.list) {
|
|
40
|
-
const a = l.size === "large" ? 16 : 12, C = y(
|
|
41
|
-
l.size === "large" ? 14 : 12,
|
|
42
|
-
l.text
|
|
43
|
-
) + a + 2 + i.space;
|
|
44
|
-
if (e += C, e > s) {
|
|
45
|
-
e -= C;
|
|
29
|
+
...o.ellipsis
|
|
30
|
+
})), M = n(() => i.value.tooltip && typeof i.value.tooltip == "object" ? X(i.value.tooltip, ["trigger", "title"]) : {}), p = n(() => f(c) < o.list.length), c = C(0), P = n(() => o.list.map((e) => e.text).join("、")), D = n(() => [B()].filter(Boolean)), N = n(() => v.value === "aplus" ? [y("ellipsis-text", "aplus")] : [y("ellipsis-text", "admin")]), h = () => {
|
|
31
|
+
let e = 0, l = 0;
|
|
32
|
+
if (!s.value) return;
|
|
33
|
+
const u = s.value.offsetWidth;
|
|
34
|
+
for (let r of o.list) {
|
|
35
|
+
const m = r.size === "small" ? 8 : 12, S = T(
|
|
36
|
+
r.size === "large" ? 14 : 12,
|
|
37
|
+
r.text
|
|
38
|
+
), j = r.type === "border" ? 2 : 0, x = S + m + j + o.space;
|
|
39
|
+
if (e += x, e > u) {
|
|
40
|
+
e -= x;
|
|
46
41
|
break;
|
|
47
42
|
}
|
|
48
|
-
|
|
43
|
+
l++;
|
|
49
44
|
}
|
|
50
|
-
if (
|
|
51
|
-
const
|
|
52
|
-
|
|
45
|
+
if (l < o.list.length) {
|
|
46
|
+
const m = T(12, i.value.text);
|
|
47
|
+
o.ellipsis.symbol === "icon" ? e += 16 : e += m, e > u && l--;
|
|
53
48
|
}
|
|
54
|
-
|
|
49
|
+
c.value = l;
|
|
55
50
|
};
|
|
56
|
-
|
|
57
|
-
() =>
|
|
58
|
-
(e,
|
|
59
|
-
e !==
|
|
60
|
-
|
|
51
|
+
L(
|
|
52
|
+
() => o.list,
|
|
53
|
+
(e, l) => {
|
|
54
|
+
e !== l && A(() => {
|
|
55
|
+
h();
|
|
61
56
|
});
|
|
62
57
|
},
|
|
63
58
|
{
|
|
64
59
|
immediate: !0
|
|
65
60
|
}
|
|
66
61
|
);
|
|
67
|
-
const
|
|
68
|
-
|
|
62
|
+
const R = () => {
|
|
63
|
+
h();
|
|
69
64
|
};
|
|
70
|
-
return
|
|
65
|
+
return F(() => {
|
|
71
66
|
[["ellipsisColor", "ellipse.color"]].forEach(
|
|
72
|
-
([e,
|
|
73
|
-
|
|
74
|
-
`[ApTagGroup]: \`${e}\` is deprecated, please use \`${
|
|
67
|
+
([e, l]) => {
|
|
68
|
+
o[e] && console.error(
|
|
69
|
+
`[ApTagGroup]: \`${e}\` is deprecated, please use \`${l}\` instead.`
|
|
75
70
|
);
|
|
76
71
|
}
|
|
77
|
-
),
|
|
78
|
-
}),
|
|
79
|
-
|
|
80
|
-
}), (e,
|
|
72
|
+
), s.value && E(s.value, R);
|
|
73
|
+
}), I(() => {
|
|
74
|
+
s.value && $(s.value);
|
|
75
|
+
}), (e, l) => (a(), d(f(O), b({ trigger: "hover" }, M.value), {
|
|
81
76
|
title: g(() => [
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
J(e.$slots, "tooltip", { tags: e.list }, () => [
|
|
78
|
+
K(W(P.value), 1)
|
|
84
79
|
])
|
|
85
80
|
]),
|
|
86
81
|
default: g(() => [
|
|
87
|
-
|
|
82
|
+
t("div", {
|
|
88
83
|
ref_key: "container",
|
|
89
|
-
ref:
|
|
90
|
-
class:
|
|
91
|
-
style:
|
|
84
|
+
ref: s,
|
|
85
|
+
class: k(D.value),
|
|
86
|
+
style: w({
|
|
92
87
|
pointerEvents: p.value ? "auto" : "none"
|
|
93
88
|
// opacity: isUpdating ? '0' : '1'
|
|
94
89
|
})
|
|
95
90
|
}, [
|
|
96
|
-
(
|
|
97
|
-
key:
|
|
91
|
+
(a(!0), _(q, null, H(e.list, (u, r) => (a(), d(le, b({ ref_for: !0 }, u, {
|
|
92
|
+
key: r,
|
|
98
93
|
style: {
|
|
99
|
-
display:
|
|
94
|
+
display: r >= c.value ? "none" : "inline-block",
|
|
100
95
|
marginRight: `${e.space}px`
|
|
101
96
|
}
|
|
102
97
|
}), null, 16, ["style"]))), 128)),
|
|
103
|
-
p.value &&
|
|
98
|
+
p.value && i.value.symbol === "icon" ? (a(), d(f(Q), {
|
|
104
99
|
key: 0,
|
|
105
|
-
style:
|
|
106
|
-
color: e.ellipsisColor ||
|
|
100
|
+
style: w({
|
|
101
|
+
color: e.ellipsisColor || i.value.iconColor,
|
|
107
102
|
cursor: "pointer"
|
|
108
103
|
})
|
|
109
104
|
}, {
|
|
110
|
-
component: g(() =>
|
|
111
|
-
|
|
105
|
+
component: g(() => l[0] || (l[0] = [
|
|
106
|
+
t("svg", {
|
|
112
107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
113
108
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
114
109
|
fill: "none",
|
|
@@ -117,9 +112,9 @@ const ce = /* @__PURE__ */ D({
|
|
|
117
112
|
height: "16",
|
|
118
113
|
viewBox: "0 0 16 16"
|
|
119
114
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
t("defs", null, [
|
|
116
|
+
t("clipPath", { id: "master_svg0_1133_24991" }, [
|
|
117
|
+
t("rect", {
|
|
123
118
|
x: "0",
|
|
124
119
|
y: "0",
|
|
125
120
|
width: "16",
|
|
@@ -128,9 +123,9 @@ const ce = /* @__PURE__ */ D({
|
|
|
128
123
|
})
|
|
129
124
|
])
|
|
130
125
|
]),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
t("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
|
|
127
|
+
t("g", null, [
|
|
128
|
+
t("ellipse", {
|
|
134
129
|
cx: "8",
|
|
135
130
|
cy: "8",
|
|
136
131
|
rx: "1",
|
|
@@ -139,8 +134,8 @@ const ce = /* @__PURE__ */ D({
|
|
|
139
134
|
"fill-opacity": "1"
|
|
140
135
|
})
|
|
141
136
|
]),
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
t("g", null, [
|
|
138
|
+
t("ellipse", {
|
|
144
139
|
cx: "3.25",
|
|
145
140
|
cy: "8",
|
|
146
141
|
rx: "1",
|
|
@@ -149,8 +144,8 @@ const ce = /* @__PURE__ */ D({
|
|
|
149
144
|
"fill-opacity": "1"
|
|
150
145
|
})
|
|
151
146
|
]),
|
|
152
|
-
|
|
153
|
-
|
|
147
|
+
t("g", null, [
|
|
148
|
+
t("ellipse", {
|
|
154
149
|
cx: "12.75",
|
|
155
150
|
cy: "8",
|
|
156
151
|
rx: "1",
|
|
@@ -163,11 +158,11 @@ const ce = /* @__PURE__ */ D({
|
|
|
163
158
|
], -1)
|
|
164
159
|
])),
|
|
165
160
|
_: 1
|
|
166
|
-
}, 8, ["style"])) : p.value &&
|
|
161
|
+
}, 8, ["style"])) : p.value && i.value.symbol === "text" ? (a(), _("span", {
|
|
167
162
|
key: 1,
|
|
168
|
-
class:
|
|
163
|
+
class: k(N.value),
|
|
169
164
|
style: { cursor: "pointer" }
|
|
170
|
-
}, W(
|
|
165
|
+
}, W(i.value.text), 3)) : U("", !0)
|
|
171
166
|
], 6)
|
|
172
167
|
]),
|
|
173
168
|
_: 3
|
|
@@ -175,5 +170,5 @@ const ce = /* @__PURE__ */ D({
|
|
|
175
170
|
}
|
|
176
171
|
});
|
|
177
172
|
export {
|
|
178
|
-
|
|
173
|
+
ve as default
|
|
179
174
|
};
|
|
@@ -5,5 +5,6 @@ declare const _default: DefineComponent<ApTagProps, {}, {}, {}, {}, ComponentOpt
|
|
|
5
5
|
type: "purely" | "border";
|
|
6
6
|
color: string;
|
|
7
7
|
disabled: boolean;
|
|
8
|
+
fixedWidth: boolean;
|
|
8
9
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
9
10
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, computed as i, ref as S, watch as w, createElementBlock as W, openBlock as z, normalizeClass as l, normalizeStyle as v, createVNode as B, unref as h } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
|
-
import { TypographyText as
|
|
4
|
-
import {
|
|
3
|
+
import { TypographyText as I } from "@aplus-frontend/antdv";
|
|
4
|
+
import { getTextWidth as M } from "./utils.mjs";
|
|
5
|
+
import { useGlobalConfig as T } from "../config-provider/hooks/use-global-config.mjs";
|
|
5
6
|
import { useNamespace as _ } from "../config-provider/hooks/use-namespace.mjs";
|
|
6
|
-
const
|
|
7
|
+
const H = /* @__PURE__ */ b({
|
|
7
8
|
name: "ApTag",
|
|
8
9
|
__name: "ap-tag",
|
|
9
10
|
props: {
|
|
@@ -11,39 +12,53 @@ const A = /* @__PURE__ */ $({
|
|
|
11
12
|
text: {},
|
|
12
13
|
color: { default: "#34B77C" },
|
|
13
14
|
size: { default: "middle" },
|
|
14
|
-
disabled: { type: Boolean, default: !1 }
|
|
15
|
+
disabled: { type: Boolean, default: !1 },
|
|
16
|
+
fixedWidth: { type: Boolean, default: !1 }
|
|
15
17
|
},
|
|
16
18
|
setup(o) {
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
return `#${
|
|
19
|
+
const t = o, c = T("uiMode"), { b: n, bm: r } = _("tag");
|
|
20
|
+
function s(e, a) {
|
|
21
|
+
e.length === 4 && (e = `#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);
|
|
22
|
+
const f = parseInt(e.slice(1, 3), 16), g = parseInt(e.slice(3, 5), 16), y = parseInt(e.slice(5, 7), 16), $ = Math.round(a * 255).toString(16).padStart(2, "0");
|
|
23
|
+
return `#${f.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${$}`;
|
|
22
24
|
}
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
"--tag-main-color
|
|
26
|
-
"--tag-main-color-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
const d = i(() => ({
|
|
26
|
+
maxWidth: `${p.value}px`,
|
|
27
|
+
"--tag-main-color": t.color,
|
|
28
|
+
"--tag-main-color-opacity": s(t.color, 0.06),
|
|
29
|
+
"--tag-main-color-background": s(t.color, 0.15)
|
|
30
|
+
})), u = i(() => [
|
|
31
|
+
n("wrapper"),
|
|
32
|
+
n(`wrapper-${t.type}`),
|
|
33
|
+
r("wrapper", t.size)
|
|
34
|
+
].filter(Boolean)), m = i(() => {
|
|
35
|
+
const e = [n("inner-wrapper"), r("inner-wrapper", t.size)];
|
|
36
|
+
return t.disabled && (c.value === "aplus" ? e.push(r("inner-wrapper", "disabled")) : e.push(r("inner-wrapper", "disabled-admin"))), e;
|
|
37
|
+
}), p = S(0);
|
|
38
|
+
return w(
|
|
39
|
+
() => t.text,
|
|
40
|
+
() => {
|
|
41
|
+
const e = t.type === "border" ? 2 : 0;
|
|
42
|
+
let a = Math.ceil(
|
|
43
|
+
M(t.size === "large" ? 14 : 12, t.text)
|
|
44
|
+
);
|
|
45
|
+
t.size === "large" || t.size === "middle" ? a += 12 : a += 8, p.value = a + e;
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
immediate: !0
|
|
49
|
+
}
|
|
50
|
+
), (e, a) => (z(), W("span", {
|
|
51
|
+
style: v(d.value),
|
|
52
|
+
class: l(u.value)
|
|
38
53
|
}, [
|
|
39
|
-
|
|
40
|
-
class:
|
|
41
|
-
ellipsis: { tooltip:
|
|
42
|
-
content:
|
|
54
|
+
B(h(I), {
|
|
55
|
+
class: l(m.value),
|
|
56
|
+
ellipsis: { tooltip: e.text },
|
|
57
|
+
content: e.text
|
|
43
58
|
}, null, 8, ["class", "ellipsis", "content"])
|
|
44
59
|
], 6));
|
|
45
60
|
}
|
|
46
61
|
});
|
|
47
62
|
export {
|
|
48
|
-
|
|
63
|
+
H as default
|
|
49
64
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTextWidth: (fontSize: number, text: string) => number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const o = (n, s) => {
|
|
2
|
+
let t = document.createElement("canvas");
|
|
3
|
+
const e = t.getContext("2d");
|
|
4
|
+
e.font = `${n}px system-ui`;
|
|
5
|
+
const c = e.measureText(s);
|
|
6
|
+
return setTimeout(() => {
|
|
7
|
+
t = null;
|
|
8
|
+
}, 0), c.width;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
o as getTextWidth
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as g, computed as v, provide as t,
|
|
1
|
+
import { defineComponent as A, ref as g, computed as v, provide as t, createElementBlock as R, openBlock as y, normalizeClass as U, unref as $, createBlock as k, resolveDynamicComponent as T, mergeProps as B, createSlots as L, renderList as q, withCtx as P, renderSlot as V, normalizeProps as w, guardReactiveProps as D } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import "./components/SingleFile.vue.mjs";
|
|
4
4
|
import "./components/MultipleFile.vue.mjs";
|
|
@@ -8,9 +8,9 @@ import { injectLocaleToOss as I } from "./hooks/useOss.mjs";
|
|
|
8
8
|
import { Form as H } from "@aplus-frontend/antdv";
|
|
9
9
|
import { useLocale as J } from "../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import { useNamespace as K } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
-
import Q from "./components/
|
|
11
|
+
import Q from "./components/Picture.vue2.mjs";
|
|
12
12
|
import W from "./components/MultipleFile.vue2.mjs";
|
|
13
|
-
import X from "./components/
|
|
13
|
+
import X from "./components/SingleFile.vue2.mjs";
|
|
14
14
|
import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
15
|
const pe = /* @__PURE__ */ A({
|
|
16
16
|
name: "AplusFileUpload",
|
|
@@ -91,9 +91,9 @@ const pe = /* @__PURE__ */ A({
|
|
|
91
91
|
const { t: u, lang: F } = J();
|
|
92
92
|
G(u), I(u, F);
|
|
93
93
|
const { b: M } = K("ap-upload"), n = g(null), e = S, N = x, _ = {
|
|
94
|
-
singleFile:
|
|
94
|
+
singleFile: X,
|
|
95
95
|
multipleFile: W,
|
|
96
|
-
picture:
|
|
96
|
+
picture: Q
|
|
97
97
|
}, s = H.useInjectFormItemContext(), E = v({
|
|
98
98
|
get() {
|
|
99
99
|
return e.value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface,
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -189,9 +189,9 @@ declare const _default: DefineComponent<{}, {
|
|
|
189
189
|
multiple: boolean;
|
|
190
190
|
disabled: boolean;
|
|
191
191
|
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
192
|
-
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
193
192
|
locale: UploadLocale;
|
|
194
193
|
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
194
|
+
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
195
195
|
capture: boolean | "user" | "environment";
|
|
196
196
|
iconRender: (opt: {
|
|
197
197
|
file: UploadFile<any>;
|
|
@@ -415,9 +415,9 @@ declare const _default: DefineComponent<{}, {
|
|
|
415
415
|
multiple: boolean;
|
|
416
416
|
disabled: boolean;
|
|
417
417
|
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
418
|
-
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
419
418
|
locale: UploadLocale;
|
|
420
419
|
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
420
|
+
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
421
421
|
capture: boolean | "user" | "environment";
|
|
422
422
|
iconRender: (opt: {
|
|
423
423
|
file: UploadFile<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, inject as s, ref as H, watch as J, nextTick as K,
|
|
1
|
+
import { defineComponent as G, inject as s, ref as H, watch as J, nextTick as K, createElementBlock as C, openBlock as h, normalizeClass as Q, unref as n, createVNode as U, withCtx as b, createElementVNode as S, createTextVNode as X, toDisplayString as L, withModifiers as Y, createCommentVNode as Z, createBlock as ee, resolveDynamicComponent as te } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { getPath as oe, getName as se, getReturnData as M } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as ae, getOssInstance as ne } from "../hooks/useOss.mjs";
|
|
@@ -201,8 +201,8 @@ const de = { class: "multiple-file-context" }, fe = { key: 0 }, ge = { key: 1 },
|
|
|
201
201
|
}, ["stop"]))
|
|
202
202
|
}, [
|
|
203
203
|
typeof n(f) == "string" ? (h(), C("div", fe, L(n(f) || `${n(r)("ap.apUpload.supportExtension")}:${n(ce)(n(y))}`), 1)) : n(f) ? (h(), C("div", ge, [
|
|
204
|
-
(h(),
|
|
205
|
-
])) :
|
|
204
|
+
(h(), ee(te(n(f))))
|
|
205
|
+
])) : Z("", !0)
|
|
206
206
|
])
|
|
207
207
|
])
|
|
208
208
|
]),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Oss } from '../hooks/useOss';
|
|
2
|
+
import { actionResponse } from '@aplus-frontend/oss';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
4
5
|
interface UploadFile extends File {
|
|
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
|
|
|
17
18
|
pictureContext?(_: {
|
|
18
19
|
fileList: {
|
|
19
20
|
oss: {
|
|
20
|
-
pauseUpload: (() => Promise<
|
|
21
|
-
status: number;
|
|
22
|
-
previewUrl?: string;
|
|
23
|
-
saveUrl?: string;
|
|
24
|
-
originalFileName?: string;
|
|
25
|
-
message: string;
|
|
26
|
-
}>) | undefined;
|
|
21
|
+
pauseUpload: (() => Promise< actionResponse>) | undefined;
|
|
27
22
|
};
|
|
28
23
|
}[];
|
|
29
24
|
remove: typeof handleRemove;
|