@aplus-frontend/ui 0.1.44 → 0.1.46
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.d.ts +1 -1
- package/es/src/ap-action/group/index.vue.mjs +1 -1
- package/es/src/ap-action/interface.d.ts +1 -1
- package/es/src/ap-action/item/index.vue2.mjs +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.mjs +1 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-modal/index.vue.mjs +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +1 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-button/interface.d.ts +1 -1
- package/es/src/ap-custom-column/column-select.vue.mjs +1 -1
- package/es/src/ap-custom-column/custom-column.vue.mjs +1 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +1 -1
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-download/interface.d.ts +1 -1
- package/es/src/ap-field/checkbox/helper.d.ts +3 -3
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/constant.d.ts +1 -1
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/interface.d.ts +4 -4
- package/es/src/ap-field/number/index.vue.d.ts +4 -4
- package/es/src/ap-field/number/index.vue.mjs +1 -1
- package/es/src/ap-field/radio/helper.d.ts +1 -1
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +3 -3
- package/es/src/ap-field/rate/index.vue.mjs +1 -1
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +4 -4
- package/es/src/ap-field/slider/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +1 -1
- package/es/src/ap-field/text/input-password-props.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +2 -2
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item.vue.d.ts +4 -4
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -2
- package/es/src/ap-form/ap-form.vue.d.ts +7 -7
- package/es/src/ap-form/ap-form.vue2.mjs +1 -1
- package/es/src/ap-form/context.d.ts +1 -1
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/es/src/ap-form/modal-form/drawer.vue.d.ts +6 -6
- package/es/src/ap-form/modal-form/drawer.vue.mjs +1 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/index.d.ts +1 -1
- package/es/src/ap-modal/index.mjs +1 -1
- package/es/src/ap-modal/interface.d.ts +1 -1
- package/es/src/ap-modal/utils/createModal.mjs +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.mjs +2 -2
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/select-group/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 +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/utils.d.ts +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +36 -60
- package/es/src/ap-table/context.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.mjs +55 -54
- package/es/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/es/src/ap-table/interface.d.ts +3 -3
- package/es/src/ap-table/utils.d.ts +8 -7
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
- package/es/src/ap-tag/interface.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +1 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +1 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +1 -1
- package/es/src/base-button/button.vue2.mjs +1 -1
- package/es/src/base-button/pop-confirm-button.vue.mjs +1 -1
- package/es/src/basic/help.vue.d.ts +1 -1
- package/es/src/basic/help.vue2.mjs +1 -1
- package/es/src/basic/index.d.ts +1 -1
- package/es/src/basic/interface.d.ts +1 -1
- package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +1 -1
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-button-group/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +1 -1
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +1 -1
- package/es/src/business/ap-export-group/handleExportDownload.mjs +1 -1
- package/es/src/business/ap-export-group/interface.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/interface.d.ts +1 -1
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-label/ApLabel.mjs +1 -1
- package/es/src/business/ap-label/ApLabelGroup.mjs +1 -1
- package/es/src/business/ap-label/constans.d.ts +2 -2
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/interface.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
- package/es/src/business/ap-ladder/interface.d.ts +1 -1
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +5 -5
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +1 -1
- package/es/src/business/ap-title/ApTitle.vue2.mjs +1 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/es/src/business/index.d.ts +14 -14
- package/es/src/check-card/group.vue.mjs +1 -1
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +8 -8
- package/es/src/config-provider/config-provider-props.mjs +1 -1
- package/es/src/config-provider/config-provider.d.ts +8 -8
- package/es/src/config-provider/config-provider.mjs +1 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/es/src/config-provider/index.d.ts +8 -8
- package/es/src/container/collapse/index.vue2.mjs +1 -1
- package/es/src/count-down/button.vue2.mjs +1 -1
- package/es/src/count-down/input.vue2.mjs +1 -1
- package/es/src/count-down/interface.d.ts +1 -1
- package/es/src/cropper/cropper-avatar.vue2.mjs +1 -1
- package/es/src/cropper/cropper-modal.vue2.mjs +1 -1
- package/es/src/description/description.vue2.mjs +1 -1
- package/es/src/description/interface.d.ts +1 -1
- package/es/src/design-token/index.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue2.mjs +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +60 -55
- package/es/src/editable-table/hooks/use-get-columns.d.ts +1 -1
- package/es/src/editable-table/hooks/use-get-columns.mjs +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +1 -1
- package/es/src/editable-table/interface.d.ts +6 -6
- package/es/src/editable-table/utils.mjs +69 -69
- package/es/src/hooks/useMessage.d.ts +4 -4
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon-picker/icon-picker.vue2.mjs +1 -1
- package/es/src/modal/basic.vue.d.ts +2 -2
- package/es/src/modal/components/modal-close.vue2.mjs +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal-footer.vue2.mjs +1 -1
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/components/modal.mjs +1 -1
- package/es/src/modal/index.d.ts +4 -4
- package/es/src/modal/interface.d.ts +1 -1
- package/es/src/modal/props.d.ts +2 -2
- package/es/src/pro-form/component-map.mjs +1 -1
- package/es/src/pro-form/components/api-cascader.vue.mjs +1 -1
- package/es/src/pro-form/components/api-radio-group.vue.mjs +1 -1
- package/es/src/pro-form/components/api-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-transfer.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree.vue.mjs +1 -1
- package/es/src/pro-form/components/form-action.vue2.mjs +1 -1
- package/es/src/pro-form/components/form-item.vue2.mjs +1 -1
- package/es/src/pro-form/components/interface.d.ts +4 -4
- package/es/src/pro-form/components/radio-button-group.vue.mjs +1 -1
- package/es/src/pro-form/helper.d.ts +1 -1
- package/es/src/pro-form/hooks/use-break-point.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-events.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.d.ts +8 -8
- package/es/src/pro-form/pro-form.vue.mjs +1 -1
- package/es/src/pro-form/table-form-inner.vue.mjs +1 -1
- package/es/src/pro-form/table-form.vue.d.ts +1 -1
- package/es/src/pro-form/table-form.vue.mjs +1 -1
- package/es/src/pro-form/types/form-item.d.ts +2 -2
- package/es/src/pro-form/types/form.d.ts +2 -2
- package/es/src/pro-form/types/index.d.ts +25 -25
- package/es/src/pro-form/types/table-form.d.ts +2 -2
- package/es/src/pro-table/component-map.mjs +1 -1
- package/es/src/pro-table/components/editable/cell-component.mjs +1 -1
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +1 -1
- package/es/src/pro-table/components/header-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/table-action.vue.mjs +1 -1
- package/es/src/pro-table/components/table-footer.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-footer.vue2.mjs +1 -1
- package/es/src/pro-table/components/table-header.vue2.mjs +1 -1
- package/es/src/pro-table/components/table-image.vue.mjs +1 -1
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +1 -1
- package/es/src/pro-table/hooks/use-columns.d.ts +1 -1
- package/es/src/pro-table/hooks/use-custom-row.d.ts +1 -1
- package/es/src/pro-table/hooks/use-data-source.d.ts +2 -2
- package/es/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-expand.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +14 -13
- package/es/src/pro-table/pro-table.vue.mjs +1 -1
- package/es/src/pro-table/types/pagination.d.ts +1 -1
- package/es/src/pro-table/types/table-action.d.ts +2 -2
- package/es/src/pro-table/types/table.d.ts +3 -3
- package/es/src/prompt/dialog.vue2.mjs +1 -1
- package/es/src/strength-meter/strength-meter.vue2.mjs +1 -1
- package/es/src/utils/config-provider-preset.d.ts +10 -10
- package/es/src/utils/copy-text-to-clipboard.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +1 -1
- package/es/src/work-order-modal/interfaces.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -1
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +3 -3
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/constant.d.ts +1 -1
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +4 -4
- package/lib/src/ap-field/number/index.vue.d.ts +4 -4
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/helper.d.ts +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +3 -3
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +6 -6
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +4 -4
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/input-password-props.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +2 -2
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +4 -4
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +7 -7
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/context.d.ts +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/lib/src/ap-form/modal-form/drawer.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/drawer.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/index.d.ts +1 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +1 -1
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +36 -60
- package/lib/src/ap-table/context.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/lib/src/ap-table/interface.d.ts +3 -3
- package/lib/src/ap-table/utils.d.ts +8 -7
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/help.vue.d.ts +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.d.ts +1 -1
- package/lib/src/basic/interface.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-button-group/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-label/ApLabel.js +1 -1
- package/lib/src/business/ap-label/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +2 -2
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/interface.d.ts +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +5 -5
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/lib/src/business/index.d.ts +14 -14
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +8 -8
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +8 -8
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/lib/src/config-provider/index.d.ts +8 -8
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.d.ts +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/interface.d.ts +1 -1
- package/lib/src/design-token/index.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -6
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useMessage.d.ts +4 -4
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/components/modal.js +1 -1
- package/lib/src/modal/index.d.ts +4 -4
- package/lib/src/modal/interface.d.ts +1 -1
- package/lib/src/modal/props.d.ts +2 -2
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-cascader.vue.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.js +1 -1
- package/lib/src/pro-form/components/api-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-transfer.vue.js +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-tree.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.d.ts +4 -4
- package/lib/src/pro-form/components/radio-button-group.vue.js +1 -1
- package/lib/src/pro-form/helper.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-form-events.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +8 -8
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/table-form-inner.vue.js +1 -1
- package/lib/src/pro-form/table-form.vue.d.ts +1 -1
- package/lib/src/pro-form/table-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.d.ts +2 -2
- package/lib/src/pro-form/types/form.d.ts +2 -2
- package/lib/src/pro-form/types/index.d.ts +25 -25
- package/lib/src/pro-form/types/table-form.d.ts +2 -2
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/cell-component.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-image.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-columns.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-custom-row.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +2 -2
- package/lib/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-expand.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +14 -13
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.d.ts +1 -1
- package/lib/src/pro-table/types/table-action.d.ts +2 -2
- package/lib/src/pro-table/types/table.d.ts +3 -3
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +10 -10
- package/lib/src/utils/copy-text-to-clipboard.js +1 -1
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../select-group/index.vue.js");const _=require("../../../context.js"),g=require("../utils.js"),v=require("../select-group/index.vue2.js"),B=e.defineComponent({__name:"index",props:{value:{}},setup(a){const u=a,{columnsBackup:k}=_.useInjectApTable(),f=e.computed(()=>[...e.unref(k)||[]].sort((t,n)=>{var r,c,i,s;return(r=t.children)!=null&&r.length&&!((c=n.children)!=null&&c.length)?1:!((i=t.children)!=null&&i.length)&&((s=n.children)!=null&&s.length)?-1:0}));function d(o){return u.value.find(t=>t.key===o.key)}function p(o){const t=d(o);return{checked:t==null?void 0:t.show,disabled:t==null?void 0:t.disabled}}function h(o,t){const n=u.value,r=n==null?void 0:n.find(c=>c.key===o);r&&(r.show=t)}return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(l.Row),{gutter:[24,16],align:"middle"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,n=>{var r;return e.openBlock(),e.createElementBlock(e.Fragment,{key:n.key},[(r=n.children)!=null&&r.length?(e.openBlock(),e.createBlock(e.unref(l.Col),{key:1,span:24},{default:e.withCtx(()=>[e.createVNode(v.default,{value:d(n)},null,8,["value"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(l.Col),{key:0,span:8},{default:e.withCtx(()=>[e.createVNode(e.unref(l.Checkbox),e.mergeProps({ref_for:!0},p(n),{"onUpdate:checked":c=>h(n.key,c)}),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g.cloneLabelNode)(n.title))))]),_:2},1040,["onUpdate:checked"])]),_:2},1024))],64)}),128))]),_:1})]))}});exports.default=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@aplus-frontend/antdv"),o=e.defineComponent({name:"_ApTableStatus",__name:"index",props:{valueEnum:{},value:{}},setup(r){const t=r,u=e.computed(()=>t.valueEnum[t.value]);return(a,l)=>u.value?(e.openBlock(),e.createBlock(e.unref(n.Badge),e.normalizeProps(e.mergeProps({key:0},u.value)),null,16)):e.createCommentVNode("",!0)}});exports.default=o;
|
|
@@ -2,40 +2,40 @@ import { ApFieldPassword } from '../ap-field';
|
|
|
2
2
|
import { ApTableValueFields, ValueEnum } from './interface';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, VNode, RendererNode, RendererElement, CSSProperties, DefineComponent, PublicProps, ComputedRef } from 'vue';
|
|
4
4
|
import { ApFormItemTransformType, ApFieldDateProps, ApFormItemSlots, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFormItemTextPassword, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, FieldMode, GroupActionTypes } from '..';
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { RuleObject } from '
|
|
7
|
-
import { FormLabelAlign } from '
|
|
8
|
-
import { InputFocusOptions } from '
|
|
9
|
-
import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler, ChangeEventHandler, CompositionEventHandler } from '
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
|
+
import { FormLabelAlign } from '@aplus-frontend/antdv/es/form/interface';
|
|
8
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
9
|
+
import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler, ChangeEventHandler, CompositionEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
10
10
|
import { Dayjs } from 'dayjs';
|
|
11
|
-
import { PickerLocale } from '
|
|
12
|
-
import { AlignType } from '
|
|
11
|
+
import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicker';
|
|
12
|
+
import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
|
|
13
13
|
import { LiteralUnion } from '../type';
|
|
14
14
|
import { ApFormatPresetType } from '../ap-field/date/interface';
|
|
15
|
-
import { PresetDate, PanelMode, RangeValue, OnPanelChange, EventValue, DisabledTimes } from '
|
|
16
|
-
import { VueNode, LiteralUnion } from '
|
|
17
|
-
import { MonthCellRender } from '
|
|
18
|
-
import { SharedTimeProps } from '
|
|
19
|
-
import { DateRender } from '
|
|
20
|
-
import { RangeType, RangeDateRender, RangeInfo } from '
|
|
21
|
-
import { ValueType } from '
|
|
22
|
-
import { RadioChangeEvent, RadioGroupProps, SelectProps, CheckboxOptionType, CheckboxGroupProps } from '
|
|
23
|
-
import { RadioGroupChildOption } from '
|
|
24
|
-
import { RadioGroupButtonStyle, RadioGroupOptionType } from '
|
|
25
|
-
import { SelectValue, DefaultOptionType, LabeledValue } from '
|
|
26
|
-
import { SelectHandler, FieldNames, FilterFunc } from '
|
|
27
|
-
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '
|
|
28
|
-
import { AlignType, BuildInPlacements } from '
|
|
29
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
30
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
15
|
+
import { PresetDate, PanelMode, RangeValue, OnPanelChange, EventValue, DisabledTimes } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
16
|
+
import { VueNode, LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
17
|
+
import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
18
|
+
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
19
|
+
import { DateRender } from '@aplus-frontend/antdv/es/vc-picker/panels/DatePanel/DateBody';
|
|
20
|
+
import { RangeType, RangeDateRender, RangeInfo } from '@aplus-frontend/antdv/es/vc-picker/RangePicker';
|
|
21
|
+
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
22
|
+
import { RadioChangeEvent, RadioGroupProps, SelectProps, CheckboxOptionType, CheckboxGroupProps } from '@aplus-frontend/antdv';
|
|
23
|
+
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
24
|
+
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
25
|
+
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
26
|
+
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
27
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
28
|
+
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
29
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
30
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
31
31
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
32
|
-
import { TriggerType } from '
|
|
33
|
-
import { TooltipPlacement, AdjustOverflow } from '
|
|
34
|
-
import { PresetColorType } from '
|
|
35
|
-
import { ShowCountProps } from '
|
|
36
|
-
import { AutoSizeType } from '
|
|
37
|
-
import { CheckboxValueType } from '
|
|
38
|
-
import { Trigger } from '
|
|
32
|
+
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
33
|
+
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
34
|
+
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
35
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
36
|
+
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
37
|
+
import { CheckboxValueType } from '@aplus-frontend/antdv/es/checkbox/interface';
|
|
38
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
39
39
|
/**
|
|
40
40
|
* 表格到查询表单的映射
|
|
41
41
|
*/
|
|
@@ -5317,11 +5317,7 @@ export declare const apTableFormItemMap: {
|
|
|
5317
5317
|
focus: (options?: InputFocusOptions) => void;
|
|
5318
5318
|
blur: () => void;
|
|
5319
5319
|
input: any;
|
|
5320
|
-
setSelectionRange: (start: number, end: number, direction
|
|
5321
|
-
/**
|
|
5322
|
-
* 不需要渲染到Form表单的valueType字段
|
|
5323
|
-
*/
|
|
5324
|
-
?: "forward" | "backward" | "none") => void;
|
|
5320
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
5325
5321
|
select: () => void;
|
|
5326
5322
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
5327
5323
|
label: {
|
|
@@ -5738,11 +5734,7 @@ export declare const apTableFormItemMap: {
|
|
|
5738
5734
|
focus: (options?: InputFocusOptions) => void;
|
|
5739
5735
|
blur: () => void;
|
|
5740
5736
|
input: any;
|
|
5741
|
-
setSelectionRange: (start: number, end: number, direction
|
|
5742
|
-
/**
|
|
5743
|
-
* 不需要渲染到Form表单的valueType字段
|
|
5744
|
-
*/
|
|
5745
|
-
?: "forward" | "backward" | "none") => void;
|
|
5737
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
5746
5738
|
select: () => void;
|
|
5747
5739
|
}, {}, {}, {}, {
|
|
5748
5740
|
disabled: boolean;
|
|
@@ -5958,11 +5950,7 @@ export declare const apTableFormItemMap: {
|
|
|
5958
5950
|
focus: (options?: InputFocusOptions) => void;
|
|
5959
5951
|
blur: () => void;
|
|
5960
5952
|
input: any;
|
|
5961
|
-
setSelectionRange: (start: number, end: number, direction
|
|
5962
|
-
/**
|
|
5963
|
-
* 不需要渲染到Form表单的valueType字段
|
|
5964
|
-
*/
|
|
5965
|
-
?: "forward" | "backward" | "none") => void;
|
|
5953
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
5966
5954
|
select: () => void;
|
|
5967
5955
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
5968
5956
|
disabled: boolean;
|
|
@@ -14063,11 +14051,7 @@ export declare const apTableRenderItemMap: {
|
|
|
14063
14051
|
focus: (options?: InputFocusOptions) => void;
|
|
14064
14052
|
blur: () => void;
|
|
14065
14053
|
input: any;
|
|
14066
|
-
setSelectionRange: (start: number, end: number, direction
|
|
14067
|
-
/**
|
|
14068
|
-
* 不需要渲染到Form表单的valueType字段
|
|
14069
|
-
*/
|
|
14070
|
-
?: "forward" | "backward" | "none") => void;
|
|
14054
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
14071
14055
|
select: () => void;
|
|
14072
14056
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14073
14057
|
"update:value": (...args: any[]) => void;
|
|
@@ -14377,11 +14361,7 @@ export declare const apTableRenderItemMap: {
|
|
|
14377
14361
|
focus: (options?: InputFocusOptions) => void;
|
|
14378
14362
|
blur: () => void;
|
|
14379
14363
|
input: any;
|
|
14380
|
-
setSelectionRange: (start: number, end: number, direction
|
|
14381
|
-
/**
|
|
14382
|
-
* 不需要渲染到Form表单的valueType字段
|
|
14383
|
-
*/
|
|
14384
|
-
?: "forward" | "backward" | "none") => void;
|
|
14364
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
14385
14365
|
select: () => void;
|
|
14386
14366
|
}, {}, {}, {}, {
|
|
14387
14367
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
@@ -14542,11 +14522,7 @@ export declare const apTableRenderItemMap: {
|
|
|
14542
14522
|
focus: (options?: InputFocusOptions) => void;
|
|
14543
14523
|
blur: () => void;
|
|
14544
14524
|
input: any;
|
|
14545
|
-
setSelectionRange: (start: number, end: number, direction
|
|
14546
|
-
/**
|
|
14547
|
-
* 不需要渲染到Form表单的valueType字段
|
|
14548
|
-
*/
|
|
14549
|
-
?: "forward" | "backward" | "none") => void;
|
|
14525
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
14550
14526
|
select: () => void;
|
|
14551
14527
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14552
14528
|
"update:value": (...args: any[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),j=require("../../utils/index.js"),f=require("../components/setting/utils.js"),K=require("../context.js"),i=require("lodash-unified");function d(t,o){t.forEach(n=>{var c;o(n),(c=n.children)!=null&&c.length&&d(n.children,o)})}function M(t,o){if(!o)return{};const n=t.getItem(o);return n?JSON.parse(n):{}}function k(t,o){if(i.isObject(t)&&i.isObject(o))return i.mergeWith({},t,o,k)}const T=Number.MAX_SAFE_INTEGER,J=(t,o)=>{const n=s.ref(o),c=s.shallowRef(f.customCloneColumnStates(o)),{columnsBackup:g,updateColumns:h}=K.useInjectApTable(),O=t.persistenceType||"localStorage",b=window[O];function q(){const e=M(b,t.persistenceKey),r=i.mergeWith({},t.defaultValue||{},e,k),a=s.unref(g);function x(F,C,A){return F.map(u=>{var N;const l=(C==null?void 0:C[u.key])||{},S={key:u.key,label:u.title,show:!0,fixed:A?A.fixed:i.isBoolean(u.fixed)?u.fixed?"left":void 0:u.fixed,disabled:!1,...i.omit(l,"children")};return S.children=(N=u.children)!=null&&N.length?x(u.children,l.children,S):void 0,S}).sort((u,l)=>(i.isNumber(u.order)?u.order:T)-(i.isNumber(l.order)?l.order:T))}return x(a||[],r)}const p=s.computed(()=>s.unref(n).every(e=>e.show));function w(){const e=s.unref(n);d(e,r=>{!r.disabled&&(r.show=!0)})}function y(){const e=s.unref(n);d(e,r=>{!r.disabled&&(r.show=!1)})}function E(){s.unref(p)?y():w()}function I(e,r){d(s.unref(n),a=>{a.key===e&&(a.show=j.isDef(r)?r:!a.show)})}function m(e){n.value=e}function B(e){c.value=e}function v(e){if(t.persistenceKey){const r=f.getColumnStateString(e);b.setItem(t.persistenceKey,JSON.stringify(r))}}return s.watchEffect(()=>{var r;const e=q();m(e),(r=t.onChange)==null||r.call(t,e),h==null||h(f.default(s.unref(g),s.unref(e))),c.value=f.customCloneColumnStates(e),v(e)}),{columnState:n,selectAll:w,unSelectAll:y,toggleSelect:I,setColumnState:m,isAllSelected:p,toggleSelectAll:E,columnStateBackup:c,setColumnStateBackup:B,cacheColumnStateIfNeeded:v}};exports.useTableColumnState=J;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { RequestData } from '../interface';
|
|
3
3
|
import { ApFormSearchFormExpose } from '../../ap-form';
|
|
4
|
-
import { DataIndex } from '
|
|
5
|
-
import { TablePaginationConfig } from '
|
|
6
|
-
import { FilterValue, SorterResult, TableCurrentDataSource } from '
|
|
4
|
+
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
5
|
+
import { TablePaginationConfig } from '@aplus-frontend/antdv';
|
|
6
|
+
import { FilterValue, SorterResult, TableCurrentDataSource } from '@aplus-frontend/antdv/es/table/interface';
|
|
7
7
|
export type UseTablePagingParams<DataType, ParamsType> = {
|
|
8
8
|
request: (params: any) => Promise<RequestData<DataType>>;
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableRowSelection } from '
|
|
1
|
+
import { TableRowSelection } from '@aplus-frontend/antdv/lib/table/interface';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import { ApTableProps, ApTableRowSelection } from '../interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ColumnType, TableProps, ColumnsType } from '
|
|
2
|
-
import { CompareFn, SortOrder, TableRowSelection } from '
|
|
1
|
+
import { ColumnType, TableProps, ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
2
|
+
import { CompareFn, SortOrder, TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
|
|
3
3
|
import { ApFormItemProps, ApFormSearchFormProps } from '../ap-form';
|
|
4
4
|
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps } from '../ap-form/items/interface';
|
|
5
5
|
import { Recordable } from '../type';
|
|
6
6
|
import { ComputedRef, CSSProperties, VNode } from 'vue';
|
|
7
7
|
import { ApActionGroupProps } from '../ap-action';
|
|
8
8
|
import { ApTableIndexProps } from './components/interface';
|
|
9
|
-
import { EllipsisConfig } from '
|
|
9
|
+
import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
|
|
10
10
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
11
11
|
export type ValueEnumType = {
|
|
12
12
|
text: string;
|
|
@@ -2,13 +2,14 @@ import { ApColumnType, ValueEnum, ValueEnumType } from './interface';
|
|
|
2
2
|
import { ValueTypeRenderConfig } from '../config-provider';
|
|
3
3
|
import { apTableRenderItemMap } from './constants';
|
|
4
4
|
import { VNode, CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, VNodeArrayChildren } from 'vue';
|
|
5
|
+
import { EditableColumnType } from '../editable-table/interface';
|
|
5
6
|
import { ApFormItemTransformType, ApFieldTextPasswordProps, ApFormItemSlots, ApFieldTextProps, ApFormItemTextPassword, ApFieldTextAreaProps, ApFieldNumberProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldCheckboxProps } from '..';
|
|
6
|
-
import { ColSize } from '
|
|
7
|
-
import { RuleObject } from '
|
|
8
|
-
import { FormLabelAlign } from '
|
|
9
|
-
import { InputFocusOptions } from '
|
|
10
|
-
import { ColumnTitleProps } from '
|
|
11
|
-
import { VueNode } from '
|
|
7
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
8
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
|
+
import { FormLabelAlign } from '@aplus-frontend/antdv/es/form/interface';
|
|
10
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
11
|
+
import { ColumnTitleProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
12
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
|
|
13
14
|
export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
|
|
14
15
|
/**
|
|
@@ -63,7 +64,7 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
|
|
|
63
64
|
* @param item
|
|
64
65
|
* @returns
|
|
65
66
|
*/
|
|
66
|
-
export declare function getTableRenderType(item: ApColumnType
|
|
67
|
+
export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "index" | "switch" | "status" | "password" | "action" | "dateRange" | "textArea";
|
|
67
68
|
export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
|
|
68
69
|
/**
|
|
69
70
|
* 获取查询表单最终渲染的节点
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),i=require("lodash-unified"),d=require("./constants.js"),y=require("@fruits-chain/utils");require("../ap-form/index.js");const g=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),i=require("lodash-unified"),d=require("./constants.js"),y=require("@fruits-chain/utils");require("../ap-form/index.js");const g=require("@aplus-frontend/antdv"),j=require("@ant-design/icons-vue"),h=require("../ap-form/ap-form-item.vue.js");function N(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const p=(e,t,n)=>{let u={};return i.isObject(e)?Object.keys(e).forEach(r=>{i.isObject(e[r])?u[r]=p(e[r],t[r],n):u[r]=n(e[r],t)}):u=n(e,t),u},F=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,u]=t;return[n.startOf("day").valueOf(),u.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return i.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function O(e){return i.isArray(e)?e.join("."):e}function v(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const T=e=>v(e)==="map"?e:new Map(Object.entries(e||{})),a=e=>{const t=[],n=T(e);return n.forEach((u,r)=>{const o=n.get(r)||n.get(`${r}`);if(o){if(typeof o=="object"&&(o!=null&&o.text)){t.push({text:o==null?void 0:o.text,value:r,label:o==null?void 0:o.text,disabled:o.disabled});return}t.push({text:o,label:o,value:r})}}),t},S=e=>i.isUndefined(e)||e<0?0:e;function m(e,t){return!e||!i.isFunction(e)?e:e(t)}function V(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function E(e,t,n,u){var l;const r=d.apTableRenderItemMap[e];if(r)return s.createVNode(r,s.mergeProps(t,{mode:"read"}),null);const o=u==null?void 0:u[e];return((l=o==null?void 0:o.render)==null?void 0:l.call(o,t.value,n,t))||t.value}function I(e,t){if(e.customRenderFormItem)return()=>{const r=e.customRenderFormItem(e);return s.cloneVNode(r,{...e.fieldProps,span:e.span,...r.props||{}})};const n=d.apTableFormItemMap[e.valueType];if(n)return n;const u=t==null?void 0:t[e.valueType];return()=>{var o;const r=(o=u==null?void 0:u.renderFormItem)==null?void 0:o.call(u,e.fieldProps.field);return r?s.createVNode(h.default,s.mergeProps(e.fieldProps,{span:e.span}),N(r)?r:{default:()=>[r]}):null}}function P(e,t){const n=m(e.fieldProps,t),u=(n==null?void 0:n.field)||n||{},r=e.valueType==="switch",o=e.valueType==="index",l=r?{checked:t.value}:{value:o?t.index+1:t.value};return e.valueEnum&&(u.valueEnum=e.valueEnum),{...i.omit(u,["request"]),...l}}function q(e){const t={...e};return i.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=a(e.valueEnum)),t}function C(e,t){var u;const n=t||{};return e.valueEnum&&!((u=n.field)!=null&&u.options)&&(n.field={...n.field,options:a(e.valueEnum)}),n}function _(e){if(!y.isType("Object")(e))return e;try{return JSON.stringify(e)}catch{return e}}function A(e,t,n,u){const r=n==null?void 0:n({title:e.title,column:e}),o=(r==null?void 0:r.filter(b=>b.type!==Symbol.for("v-cmt")))||[];if(r&&o.length>0)return r;const c=i.isString(e.title)?s.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?i.isFunction(e.tooltip)?e.tooltip(e):s.createVNode(s.Fragment,null,[e.tooltip]):null;return f?s.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[c,s.createVNode(g.Tooltip,{title:f,placement:"bottom"},{default:()=>[s.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:u,verticalAlign:"middle"}},null)]})]):c}exports.apColumnToColumn=q;exports.dataIndexToStr=O;exports.formatParamsValueType=p;exports.getColumnOrder=S;exports.getFieldProps=m;exports.getSearchFormItemRenderNode=I;exports.getTableCellRenderNode=E;exports.getTableRenderProps=P;exports.getTableRenderType=V;exports.getTableTitle=A;exports.objectToMap=T;exports.objectToString=_;exports.parseFieldValue=F;exports.updateFormProps=C;exports.valueEnumToArray=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@aplus-frontend/antdv"),V=require("@ant-design/icons-vue");require("./ap-tag.vue2.js");require("../config-provider/index.js");const b=require("lodash-unified");require("./style/ap-tag-group.css");const N=require("../config-provider/hooks/use-locale.js"),B=require("../config-provider/hooks/use-global-config.js"),T=require("../config-provider/hooks/use-namespace.js"),q=require("./ap-tag.vue.js"),W=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"master_svg0_1133_24991"},[e.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),e.createElementVNode("g",{"clip-path":"url(#master_svg0_1133_24991)"},[e.createElementVNode("g",null,[e.createElementVNode("ellipse",{cx:"8",cy:"8",rx:"1",ry:"1",fill:"currentColor","fill-opacity":"1"})]),e.createElementVNode("g",null,[e.createElementVNode("ellipse",{cx:"3.25",cy:"8",rx:"1",ry:"1",fill:"currentColor","fill-opacity":"1"})]),e.createElementVNode("g",null,[e.createElementVNode("ellipse",{cx:"12.75",cy:"8",rx:"1",ry:"1",fill:"currentColor","fill-opacity":"1"})])])],-1),z=e.defineComponent({__name:"ap-tag-group",props:{list:{default:()=>[]},space:{default:4},ellipsisColor:{},ellipsis:{default:()=>({})}},setup(v){const{t:h}=N.useLocale(),r=v,y=B.useGlobalConfig("uiMode"),{b:x,bm:p}=T.useNamespace("tag-group"),a=e.ref(),n=e.computed(()=>({...{iconColor:"#34B77C",symbol:"icon",text:h("ap.common.more")},...r.ellipsis})),C=e.computed(()=>n.value.tooltip&&typeof n.value.tooltip=="object"?b.omit(n.value.tooltip,["trigger","title"]):{}),c=e.computed(()=>e.unref(u)<r.list.length),u=e.ref(0),w=e.computed(()=>r.list.map(t=>t.text).join("、")),_=e.computed(()=>[x()].filter(Boolean)),E=e.computed(()=>y.value==="aplus"?[p("ellipsis-text","aplus")]:[p("ellipsis-text","admin")]),d=(t,l)=>{let s=document.createElement("canvas");const o=s.getContext("2d");o.font=`${t}px system-ui`;const i=o.measureText(l);return setTimeout(()=>{s=null},0),i.width},m=()=>{let t=0,l=0;if(!a.value)return;const s=a.value.offsetWidth;for(let o of r.list){const i=o.size==="large"?16:12,f=d(o.size==="large"?14:12,o.text)+i+2+r.space;if(t+=f,t>s){t-=f;break}l++}if(l<r.list.length){const i=d(12,n.value.text);r.ellipsis.symbol==="icon"?t+=16:t+=i,t>s&&l--}u.value=l};e.watch(()=>r.list,(t,l)=>{t!==l&&e.nextTick(()=>{m()})},{immediate:!0});const g=()=>{m()};return e.onMounted(()=>{[["ellipsisColor","ellipse.color"]].forEach(([t,l])=>{r[t]&&console.error(`[ApTagGroup]: \`${t}\` is deprecated, please use \`${l}\` instead.`)}),window.addEventListener("resize",g)}),e.onUnmounted(()=>{window.removeEventListener("resize",g)}),(t,l)=>(e.openBlock(),e.createBlock(e.unref(k.Tooltip),e.mergeProps({trigger:"hover"},C.value),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip",{tags:t.list},()=>[e.createTextVNode(e.toDisplayString(w.value),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(_.value),ref_key:"container",ref:a,style:e.normalizeStyle({pointerEvents:c.value?"auto":"none"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(s,o)=>(e.openBlock(),e.createBlock(q.default,e.mergeProps({ref_for:!0},s,{key:o,style:{display:o>=u.value?"none":"inline-block",marginRight:`${t.space}px`}}),null,16,["style"]))),128)),c.value&&n.value.symbol==="icon"?(e.openBlock(),e.createBlock(e.unref(V),{key:0,style:e.normalizeStyle({color:t.ellipsisColor||n.value.iconColor})},{component:e.withCtx(()=>[W]),_:1},8,["style"])):c.value&&n.value.symbol==="text"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(E.value)},e.toDisplayString(n.value.text),3)):e.createCommentVNode("",!0)],6)]),_:3},16))}});exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");require("./components/SingleFile.vue.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");require("./styles/upload.css");const O=require("./utils/accept.js"),h=require("./hooks/useOss.js"),j=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");require("./components/SingleFile.vue.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");require("./styles/upload.css");const O=require("./utils/accept.js"),h=require("./hooks/useOss.js"),j=require("@aplus-frontend/antdv"),x=require("../config-provider/hooks/use-locale.js"),A=require("../config-provider/hooks/use-namespace.js"),T=require("./components/SingleFile.vue2.js"),U=require("./components/MultipleFile.vue2.js"),k=require("./components/Picture.vue2.js"),m=require("../config-provider/hooks/use-global-config.js"),z=e.defineComponent({name:"AplusFileUpload",__name:"apUpload",props:{dirName:{type:String},type:{type:String,default:"singleFile"},value:{type:[String,Object,Array],default:void 0},needName:{type:[Boolean,Object]},accept:{type:String},maxSize:{type:Number},title:{type:String,default:""},subTitle:{type:[String,Object],default:""},maxCount:{type:Number},beforeUpload:{type:Function},customRequest:{type:Function},getOssAccess:{type:Function},onChange:Function},emits:["update:value"],setup(v,{expose:g,emit:_}){var l,c,p,d;const{t:s,lang:f}=x.useLocale();O.injectLocaleToAccept(s),h.injectLocaleToOss(s,f);const{b:y}=A.useNamespace("ap-upload"),t=v,q=_,b={singleFile:T.default,multipleFile:U.default,picture:k.default},a=j.Form.useInjectFormItemContext(),C=e.computed({get(){return t.value},set(u){var n;q("update:value",u),a==null||a.onFieldChange(),(n=t.onChange)==null||n.call(t,u)}}),N=m.useGlobalConfig("uiMode"),o=m.useGlobalConfig("apUpload");e.provide("theme",N.value),e.provide("value",C),e.provide("dirName",t.dirName??((l=o.value)==null?void 0:l.dirName)),e.provide("needName",t.needName??((c=o.value)==null?void 0:c.needName)??!1),e.provide("accept",t.accept??((p=o.value)==null?void 0:p.accept)??""),e.provide("maxSize",t.maxSize),e.provide("title",t.title),e.provide("subTitle",t.subTitle),e.provide("maxCount",t.maxCount),e.provide("beforeUpload",t.beforeUpload),e.provide("customRequest",t.customRequest),e.provide("getOssAccess",t.getOssAccess??((d=o.value)==null?void 0:d.getOssAccess));const S=e.computed(()=>i.value===0),i=e.ref(0);e.provide("uploadingCount",i);const r=e.ref(!0);function F(){r.value=!1,setTimeout(()=>{r.value=!0})}return g({done:S,clear:F}),(u,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(y)())},[r.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b[t.type]),e.normalizeProps(e.mergeProps({key:0},u.$attrs)),null,16)):e.createCommentVNode("",!0)],2))}});exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const f=require("../utils/returnData.js"),q=require("../hooks/useOss.js"),c=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const f=require("../utils/returnData.js"),q=require("../hooks/useOss.js"),c=require("@aplus-frontend/antdv"),D=require("@ant-design/icons-vue"),T=require("../utils/accept.js");require("../styles/multiple-file.css");const I=require("../../config-provider/hooks/use-locale.js"),P=require("../../config-provider/hooks/use-namespace.js"),O={class:"multiple-file-context"},z={key:0},M={key:1},V=e.defineComponent({__name:"MultipleFile",setup($){const{t:o}=I.useLocale(),{b:y}=P.useNamespace("ap-upload-multiple-file"),{put:U}=q.useOss(),A=e.inject("theme"),B=e.inject("dirName"),x=e.inject("accept")||"*",w=e.inject("maxSize")??500,E=e.inject("title")||o("ap.apUpload.uploadFile"),v=e.inject("subTitle"),r=e.inject("maxCount")??10,p=e.inject("uploadingCount"),C=e.inject("beforeUpload"),_=e.inject("customRequest"),F=e.inject("getOssAccess"),s=e.inject("value"),g=[],d=e.inject("needName"),l=e.ref(null);e.watch(()=>s==null?void 0:s.value,function(t){var n,a;!((a=(n=l==null?void 0:l.value)==null?void 0:n.fileList)!=null&&a.length)&&t&&e.nextTick(()=>{const i=t.map(u=>{const j=f.getPath(d,u),R=f.getName(d,u),k=new File([u],R,{});return k.response=j,k.uid=j,k});if(r&&i.length>r){c.message.warning(o("ap.apUpload.fileInitializationException",{maxCount:r}));return}i.forEach(u=>{m.push(u),g.push({uid:u.uid,path:u.response})}),l.value.fileList=i})},{immediate:!0});let m=[],N;function h(t){setTimeout(()=>{const n=l.value.fileList.findIndex(a=>a.uid===t.uid);n>=0&&l.value.fileList.splice(n,1)})}function S(t){if(r&&r>1&&m.length>=r)return clearTimeout(N),N=setTimeout(()=>{c.message.warning(o("ap.apUpload.maxUploadFiles",{maxCount:r}))}),h(t),!1;if(typeof C=="function"){if(C(t)===!1)return h(t),!1}else{if(t.size>w*1024*1024)return c.message.warning(o("ap.apUpload.maxUploadFileSize",{maxSize:w})),h(t),!1;if(!T.fileMatchesAccept(t,x))return c.message.warning(o("ap.apUpload.fileFormatNotSupported")),h(t),!1}r&&r===1&&(m=[],s.value=void 0),m.push(t)}async function b(t){if(p.value++,typeof _=="function"){_({onProgress:n=>{setTimeout(()=>{t.onProgress({percent:n})})},onError:n=>{c.message.warning(n||o("ap.apUpload.networkAnomaly")),setTimeout(()=>{t.onError({name:n,message:n})}),p.value--},onSuccess:n=>{setTimeout(()=>{t.onSuccess(n)}),s.value?s.value.push(f.getReturnData(d,n,t.file.name)):s.value=[f.getReturnData(d,n,t.file.name)],g.push({uid:t.file.uid,path:n}),p.value--},file:t.file});return}try{const n=await q.getOssInstance(F);t.file.oss=n,U({file:t.file,dirName:B,oss:n,successCallBack(a){t.onSuccess(a),s.value?s.value.push(f.getReturnData(d,a,t.file.name)):s.value=[f.getReturnData(d,a,t.file.name)],g.push({uid:t.file.uid,path:a}),p.value--},errorCallBack(a){c.message.warning(a||o("ap.apUpload.networkAnomaly")),t.onError({name:a,message:a}),p.value--},progressCallBack(a){t.onProgress({percent:a})}})}catch(n){c.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:o("ap.apUpload.networkAnomaly")),t.onError({name:(n==null?void 0:n.message)||o("ap.apUpload.networkAnomaly"),message:(n==null?void 0:n.message)||o("ap.apUpload.networkAnomaly")}),p.value--}}function L(t){var a;if(t.response){if(Array.isArray(s.value)){const i=g.findIndex(u=>u.uid===t.uid);i>=0&&(s==null||s.value.splice(i,1),g.splice(i,1)),s.value.length===0&&(s.value=void 0)}}else(a=t==null?void 0:t.oss)==null||a.pauseUpload();const n=m.findIndex(i=>i.uid===t.uid);return m.splice(n,1),Promise.resolve(!0)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(y)()]:!0,[e.unref(y)("admin")]:e.unref(A)==="admin"})},[e.createVNode(e.unref(c.Upload),{ref_key:"uploadRef",ref:l,accept:e.unref(x),multiple:"",maxCount:e.unref(r),progress:{strokeWidth:3,showInfo:!1,strokeColor:"#0070FF"},beforeUpload:S,customRequest:b,onRemove:L},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(c.Button),{class:"file-btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(D.UploadOutlined)),e.createTextVNode(" "+e.toDisplayString(e.unref(E)),1)]),_:1}),e.createElementVNode("div",{class:"sub-title",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["stop"]))},[typeof e.unref(v)=="string"?(e.openBlock(),e.createElementBlock("div",z,e.toDisplayString(e.unref(v)||`${e.unref(o)("ap.apUpload.supportExtension")}:${e.unref(T.getAcceptText)(e.unref(x))}`),1)):e.unref(v)?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v))))])):e.createCommentVNode("",!0)])])]),_:1},8,["accept","maxCount"])],2))}});exports.default=V;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const m=require("../utils/returnData.js"),U=require("@ant-design/icons-vue"),_=require("../hooks/useOss.js"),S=require("../utils/accept.js"),l=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const m=require("../utils/returnData.js"),U=require("@ant-design/icons-vue"),_=require("../hooks/useOss.js"),S=require("../utils/accept.js"),l=require("@aplus-frontend/antdv");require("../styles/picture.css");const $=require("../../config-provider/hooks/use-locale.js"),T=require("../../config-provider/hooks/use-namespace.js"),M=["accept"],L={class:"picture-context"},G={class:"picture-item-box"},H=["src"],J={class:"picture-item-shadow"},K=["onClick"],Q={key:0,class:"picture-item-uploading"},W={class:"picture-title"},X={key:0},Y={key:1},Z=e.defineComponent({__name:"Picture",setup(F){const{t:r}=$.useLocale(),{b:y}=T.useNamespace("ap-upload-picture"),{put:j}=_.useOss(),q=e.inject("theme"),D=e.inject("dirName"),v=e.inject("accept")||"image/*",k=e.inject("maxSize")??5,x=e.inject("title"),u=e.inject("maxCount")??10,p=e.inject("uploadingCount"),w=e.inject("beforeUpload"),N=e.inject("customRequest"),C=e.inject("getOssAccess"),h=e.ref(null),i=e.inject("value"),f=e.inject("needName");let o=e.ref([]);const g=[];e.watch(()=>i==null?void 0:i.value,async function(t){var s;if(!((s=o==null?void 0:o.value)!=null&&s.length)&&t){const a=[];for(let n of t){const c=m.getPath(f,n),d=m.getName(f,n),B=await _.getOssInstance(C),z=await B.getSignatureUrl(c),O={...new File([n],d,{}),uid:`${new Date().getTime()}-${Math.random()}`,thumbUrl:z,status:"success",percent:100,path:c};a.push(O),B.destroy()}if(u&&a.length>u){l.message.warning(r("ap.apUpload.fileInitializationException",{maxCount:u}));return}a.forEach(n=>{o.value.push(n),g.push({uid:n.uid,path:n.path})})}},{immediate:!0});function P(){var t;(t=h.value)==null||t.click()}function R(t){const s=t.target;V(s==null?void 0:s.files)}function V(t){if(t!=null&&t.length)for(let s=0;s<t.length;s++)b(t[s]);h.value&&(h.value.value="")}let E;function b(t){if(u&&u>1&&o.value.length>=u)return clearTimeout(E),E=setTimeout(()=>{l.message.warning(r("ap.apUpload.maxUploadPicture",{maxCount:u}))}),!1;if(typeof w=="function"){if(w(t)===!1)return!1}else{if(t.size>k*1024*1024)return l.message.warning(r("ap.apUpload.maxUploadFileSize",{maxSize:k})),!1;if(!/image\/\w+/.test(t.type)||!S.fileMatchesAccept(t,v))return l.message.warning(r("ap.apUpload.pictureFormatNotSupported")),!1}const s=new FileReader;s.readAsDataURL(t),s.onload=function(){const a={...t,uid:`${new Date().getTime()}-${Math.random()}`,thumbUrl:this.result,status:"uploading",percent:0};A(a,t)},s.onerror=function(){l.message.warning(r("ap.apUpload.imageParsingFailed"))}}async function A(t,s){if(p.value++,typeof N=="function"){N({onProgress:a=>{const n=o.value.find(c=>c.uid===t.uid);n&&(n.percent=a)},onError:a=>{l.message.warning(a||r("ap.apUpload.networkAnomaly"));const n=o.value.findIndex(c=>c.uid===t.uid);n>-1&&o.value.splice(n,1),p.value--},onSuccess:a=>{const n=o.value.find(c=>c.uid===t.uid);n&&(n.status="success",n.path=a),i.value?i.value.push(m.getReturnData(f,a,s.name)):i.value=[m.getReturnData(f,a,s.name)],g.push({uid:t.uid,path:a}),p.value--},file:s});return}try{const a=await _.getOssInstance(C);t.oss=a,o.value.push(t),j({file:s,dirName:D,oss:a,successCallBack(n){const c=o.value.find(d=>d.uid===t.uid);c&&(c.status="success",c.path=n),i.value?i.value.push(m.getReturnData(f,n,s.name)):i.value=[m.getReturnData(f,n,s.name)],g.push({uid:t.uid,path:n}),p.value--},errorCallBack(n){l.message.warning(n||r("ap.apUpload.networkAnomaly"));const c=o.value.findIndex(d=>d.uid===t.uid);c>-1&&o.value.splice(c,1),p.value--},progressCallBack(n){const c=o.value.find(d=>d.uid===t.uid);c&&(c.percent=n)}})}catch(a){l.message.warning(typeof(a==null?void 0:a.message)=="string"?a.message:r("ap.apUpload.networkAnomaly"));const n=o.value.findIndex(c=>c.uid===t.uid);n>-1&&o.value.splice(n,1),p.value--}}function I(t){var a;if(t.path){if(Array.isArray(i.value)){const n=g.findIndex(c=>c.uid===t.uid);n>=0&&(i==null||i.value.splice(n,1),g.splice(n,1)),i.value.length===0&&(i.value=void 0)}}else(a=t==null?void 0:t.oss)==null||a.pauseUpload();const s=o.value.findIndex(n=>n.uid===t.uid);return o.value.splice(s,1),Promise.resolve(!0)}return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(y)()]:!0,[e.unref(y)("admin")]:e.unref(q)==="admin"})},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:h,accept:e.unref(v),onChange:R},null,40,M),e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),a=>(e.openBlock(),e.createElementBlock("div",{class:"picture-item",key:a.uid},[e.createElementVNode("div",G,[e.createElementVNode("img",{src:a.thumbUrl,alt:""},null,8,H),e.withDirectives(e.createElementVNode("div",J,[e.createElementVNode("div",{class:"picture-item-close",onClick:n=>I(a)},[e.createVNode(e.unref(U.CloseOutlined))],8,K),a.status==="uploading"?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(e.unref(l.Progress),{percent:a.percent,strokeColor:"#ffffff",trailColor:"rgba(255, 255, 255, 0.3)",size:4,showInfo:!1},null,8,["percent"])])):e.createCommentVNode("",!0)],512),[[e.vShow,a.status==="uploading"]])])]))),128)),e.unref(u)===void 0||e.unref(o).length<e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"picture-upload",onClick:P},[e.createVNode(e.unref(U.PlusOutlined)),e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("ap.apUpload.update")),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",W,[e.unref(x)?(e.openBlock(),e.createElementBlock("div",X,e.toDisplayString(e.unref(x)),1)):(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(`${e.unref(r)("ap.apUpload.supportExtension")}:${e.unref(S.getAcceptText)(e.unref(v))},${e.unref(r)("ap.apUpload.maxUploadPictureSize",{maxSize:e.unref(k)})}`),1))])],2))}});exports.default=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const w=require("../utils/returnData.js"),z=require("../hooks/useOss.js"),x=require("../utils/accept.js"),s=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const w=require("../utils/returnData.js"),z=require("../hooks/useOss.js"),x=require("../utils/accept.js"),s=require("@aplus-frontend/antdv"),J=require("@ant-design/icons-vue"),O=require("../assets/single-file-icon.png.js");require("../styles/single-file.css");const K=require("../../config-provider/hooks/use-locale.js"),Q=require("../../config-provider/hooks/use-namespace.js"),X=["accept"],Y={key:0,class:"state-un"},Z=["src"],ee={class:"state-un-title"},te={class:"state-un-subtitle"},ne={key:1,class:"state-ing"},ae={class:"left"},oe=["src"],re={class:"center"},le={class:"center-progress"},se=e.defineComponent({__name:"SingleFile",setup(ce){const{t:l}=K.useLocale(),{b:m}=Q.useNamespace("ap-upload-single-file"),{put:P,client:F}=z.useOss(),g=e.inject("theme"),T=e.inject("dirName"),h=e.inject("accept")||"*",_=e.inject("maxSize")??500,V=e.inject("title")||l("ap.apUpload.clickOrDragUpload"),k=e.inject("subTitle"),r=e.inject("value"),y=e.inject("needName"),u=e.inject("uploadingCount"),S=e.inject("beforeUpload"),U=e.inject("customRequest"),L=e.inject("getOssAccess"),a=e.ref(null);e.watch(()=>r==null?void 0:r.value,function(t){setTimeout(()=>{if(a.value===null&&t){const n=w.getName(y,t);o.value=3,a.value=new File([t],n,{})}})},{immediate:!0});const o=e.ref(1),d=e.ref(0),f=e.ref(null),j=e.computed(()=>a.value&&(r==null?void 0:r.value));function R(){var t;o.value===1&&((t=f.value)==null||t.click())}function q(t){t.preventDefault(),t.stopPropagation()}function I(t){t.dataTransfer.dropEffect="copy",t.preventDefault(),t.stopPropagation()}function M(t){B(t)}function $(t){if(t.preventDefault(),t.stopPropagation(),o.value!==1)return;var n=t.dataTransfer,c=[],A=0,b=n.files.length;function i(){A===b-1&&M(c),A++}if(n.items!==void 0)for(var D=0;D<n.items.length;D++){var N=n.items[D];if(N.kind==="file"&&N.webkitGetAsEntry().isFile){var H=N.getAsFile();c.push(H),i()}}else for(let E=0;E<b;E++){var v=n.files[E];if(v.type)c.push(v),i();else try{var C=new FileReader;C.readAsDataURL(v.slice(0,3)),C.addEventListener("load",function(p){console.warn(p,"load"),c.push(v),i()},!1),C.addEventListener("error",function(p){console.warn(p,"error"),s.message.warning(l("ap.apUpload.foldersNotSupported")),i()},!1)}catch(p){console.warn(p),s.message.warning(l("ap.apUpload.foldersNotSupported")),i()}}}function G(t){const n=t.target;B(n==null?void 0:n.files),f.value&&(f.value.value="")}async function B(t){if(t!=null&&t.length){if(typeof S=="function"){if(S(t[0])===!1)return}else{if(t[0].size>_*1024*1024){s.message.warning(l("ap.apUpload.maxUploadFileSize",{maxSize:_}));return}if(!x.fileMatchesAccept(t[0],h)){s.message.warning(l("ap.apUpload.fileFormatNotSupported"));return}}if(a.value=t[0],o.value=2,d.value=0,u.value++,typeof U=="function"){U({onProgress:n=>{d.value=n},onError:n=>{s.message.warning(n||l("ap.apUpload.networkAnomaly")),o.value=1,a.value=null,u.value--},onSuccess:n=>{r.value=w.getReturnData(y,n,a.value.name),o.value=3,u.value--},file:t[0]});return}try{await z.useOssInit(L),P({file:a.value,dirName:T,oss:F,successCallBack(n){r.value=w.getReturnData(y,n,a.value.name),o.value=3,u.value--},errorCallBack(n){s.message.warning(n||l("ap.apUpload.networkAnomaly")),o.value=1,a.value=null,u.value--},progressCallBack(n){d.value=n}})}catch(n){s.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:l("ap.apUpload.networkAnomaly")),o.value=1,a.value=null,u.value--}}}function W(){a.value&&!(r!=null&&r.value)&&F.pauseUpload(),o.value=1,a.value=null,r.value=void 0}return(t,n)=>{var c;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(m)()]:!0,[e.unref(m)("admin")]:e.unref(g)==="admin",[e.unref(m)("un")]:o.value===1}),onClick:R,onDragenter:q,onDragover:I,onDragleave:q,onDrop:$},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:f,accept:e.unref(h),onChange:G},null,40,X),o.value===1?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("img",{class:"state-un-icon",src:e.unref(O.default)},null,8,Z),e.createElementVNode("div",ee,e.toDisplayString(e.unref(V)),1),e.createElementVNode("div",te,e.toDisplayString(typeof e.unref(k)=="string"&&e.unref(k).length>0?e.unref(k):`${e.unref(l)("ap.apUpload.supportExtension")}:${e.unref(x.getAcceptText)(e.unref(h))},${e.unref(l)("ap.apUpload.maxWarnUploadFileSize",{maxSize:e.unref(_)})}`),1)])):e.createCommentVNode("",!0),[2,3].includes(o.value)?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:e.unref(O.default)},null,8,oe)]),e.createElementVNode("div",re,[e.createElementVNode("div",{class:"center-title",style:e.normalizeStyle({color:j.value?"#0070FF":"#182948"})},e.toDisplayString((c=a.value)==null?void 0:c.name),5),e.createElementVNode("div",le,[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s.Progress),{key:0,percent:d.value,size:4,showInfo:!1,trailColor:e.unref(g)==="admin"?"#D9D9D9":"#DEE4ED",strokeColor:e.unref(g)==="admin"?"#34B77C":"#0070FF"},null,8,["percent","trailColor","strokeColor"]))])]),e.createElementVNode("div",{class:"right",onClick:e.withModifiers(W,["stop"])},[e.createVNode(e.unref(J.DeleteOutlined))])])):e.createCommentVNode("",!0)],34)}}});exports.default=se;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../icon/icon.vue.js");const d=require("@aplus-frontend/hooks"),p=require("lodash-unified"),s=require("../icon/icon.vue2.js"),f=e.defineComponent({name:"ApButton",extends:r.Button,inheritAttrs:!1,__name:"button",props:{color:{},disabled:{type:Boolean},preIcon:{},postIcon:{},iconSize:{default:14},onClick:{},text:{},loading:{type:Boolean}},setup(c){const t=c,i=d.useAttrs({excludeDefaultKeys:!1}),l=e.computed(()=>{const{color:o,disabled:n}=t;return[{[`ant-btn-${o}`]:!!o,"is-disabled":n}]}),u=e.computed(()=>({...e.unref(i),...p.omit(t,["color","preIcon","postIcon","iconSize"])}));return(o,n)=>(e.openBlock(),e.createBlock(e.unref(r.Button),e.mergeProps(u.value,{class:l.value,onClick:o.onClick}),{icon:e.withCtx(()=>[e.renderSlot(o.$slots,"icon")]),default:e.withCtx(a=>[o.preIcon?(e.openBlock(),e.createBlock(s.default,{key:0,icon:o.preIcon,size:o.iconSize},null,8,["icon","size"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",e.normalizeProps(e.guardReactiveProps(a||{}))),o.postIcon?(e.openBlock(),e.createBlock(s.default,{key:1,icon:o.postIcon,size:o.iconSize},null,8,["icon","size"])):e.createCommentVNode("",!0)]),_:3},16,["class","onClick"]))}});exports.default=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./button.vue.js");const l=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./button.vue.js");const l=require("@aplus-frontend/antdv"),d=require("../utils/slot.js"),s=require("lodash-unified"),f=require("@aplus-frontend/hooks");require("../config-provider/index.js");const m=require("./constants.js"),p=require("../config-provider/hooks/use-locale.js"),_=require("./button.vue2.js"),q=e.defineComponent({name:"ApPopConfirmButton",inheritAttrs:!1,props:m.popConfirmButton,setup(n,{slots:i}){const{t:o}=p.useLocale(),c=f.useAttrs(),r=e.computed(()=>Object.assign({okText:o("ap.common.okText"),cancelText:o("ap.common.cancelText")},{...n,...e.unref(c)}));return()=>{const a=s.omit(e.unref(r),"icon","color"),t=s.omit(e.unref(r),"title");t.disabled&&(t.color="");const u=e.h(_.default,t,d.extendSlots(i));return n.enable?e.h(l.Popconfirm,a,{default:()=>u}):u}}});exports.default=q;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, VNode, VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
import { TooltipPlacement } from '
|
|
2
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
3
3
|
declare const _default: DefineComponent<{
|
|
4
4
|
/**
|
|
5
5
|
* Help text max-width
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv"),f=require("@ant-design/icons-vue"),y=require("../utils/index.js"),l=require("@fruits-chain/utils"),m=require("../utils/slot.js");require("../config-provider/index.js");require("./style/help.css");const S=require("../config-provider/hooks/use-namespace.js"),g={maxWidth:{type:String,default:"600px"},showIndex:{type:Boolean},color:{type:String,default:"#ffffff"},fontSize:{type:String,default:"14px"},placement:{type:String,default:"right"},text:{type:[Array,String,Object]}},x=e.defineComponent({name:"ApBasicHelp",components:{Tooltip:i.Tooltip},props:g,setup(t,{slots:a}){const{b:u,be:n}=S.useNamespace("basic-help"),c=e.computed(()=>({color:t.color,fontSize:t.fontSize})),s=e.computed(()=>({maxWidth:t.maxWidth}));function d(){const r=t.text;return l.isType("String")(r)?r:l.isArray(r)?r.map((o,p)=>e.createVNode("p",{key:o,class:n("content","row")},[t.showIndex?`${p+1}. `:"",o])):r}return()=>e.createVNode(i.Tooltip,{overlayClassName:`${n("wrap")}`,title:e.createVNode("div",{style:e.unref(c)},[d()]),autoAdjustOverflow:!0,overlayStyle:e.unref(s),placement:t.placement,getPopupContainer:()=>y.getPopupContainer()},{default:()=>[e.createVNode("span",{class:u()},[m.getSlot(a)||e.createVNode(f.InfoCircleOutlined,null,null)])]})}});exports.default=x;
|
package/lib/src/basic/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, VNodeChild, VNode, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
-
import { TooltipPlacement } from '
|
|
2
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
export declare const BasicHelp: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttachmentItemProps, ApAttachmentProps } from './interface';
|
|
2
2
|
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
import { TooltipPlacement } from '
|
|
3
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
4
4
|
declare const _default: DefineComponent<{
|
|
5
5
|
attachmentList: {
|
|
6
6
|
type: PropType<Array<AttachmentItemProps>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const _=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js");require("./style.css");const k=require("../../ap-download/hooks/index.js"),G=require("lodash-unified"),v=require("@ant-design/icons-vue"),U=require("../../config-provider/hooks/use-namespace.js"),g=require("../../config-provider/hooks/use-global-config.js"),j=require("../../config-provider/hooks/use-locale.js"),z=e.defineComponent({name:"ApAttachment",props:_.ApAttachmentProps(),setup(t){const{b:F,e:a}=U.useNamespace("ap-attachment"),w=g.useGlobalConfig("uiMode"),b=g.useGlobalConfig("apUpload"),N=g.useGlobalConfig("downloadCenterTriggerConfig"),{lang:y,t:r}=j.useLocale(),n=e.ref(!1),c=e.ref(""),d=e.useSlots(),q=e.computed(()=>y.value==="zh-cn"?"zh_CN":"en_US"),s=e.computed(()=>t.attachmentList.length===1),h=e.computed(()=>t.attachmentList.length>0?t.attachmentList[0].fileName:""),O=e.computed(()=>s.value?h.value:r("ap.apAttachment.downloadall")),p=e.computed(()=>t.color?t.color:w.value==="aplus"?"#0070FF":"#1890FF"),T=e.computed(()=>({width:s.value?"auto":"266px"})),V=e.computed(()=>({"--download-main-color":p.value,"--download-main-color-opacity":f.getHexWithOpacity(p.value,.6)})),x=e.computed(()=>{var l;return t.getOssAccess||((l=b.value)==null?void 0:l.getOssAccess)}),I=e.computed(()=>{const l=d.default?d.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),m=async(l,i)=>{var o,C;if(!t.disabled){n.value=!0,i&&(c.value=i);try{const u=G.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if((o=N.value)!=null&&o.trigger){const M=f.getFileInfo(t.needName,u).map(L=>({objectName:L.path,fileName:L.fileName}));(C=N.value)==null||C.trigger(M)}else await(await k.useOssInit(x.value,e.unref(q))).downloadFile(f.getFileInfo(t.needName,u))}catch(u){console.error(u)}finally{n.value=!1,c.value=""}}},P=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list")],style:V.value},[l.map((i,o)=>e.createVNode("li",{key:o,class:[a("file-item")],onClick:()=>m(i,o+1)},[n.value&&c.value===o+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(v.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[a("down-load-all")],onClick:()=>m(t.attachmentList,"all")},[n.value&&c.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(v.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>{var l;return((l=t.attachmentList)==null?void 0:l.length)>0&&e.createVNode("div",{class:[F()],style:[T.value,V.value]},[e.createVNode(A.Tooltip,{title:O.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>m(s.value?t.attachmentList[0]:t.attachmentList,"global")},[n.value&&c.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(v.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[a("text-render")]},[I.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")]},[h.value])])]}),e.createVNode(A.Popover,{content:P(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!s.value&&e.createVNode("div",{class:[a("more")]},[r("ap.apAttachment.more")])]})])}}});exports.default=z;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApDownLoadProps } from '../../ap-download/interface';
|
|
2
|
-
import { TooltipPlacement } from '
|
|
2
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
3
3
|
export type AttachmentItemProps = {
|
|
4
4
|
fileName: string;
|
|
5
5
|
filePath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./index.css");const r=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./index.css");const r=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const i=require("../../config-provider/hooks/use-namespace.js"),u=require("../../config-provider/hooks/use-locale.js"),d={class:"selected-desc"},p={class:"selected-desc-conut"},f={class:"selected-desc-clean"},m=e.defineComponent({__name:"ApBatchAction",props:{selectedRowKeys:{},clearAll:{type:Function}},setup(n){const{b:a}=i.useNamespace("ap-batch-action"),{t:s}=u.useLocale(),c=n,l=e.computed(()=>{var t;return((t=c.selectedRowKeys)==null?void 0:t.length)||0});return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a)()])},[e.renderSlot(t.$slots,"prefix"),e.createElementVNode("div",d,[e.createElementVNode("div",p,[e.createTextVNode(e.toDisplayString(e.unref(s)("ap.apBatchAction.selected"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(l.value),1),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("ap.apBatchAction.piecesOfData")),1)]),e.createElementVNode("div",f,[e.createVNode(e.unref(r.Button),{type:"link",onClick:o[0]||(o[0]=_=>c.clearAll&&c.clearAll())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("ap.apBatchAction.empty")),1)]),_:1})])]),e.renderSlot(t.$slots,"suffix")],2))}});exports.default=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const w=require("@ant-design/icons-vue"),g=require("@aplus-frontend/hooks"),P=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-locale.js"),L=require("../../config-provider/hooks/use-global-config.js"),m=require("./MenuItemGroup.vue2.js"),C=require("../../ap-button/ap-button.vue.js"),k=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(v){const{b:l}=P.useNamespace("ap-batch-action-group"),{t:f}=q.useLocale(),t=v,b=L.useGlobalConfig("uiMode"),{hasPermission:_}=g.usePermission(),c=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.dropdownType)||"default"}),n=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.type)||"borderLink"}),d=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.content)||f("ap.apApBatchActionGroup.batchOperation")}),y=e.computed(()=>(t==null?void 0:t.selectedRows)||[]),s=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.disabled)??(Array.isArray(t.selectedRows)?y.value.length===0:!1)}),h=e.computed(()=>{const o={aplus:"#0070FF",admin:"#34b77c"};return n.value==="borderLink"?s.value?void 0:o[b.value]||o.aplus:void 0}),r=e.computed(()=>{var o;return((o=t==null?void 0:t.menuList)==null?void 0:o.filter(u=>{let a=u==null?void 0:u.ifShow;return!(u!=null&&u.ifShow)&&(u!=null&&u.auth)&&(a=()=>_(u.auth)),(a==null?void 0:a())??!0}))||[]});function i(){return t!=null&&t.buttonProps?{...t.buttonProps,type:n.value==="borderLink"?"default":n.value}:{}}return(o,u)=>r.value.length&&c.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(p.DropdownButton),e.mergeProps({key:0,class:[e.unref(l)()]},{...i(),disabled:s.value}),{overlay:e.withCtx(()=>[e.createVNode(m.default,e.mergeProps({...t},{menuList:r.value}),null,16,["menuList"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:h.value})},e.toDisplayString(d.value),5)]),_:1},16,["class"])):r.value.length&&c.value==="default"?(e.openBlock(),e.createBlock(e.unref(p.Dropdown),{key:1,class:e.normalizeClass([e.unref(l)()]),disabled:s.value},{overlay:e.withCtx(()=>[e.createVNode(m.default,e.mergeProps({...t},{menuList:r.value}),null,16,["menuList"])]),default:e.withCtx(()=>[e.createVNode(e.unref(C.default),e.normalizeProps(e.guardReactiveProps({...o.$attrs,...i(),type:n.value})),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value)+" ",1),e.createVNode(e.unref(w.DownOutlined))]),_:1},16)]),_:1},8,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=k;
|