@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,10 +1,10 @@
|
|
|
1
1
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
3
|
-
import { TriggerType } from '
|
|
4
|
-
import { TooltipPlacement, AdjustOverflow } from '
|
|
5
|
-
import { LiteralUnion } from '
|
|
6
|
-
import { PresetColorType } from '
|
|
7
|
-
import { AlignType, BuildInPlacements } from '
|
|
3
|
+
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
4
|
+
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
5
|
+
import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
|
+
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
7
|
+
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
8
8
|
import { ApLadderLabelValue, ApLadderSlots } from './interface';
|
|
9
9
|
export * from './interface';
|
|
10
10
|
declare const ApLadder: {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as M, ref as r, computed as O, onMounted as U, openBloc
|
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
3
|
import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { Tooltip as V, TypographyText as J } from "
|
|
5
|
+
import { Tooltip as V, TypographyText as J } from "@aplus-frontend/antdv";
|
|
6
6
|
import { debounce as K } from "lodash-unified";
|
|
7
7
|
import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
import { ApFieldText as Q } from "../../ap-field/text/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, computed as S, openBlock as o, createBlock as u, unref as n, normalizeClass as i, withCtx as c, createElementBlock as g, Fragment as T, renderList as _, normalizeStyle as C, createTextVNode as b, toDisplayString as L } from "vue";
|
|
2
2
|
import { isNil as N, get as w } from "lodash-unified";
|
|
3
|
-
import { TableSummaryRow as B, TableSummaryCell as z } from "
|
|
3
|
+
import { TableSummaryRow as B, TableSummaryCell as z } from "@aplus-frontend/antdv";
|
|
4
4
|
import { flattenColumns as A, formatDataIndex as D } from "./utils.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import { isNumeric as F, toThousand as I, toFixed as v } from "@aplus-frontend/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnsType } from '
|
|
2
|
-
import { AlignType, DataIndex, Key } from '
|
|
1
|
+
import { ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
2
|
+
import { AlignType, DataIndex, Key } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
3
3
|
import { ApColumnType } from 'src/ap-table';
|
|
4
4
|
export type SummaryColumnType = ApColumnType[] | ColumnsType;
|
|
5
5
|
export type ValueType = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRecordParams, SummaryColumnType, ValueType } from './interface';
|
|
2
|
-
import { DataIndex, Key } from '
|
|
2
|
+
import { DataIndex, Key } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
3
3
|
import { ApColumnType } from '../../ap-table/interface';
|
|
4
4
|
export declare const flattenColumns: (columns?: SummaryColumnType) => ApColumnType[];
|
|
5
5
|
export declare const formatDataIndex: (dataIndex?: DataIndex | Key) => string | number | readonly (string | number)[];
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { flatten as k, uniqBy as I, get as s, set as
|
|
2
|
-
import { toThousand as
|
|
1
|
+
import { flatten as k, uniqBy as j, isNil as I, get as s, set as R } from "lodash-unified";
|
|
2
|
+
import { toThousand as V, toFixed as S, addNumber as T } from "@aplus-frontend/utils";
|
|
3
3
|
const b = (t) => {
|
|
4
4
|
var e, d;
|
|
5
5
|
return t != null && t.children && ((e = t == null ? void 0 : t.children) == null ? void 0 : e.length) > 0 ? k((d = t.children) == null ? void 0 : d.map((n) => b(n))) : [t];
|
|
6
|
-
},
|
|
6
|
+
}, q = (t) => k(
|
|
7
7
|
t == null ? void 0 : t.map((e) => b(e))
|
|
8
|
-
), u = (t) => Object.prototype.toString.call(t) === "[object Array]" ? t.map((e) => String(e)).join(".") : t
|
|
9
|
-
function
|
|
8
|
+
), u = (t) => Object.prototype.toString.call(t) === "[object Array]" ? t.map((e) => String(e)).join(".") : t ?? "", D = (t, e, d) => d ? V(t, e) : S(t, e);
|
|
9
|
+
function E(t) {
|
|
10
10
|
var y;
|
|
11
|
-
const { records: e, columns: d, configList: n, exclude:
|
|
11
|
+
const { records: e, columns: d, configList: n, exclude: i } = t;
|
|
12
12
|
if (e.length === 0)
|
|
13
13
|
return {};
|
|
14
|
-
const
|
|
15
|
-
let a = (y =
|
|
14
|
+
const c = q(d);
|
|
15
|
+
let a = (y = c == null ? void 0 : c.filter((r) => r.valueType === "number")) == null ? void 0 : y.map((r) => ({
|
|
16
16
|
key: r.key || "",
|
|
17
17
|
dataIndex: r.dataIndex
|
|
18
18
|
}));
|
|
19
|
-
n && (n == null ? void 0 : n.length) > 0 && (a =
|
|
20
|
-
(r) => !
|
|
19
|
+
n && (n == null ? void 0 : n.length) > 0 && (a = j(a == null ? void 0 : a.concat(n), "key")), i && i.length > 0 && (a = a.filter(
|
|
20
|
+
(r) => !i.includes(r.key)
|
|
21
21
|
));
|
|
22
22
|
const x = {};
|
|
23
23
|
return e.reduce((r, h) => (a.forEach((o) => {
|
|
24
24
|
var p;
|
|
25
|
-
if (s(h, u(o.dataIndex || o.key))) {
|
|
26
|
-
const
|
|
27
|
-
|
|
25
|
+
if (!I(s(h, u(o.dataIndex || o.key)))) {
|
|
26
|
+
const f = o.dataIndex || o.key, g = s(r, u(f)) || 0, l = s(h, u(f)) || 0, N = (p = T(g, l)) == null ? void 0 : p.toNumber();
|
|
27
|
+
R(r, f, +N);
|
|
28
28
|
}
|
|
29
29
|
}), r), x);
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
E as computedRecords,
|
|
33
|
+
q as flattenColumns,
|
|
34
34
|
u as formatDataIndex,
|
|
35
|
-
|
|
35
|
+
D as formatNumber
|
|
36
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenOptions, UseCreateTableModalProps, OpenReturnType } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
|
-
import { TableColumnsType } from '
|
|
3
|
+
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
4
|
export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
5
5
|
readonly openModal: <T>(selected?: any[], options?: OpenOptions) => Promise< OpenReturnType<T> | undefined>;
|
|
6
6
|
readonly closeModal: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApTableModalProps, OpenOptions } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
|
-
import { TableColumnsType } from '
|
|
3
|
+
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
4
|
/** 函数式调用弹框表格 */
|
|
5
5
|
export declare function useTableModal<TableRowType = Record<string, any>>(props: ApTableModalProps<TableRowType>): {
|
|
6
6
|
reloadApTableData: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenOptions, UseTableSelectModalProps, OpenReturnType } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
|
-
import { TableColumnsType } from '
|
|
3
|
+
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
4
|
export declare function useTableSelectModal<TableRowType = Record<string, any>>(props: UseTableSelectModalProps<TableRowType>): {
|
|
5
5
|
reloadApTableData: () => void;
|
|
6
6
|
resetApTableData: () => void;
|
|
@@ -2,14 +2,14 @@ import { useTableModal } from './hooks/use-table-modal';
|
|
|
2
2
|
import { useTableSelectModal } from './hooks/use-table-select-modal';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, VNodeChild, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
4
4
|
import { ApColumnType, ApTableProps } from '../..';
|
|
5
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
6
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
5
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
6
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
7
7
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
8
|
-
import { MouseEventHandler } from '
|
|
9
|
-
import { VueNode } from '
|
|
8
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
9
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
10
10
|
import { OpenOptions, OpenReturnType } from './interface';
|
|
11
11
|
import { Recordable } from '../../type';
|
|
12
|
-
import { TableColumnsType } from '
|
|
12
|
+
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
2
|
import { ApColumnType, ApTableProps } from '../../index';
|
|
3
|
-
import { ModalProps } from '
|
|
3
|
+
import { ModalProps } from '@aplus-frontend/antdv';
|
|
4
4
|
/** table-modal的props类型 */
|
|
5
5
|
export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
|
|
6
6
|
columns: ApColumnType[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
|
-
import { TableColumnsType } from '
|
|
4
|
+
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
5
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTableModalProps<any>>, {
|
|
6
6
|
confirmLoading: undefined;
|
|
7
7
|
closable: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, ref as i, unref as r, computed as N, h as O, openBlock as A, createBlock as D, mergeProps as g, withCtx as E, createVNode as L } from "vue";
|
|
2
|
-
import { message as U, Modal as q } from "
|
|
2
|
+
import { message as U, Modal as q } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../index.mjs";
|
|
4
4
|
import { cloneDeep as F, omit as x } from "lodash-unified";
|
|
5
5
|
import { transformTableParams as G } from "@aplus-frontend/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, computed as g, openBlock as l, createElementBlock as a, normalizeClass as o, unref as t, createElementVNode as r, renderSlot as n, Fragment as h, toDisplayString as C, createBlock as y, withCtx as k, createVNode as v, normalizeStyle as M, createCommentVNode as $ } from "vue";
|
|
2
|
-
import { Tooltip as I } from "
|
|
2
|
+
import { Tooltip as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import { QuestionCircleOutlined as N } from "@ant-design/icons-vue";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApTableProps } from '../../';
|
|
2
2
|
import { UseTableRefreshOption } from './useTableRefresh';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
|
-
import { TableColumnsType } from '
|
|
4
|
+
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
5
5
|
export interface UsePageListApTable extends ApTableProps {
|
|
6
6
|
/** 是否显示默认的行选择配置
|
|
7
7
|
* @default true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, computed as d, unref as o, createVNode as m, watch as W, watchEffect as $, openBlock as c, createElementBlock as z, normalizeStyle as j, normalizeClass as S, withModifiers as D, createBlock as f, renderSlot as M, resolveDynamicComponent as B, createCommentVNode as g, createElementVNode as O } from "vue";
|
|
2
|
-
import { Skeleton as U } from "
|
|
2
|
+
import { Skeleton as U } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import "../hooks/index.mjs";
|
|
5
5
|
import { isFunction as N } from "lodash-unified";
|
|
@@ -2,14 +2,14 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
import { LocaleType } from '../locale/interface';
|
|
3
3
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
|
|
4
4
|
import { CssVarType } from './css-var';
|
|
5
|
-
import { default as __DTS_DEFAULT_0__ } from '
|
|
6
|
-
import { TransformCellTextProps } from '
|
|
7
|
-
import { CSPConfig } from '
|
|
8
|
-
import { Locale } from '
|
|
9
|
-
import { ButtonSize } from '
|
|
10
|
-
import { ValidateMessages } from '
|
|
11
|
-
import { RequiredMark } from '
|
|
12
|
-
import { ThemeConfig } from '
|
|
5
|
+
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
6
|
+
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
7
|
+
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
8
|
+
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
9
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
10
|
+
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
11
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
12
|
+
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
13
13
|
export declare const configProviderProps: () => {
|
|
14
14
|
iconPrefixCls: StringConstructor;
|
|
15
15
|
getTargetContainer: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Ref, DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ConfigProviderProps } from './config-provider-props';
|
|
3
3
|
import { CssVarType } from './css-var';
|
|
4
|
-
import { default as __DTS_DEFAULT_0__ } from '
|
|
5
|
-
import { TransformCellTextProps } from '
|
|
6
|
-
import { CSPConfig } from '
|
|
7
|
-
import { Locale } from '
|
|
8
|
-
import { ButtonSize } from '
|
|
9
|
-
import { ValidateMessages } from '
|
|
10
|
-
import { RequiredMark } from '
|
|
11
|
-
import { ThemeConfig } from '
|
|
4
|
+
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
5
|
+
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
6
|
+
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
7
|
+
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
8
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
|
+
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
10
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
11
|
+
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
import { LocaleType } from '../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
|
|
14
14
|
import { RecursivePartial } from '../type';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode as s, ref as u, defineComponent as c, computed as m, watch as a, createVNode as p, renderSlot as g } from "vue";
|
|
2
|
-
import { ConfigProvider as C } from "
|
|
2
|
+
import { ConfigProvider as C } from "@aplus-frontend/antdv";
|
|
3
3
|
import { provideGlobalConfig as v } from "./hooks/use-global-config.mjs";
|
|
4
4
|
import { configProviderProps as V } from "./config-provider-props.mjs";
|
|
5
5
|
import { mergeAntdProvideConfig as P } from "../utils/config-provider-preset.mjs";
|
|
@@ -2,7 +2,7 @@ import { ConfigProviderProps } from './config-provider-props';
|
|
|
2
2
|
import { InjectionKey, Ref, VNode } from 'vue';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { client } from '@aplus-frontend/oss';
|
|
5
|
-
import { DefaultOptionType } from '
|
|
5
|
+
import { DefaultOptionType } from '@aplus-frontend/antdv/es/select';
|
|
6
6
|
export type ConfigProviderContext = Partial<ConfigProviderProps>;
|
|
7
7
|
export declare const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>>;
|
|
8
8
|
type CommonOptionItem = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { MaybeRef } from '@aplus-frontend/utils';
|
|
2
2
|
import { App, Ref, ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ConfigProviderContext } from '../constants';
|
|
4
|
-
import { default as __DTS_DEFAULT_0__ } from '
|
|
5
|
-
import { TransformCellTextProps } from '
|
|
6
|
-
import { CSPConfig } from '
|
|
7
|
-
import { Locale } from '
|
|
8
|
-
import { ButtonSize } from '
|
|
9
|
-
import { ValidateMessages } from '
|
|
10
|
-
import { RequiredMark } from '
|
|
11
|
-
import { ThemeConfig } from '
|
|
4
|
+
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
5
|
+
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
6
|
+
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
7
|
+
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
8
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
|
+
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
10
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
11
|
+
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
import { LocaleType } from '../../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from '..';
|
|
14
14
|
import { CssVarType } from '../css-var';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
-
import { default as __DTS_DEFAULT_0__ } from '
|
|
3
|
-
import { TransformCellTextProps } from '
|
|
4
|
-
import { CSPConfig } from '
|
|
5
|
-
import { Locale } from '
|
|
6
|
-
import { ButtonSize } from '
|
|
7
|
-
import { ValidateMessages } from '
|
|
8
|
-
import { RequiredMark } from '
|
|
9
|
-
import { ThemeConfig } from '
|
|
2
|
+
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
3
|
+
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
4
|
+
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
5
|
+
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
6
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
7
|
+
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
8
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
9
|
+
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { LocaleType } from '../locale';
|
|
11
11
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
|
|
12
12
|
import { RecursivePartial } from '../type';
|
|
@@ -13,6 +13,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
13
13
|
addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
|
|
14
14
|
scrollTo: (index: number | "end", options?: StandardBehaviorOptions) => void;
|
|
15
15
|
setTableData: (nextTableData: RecordType[]) => void;
|
|
16
|
+
clear: () => void;
|
|
16
17
|
}>): void;
|
|
17
18
|
attrs: any;
|
|
18
19
|
slots: Readonly<{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Table as
|
|
1
|
+
import { defineComponent as z, ref as h, unref as n, useSlots as O, watch as K, openBlock as M, createBlock as G, mergeProps as x, withCtx as g, createVNode as H, createSlots as W, renderList as $, renderSlot as U, normalizeProps as q, guardReactiveProps as J } from "vue";
|
|
2
|
+
import { Table as Q } from "@aplus-frontend/antdv";
|
|
3
3
|
import { ApForm as b } from "../ap-form/index.mjs";
|
|
4
|
-
import { isArray as
|
|
4
|
+
import { isArray as X, isNumber as d, cloneDeep as f, omit as w } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
-
import { useInjectForm as
|
|
6
|
+
import { useInjectForm as Y } from "../ap-form/context.mjs";
|
|
7
7
|
import { isDef as m } from "../utils/index.mjs";
|
|
8
|
-
import
|
|
9
|
-
import { scrollToRowIndex as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
const
|
|
8
|
+
import Z from "./hooks/use-get-columns.mjs";
|
|
9
|
+
import { scrollToRowIndex as I } from "./utils.mjs";
|
|
10
|
+
import { useNamespace as ee } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useGlobalConfig as oe } from "../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
const ce = /* @__PURE__ */ z({
|
|
13
13
|
name: "EditableTableInner",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -112,99 +112,104 @@ const ie = /* @__PURE__ */ P({
|
|
|
112
112
|
setup(C, {
|
|
113
113
|
expose: y
|
|
114
114
|
}) {
|
|
115
|
-
const
|
|
115
|
+
const l = C;
|
|
116
116
|
function R(e, o) {
|
|
117
|
-
return
|
|
117
|
+
return X(o) ? o.reduce((r, a) => r == null ? void 0 : r[a], e) : e == null ? void 0 : e[o];
|
|
118
118
|
}
|
|
119
119
|
const {
|
|
120
|
-
internalInstance:
|
|
120
|
+
internalInstance: t,
|
|
121
121
|
model: B
|
|
122
|
-
} =
|
|
123
|
-
|
|
122
|
+
} = Y(), u = h(R(n(B), l.name) || []), D = O(), F = b.useWatch(l.name);
|
|
123
|
+
K(() => F.value, (e) => {
|
|
124
124
|
var o;
|
|
125
|
-
u.value = e, (o =
|
|
125
|
+
u.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
126
126
|
}, {
|
|
127
127
|
deep: !0
|
|
128
128
|
});
|
|
129
129
|
const {
|
|
130
130
|
b: L
|
|
131
|
-
} =
|
|
132
|
-
function
|
|
131
|
+
} = ee("editable-table"), i = h(), T = oe("valueTypeMap"), V = Z(l, T);
|
|
132
|
+
function v(e, o) {
|
|
133
133
|
var s;
|
|
134
|
-
const r = ((s =
|
|
135
|
-
if (m(
|
|
134
|
+
const r = ((s = n(u)) == null ? void 0 : s.length) || 0;
|
|
135
|
+
if (m(l.maxLength) && r >= l.maxLength)
|
|
136
136
|
return;
|
|
137
|
-
const
|
|
138
|
-
m(o) ?
|
|
137
|
+
const a = [...n(u) || []];
|
|
138
|
+
m(o) ? a.splice(o, 0, {
|
|
139
139
|
...e || {}
|
|
140
|
-
}) :
|
|
140
|
+
}) : a.push({
|
|
141
141
|
...e || {}
|
|
142
|
-
}),
|
|
142
|
+
}), t == null || t.setFieldValue(l.name, a);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function E(e, o = "suffix") {
|
|
145
145
|
var p;
|
|
146
|
-
const r = ((p =
|
|
147
|
-
if (m(
|
|
146
|
+
const r = ((p = n(u)) == null ? void 0 : p.length) || 0, a = d(e) ? e : e.length;
|
|
147
|
+
if (m(l.maxLength) && r + a > l.maxLength)
|
|
148
148
|
return;
|
|
149
|
-
const s = [...
|
|
150
|
-
o === "suffix" ? s.push(...c) : s.unshift(...c),
|
|
149
|
+
const s = [...n(u) || []], c = d(e) ? new Array(e).fill({}) : f(e);
|
|
150
|
+
o === "suffix" ? s.push(...c) : s.unshift(...c), t == null || t.setFieldValue(l.name, s);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
let o = f(
|
|
152
|
+
function N(e) {
|
|
153
|
+
let o = f(n(u) || []);
|
|
154
154
|
const r = d(e) ? [e] : e;
|
|
155
|
-
o = o.filter((
|
|
155
|
+
o = o.filter((a, s) => !r.includes(s)), t == null || t.setFieldValue(l.name, o);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function S() {
|
|
158
|
+
return n(u);
|
|
159
159
|
}
|
|
160
160
|
function _(e) {
|
|
161
161
|
var o;
|
|
162
|
-
return (o =
|
|
162
|
+
return (o = n(u)) == null ? void 0 : o[e];
|
|
163
163
|
}
|
|
164
164
|
function k(e, o, r = !0) {
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
...r ?
|
|
165
|
+
const a = f(n(u));
|
|
166
|
+
a[e] && (a[e] = {
|
|
167
|
+
...r ? a[e] : {},
|
|
168
168
|
...o
|
|
169
|
-
},
|
|
169
|
+
}, t == null || t.setFieldValue(l.name, [...a]));
|
|
170
170
|
}
|
|
171
171
|
function j(e) {
|
|
172
|
-
|
|
172
|
+
t == null || t.setFieldValue(l.name, e);
|
|
173
173
|
}
|
|
174
174
|
function A(e, o) {
|
|
175
|
-
var
|
|
175
|
+
var a;
|
|
176
176
|
const r = e === "end" ? u.value.length - 1 : e;
|
|
177
|
-
|
|
177
|
+
I(r, (a = i.value) == null ? void 0 : a.$el, o);
|
|
178
|
+
}
|
|
179
|
+
function P() {
|
|
180
|
+
var e;
|
|
181
|
+
(e = t == null ? void 0 : t.setFieldValue) == null || e.call(t, l.name, []);
|
|
178
182
|
}
|
|
179
183
|
return y({
|
|
180
|
-
add:
|
|
181
|
-
remove:
|
|
184
|
+
add: v,
|
|
185
|
+
remove: N,
|
|
182
186
|
getRowData: _,
|
|
183
|
-
getRowsData:
|
|
187
|
+
getRowsData: S,
|
|
184
188
|
setRowData: k,
|
|
185
|
-
addMultiple:
|
|
189
|
+
addMultiple: E,
|
|
186
190
|
scrollTo: A,
|
|
187
|
-
setTableData: j
|
|
188
|
-
|
|
191
|
+
setTableData: j,
|
|
192
|
+
clear: P
|
|
193
|
+
}), (e, o) => (M(), G(n(b).FormItem, x(e.formItem, {
|
|
189
194
|
name: e.name,
|
|
190
195
|
label: e.label
|
|
191
196
|
}), {
|
|
192
|
-
default: g(() => [
|
|
193
|
-
class:
|
|
194
|
-
columns:
|
|
197
|
+
default: g(() => [H(n(Q), x(n(w)(l, ["name", "maxLength", "onChange"]), {
|
|
198
|
+
class: n(L)(),
|
|
199
|
+
columns: n(V),
|
|
195
200
|
"data-source": u.value,
|
|
196
201
|
ref_key: "tableRef",
|
|
197
202
|
ref: i
|
|
198
|
-
}),
|
|
203
|
+
}), W({
|
|
199
204
|
_: 2
|
|
200
|
-
}, [
|
|
201
|
-
name:
|
|
202
|
-
fn: g((s) => [
|
|
205
|
+
}, [$(n(w)(D, ["headerCell"]), (r, a) => ({
|
|
206
|
+
name: a,
|
|
207
|
+
fn: g((s) => [U(e.$slots, a, q(J(s || {})))])
|
|
203
208
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
204
209
|
_: 3
|
|
205
210
|
}, 16, ["name", "label"]));
|
|
206
211
|
}
|
|
207
212
|
});
|
|
208
213
|
export {
|
|
209
|
-
|
|
214
|
+
ce as default
|
|
210
215
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { EditableTableFormItemProps, EditableTableProps } from '../interface';
|
|
3
3
|
import { ValueTypeRenderConfig } from '../../config-provider';
|
|
4
|
-
import { ColumnType } from '
|
|
4
|
+
import { ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
5
5
|
declare const useGetColumns: (props: EditableTableProps | EditableTableFormItemProps, extraValueTypes: Ref<Record<string, ValueTypeRenderConfig> | undefined>) => ComputedRef<ColumnType<any>[]>;
|
|
6
6
|
export default useGetColumns;
|