@aplus-frontend/ui 0.2.29 → 0.3.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/es/index.mjs +42 -40
- package/es/src/ap-action/group/index.vue.d.ts +3 -30
- package/es/src/ap-action/item/index.vue.d.ts +4 -36
- package/es/src/ap-action/item/index.vue2.mjs +29 -29
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
- package/es/src/ap-action/item-modal/index.vue.d.ts +5 -33
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.d.ts +5 -31
- package/es/src/ap-button/ap-button.vue.d.ts +5 -31
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
- package/es/src/ap-download/ap-download.vue.d.ts +8 -31
- package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
- package/es/src/ap-field/checkbox/index.vue.d.ts +5 -32
- package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
- package/es/src/ap-field/date/index.vue.d.ts +7 -65
- package/es/src/ap-field/date/index.vue.mjs +2 -2
- package/es/src/ap-field/date-range/index.vue.d.ts +7 -67
- package/es/src/ap-field/date-range/index.vue.mjs +2 -2
- package/es/src/ap-field/hooks/use-options.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.d.ts +12 -169
- package/es/src/ap-field/number/index.vue.mjs +3 -3
- package/es/src/ap-field/radio/index.vue.d.ts +6 -33
- package/es/src/ap-field/radio/index.vue.mjs +5 -5
- package/es/src/ap-field/rate/index.vue.d.ts +12 -75
- package/es/src/ap-field/rate/index.vue.mjs +4 -4
- package/es/src/ap-field/segmented/index.vue.d.ts +7 -33
- package/es/src/ap-field/segmented/index.vue.mjs +3 -3
- package/es/src/ap-field/select/index.vue.d.ts +12 -234
- package/es/src/ap-field/select/index.vue.mjs +4 -4
- package/es/src/ap-field/slider/index.vue.d.ts +12 -144
- package/es/src/ap-field/slider/index.vue.mjs +3 -3
- package/es/src/ap-field/switch/index.vue.d.ts +7 -37
- package/es/src/ap-field/switch/index.vue.mjs +4 -4
- package/es/src/ap-field/text/index.vue.d.ts +8 -40
- package/es/src/ap-field/text/password.vue.d.ts +9 -47
- package/es/src/ap-field/text-area/index.vue.d.ts +6 -39
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +21 -274
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/dependency/index.vue.d.ts +4 -12
- package/es/src/ap-form/drawer-form/index.vue.d.ts +37 -536
- package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.d.ts +37 -278
- package/es/src/ap-form/item-group/index.vue.d.ts +5 -29
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/date/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/date-range/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/number/index.vue.d.ts +53 -510
- package/es/src/ap-form/items/radio/index.vue.d.ts +14 -219
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +5 -39
- package/es/src/ap-form/items/text/group.vue.d.ts +5 -25
- package/es/src/ap-form/items/text/index.vue.d.ts +35 -522
- package/es/src/ap-form/items/text/password.vue.d.ts +44 -586
- package/es/src/ap-form/items/text-area/index.vue.d.ts +14 -507
- package/es/src/ap-form/list/index.vue.d.ts +4 -12
- package/es/src/ap-form/modal-form/index.vue.d.ts +37 -535
- package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
- package/es/src/ap-form/render/control.vue.d.ts +4 -12
- package/es/src/ap-form/render/item.vue.d.ts +5 -37
- package/es/src/ap-form/search-form/index.vue.d.ts +37 -532
- package/es/src/ap-form/search-form/index.vue.mjs +2 -2
- package/es/src/ap-form/set/index.vue.d.ts +5 -25
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
- package/es/src/ap-list/index.vue.d.ts +4 -6
- package/es/src/ap-list/index.vue.mjs +27 -27
- package/es/src/ap-modal/utils/createModal.mjs +10 -10
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
- package/es/src/ap-scroll-bar/index.d.ts +7 -42
- package/es/src/ap-table/ap-table.vue.d.ts +3 -5
- package/es/src/ap-table/ap-table.vue2.mjs +3 -3
- package/es/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
- package/es/src/ap-table/constants.d.ts +162 -13517
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
- package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
- package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/es/src/ap-table/utils.d.ts +65 -7907
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
- package/es/src/ap-tag/ap-tag-group.vue.mjs +88 -88
- package/es/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/es/src/ap-upload/apUpload.vue.d.ts +66 -16
- package/es/src/ap-upload/apUpload.vue.mjs +56 -37
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
- package/es/src/ap-upload/components/Picture.vue.d.ts +6 -10
- package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +10 -10
- package/es/src/business/ap-appendix/index.d.ts +7 -108
- package/es/src/business/ap-attachment/ApAttachment.d.ts +5 -5
- package/es/src/business/ap-attachment/index.d.ts +7 -48
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
- package/es/src/business/ap-batch-action/index.d.ts +5 -32
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
- package/es/src/business/ap-batch-action-group/index.d.ts +590 -905
- package/es/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
- package/es/src/business/ap-button-group/index.d.ts +5 -603
- package/es/src/business/ap-card/ApCard.vue.d.ts +4 -12
- package/es/src/business/ap-card/index.d.ts +5 -33
- package/es/src/business/ap-card/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
- package/es/src/business/ap-expand-alert/index.d.ts +6 -8
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
- package/es/src/business/ap-export-group/index.d.ts +7 -146
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +18 -18
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +34 -34
- package/es/src/business/ap-group-search/index.d.ts +711 -2447
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-image/ApImage.vue.d.ts +5 -25
- package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
- package/es/src/business/ap-image/index.d.ts +7 -139
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
- package/es/src/business/ap-input-radio/index.d.ts +14 -339
- package/es/src/business/ap-label/ApLabel.d.ts +5 -5
- package/es/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
- package/es/src/business/ap-label/index.d.ts +13 -90
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
- package/es/src/business/ap-ladder/index.d.ts +7 -479
- package/es/src/business/ap-select-layout/index.d.ts +5 -7
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -58
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
- package/es/src/business/ap-size-input/ApSizeInput.mjs +62 -0
- package/es/src/business/ap-size-input/constans.d.ts +38 -0
- package/es/src/business/ap-size-input/constans.mjs +40 -0
- package/es/src/business/ap-size-input/index.d.ts +155 -0
- package/es/src/business/ap-size-input/index.mjs +7 -0
- package/es/src/business/ap-size-input/interface.d.ts +11 -0
- package/es/src/business/ap-size-input/interface.mjs +1 -0
- package/es/src/business/ap-size-input/style/css.d.ts +0 -0
- package/es/src/business/ap-size-input/style/css.js +1 -0
- package/es/src/business/ap-size-input/style/index.d.ts +0 -0
- package/es/src/business/ap-size-input/style/index.js +1 -0
- package/es/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/es/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
- package/es/src/business/ap-status/index.d.ts +12 -192
- package/es/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-summary/index.d.ts +7 -87
- package/es/src/business/ap-table-modal/index.d.ts +15 -1056
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
- package/es/src/business/ap-title/ApTitle.vue.d.ts +5 -33
- package/es/src/business/ap-title/index.d.ts +7 -110
- package/es/src/business/ap-title/interface.d.ts +4 -4
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
- package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +18 -18
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +10 -10
- package/es/src/business/ap-upload-file/interface.d.ts +2 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
- package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
- package/es/src/business/batch-input-group/index.vue.d.ts +5 -38
- package/es/src/business/batch-input-group/index.vue.mjs +5 -5
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/es/src/business/hooks/usePageListApTable.mjs +41 -33
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +20 -18
- package/es/src/check-card/group.vue.d.ts +7 -45
- package/es/src/check-card/index.vue.d.ts +7 -37
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/index.d.ts +7 -256
- package/es/src/editable-table/form-item.vue.d.ts +5 -7
- package/es/src/editable-table/form-item.vue.mjs +3 -3
- package/es/src/editable-table/index.vue.d.ts +4 -8
- package/es/src/editable-table/index.vue.mjs +6 -6
- package/es/src/hooks/useControllableValue.d.ts +1 -1
- package/es/src/index.mjs +40 -38
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/path-map.mjs +1 -0
- package/es/src/tests/wrapper.d.ts +6 -6
- package/es/src/utils/ap-trans-data/index.d.ts +1 -1
- package/es/src/utils/ap-trans-data/index.mjs +26 -14
- 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 +6 -15
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +3 -30
- package/lib/src/ap-action/item/index.vue.d.ts +4 -36
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
- package/lib/src/ap-action/item-modal/index.vue.d.ts +5 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +5 -31
- package/lib/src/ap-button/ap-button.vue.d.ts +5 -31
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
- package/lib/src/ap-download/ap-download.vue.d.ts +8 -31
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +5 -32
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +7 -65
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +7 -67
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-options.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +12 -169
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -33
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +12 -75
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +7 -33
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -234
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +12 -144
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +7 -37
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +8 -40
- package/lib/src/ap-field/text/password.vue.d.ts +9 -47
- package/lib/src/ap-field/text-area/index.vue.d.ts +6 -39
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +21 -274
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +4 -12
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +37 -536
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.d.ts +37 -278
- package/lib/src/ap-form/item-group/index.vue.d.ts +5 -29
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/date/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/number/index.vue.d.ts +53 -510
- package/lib/src/ap-form/items/radio/index.vue.d.ts +14 -219
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +5 -39
- package/lib/src/ap-form/items/text/group.vue.d.ts +5 -25
- package/lib/src/ap-form/items/text/index.vue.d.ts +35 -522
- package/lib/src/ap-form/items/text/password.vue.d.ts +44 -586
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +14 -507
- package/lib/src/ap-form/list/index.vue.d.ts +4 -12
- package/lib/src/ap-form/modal-form/index.vue.d.ts +37 -535
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/control.vue.d.ts +4 -12
- package/lib/src/ap-form/render/item.vue.d.ts +5 -37
- package/lib/src/ap-form/search-form/index.vue.d.ts +37 -532
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.d.ts +5 -25
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
- package/lib/src/ap-list/index.vue.d.ts +4 -6
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
- package/lib/src/ap-scroll-bar/index.d.ts +7 -42
- package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +162 -13517
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
- package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/lib/src/ap-table/utils.d.ts +65 -7907
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/lib/src/ap-upload/apUpload.vue.d.ts +66 -16
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +6 -10
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +7 -108
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +5 -5
- package/lib/src/business/ap-attachment/index.d.ts +7 -48
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
- package/lib/src/business/ap-batch-action/index.d.ts +5 -32
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
- package/lib/src/business/ap-batch-action-group/index.d.ts +590 -905
- package/lib/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
- package/lib/src/business/ap-button-group/index.d.ts +5 -603
- package/lib/src/business/ap-card/ApCard.vue.d.ts +4 -12
- package/lib/src/business/ap-card/index.d.ts +5 -33
- package/lib/src/business/ap-card/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -8
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +7 -146
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +711 -2447
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue.d.ts +5 -25
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/index.d.ts +7 -139
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
- package/lib/src/business/ap-input-radio/index.d.ts +14 -339
- package/lib/src/business/ap-label/ApLabel.d.ts +5 -5
- package/lib/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
- package/lib/src/business/ap-label/index.d.ts +13 -90
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
- package/lib/src/business/ap-ladder/index.d.ts +7 -479
- package/lib/src/business/ap-select-layout/index.d.ts +5 -7
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -0
- package/lib/src/business/ap-size-input/constans.d.ts +38 -0
- package/lib/src/business/ap-size-input/constans.js +1 -0
- package/lib/src/business/ap-size-input/index.d.ts +155 -0
- package/lib/src/business/ap-size-input/index.js +1 -0
- package/lib/src/business/ap-size-input/interface.d.ts +11 -0
- package/lib/src/business/ap-size-input/interface.js +1 -0
- package/lib/src/business/ap-size-input/style/css.d.ts +0 -0
- package/lib/src/business/ap-size-input/style/css.js +1 -0
- package/lib/src/business/ap-size-input/style/index.d.ts +0 -0
- package/lib/src/business/ap-size-input/style/index.js +1 -0
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/lib/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
- package/lib/src/business/ap-status/index.d.ts +12 -192
- package/lib/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/index.d.ts +7 -87
- package/lib/src/business/ap-table-modal/index.d.ts +15 -1056
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +5 -33
- package/lib/src/business/ap-title/index.d.ts +7 -110
- package/lib/src/business/ap-title/interface.d.ts +4 -4
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +5 -38
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +7 -45
- package/lib/src/check-card/index.vue.d.ts +7 -37
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/index.d.ts +7 -256
- package/lib/src/editable-table/form-item.vue.d.ts +5 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +4 -8
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/hooks/useControllableValue.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/tests/wrapper.d.ts +6 -6
- package/lib/src/utils/ap-trans-data/index.d.ts +1 -1
- package/lib/src/utils/ap-trans-data/index.js +1 -1
- 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 +6 -15
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +6 -6
|
@@ -1,47 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
+
import { ApCardProps } from './interface';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApCard: {
|
|
5
|
-
new (...args: any[]):
|
|
6
|
-
titleProps: {
|
|
7
|
-
type: PropType<ApCardTitleProps>;
|
|
8
|
-
};
|
|
9
|
-
padding: {
|
|
10
|
-
type: PropType<string>;
|
|
11
|
-
};
|
|
12
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
13
|
-
titleProps: {
|
|
14
|
-
type: PropType<ApCardTitleProps>;
|
|
15
|
-
};
|
|
16
|
-
padding: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
};
|
|
19
|
-
}>>, {}, true, {}, {}, {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
20
6
|
P: {};
|
|
21
7
|
B: {};
|
|
22
8
|
D: {};
|
|
23
9
|
C: {};
|
|
24
10
|
M: {};
|
|
25
11
|
Defaults: {};
|
|
26
|
-
}, Readonly<
|
|
27
|
-
titleProps: {
|
|
28
|
-
type: PropType<ApCardTitleProps>;
|
|
29
|
-
};
|
|
30
|
-
padding: {
|
|
31
|
-
type: PropType<string>;
|
|
32
|
-
};
|
|
33
|
-
}>>, {}, {}, {}, {}, {}>;
|
|
12
|
+
}, Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
34
13
|
__isFragment?: never;
|
|
35
14
|
__isTeleport?: never;
|
|
36
15
|
__isSuspense?: never;
|
|
37
|
-
} & ComponentOptionsBase<Readonly<
|
|
38
|
-
titleProps: {
|
|
39
|
-
type: PropType<ApCardTitleProps>;
|
|
40
|
-
};
|
|
41
|
-
padding: {
|
|
42
|
-
type: PropType<string>;
|
|
43
|
-
};
|
|
44
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
16
|
+
} & ComponentOptionsBase<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
45
17
|
$slots: {
|
|
46
18
|
default?(_: {}): any;
|
|
47
19
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps,
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps &
|
|
8
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
10
|
-
}, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T>> & PublicProps;
|
|
5
|
+
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & Partial<{}> & ApExpandAlertProps<T>> & PublicProps;
|
|
11
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
12
9
|
setExpand: (state?: boolean) => void;
|
|
13
10
|
}>): void;
|
|
@@ -26,9 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
26
23
|
}): any;
|
|
27
24
|
};
|
|
28
25
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
29
|
-
}>) => VNode
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}> & {
|
|
26
|
+
}>) => VNode & {
|
|
32
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
28
|
};
|
|
34
29
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("@ant-design/icons-vue"),m=require("@aplus-frontend/antdv"),z=require("../../ap-action/index.js");require("../../config-provider/index.js");const c=require("lodash-unified"),N=require("../../config-provider/hooks/use-locale.js"),T=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-global-config.js"),V=["onClick"],A=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(y,{expose:k,emit:v}){const B=v,n=y,{t:d}=N.useLocale(),g=e.computed(()=>{if(n.type!="card")return n.type}),l=e.ref(""),r=e.ref(null),h=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"22px"}));function C(){l.value==="1"?l.value="":l.value="1",B("expand")}const w=e.computed(()=>l.value==="1"?d("ap.apExpandAlert.expand"):d("ap.apExpandAlert.collapse")),i=e.ref(!0),f=e.computed(()=>l.value!=="1");function u(t){t?l.value="":l.value="1"}e.watch(()=>n.data,()=>{l.value="",e.nextTick(()=>{if(r.value){const t=Number(r.value.clientHeight),s=Number(parseInt(r.value.style.lineHeight));t<s*Number(n.rows)&&f.value?i.value=!1:i.value=!0}})},{immediate:!0}),e.watch(()=>n.defaultExpand,t=>{t?e.nextTick(()=>{u(t)}):e.nextTick(()=>{u(t)})},{immediate:!0});const{b:S,e:a,m:x}=T.useNamespace("ap-expand-alert"),E=q.useGlobalConfig("uiMode","aplus");return k({setExpand:u}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(S)(),`${e.unref(x)(e.unref(E))}`])},[e.createVNode(e.unref(m.Alert),{type:g.value,"show-icon":t.showIcon,class:e.normalizeClass([e.unref(a)("antAlert"),t.type=="card"?"card-alert":""])},{action:e.withCtx(()=>[i.value?(e.openBlock(),e.createBlock(e.unref(z.ApActionItem),{key:0,size:"small",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("@ant-design/icons-vue"),m=require("@aplus-frontend/antdv"),z=require("../../ap-action/index.js");require("../../config-provider/index.js");const c=require("lodash-unified"),N=require("../../config-provider/hooks/use-locale.js"),T=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-global-config.js"),V=["onClick"],A=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(y,{expose:k,emit:v}){const B=v,n=y,{t:d}=N.useLocale(),g=e.computed(()=>{if(n.type!="card")return n.type}),l=e.ref(""),r=e.ref(null),h=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"22px"}));function C(){l.value==="1"?l.value="":l.value="1",B("expand")}const w=e.computed(()=>l.value==="1"?d("ap.apExpandAlert.expand"):d("ap.apExpandAlert.collapse")),i=e.ref(!0),f=e.computed(()=>l.value!=="1");function u(t){t?l.value="":l.value="1"}e.watch(()=>n.data,()=>{l.value="",e.nextTick(()=>{if(r.value){const t=Number(r.value.clientHeight),s=Number(parseInt(r.value.style.lineHeight));t<s*Number(n.rows)&&f.value?i.value=!1:i.value=!0}})},{immediate:!0}),e.watch(()=>n.defaultExpand,t=>{t?e.nextTick(()=>{u(t)}):e.nextTick(()=>{u(t)})},{immediate:!0});const{b:S,e:a,m:x}=T.useNamespace("ap-expand-alert"),E=q.useGlobalConfig("uiMode","aplus");return k({setExpand:u}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(S)(),`${e.unref(x)(e.unref(E))}`])},[e.createVNode(e.unref(m.Alert),{type:g.value,"show-icon":t.showIcon,class:e.normalizeClass([e.unref(a)("antAlert"),t.type=="card"?"card-alert":""])},{action:e.withCtx(()=>[i.value?(e.openBlock(),e.createBlock(e.unref(z.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:s[0]||(s[0]=o=>C())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a)("expandText"))},e.toDisplayString(w.value),3),e.createVNode(e.unref(b.DownOutlined),{class:e.normalizeClass(f.value?e.unref(a)("expandIcon"):e.unref(a)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:r,style:e.normalizeStyle({...h.value,...t.contentStyle}),class:e.normalizeClass(e.unref(a)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(c.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(a)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(c.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(a)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(o,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[e.createVNode(e.unref(m.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:o,index:p},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a)("showItem")),onClick:D=>t.$emit("choose",o)},e.toDisplayString(t.mapLabel?o[t.mapLabel]:o),11,V)])]),_:2},1032,["title"]),p!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(a)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(c.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","class"])],2))}});exports.default=A;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef,
|
|
1
|
+
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
@@ -18,9 +18,9 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
18
18
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
19
19
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
20
20
|
props: {
|
|
21
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
21
|
+
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
24
24
|
data?: string | T[] | undefined;
|
|
25
25
|
prefix?: string | undefined;
|
|
26
26
|
tipTitle?: string | undefined;
|
|
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
29
29
|
separatorStyle?: CSSProperties | undefined;
|
|
30
30
|
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
31
31
|
prefixStyle?: CSSProperties | undefined;
|
|
32
|
-
rows?:
|
|
32
|
+
rows?: string | number | undefined;
|
|
33
33
|
defaultExpand?: boolean | undefined;
|
|
34
34
|
showIcon?: boolean | undefined;
|
|
35
35
|
} & PublicProps;
|
|
@@ -51,9 +51,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
51
51
|
}): any;
|
|
52
52
|
};
|
|
53
53
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
54
|
-
}>) => VNode
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}> & {
|
|
54
|
+
}>) => VNode & {
|
|
57
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
56
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
59
57
|
$props: {
|
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
import { ApExportGroupProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
3
|
-
declare const _default: DefineComponent<
|
|
4
|
-
successMessage: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
6
|
-
successMessage: boolean;
|
|
7
|
-
}>>>, {
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApExportGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApExportGroupProps> & Readonly<{}>, {
|
|
8
4
|
successMessage: boolean | string;
|
|
9
|
-
}, {}>;
|
|
5
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
10
6
|
export default _default;
|
|
11
|
-
type __VLS_WithDefaults<P, D> = {
|
|
12
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
13
|
-
default: D[K];
|
|
14
|
-
}> : P[K];
|
|
15
|
-
};
|
|
16
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type __VLS_TypePropsToOption<T> = {
|
|
18
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
-
} : {
|
|
21
|
-
type: PropType<T[K]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
type __VLS_PrettifyLocal<T> = {
|
|
26
|
-
[K in keyof T]: T[K];
|
|
27
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("@ant-design/icons-vue"),n=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const l=require("./interface.js"),A=require("@aplus-frontend/hooks"),_=require("./handleExportDownload.js"),q=require("../../config-provider/hooks/use-namespace.js"),k=require("../../config-provider/hooks/use-locale.js"),G=require("../../config-provider/hooks/use-global-config.js"),T=t.defineComponent({__name:"ApExportGroup",props:{selectedRowKeys:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1}},setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("@ant-design/icons-vue"),n=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const l=require("./interface.js"),A=require("@aplus-frontend/hooks"),_=require("./handleExportDownload.js"),q=require("../../config-provider/hooks/use-namespace.js"),k=require("../../config-provider/hooks/use-locale.js"),G=require("../../config-provider/hooks/use-global-config.js"),T=t.defineComponent({__name:"ApExportGroup",props:{selectedRowKeys:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1}},setup(m){const{hasPermission:g}=A.usePermission(),e=m,{b:w}=q.useNamespace("ap-export-group"),{t:u}=k.useLocale(),h=G.useGlobalConfig("uiMode"),p=t.computed(()=>{const a={aplus:"#0070FF",admin:"#34b77c"};return d.value?"":a[h.value]||a.aplus}),d=t.computed(()=>!!(e!=null&&e.disabled)),v=t.computed(()=>(e==null?void 0:e.successMessage)===!0?u("ap.apExportGroup.exportSuccess"):e!=null&&e.successMessage?e.successMessage:""),b={textAlign:"center"},c=t.ref(!1),f=t.computed(()=>(e==null?void 0:e.selectedRowKeys)||[]),C=t.computed(()=>{let a=e==null?void 0:e.ifShow;return!(e!=null&&e.ifShow)&&(e!=null&&e.auth)&&(a=()=>g(e.auth)),(a==null?void 0:a())??!0});async function E({key:a}){var x,y;const{getRequestParams:r,request:o}=e||{};let i={};a===l.ApExportGroupActionType.SELECT?i={[(e==null?void 0:e.idKey)||"ids"]:f.value}:a===l.ApExportGroupActionType.ALL&&(i=(r==null?void 0:r())||{});const M=((x=e==null?void 0:e.getInitialParams)==null?void 0:x.call(e))||{};try{c.value=!0;let s={...i,...M};s=((y=e==null?void 0:e.beforeRequest)==null?void 0:y.call(e,s))||s,await _.handleExportDownload(async()=>await(o==null?void 0:o(s))),e!=null&&e.successMessage&&n.message.success(v.value)}finally{c.value=!1}}return(a,r)=>C.value?(t.openBlock(),t.createBlock(t.unref(n.Dropdown),{key:0,class:t.normalizeClass([t.unref(w)()]),"overlay-style":b,disabled:d.value},{overlay:t.withCtx(()=>[t.createVNode(t.unref(n.Menu),{onClick:E},{default:t.withCtx(()=>{var o;return[(t.openBlock(),t.createBlock(t.unref(n.MenuItem),{key:t.unref(l.ApExportGroupActionType).SELECT,disabled:((o=f.value)==null?void 0:o.length)===0},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(u)("ap.apExportGroup.exportSelected")),1)]),_:1},8,["disabled"])),(t.openBlock(),t.createBlock(t.unref(n.MenuItem),{key:t.unref(l.ApExportGroupActionType).ALL},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(u)("ap.apExportGroup.exportAll")),1)]),_:1}))]}),_:1})]),default:t.withCtx(()=>[t.createVNode(t.unref(n.Button),t.mergeProps({...a.$attrs},{style:{color:p.value},loading:c.value}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString((e==null?void 0:e.text)??t.unref(u)("ap.apExportGroup.export"))+" ",1),t.createVNode(t.unref(S.DownOutlined))]),_:1},16,["style","loading"])]),_:1},8,["class","disabled"])):t.createCommentVNode("",!0)}});exports.default=T;
|
|
@@ -1,165 +1,26 @@
|
|
|
1
1
|
import { handleExportDownload } from './handleExportDownload';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
3
|
+
import { ApExportGroupProps } from './interface';
|
|
3
4
|
export * from './interface';
|
|
4
5
|
declare const ApExportGroup: {
|
|
5
|
-
new (...args: any[]):
|
|
6
|
-
text: {
|
|
7
|
-
type: PropType<string>;
|
|
8
|
-
};
|
|
9
|
-
disabled: {
|
|
10
|
-
type: PropType<boolean>;
|
|
11
|
-
};
|
|
12
|
-
request: {
|
|
13
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
14
|
-
};
|
|
15
|
-
selectedRowKeys: {
|
|
16
|
-
type: PropType<any[]>;
|
|
17
|
-
};
|
|
18
|
-
ifShow: {
|
|
19
|
-
type: PropType<() => boolean>;
|
|
20
|
-
};
|
|
21
|
-
auth: {
|
|
22
|
-
type: PropType<string>;
|
|
23
|
-
};
|
|
24
|
-
idKey: {
|
|
25
|
-
type: PropType<string>;
|
|
26
|
-
};
|
|
27
|
-
getRequestParams: {
|
|
28
|
-
type: PropType<() => Record<string, any>>;
|
|
29
|
-
};
|
|
30
|
-
getInitialParams: {
|
|
31
|
-
type: PropType<() => Record<string, any>>;
|
|
32
|
-
};
|
|
33
|
-
beforeRequest: {
|
|
34
|
-
type: PropType<(params: any) => Record<string, any>>;
|
|
35
|
-
};
|
|
36
|
-
successMessage: {
|
|
37
|
-
type: PropType<string | boolean>;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
41
|
-
text: {
|
|
42
|
-
type: PropType<string>;
|
|
43
|
-
};
|
|
44
|
-
disabled: {
|
|
45
|
-
type: PropType<boolean>;
|
|
46
|
-
};
|
|
47
|
-
request: {
|
|
48
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
49
|
-
};
|
|
50
|
-
selectedRowKeys: {
|
|
51
|
-
type: PropType<any[]>;
|
|
52
|
-
};
|
|
53
|
-
ifShow: {
|
|
54
|
-
type: PropType<() => boolean>;
|
|
55
|
-
};
|
|
56
|
-
auth: {
|
|
57
|
-
type: PropType<string>;
|
|
58
|
-
};
|
|
59
|
-
idKey: {
|
|
60
|
-
type: PropType<string>;
|
|
61
|
-
};
|
|
62
|
-
getRequestParams: {
|
|
63
|
-
type: PropType<() => Record<string, any>>;
|
|
64
|
-
};
|
|
65
|
-
getInitialParams: {
|
|
66
|
-
type: PropType<() => Record<string, any>>;
|
|
67
|
-
};
|
|
68
|
-
beforeRequest: {
|
|
69
|
-
type: PropType<(params: any) => Record<string, any>>;
|
|
70
|
-
};
|
|
71
|
-
successMessage: {
|
|
72
|
-
type: PropType<string | boolean>;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
}>>, {
|
|
6
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
76
7
|
successMessage: boolean | string;
|
|
77
|
-
},
|
|
8
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
78
9
|
P: {};
|
|
79
10
|
B: {};
|
|
80
11
|
D: {};
|
|
81
12
|
C: {};
|
|
82
13
|
M: {};
|
|
83
14
|
Defaults: {};
|
|
84
|
-
}, Readonly<
|
|
85
|
-
text: {
|
|
86
|
-
type: PropType<string>;
|
|
87
|
-
};
|
|
88
|
-
disabled: {
|
|
89
|
-
type: PropType<boolean>;
|
|
90
|
-
};
|
|
91
|
-
request: {
|
|
92
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
93
|
-
};
|
|
94
|
-
selectedRowKeys: {
|
|
95
|
-
type: PropType<any[]>;
|
|
96
|
-
};
|
|
97
|
-
ifShow: {
|
|
98
|
-
type: PropType<() => boolean>;
|
|
99
|
-
};
|
|
100
|
-
auth: {
|
|
101
|
-
type: PropType<string>;
|
|
102
|
-
};
|
|
103
|
-
idKey: {
|
|
104
|
-
type: PropType<string>;
|
|
105
|
-
};
|
|
106
|
-
getRequestParams: {
|
|
107
|
-
type: PropType<() => Record<string, any>>;
|
|
108
|
-
};
|
|
109
|
-
getInitialParams: {
|
|
110
|
-
type: PropType<() => Record<string, any>>;
|
|
111
|
-
};
|
|
112
|
-
beforeRequest: {
|
|
113
|
-
type: PropType<(params: any) => Record<string, any>>;
|
|
114
|
-
};
|
|
115
|
-
successMessage: {
|
|
116
|
-
type: PropType<string | boolean>;
|
|
117
|
-
default: boolean;
|
|
118
|
-
};
|
|
119
|
-
}>>, {}, {}, {}, {}, {
|
|
15
|
+
}, Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
120
16
|
successMessage: boolean | string;
|
|
121
17
|
}>;
|
|
122
18
|
__isFragment?: never;
|
|
123
19
|
__isTeleport?: never;
|
|
124
20
|
__isSuspense?: never;
|
|
125
|
-
} & ComponentOptionsBase<Readonly<
|
|
126
|
-
text: {
|
|
127
|
-
type: PropType<string>;
|
|
128
|
-
};
|
|
129
|
-
disabled: {
|
|
130
|
-
type: PropType<boolean>;
|
|
131
|
-
};
|
|
132
|
-
request: {
|
|
133
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
134
|
-
};
|
|
135
|
-
selectedRowKeys: {
|
|
136
|
-
type: PropType<any[]>;
|
|
137
|
-
};
|
|
138
|
-
ifShow: {
|
|
139
|
-
type: PropType<() => boolean>;
|
|
140
|
-
};
|
|
141
|
-
auth: {
|
|
142
|
-
type: PropType<string>;
|
|
143
|
-
};
|
|
144
|
-
idKey: {
|
|
145
|
-
type: PropType<string>;
|
|
146
|
-
};
|
|
147
|
-
getRequestParams: {
|
|
148
|
-
type: PropType<() => Record<string, any>>;
|
|
149
|
-
};
|
|
150
|
-
getInitialParams: {
|
|
151
|
-
type: PropType<() => Record<string, any>>;
|
|
152
|
-
};
|
|
153
|
-
beforeRequest: {
|
|
154
|
-
type: PropType<(params: any) => Record<string, any>>;
|
|
155
|
-
};
|
|
156
|
-
successMessage: {
|
|
157
|
-
type: PropType<string | boolean>;
|
|
158
|
-
default: boolean;
|
|
159
|
-
};
|
|
160
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
21
|
+
} & ComponentOptionsBase<Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
161
22
|
successMessage: boolean | string;
|
|
162
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
23
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
163
24
|
$props: {
|
|
164
25
|
onClick?: () => void;
|
|
165
26
|
};
|
|
@@ -1,55 +1,33 @@
|
|
|
1
1
|
import { SelectValue } from '@aplus-frontend/antdv/es/select';
|
|
2
2
|
import { GroupSearchProps } from './interface';
|
|
3
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
5
6
|
slots: {
|
|
6
7
|
search?(_: {
|
|
8
|
+
key: SelectValue;
|
|
7
9
|
value: any;
|
|
8
10
|
change: (e: any) => void;
|
|
9
|
-
key: SelectValue;
|
|
10
11
|
}): any;
|
|
11
12
|
};
|
|
12
13
|
refs: {
|
|
13
14
|
containerRef: HTMLDivElement;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: DefineComponent<
|
|
19
|
-
hasAll: boolean;
|
|
20
|
-
dropdownMatchSelectWidth: boolean;
|
|
21
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
|
+
declare const __VLS_component: DefineComponent<GroupSearchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
20
|
"update:value": (...args: any[]) => void;
|
|
23
|
-
}, string, PublicProps, Readonly<
|
|
24
|
-
hasAll: boolean;
|
|
25
|
-
dropdownMatchSelectWidth: boolean;
|
|
26
|
-
}>>> & {
|
|
21
|
+
}, string, PublicProps, Readonly<GroupSearchProps> & Readonly<{
|
|
27
22
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}
|
|
23
|
+
}>, {
|
|
29
24
|
dropdownMatchSelectWidth: number | boolean;
|
|
30
25
|
hasAll: boolean;
|
|
31
|
-
}, {}>;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
28
|
export default _default;
|
|
34
|
-
type __VLS_WithDefaults<P, D> = {
|
|
35
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
36
|
-
default: D[K];
|
|
37
|
-
}> : P[K];
|
|
38
|
-
};
|
|
39
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
-
type __VLS_TypePropsToOption<T> = {
|
|
41
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
-
} : {
|
|
44
|
-
type: PropType<T[K]>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
30
|
new (): {
|
|
50
31
|
$slots: S;
|
|
51
32
|
};
|
|
52
33
|
};
|
|
53
|
-
type __VLS_PrettifyLocal<T> = {
|
|
54
|
-
[K in keyof T]: T[K];
|
|
55
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),k=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const x=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),k=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const x=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const N=require("../../config-provider/hooks/use-locale.js"),q=require("../../config-provider/hooks/use-global-config.js"),I=require("../../config-provider/hooks/use-namespace.js"),L=require("./extension-select/index.vue2.js"),i="GROUP_SEARCH_ALL",M=e.defineComponent({__name:"ap-group-search",props:{value:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},mode:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{default:!1},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},hasAll:{type:Boolean,default:!0},style:{}},emits:["update:value"],setup(v,{emit:g}){const{t:p}=N.useLocale(),d=q.useGlobalConfig("uiMode","aplus"),f=e.ref(),a=v,C=e.computed(()=>({width:"auto",...a.style})),_=g,{value:n,updateValue:c}=x.useControllableValue(a,_),w=o=>{let t=o;o===i?t=a.options.map(l=>l.value):t=toString.call(t)==="[object Array]"?o:[o],c({...n.value,key:t})},S=e.computed(()=>{let o=[];return a.hasAll&&(o=[{value:i,label:p("ap.apGroupSearch.all")}]),[...o,...a.options]}),b=e.computed(()=>{var u,s;const o=(u=n==null?void 0:n.value)==null?void 0:u.key,t=toString.call(o)==="[object Array]"?o:[o],l=p("ap.apGroupSearch.defaultPlaceholder");return!t||t.length===1?l:((s=a.options)==null?void 0:s.filter(r=>t.includes(r.value)).map(r=>r.label).join("/"))||l});e.onMounted(()=>{e.watch(()=>{var o;return[a.hasAll,(o=e.unref(n))==null?void 0:o.key]},()=>{var o,t;a.hasAll&&!((o=e.unref(n))!=null&&o.key)&&c({...e.unref(n),key:(t=a.options)==null?void 0:t.map(l=>l.value)})},{immediate:!0})});const B=e.computed(()=>{var t,l;const o=(t=e.unref(n))==null?void 0:t.key;if(o)return toString.call(o)==="[object Array]"?(o==null?void 0:o.length)===((l=a.options)==null?void 0:l.length)?i:o==null?void 0:o[0]:o}),h=o=>{var t;o!==((t=e.unref(n))==null?void 0:t.value)&&c({...n.value,value:o})},{b:A,e:m,em:V}=I.useNamespace("ap-group-search");return(o,t)=>{const l=e.resolveComponent("Divider");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:f,class:e.normalizeClass(e.unref(A)())},[e.createVNode(e.unref(y.Flex),null,{default:e.withCtx(()=>{var u,s;return[e.createVNode(e.unref(y.Select),{value:B.value,style:e.normalizeStyle(C.value),class:e.normalizeClass(`${o.$attrs.class} ${e.unref(d)==="admin"?e.unref(V)("search","admin"):e.unref(m)("search")}`),options:S.value,bordered:!1,"dropdown-match-select-width":a.dropdownMatchSelectWidth,onChange:w},{suffixIcon:e.withCtx(()=>[e.createVNode(k.default)]),_:1},8,["value","style","class","options","dropdown-match-select-width"]),e.unref(d)==="aplus"?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(e.unref(m)("divider")),type:"vertical",style:{}},null,8,["class"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"search",{key:(u=e.unref(n))==null?void 0:u.key,value:(s=e.unref(n))==null?void 0:s.value,change:h},()=>{var r;return[e.createVNode(L.default,{style:{width:"100%"},"max-tag-count":"responsive",value:(r=e.unref(n))==null?void 0:r.value,placeholder:b.value,"__parent-ref":f.value,onChange:h},null,8,["value","placeholder","__parent-ref"])]})]}),_:3})],2)}}});exports.default=M;
|