@aplus-frontend/ui 0.2.0-beta.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.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-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/hooks/use-default-placeholder.mjs +14 -14
- package/es/src/ap-field/interface.d.ts +5 -5
- 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.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/drawer-form/index.vue.d.ts +6 -6
- package/es/src/ap-form/drawer-form/index.vue.mjs +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/item/index.vue.d.ts +4 -4
- package/es/src/ap-form/item/index.vue.mjs +2 -2
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -2
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/date/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/interface.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/select/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/switch/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/text/group.vue2.mjs +1 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- 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-info-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 +104 -109
- 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 +220 -220
- 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 +203 -240
- package/es/src/ap-table/utils.mjs +69 -80
- 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.d.ts +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/ap-upload/apUploadTypes.d.ts +18 -0
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +56 -58
- package/es/src/ap-upload/components/Picture.vue.d.ts +41 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +103 -82
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +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/index.d.ts +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/index.d.ts +8 -8
- 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/index.d.ts +5 -5
- 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/index.d.ts +2 -2
- 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/constans.d.ts +2 -2
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +1 -1
- package/es/src/business/ap-label/index.d.ts +2 -2
- 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/index.d.ts +5 -5
- 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-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-summary/interface.d.ts +2 -2
- package/es/src/business/ap-summary/utils.d.ts +1 -1
- package/es/src/business/ap-summary/utils.mjs +16 -16
- 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/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/constants.d.ts +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/design-token/index.d.ts +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 +29 -34
- 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/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/utils/config-provider-preset.d.ts +10 -10
- 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-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/hooks/use-default-placeholder.js +1 -1
- package/lib/src/ap-field/interface.d.ts +5 -5
- 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.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/drawer-form/index.vue.d.ts +6 -6
- 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/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.d.ts +4 -4
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -2
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/interface.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/select/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/text/group.vue2.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- 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-info-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 +220 -220
- 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 +203 -240
- 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.d.ts +2 -2
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/apUploadTypes.d.ts +18 -0
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +41 -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/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/index.d.ts +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/index.d.ts +8 -8
- 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/index.d.ts +5 -5
- 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/index.d.ts +2 -2
- 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/constans.d.ts +2 -2
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +2 -2
- 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/index.d.ts +5 -5
- 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-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +2 -2
- package/lib/src/business/ap-summary/utils.d.ts +1 -1
- package/lib/src/business/ap-summary/utils.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/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/constants.d.ts +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/design-token/index.d.ts +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/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +10 -10
- 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,50 +1,45 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { useSlots as N, computed as T, unref as m } from "vue";
|
|
2
|
+
import { omit as y, isFunction as k, isArray as f } from "lodash-unified";
|
|
3
3
|
import { getEditableTableTitle as w, mergeClass as A, getFinalNode as q } from "../utils.mjs";
|
|
4
|
-
import { updateFormProps as
|
|
4
|
+
import { updateFormProps as v, getFieldProps as E, getTableRenderProps as G } from "../../ap-table/utils.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { useToken as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const W = (a, b) => {
|
|
6
|
+
import { useToken as S } from "@aplus-frontend/antdv/es/theme/internal";
|
|
7
|
+
import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const M = (a, b) => {
|
|
10
9
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = j("editable-table"), F = y(), [, I] = U();
|
|
16
|
-
return N(() => {
|
|
10
|
+
em: x,
|
|
11
|
+
be: g
|
|
12
|
+
} = U("editable-table"), F = N(), [, h] = S();
|
|
13
|
+
return T(() => {
|
|
17
14
|
const d = a.columns;
|
|
18
15
|
if (!d)
|
|
19
16
|
return [];
|
|
20
|
-
function c(
|
|
21
|
-
return
|
|
22
|
-
...
|
|
17
|
+
function c(I) {
|
|
18
|
+
return I.map((e) => ({
|
|
19
|
+
...y(e, ["ellipsis"]),
|
|
23
20
|
children: c(e.children || []),
|
|
24
|
-
title: w(e,
|
|
21
|
+
title: w(e, g("table-header", "title"), x("header-cell", "required"), F.headerCell, m(h).colorPrimary),
|
|
25
22
|
customRender({
|
|
26
|
-
value:
|
|
23
|
+
value: t,
|
|
27
24
|
...n
|
|
28
25
|
}) {
|
|
29
|
-
const
|
|
26
|
+
const o = k(e.editable) ? e.editable(n.text, n.record, n.index) : !!e.editable;
|
|
30
27
|
if (!e.valueType && !e.customRender && !e.customRenderFormItem)
|
|
31
28
|
return console.warn("can not render table cell because no `valueType` / `customRender` / `customRenderFormItem`"), null;
|
|
32
29
|
let r;
|
|
33
|
-
if (
|
|
34
|
-
const l =
|
|
35
|
-
value:
|
|
30
|
+
if (o) {
|
|
31
|
+
const l = v(e, E(e.fieldProps, {
|
|
32
|
+
value: t,
|
|
36
33
|
...n
|
|
37
34
|
})), i = {};
|
|
38
|
-
a.onFieldChange && (i[`onUpdate:${l.valuePropName || "value"}`] = (
|
|
35
|
+
a.onFieldChange && (i[`onUpdate:${l.valuePropName || "value"}`] = (C) => {
|
|
39
36
|
var s;
|
|
40
|
-
return (s = a.onFieldChange) == null ? void 0 : s.call(a, n.index, e.dataIndex,
|
|
37
|
+
return (s = a.onFieldChange) == null ? void 0 : s.call(a, n.index, e.dataIndex, C);
|
|
41
38
|
});
|
|
42
|
-
const
|
|
39
|
+
const R = f(e.dataIndex) ? e.dataIndex : [e.dataIndex];
|
|
43
40
|
r = {
|
|
44
|
-
name: [...f(a.name) ? a.name : [a.name], n.index, ...
|
|
41
|
+
name: [...f(a.name) ? a.name : [a.name], n.index, ...R],
|
|
45
42
|
...l || {},
|
|
46
|
-
// 格式化placeholder
|
|
47
|
-
placeholder: L(g, e.valueType, l == null ? void 0 : l.placeholder),
|
|
48
43
|
field: {
|
|
49
44
|
style: "width: 100%",
|
|
50
45
|
...(l == null ? void 0 : l.field) || {},
|
|
@@ -54,16 +49,16 @@ const W = (a, b) => {
|
|
|
54
49
|
};
|
|
55
50
|
} else
|
|
56
51
|
r = {
|
|
57
|
-
field:
|
|
58
|
-
value:
|
|
52
|
+
field: G(e, {
|
|
53
|
+
value: t,
|
|
59
54
|
...n
|
|
60
55
|
})
|
|
61
56
|
};
|
|
62
|
-
const u = q(e,
|
|
57
|
+
const u = q(e, o, r, t, n.record, m(b));
|
|
63
58
|
return e.customRender ? e.customRender({
|
|
64
|
-
value:
|
|
59
|
+
value: t,
|
|
65
60
|
...n,
|
|
66
|
-
editable:
|
|
61
|
+
editable: o,
|
|
67
62
|
originalNode: u
|
|
68
63
|
}) : u;
|
|
69
64
|
}
|
|
@@ -73,5 +68,5 @@ const W = (a, b) => {
|
|
|
73
68
|
});
|
|
74
69
|
};
|
|
75
70
|
export {
|
|
76
|
-
|
|
71
|
+
M as default
|
|
77
72
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditableTableProps, EditableColumnType } from './interface';
|
|
2
|
-
import { NamePath, ValidateOptions } from '
|
|
2
|
+
import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
5
5
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as W, useSlots as $, ref as w, watch as C, unref as o, openBlock as q, createBlock as J, withCtx as c, createVNode as b, mergeProps as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
|
-
import { Table as ae } from "
|
|
2
|
+
import { Table as ae } from "@aplus-frontend/antdv";
|
|
3
3
|
import { ApForm as p } from "../ap-form/index.mjs";
|
|
4
4
|
import { isEqual as ne, isArray as R, isNumber as x, cloneDeep as h, omit as F } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ColumnType, TableProps } from '
|
|
1
|
+
import { ColumnType, TableProps } from '@aplus-frontend/antdv/es/table';
|
|
2
2
|
import { ApTableValueFields, ApTableValueTypes, CommonFieldReturnType, FieldPropsType, ValueEnum } from '../ap-table';
|
|
3
|
-
import { NamePath, ValidateOptions } from '
|
|
4
|
-
import { DataIndex } from '
|
|
5
|
-
import { FormItemProps } from '
|
|
3
|
+
import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
5
|
+
import { FormItemProps } from '@aplus-frontend/antdv';
|
|
6
6
|
import { VNode } from 'vue';
|
|
7
|
-
import { EllipsisConfig } from '
|
|
7
|
+
import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
|
|
8
8
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../type';
|
|
10
10
|
export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ColumnType<RecordType>, 'children' | 'customRender' | 'ellipsis'> & {
|
|
@@ -175,4 +175,4 @@ export type EditableTableExpose<ModelType = any, RecordType = any> = {
|
|
|
175
175
|
* 可编辑表格作为表单项暴露的实例
|
|
176
176
|
* @description 作为Form表单使用时不再暴露表单相关的API
|
|
177
177
|
*/
|
|
178
|
-
export type EditableTableFormItemExpose<ModelType = any, RecordType = any> = Omit<EditableTableExpose<ModelType, RecordType>, 'resetFields' | 'validateFields'
|
|
178
|
+
export type EditableTableFormItemExpose<ModelType = any, RecordType = any> = Omit<EditableTableExpose<ModelType, RecordType>, 'resetFields' | 'validateFields'>;
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { isVNode as I, createVNode as
|
|
2
|
-
import { isFunction as
|
|
3
|
-
import { apTableFormItemMap as
|
|
4
|
-
import { isDef as
|
|
1
|
+
import { isVNode as I, createVNode as s, mergeProps as S, createTextVNode as F, Fragment as w } from "vue";
|
|
2
|
+
import { isFunction as T, isArray as h, isBoolean as P, omit as V, isString as q } from "lodash-unified";
|
|
3
|
+
import { apTableFormItemMap as C, noRenderAsFormItemValueList as N, apTableRenderItemMap as j } from "../ap-table/constants.mjs";
|
|
4
|
+
import { isDef as v } from "../utils/index.mjs";
|
|
5
5
|
import { getValueStr as A } from "../ap-field/number/helper.mjs";
|
|
6
6
|
import O from "scroll-into-view-if-needed";
|
|
7
|
-
import { Typography as
|
|
7
|
+
import { Typography as R, Tooltip as W } from "@aplus-frontend/antdv";
|
|
8
8
|
import "../ap-form/index.mjs";
|
|
9
|
-
import { objectToString as D } from "../ap-table/utils.mjs";
|
|
9
|
+
import { objectToString as _, getTableRenderType as D } from "../ap-table/utils.mjs";
|
|
10
10
|
import { QuestionCircleOutlined as E } from "@ant-design/icons-vue";
|
|
11
|
-
import
|
|
12
|
-
function
|
|
11
|
+
import b from "../ap-form/item/index.vue.mjs";
|
|
12
|
+
function g(t) {
|
|
13
13
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !I(t);
|
|
14
14
|
}
|
|
15
|
-
function R(t) {
|
|
16
|
-
return v[t];
|
|
17
|
-
}
|
|
18
15
|
function k(t) {
|
|
16
|
+
return C[t];
|
|
17
|
+
}
|
|
18
|
+
function B(t) {
|
|
19
19
|
if (!t.fieldProps)
|
|
20
20
|
return !1;
|
|
21
|
-
const e =
|
|
22
|
-
return
|
|
21
|
+
const e = T(t.fieldProps) ? t.fieldProps({}) : t.fieldProps;
|
|
22
|
+
return v(e.required) ? e.required : (h(e.rules) ? e.rules : e.rules ? [e.rules] : []).some((i) => i.required);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function L(t, e) {
|
|
25
25
|
if (t.valueType === "text" || t.valueType === "textArea")
|
|
26
26
|
return e || "--";
|
|
27
27
|
if (t.valueType === "number") {
|
|
28
|
-
const
|
|
29
|
-
return A(e,
|
|
28
|
+
const o = t.fieldProps ? T(t.fieldProps) ? t.fieldProps({}) : t.fieldProps : {};
|
|
29
|
+
return A(e, o) || "--";
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return _(e);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const
|
|
33
|
+
function M(t, e) {
|
|
34
|
+
const o = [t];
|
|
35
35
|
if (e) {
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
const i = h(e) ? e : [e];
|
|
37
|
+
o.unshift(...i);
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return o.join(" ");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
|
|
41
|
+
function tt(t, e = document.body, o = {}) {
|
|
42
|
+
const i = e.querySelectorAll("tr.ant-table-row")[t];
|
|
43
|
+
i && O(i, {
|
|
44
44
|
scrollMode: "if-needed",
|
|
45
45
|
block: "nearest",
|
|
46
46
|
behavior: "smooth",
|
|
47
|
-
...
|
|
47
|
+
...o
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function Q(t, e, o) {
|
|
51
|
+
return N.includes(t.valueType) ? o : t.copyable || t.ellipsis ? s(R.Paragraph, {
|
|
52
52
|
copyable: t.copyable ? {
|
|
53
53
|
text: e,
|
|
54
54
|
tooltip: !1
|
|
@@ -59,76 +59,76 @@ function L(t, e, i) {
|
|
|
59
59
|
...t.ellipsis,
|
|
60
60
|
tooltip: e
|
|
61
61
|
} : !1,
|
|
62
|
-
content: t.ellipsis ?
|
|
63
|
-
}, null) :
|
|
62
|
+
content: t.ellipsis ? L(t, e) : o
|
|
63
|
+
}, null) : o;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
var
|
|
65
|
+
function et(t, e, o, i, u, l) {
|
|
66
|
+
var m, c;
|
|
67
67
|
if (e) {
|
|
68
68
|
if (t.customRenderFormItem) {
|
|
69
|
-
const
|
|
70
|
-
return
|
|
71
|
-
default: () => [
|
|
69
|
+
const d = t.customRenderFormItem(t, o.field, e, u);
|
|
70
|
+
return s(b, V(o, ["field"]), g(d) ? d : {
|
|
71
|
+
default: () => [d]
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
return r
|
|
77
|
-
const n = l == null ? void 0 : l[t.valueType],
|
|
78
|
-
return
|
|
79
|
-
default: () => [
|
|
74
|
+
const r = k(t.valueType);
|
|
75
|
+
if (r)
|
|
76
|
+
return s(r, o, null);
|
|
77
|
+
const n = l == null ? void 0 : l[t.valueType], f = (m = n == null ? void 0 : n.renderFormItem) == null ? void 0 : m.call(n, o.field);
|
|
78
|
+
return f ? s(b, o, g(f) ? f : {
|
|
79
|
+
default: () => [f]
|
|
80
80
|
}) : null;
|
|
81
81
|
}
|
|
82
|
-
let
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
85
|
-
|
|
82
|
+
let p;
|
|
83
|
+
const y = D(t), a = j[y];
|
|
84
|
+
if (a)
|
|
85
|
+
p = s(a, S(o.field, {
|
|
86
86
|
mode: "read"
|
|
87
87
|
}), null);
|
|
88
88
|
else {
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
const r = l == null ? void 0 : l[y];
|
|
90
|
+
p = (c = r == null ? void 0 : r.render) == null ? void 0 : c.call(r, i, u, o.field);
|
|
91
91
|
}
|
|
92
|
-
return
|
|
92
|
+
return p ? Q(t, i, p) : null;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const l =
|
|
94
|
+
function ot(t, e, o, i, u) {
|
|
95
|
+
const l = i == null ? void 0 : i({
|
|
96
96
|
title: t.title,
|
|
97
97
|
column: t
|
|
98
|
-
}),
|
|
99
|
-
if (l &&
|
|
98
|
+
}), p = (l == null ? void 0 : l.filter((d) => d.type !== Symbol.for("v-cmt"))) || [];
|
|
99
|
+
if (l && p.length > 0)
|
|
100
100
|
return l;
|
|
101
|
-
const
|
|
101
|
+
const a = B(t), c = q(t.title) ? {
|
|
102
102
|
class: e,
|
|
103
103
|
title: t.title
|
|
104
|
-
} : {},
|
|
105
|
-
class:
|
|
106
|
-
}, [F("*")]) : null, t.title]),
|
|
107
|
-
return
|
|
104
|
+
} : {}, r = s("div", c, [a ? s("span", {
|
|
105
|
+
class: o
|
|
106
|
+
}, [F("*")]) : null, t.title]), n = t.tooltip ? T(t.tooltip) ? t.tooltip(t) : s(w, null, [t.tooltip]) : null;
|
|
107
|
+
return n ? s("span", {
|
|
108
108
|
style: {
|
|
109
109
|
display: "inline-flex",
|
|
110
110
|
alignItems: "center",
|
|
111
111
|
maxWidth: "100%"
|
|
112
112
|
}
|
|
113
|
-
}, [
|
|
114
|
-
title:
|
|
113
|
+
}, [r, s(W, {
|
|
114
|
+
title: n,
|
|
115
115
|
placement: "bottom"
|
|
116
116
|
}, {
|
|
117
|
-
default: () => [
|
|
117
|
+
default: () => [s(E, {
|
|
118
118
|
style: {
|
|
119
119
|
padding: "4px",
|
|
120
|
-
color:
|
|
120
|
+
color: u,
|
|
121
121
|
verticalAlign: "middle"
|
|
122
122
|
}
|
|
123
123
|
}, null)]
|
|
124
|
-
})]) :
|
|
124
|
+
})]) : r;
|
|
125
125
|
}
|
|
126
126
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
B as getColumnIsRequired,
|
|
128
|
+
k as getEditableComponent,
|
|
129
|
+
ot as getEditableTableTitle,
|
|
130
|
+
et as getFinalNode,
|
|
131
|
+
L as getRawDisplayValue,
|
|
132
|
+
M as mergeClass,
|
|
133
|
+
tt as scrollToRowIndex
|
|
134
134
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModalFuncProps } from '
|
|
2
|
-
import { NotificationArgsProps, ConfigProps } from '
|
|
3
|
-
import { ModalFuncProps } from '
|
|
4
|
-
import { MessageApi } from '
|
|
1
|
+
import { ModalFuncProps } from '@aplus-frontend/antdv/lib/modal/Modal';
|
|
2
|
+
import { NotificationArgsProps, ConfigProps } from '@aplus-frontend/antdv/lib/notification';
|
|
3
|
+
import { ModalFuncProps } from '@aplus-frontend/antdv';
|
|
4
|
+
import { MessageApi } from '@aplus-frontend/antdv/es/message';
|
|
5
5
|
export interface NotifyApi {
|
|
6
6
|
info(config: NotificationArgsProps): void;
|
|
7
7
|
success(config: NotificationArgsProps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createVNode as o } from "vue";
|
|
2
|
-
import { Modal as r, notification as i, message as s } from "
|
|
2
|
+
import { Modal as r, notification as i, message as s } from "@aplus-frontend/antdv";
|
|
3
3
|
import { InfoCircleFilled as c, CheckCircleFilled as f, CloseCircleFilled as d } from "@ant-design/icons-vue";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
5
|
import { isType as m } from "@fruits-chain/utils";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TransformCellTextProps } from '
|
|
2
|
-
import { ConfigProviderProps } from '
|
|
3
|
-
import { ValidateMessages } from '
|
|
4
|
-
import { RequiredMark } from '
|
|
5
|
-
import { ButtonSize } from '
|
|
6
|
-
import { CSPConfig } from '
|
|
7
|
-
import { Locale } from '
|
|
8
|
-
import { ThemeConfig } from '
|
|
9
|
-
import { default as __DTS_DEFAULT_0__ } from '
|
|
10
|
-
import { TransformCellTextProps } from '
|
|
1
|
+
import { TransformCellTextProps } from '@aplus-frontend/antdv/lib/table/interface';
|
|
2
|
+
import { ConfigProviderProps } from '@aplus-frontend/antdv';
|
|
3
|
+
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
|
+
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
7
|
+
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
8
|
+
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
9
|
+
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
10
|
+
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
11
11
|
/**
|
|
12
12
|
* 弹出框(Select, Tooltip, Menu 等等)渲染父节点,默认渲染到 body 上
|
|
13
13
|
* 解决弹出框滚动问题
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementVNode as e, defineComponent as r, openBlock as s, createBlock as n, unref as t, withCtx as l, toDisplayString as i, createVNode as a } from "vue";
|
|
2
2
|
import { QuestionCircleOutlined as c } from "@ant-design/icons-vue";
|
|
3
|
-
import { Tooltip as d } from "
|
|
3
|
+
import { Tooltip as d } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
5
|
import { useLocale as p } from "../config-provider/hooks/use-locale.mjs";
|
|
6
6
|
const _ = { class: "title" }, m = { class: "flex" }, f = /* @__PURE__ */ e("div", null, "1.", -1), u = { class: "flex" }, x = /* @__PURE__ */ e("div", null, "2.", -1), O = /* @__PURE__ */ r({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as M, ref as g, computed as F, openBlock as N, createElementBlock as E, createVNode as t, unref as e, mergeProps as L, withCtx as n, h as A } from "vue";
|
|
2
|
-
import { message as P, Modal as q, Input as I, Textarea as V } from "
|
|
2
|
+
import { message as P, Modal as q, Input as I, Textarea as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import { ApForm as i } from "../ap-form/index.mjs";
|
|
4
4
|
import "./help-message.vue.mjs";
|
|
5
5
|
import "../ap-upload/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApActionGroupProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { Trigger } from '
|
|
3
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
4
4
|
import { GroupActionTypes } from '..';
|
|
5
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionGroupProps>, {
|
|
6
6
|
count: number;
|
|
@@ -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("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");require("../item-dropdown/index.vue2.js");require("../../config-provider/index.js");const _=require("lodash-unified"),d=require("../../config-provider/hooks/use-locale.js"),c=require("../item-dropdown/index.vue.js"),f=require("../item-modal/index.vue.js"),g=require("../item-popconfirm/index.vue.js"),m=require("../item/index.vue2.js"),k=e.defineComponent({name:"ApActionGroup",__name:"index",props:{count:{default:3},trigger:{default:()=>["hover"]},placement:{default:"bottomRight"},actions:{default:()=>[]}},setup(l){const o=l,{t:s}=d.useLocale(),n=e.computed(()=>o.actions.filter(t=>t.visible||_.isUndefined(t.visible))),i=e.computed(()=>e.unref(n).length>o.count),u=e.computed(()=>{const t=e.unref(n);return t.length<=o.count?{showActions:t,menuActions:[]}:{showActions:t.slice(0,o.count-1),menuActions:t.slice(o.count-1)}});return(t,v)=>(e.openBlock(),e.createBlock(e.unref(p.Space),{size:16,align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.showActions,(r,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[r.actions?(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:0,ref_for:!0},r),null,16)):r.modalProps?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:1,ref_for:!0},r),null,16)):r.popconfirmProps?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:2,ref_for:!0},r),null,16)):(e.openBlock(),e.createBlock(m.default,e.mergeProps({key:3,ref_for:!0},r),null,16))],64))),128)),i.value?(e.openBlock(),e.createBlock(c.default,{key:0,actions:u.value.menuActions,placement:t.placement,trigger:t.trigger,text:e.unref(s)("ap.common.more")},null,8,["actions","placement","trigger","text"])):e.createCommentVNode("",!0)]),_:1}))}});exports.default=k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropdownProps, ModalFuncProps, PopconfirmProps } from '
|
|
1
|
+
import { DropdownProps, ModalFuncProps, PopconfirmProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
3
|
export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
|
|
4
4
|
export type ApActionItemProps = {
|
|
@@ -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 d=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("@aplus-frontend/antdv/es/button/LoadingIcon"),f=require("../../config-provider/hooks/use-namespace.js"),m={key:1},p=e.defineComponent({name:"ApActionItem",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1}},setup(s){const n=s,{b:c,m:l}=f.useNamespace("action-item"),a=e.ref(!1);function r(o){var i;e.unref(t)||n.disabled||((i=n.onClick)==null||i.call(n,o),n.onAction&&(a.value=!0,n.onAction(o).finally(()=>a.value=!1)))}const t=e.computed(()=>n.loading||e.unref(a)),u=e.computed(()=>[c(),l(n.color),n.disabled?l("disabled"):null,t.value?l("loading"):null].filter(Boolean));return(o,i)=>e.renderSlot(o.$slots,"trigger",{loading:t.value,disabled:o.disabled,onClick:r},()=>[o.visible?(e.openBlock(),e.createElementBlock("span",e.mergeProps({key:0},o.$attrs,{onClick:r,class:u.value}),[t.value?(e.openBlock(),e.createBlock(e.unref(d),{key:0,prefixCls:"btn",existIcon:!1,loading:""})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},()=>[e.isVNode(o.text)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.text),{key:0})):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(o.text||""),1))])],16)):e.createCommentVNode("",!0)])}});exports.default=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApActionItemDropdownProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ActionColor, MixedActionTypes } from '..';
|
|
4
|
-
import { Trigger } from '
|
|
4
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: {
|
|
7
7
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const f=require("@aplus-frontend/icon");require("../../config-provider/index.js");const s=require("lodash-unified"),m=require("../../config-provider/hooks/use-namespace.js"),_=require("../item-modal/index.vue.js"),g=require("../item-popconfirm/index.vue.js"),i=require("../item/index.vue2.js"),k=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1}},setup(c){const a=c,n=e.ref(!1),{e:l}=m.useNamespace("action-item-dropdown"),p=e.computed(()=>a.actions.filter(r=>r.visible||s.isUndefined(r.visible)).map(r=>({...r,onAction:async o=>{var t;try{await((t=r.onAction)==null?void 0:t.call(r,o))}finally{n.value=!1}}})));return(r,o)=>(e.openBlock(),e.createBlock(e.unref(u.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=t=>n.value=t),trigger:r.trigger,placement:r.placement},{overlay:e.withCtx(()=>[e.createVNode(e.unref(u.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t,d)=>(e.openBlock(),e.createBlock(e.unref(u.MenuItem),{key:d,class:e.normalizeClass(e.unref(l)("item"))},{default:e.withCtx(()=>[t.modalProps?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:0,ref_for:!0},t),null,16)):t.popconfirmProps?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:1,ref_for:!0},t),null,16)):(e.openBlock(),e.createBlock(i.default,e.mergeProps({key:2,ref_for:!0},t),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("wrapper"))},[e.createVNode(i.default,e.normalizeProps(e.guardReactiveProps(e.unref(s.omit)(a,["actions","trigger","placement"]))),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16),r.showIcon?(e.openBlock(),e.createBlock(e.unref(f.IconApAdLineDown),{key:0,class:e.normalizeClass(e.unref(l)("icon"))},null,8,["class"])):e.createCommentVNode("",!0)],2)]),_:3},8,["open","trigger","placement"]))}});exports.default=k;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApActionItemModalProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
|
-
import { ModalFuncProps } from '
|
|
4
|
+
import { ModalFuncProps } from '@aplus-frontend/antdv';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
7
7
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv");require("../item/index.vue.js");const d=require("lodash-unified"),p=require("../item/index.vue2.js"),f=e.defineComponent({name:"ApActionItemModal",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},modalProps:{default:()=>({})}},setup(l){const s=e.useSlots(),o=l;async function i(n){c.Modal.confirm({...o.modalProps,zIndex:1060,onOk:async()=>{var r,a,t;(a=(r=o.modalProps).onOk)==null||a.call(r),await((t=o.onAction)==null?void 0:t.call(o,n))}})}return(n,r)=>(e.openBlock(),e.createBlock(p.default,e.mergeProps(e.unref(d.omit)(o,["modalProps","onAction"]),{onAction:i}),e.createSlots({_:2},[e.renderList(s,(a,t)=>({name:t,fn:e.withCtx(u=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040))}});exports.default=f;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApActionItemPopconfirmProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
5
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
4
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
7
|
-
import { MouseEventHandler } from '
|
|
8
|
-
import { TriggerType } from '
|
|
9
|
-
import { TooltipPlacement, AdjustOverflow } from '
|
|
10
|
-
import { LiteralUnion } from '
|
|
11
|
-
import { PresetColorType } from '
|
|
12
|
-
import { AlignType, BuildInPlacements } from '
|
|
7
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
8
|
+
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
9
|
+
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
10
|
+
import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
11
|
+
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
12
|
+
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
15
15
|
refs: {};
|
|
@@ -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"),u=require("@aplus-frontend/antdv");require("../item/index.vue.js");const p=require("lodash-unified"),d=require("../item/index.vue2.js"),f=e.defineComponent({name:"ApActionItemPopconfirm",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},popconfirmProps:{default:()=>({})}},setup(a){const s=e.useSlots(),o=a;async function l(n){var t,i,r;(i=(t=o.popconfirmProps).onConfirm)==null||i.call(t,n),await((r=o.onAction)==null?void 0:r.call(o,n))}return(n,t)=>(e.openBlock(),e.createBlock(e.unref(u.Popconfirm),e.mergeProps(o.popconfirmProps,{onConfirm:l,disabled:!o.popconfirmProps,"overlay-style":{zIndex:1060}}),{default:e.withCtx(()=>[e.createVNode(d.default,e.normalizeProps(e.guardReactiveProps(e.unref(p.omit)(o,["popconfirmProps","onAction"]))),e.createSlots({_:2},[e.renderList(s,(i,r)=>({name:r,fn:e.withCtx(c=>[e.renderSlot(n.$slots,r,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040)]),_:3},16,["disabled"]))}});exports.default=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ApButtonProps } from './interface';
|
|
3
|
-
import { ButtonType } from '
|
|
3
|
+
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
refs: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApButtonProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { ButtonType } from '
|
|
3
|
+
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("@aplus-frontend/antdv");require("../config-provider/index.js");const L=require("lodash-unified"),M=require("../config-provider/hooks/use-namespace.js"),$=require("../config-provider/hooks/use-global-config.js"),j=88,q=e.defineComponent({__name:"ap-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"default"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!1},onClick:{}},setup(m){const t=m,c={aplus:"#0070FF",admin:"#34b77c"},{b:d}=M.useNamespace("ap-action-button"),g=$.useGlobalConfig("uiMode"),u=e.ref(!1),y=e.computed(()=>t.borderLinkColor||c[g.value]||c.aplus),f=e.computed(()=>t.type==="borderLink"?y.value:void 0),p=e.computed(()=>B(f.value)),v=e.computed(()=>t.minWidth===!0?`${j}px`:typeof t.minWidth=="number"?`${t.minWidth}px`:typeof t.minWidth=="string"?t.minWidth:void 0),h=e.computed(()=>(t.type==="borderLink"?"default":t.type)||"default"),b=e.computed(()=>t.loading??u.value??!1);function C(){const o=L.omit(t,["type","borderLinkColor","minWidth","onClick","loading"]);return o?{...o,type:h.value,onclick:k}:{}}async function k(){var o;if(!b.value){u.value=!0;try{await((o=t.onClick)==null?void 0:o.call(t))}finally{u.value=!1}}}function B(o,s="0.7"){var i;try{let n=o==null?void 0:o.toLowerCase();if(n&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)){if(n.length===4){let l="#";for(let a=1;a<4;a+=1)l+=n.slice(a,a+1).concat(n.slice(a,a+1));n=l}const r=[];for(let l=1;l<7;l+=2)r.push(parseInt("0x"+n.slice(l,l+2)));return"rgba("+r.join(",")+","+s+")"}if(n&&n.startsWith("rgb")){let r=n.match(/(\d(\.\d+)?)+/g);return r=(i=r==null?void 0:r.slice(0,3))==null?void 0:i.concat(s),"rgba("+r.join(",")+")"}return n}catch{return}}return(o,s)=>(e.openBlock(),e.createBlock(e.unref(W.Button),e.mergeProps({class:{[e.unref(d)()]:!0,[`${e.unref(d)()}-border-link`]:p.value}},{...o.$attrs,...C()},{style:{color:f.value,minWidth:v.value,"--button-border-color":p.value},loading:b.value}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),i=>({name:i,fn:e.withCtx(n=>[e.renderSlot(o.$slots,i,e.normalizeProps(e.guardReactiveProps(n||{})))])}))]),1040,["class","style","loading"]))}});exports.default=q;
|