@aplus-frontend/ui 0.2.0-beta.5 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +1 -1
- 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-action-button.vue.mjs +1 -0
- package/es/src/ap-button/ap-button.vue.d.ts +4 -1
- package/es/src/ap-button/ap-button.vue.mjs +47 -66
- package/es/src/ap-button/interface.d.ts +2 -1
- package/es/src/ap-button/utils/index.d.ts +3 -0
- package/es/src/ap-button/utils/index.mjs +33 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +1 -1
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-descriptions/interface.d.ts +2 -2
- 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 +24 -23
- 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-options.d.ts +8 -0
- package/es/src/ap-field/hooks/use-options.mjs +22 -0
- 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 +26 -25
- 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 +37 -33
- package/es/src/ap-field/select/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.mjs +74 -73
- 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/interface.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/group.vue2.mjs +1 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/es/src/ap-form/modal-form/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 +2 -428
- package/es/src/ap-table/ap-table.vue2.mjs +428 -2
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +23 -21
- 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 +30 -30
- package/es/src/ap-table/context.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.mjs +75 -71
- 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/index.d.ts +6 -1
- package/es/src/ap-table/index.mjs +9 -3
- package/es/src/ap-table/interface.d.ts +3 -3
- package/es/src/ap-table/utils.d.ts +8 -7
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
- package/es/src/ap-tag/interface.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +1 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +1 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +1 -1
- package/es/src/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.vue.d.ts +8 -3
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -29
- package/es/src/business/ap-batch-action/index.d.ts +8 -3
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +14 -13
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +12 -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 +13 -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 +42 -40
- 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 +43 -6
- package/es/src/business/ap-table-modal/interface.d.ts +17 -2
- package/es/src/business/ap-table-modal/style/css.js +1 -1
- package/es/src/business/ap-table-modal/style/index.js +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +74 -0
- 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 +134 -79
- 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 +9 -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/css-var.d.ts +1 -0
- package/es/src/config-provider/css-var.mjs +7 -5
- package/es/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/es/src/config-provider/index.d.ts +14 -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 +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +1 -1
- package/es/src/editable-table/interface.d.ts +6 -6
- package/es/src/editable-table/utils.mjs +69 -69
- package/es/src/hooks/useMessage.d.ts +4 -4
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/index.mjs +201 -202
- package/es/src/locale/lang/en.mjs +3 -1
- package/es/src/locale/lang/zh-cn.mjs +3 -1
- package/es/src/path-map.mjs +2 -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/index.js +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-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +4 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +2 -1
- package/lib/src/ap-button/utils/index.d.ts +3 -0
- package/lib/src/ap-button/utils/index.js +1 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +2 -2
- 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-options.d.ts +8 -0
- package/lib/src/ap-field/hooks/use-options.js +1 -0
- 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/interface.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/group.vue2.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/lib/src/ap-form/modal-form/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/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +16 -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 +30 -30
- 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/index.d.ts +6 -1
- package/lib/src/ap-table/index.js +1 -1
- package/lib/src/ap-table/interface.d.ts +3 -3
- package/lib/src/ap-table/utils.d.ts +8 -7
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/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.vue.d.ts +8 -3
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +8 -3
- 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 +12 -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 +13 -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 +43 -6
- package/lib/src/business/ap-table-modal/interface.d.ts +17 -2
- package/lib/src/business/ap-table-modal/style/css.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -0
- 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 +9 -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/css-var.d.ts +1 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/lib/src/config-provider/index.d.ts +14 -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/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/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 +5 -5
|
@@ -2,41 +2,41 @@ import { ApFieldPassword } from '../ap-field';
|
|
|
2
2
|
import { ApTableValueFields, ValueEnum } from './interface';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, VNode, RendererNode, RendererElement, CSSProperties, DefineComponent, PublicProps, ComputedRef } from 'vue';
|
|
4
4
|
import { ApFormItemTransformType, ApFieldDateProps, ApFormItemSlots, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFormItemTextPassword, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, FieldMode, GroupActionTypes } from '..';
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { FormLabelAlign } from '
|
|
7
|
-
import { RuleObject } from '
|
|
8
|
-
import { InputFocusOptions } from '
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { FormLabelAlign } from '@aplus-frontend/antdv/es/form/interface';
|
|
7
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
9
9
|
import { ApFormItemTextGroup } from '../ap-form/items/text';
|
|
10
|
-
import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler, ChangeEventHandler, CompositionEventHandler } from '
|
|
10
|
+
import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler, ChangeEventHandler, CompositionEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
11
11
|
import { Dayjs } from 'dayjs';
|
|
12
|
-
import { PickerLocale } from '
|
|
12
|
+
import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicker';
|
|
13
13
|
import { LiteralUnion } from '../type';
|
|
14
14
|
import { ApFormatPresetType } from '../ap-field/date/interface';
|
|
15
|
-
import { DateRender } from '
|
|
16
|
-
import { MonthCellRender } from '
|
|
17
|
-
import { PanelMode, RangeValue, OnPanelChange, PresetDate, EventValue, DisabledTimes } from '
|
|
18
|
-
import { VueNode, LiteralUnion } from '
|
|
19
|
-
import { AlignType } from '
|
|
20
|
-
import { SharedTimeProps } from '
|
|
21
|
-
import { RangeDateRender, RangeType, RangeInfo } from '
|
|
22
|
-
import { ValueType } from '
|
|
23
|
-
import { RadioChangeEvent, RadioGroupProps, SelectProps, CheckboxOptionType, CheckboxGroupProps } from '
|
|
24
|
-
import { RadioGroupChildOption } from '
|
|
25
|
-
import { RadioGroupButtonStyle, RadioGroupOptionType } from '
|
|
26
|
-
import { SelectValue, DefaultOptionType, LabeledValue } from '
|
|
27
|
-
import { SelectHandler, FieldNames, FilterFunc } from '
|
|
28
|
-
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '
|
|
29
|
-
import { AlignType, BuildInPlacements } from '
|
|
30
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
31
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
15
|
+
import { DateRender } from '@aplus-frontend/antdv/es/vc-picker/panels/DatePanel/DateBody';
|
|
16
|
+
import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
17
|
+
import { PanelMode, RangeValue, OnPanelChange, PresetDate, EventValue, DisabledTimes } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
18
|
+
import { VueNode, LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
19
|
+
import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
|
|
20
|
+
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
21
|
+
import { RangeDateRender, RangeType, RangeInfo } from '@aplus-frontend/antdv/es/vc-picker/RangePicker';
|
|
22
|
+
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
23
|
+
import { RadioChangeEvent, RadioGroupProps, SelectProps, CheckboxOptionType, CheckboxGroupProps } from '@aplus-frontend/antdv';
|
|
24
|
+
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
25
|
+
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
26
|
+
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
27
|
+
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
28
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
29
|
+
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
30
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
31
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
32
32
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
33
|
-
import { TriggerType } from '
|
|
34
|
-
import { TooltipPlacement, AdjustOverflow } from '
|
|
35
|
-
import { PresetColorType } from '
|
|
36
|
-
import { ShowCountProps } from '
|
|
37
|
-
import { AutoSizeType } from '
|
|
38
|
-
import { CheckboxValueType } from '
|
|
39
|
-
import { Trigger } from '
|
|
33
|
+
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
34
|
+
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
35
|
+
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
36
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
37
|
+
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
38
|
+
import { CheckboxValueType } from '@aplus-frontend/antdv/es/checkbox/interface';
|
|
39
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
40
40
|
/**
|
|
41
41
|
* 表格到查询表单的映射
|
|
42
42
|
*/
|
|
@@ -1,114 +1,118 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isDef as
|
|
3
|
-
import
|
|
4
|
-
import { useInjectApTable as
|
|
5
|
-
import { isObject as
|
|
6
|
-
function
|
|
7
|
-
r.forEach((
|
|
1
|
+
import { ref as _, shallowRef as j, unref as f, computed as z, watchEffect as D } from "vue";
|
|
2
|
+
import { isDef as G } from "../../utils/index.mjs";
|
|
3
|
+
import W, { customCloneColumnStates as k, getColumnStateString as X } from "../components/setting/utils.mjs";
|
|
4
|
+
import { useInjectApTable as q } from "../context.mjs";
|
|
5
|
+
import { isObject as B, mergeWith as E, isBoolean as H, omit as L, isNumber as N } from "lodash-unified";
|
|
6
|
+
function a(r, n) {
|
|
7
|
+
r.forEach((o) => {
|
|
8
8
|
var c;
|
|
9
|
-
n(
|
|
9
|
+
n(o), (c = o.children) != null && c.length && a(o.children, n);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function P(r, n) {
|
|
13
13
|
if (!n)
|
|
14
14
|
return {};
|
|
15
|
-
const
|
|
16
|
-
return
|
|
15
|
+
const o = r.getItem(n);
|
|
16
|
+
return o ? JSON.parse(o) : {};
|
|
17
17
|
}
|
|
18
18
|
function I(r, n) {
|
|
19
|
-
if (
|
|
19
|
+
if (B(r) && B(n))
|
|
20
20
|
return E({}, r, n, I);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
), { columnsBackup:
|
|
22
|
+
const b = Number.MAX_SAFE_INTEGER, V = (r, n) => {
|
|
23
|
+
const o = _(n), c = j(
|
|
24
|
+
k(n)
|
|
25
|
+
), { columnsBackup: m, updateColumns: d } = q(), T = r.persistenceType || "localStorage", p = window[T];
|
|
26
26
|
function F() {
|
|
27
|
-
const e =
|
|
28
|
-
|
|
27
|
+
const e = P(
|
|
28
|
+
p,
|
|
29
29
|
r.persistenceKey
|
|
30
|
-
),
|
|
30
|
+
), t = E(
|
|
31
31
|
{},
|
|
32
32
|
r.defaultValue || {},
|
|
33
33
|
e,
|
|
34
34
|
I
|
|
35
|
-
),
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
key:
|
|
41
|
-
label:
|
|
35
|
+
), s = f(m);
|
|
36
|
+
function l(R, u, y) {
|
|
37
|
+
return R.map((i) => {
|
|
38
|
+
var A;
|
|
39
|
+
const v = (u == null ? void 0 : u[i.key]) || {}, h = {
|
|
40
|
+
key: i.key,
|
|
41
|
+
label: i.title,
|
|
42
42
|
show: !0,
|
|
43
|
-
fixed:
|
|
43
|
+
fixed: y ? y.fixed : H(i.fixed) ? i.fixed ? "left" : void 0 : i.fixed,
|
|
44
44
|
disabled: !1,
|
|
45
|
-
...
|
|
45
|
+
...L(v, "children")
|
|
46
46
|
};
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
) : void 0,
|
|
52
|
-
}).sort(
|
|
53
|
-
(s, a) => (N(s.order) ? s.order : B) - (N(a.order) ? a.order : B)
|
|
54
|
-
);
|
|
47
|
+
return h.children = (A = i.children) != null && A.length ? l(
|
|
48
|
+
i.children,
|
|
49
|
+
v.children,
|
|
50
|
+
h
|
|
51
|
+
) : void 0, h;
|
|
52
|
+
}).sort(O);
|
|
55
53
|
}
|
|
56
|
-
return
|
|
54
|
+
return l(s || [], t);
|
|
57
55
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
function O(e, t) {
|
|
57
|
+
const s = N(e.order) ? e.order : b;
|
|
58
|
+
let l = N(t.order) ? t.order : b;
|
|
59
|
+
return e.fixed === "right" && t.fixed !== "right" && (l = s - 1), t.fixed === "left" && e.fixed !== "left" && (l = s - 1), s - l;
|
|
60
|
+
}
|
|
61
|
+
const C = z(() => f(o).every((e) => e.show));
|
|
62
|
+
function S() {
|
|
63
|
+
const e = f(o);
|
|
64
|
+
a(e, (t) => {
|
|
65
|
+
!t.disabled && (t.show = !0);
|
|
63
66
|
});
|
|
64
67
|
}
|
|
65
|
-
function
|
|
66
|
-
const e =
|
|
67
|
-
|
|
68
|
-
!
|
|
68
|
+
function g() {
|
|
69
|
+
const e = f(o);
|
|
70
|
+
a(e, (t) => {
|
|
71
|
+
!t.disabled && (t.show = !1);
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
74
|
+
function K() {
|
|
75
|
+
f(C) ? g() : S();
|
|
73
76
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
function J(e, t) {
|
|
78
|
+
a(f(o), (s) => {
|
|
79
|
+
s.key === e && (s.show = G(t) ? t : !s.show);
|
|
77
80
|
});
|
|
78
81
|
}
|
|
79
82
|
function w(e) {
|
|
80
|
-
|
|
83
|
+
o.value = e;
|
|
81
84
|
}
|
|
82
|
-
function
|
|
85
|
+
function M(e) {
|
|
83
86
|
c.value = e;
|
|
84
87
|
}
|
|
85
|
-
function
|
|
88
|
+
function x(e) {
|
|
86
89
|
if (r.persistenceKey) {
|
|
87
|
-
const
|
|
88
|
-
|
|
90
|
+
const t = X(e);
|
|
91
|
+
p.setItem(r.persistenceKey, JSON.stringify(t));
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
|
-
return
|
|
94
|
+
return D(() => {
|
|
95
|
+
var t;
|
|
92
96
|
const e = F();
|
|
93
|
-
w(e),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
w(e), (t = r.onChange) == null || t.call(r, e), d == null || d(
|
|
98
|
+
W(
|
|
99
|
+
f(m),
|
|
100
|
+
f(e)
|
|
97
101
|
)
|
|
98
|
-
), c.value =
|
|
102
|
+
), c.value = k(e), x(e);
|
|
99
103
|
}), {
|
|
100
|
-
columnState:
|
|
101
|
-
selectAll:
|
|
102
|
-
unSelectAll:
|
|
103
|
-
toggleSelect:
|
|
104
|
+
columnState: o,
|
|
105
|
+
selectAll: S,
|
|
106
|
+
unSelectAll: g,
|
|
107
|
+
toggleSelect: J,
|
|
104
108
|
setColumnState: w,
|
|
105
|
-
isAllSelected:
|
|
106
|
-
toggleSelectAll:
|
|
109
|
+
isAllSelected: C,
|
|
110
|
+
toggleSelectAll: K,
|
|
107
111
|
columnStateBackup: c,
|
|
108
|
-
setColumnStateBackup:
|
|
109
|
-
cacheColumnStateIfNeeded:
|
|
112
|
+
setColumnStateBackup: M,
|
|
113
|
+
cacheColumnStateIfNeeded: x
|
|
110
114
|
};
|
|
111
115
|
};
|
|
112
116
|
export {
|
|
113
|
-
|
|
117
|
+
V as useTableColumnState
|
|
114
118
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { RequestData } from '../interface';
|
|
3
3
|
import { ApFormSearchFormExpose } from '../../ap-form';
|
|
4
|
-
import { DataIndex } from '
|
|
5
|
-
import { TablePaginationConfig } from '
|
|
6
|
-
import { FilterValue, SorterResult, TableCurrentDataSource } from '
|
|
4
|
+
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
5
|
+
import { TablePaginationConfig } from '@aplus-frontend/antdv';
|
|
6
|
+
import { FilterValue, SorterResult, TableCurrentDataSource } from '@aplus-frontend/antdv/es/table/interface';
|
|
7
7
|
export type UseTablePagingParams<DataType, ParamsType> = {
|
|
8
8
|
request: (params: any) => Promise<RequestData<DataType>>;
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableRowSelection } from '
|
|
1
|
+
import { TableRowSelection } from '@aplus-frontend/antdv/lib/table/interface';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import { ApTableProps, ApTableRowSelection } from '../interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as _ApTable } from './ap-table.vue';
|
|
2
|
+
import { default as ApTableSetting } from './components/setting/modal/index.vue';
|
|
3
|
+
type ApTableMixedType = typeof _ApTable & {
|
|
4
|
+
Setting: typeof ApTableSetting;
|
|
5
|
+
};
|
|
6
|
+
declare const ApTable: ApTableMixedType;
|
|
2
7
|
export { ApTable };
|
|
3
8
|
export * from './interface';
|
|
4
9
|
export * from './hooks/use-table-paging';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import "./ap-table.
|
|
1
|
+
import "./ap-table.vue.mjs";
|
|
2
|
+
import "./components/setting/modal/index.vue.mjs";
|
|
2
3
|
import "./interface.mjs";
|
|
3
|
-
import { useTablePaging as
|
|
4
|
+
import { useTablePaging as s } from "./hooks/use-table-paging.mjs";
|
|
5
|
+
import o from "./ap-table.vue2.mjs";
|
|
6
|
+
import m from "./components/setting/modal/index.vue2.mjs";
|
|
7
|
+
const r = o;
|
|
8
|
+
r.Setting = m;
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
r as ApTable,
|
|
11
|
+
s as useTablePaging
|
|
6
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ColumnType, TableProps, ColumnsType } from '
|
|
2
|
-
import { CompareFn, SortOrder, TableRowSelection } from '
|
|
1
|
+
import { ColumnType, TableProps, ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
2
|
+
import { CompareFn, SortOrder, TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
|
|
3
3
|
import { ApFormItemProps, ApFormSearchFormProps } from '../ap-form';
|
|
4
4
|
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps } from '../ap-form/items/interface';
|
|
5
5
|
import { Recordable } from '../type';
|
|
6
6
|
import { ComputedRef, CSSProperties, VNode } from 'vue';
|
|
7
7
|
import { ApActionGroupProps } from '../ap-action';
|
|
8
8
|
import { ApTableIndexProps } from './components/interface';
|
|
9
|
-
import { EllipsisConfig } from '
|
|
9
|
+
import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
|
|
10
10
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
11
11
|
export type ValueEnumType = {
|
|
12
12
|
text: string;
|
|
@@ -2,14 +2,15 @@ import { ApColumnType, ValueEnum, ValueEnumType } from './interface';
|
|
|
2
2
|
import { ValueTypeRenderConfig } from '../config-provider';
|
|
3
3
|
import { apTableRenderItemMap } from './constants';
|
|
4
4
|
import { VNode, CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, VNodeArrayChildren, RendererNode, RendererElement } from 'vue';
|
|
5
|
+
import { EditableColumnType } from '../editable-table/interface';
|
|
5
6
|
import { ApFormItemTransformType, ApFieldTextPasswordProps, ApFormItemSlots, ApFieldTextProps, ApFormItemTextPassword, ApFieldTextAreaProps, ApFieldNumberProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldCheckboxProps } from '..';
|
|
6
|
-
import { ColSize } from '
|
|
7
|
-
import { FormLabelAlign } from '
|
|
8
|
-
import { RuleObject } from '
|
|
9
|
-
import { InputFocusOptions } from '
|
|
7
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
8
|
+
import { FormLabelAlign } from '@aplus-frontend/antdv/es/form/interface';
|
|
9
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
10
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
10
11
|
import { ApFormItemTextGroup } from '../ap-form/items/text';
|
|
11
|
-
import { ColumnTitleProps } from '
|
|
12
|
-
import { VueNode } from '
|
|
12
|
+
import { ColumnTitleProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
13
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
14
|
export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
|
|
14
15
|
export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
|
|
15
16
|
/**
|
|
@@ -64,7 +65,7 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
|
|
|
64
65
|
* @param item
|
|
65
66
|
* @returns
|
|
66
67
|
*/
|
|
67
|
-
export declare function getTableRenderType(item: ApColumnType
|
|
68
|
+
export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "status" | "switch" | "index" | "password" | "action" | "dateRange" | "textArea";
|
|
68
69
|
export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
|
|
69
70
|
/**
|
|
70
71
|
* 获取查询表单最终渲染的节点
|
|
@@ -3,7 +3,7 @@ import { isObject as f, isArray as p, isUndefined as h, isFunction as d, omit as
|
|
|
3
3
|
import { apTableRenderItemMap as F, apTableFormItemMap as N } from "./constants.mjs";
|
|
4
4
|
import { isType as S } from "@fruits-chain/utils";
|
|
5
5
|
import "../ap-form/index.mjs";
|
|
6
|
-
import { Tooltip as v } from "
|
|
6
|
+
import { Tooltip as v } from "@aplus-frontend/antdv";
|
|
7
7
|
import { QuestionCircleOutlined as I } from "@ant-design/icons-vue";
|
|
8
8
|
import V from "../ap-form/item/index.vue.mjs";
|
|
9
9
|
function w(t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementVNode as t, defineComponent as D, ref as C, computed as n, unref as d, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as f, mergeProps as _, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as b, normalizeClass as k, normalizeStyle as W, createElementBlock as T, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
|
|
2
|
-
import { Tooltip as q } from "
|
|
2
|
+
import { Tooltip as q } from "@aplus-frontend/antdv";
|
|
3
3
|
import H from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
@@ -5,7 +5,7 @@ import "./components/MultipleFile.vue.mjs";
|
|
|
5
5
|
import "./components/Picture.vue.mjs";
|
|
6
6
|
import { injectLocaleToAccept as G } from "./utils/accept.mjs";
|
|
7
7
|
import { injectLocaleToOss as I } from "./hooks/useOss.mjs";
|
|
8
|
-
import { Form as H } from "
|
|
8
|
+
import { Form as H } from "@aplus-frontend/antdv";
|
|
9
9
|
import { useLocale as J } from "../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import { useNamespace as K } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import Q from "./components/SingleFile.vue2.mjs";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as $, inject as n, ref as j, watch as V, nextTick as W,
|
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { getPath as Y, getName as Z, getReturnData as S } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as ee, getOssInstance as te } from "../hooks/useOss.mjs";
|
|
5
|
-
import { message as m, Upload as oe, Button as ae } from "
|
|
5
|
+
import { message as m, Upload as oe, Button as ae } from "@aplus-frontend/antdv";
|
|
6
6
|
import { UploadOutlined as se } from "@ant-design/icons-vue";
|
|
7
7
|
import { fileMatchesAccept as ne, getAcceptText as ie } from "../utils/accept.mjs";
|
|
8
8
|
import { useLocale as re } from "../../config-provider/hooks/use-locale.mjs";
|
|
@@ -4,7 +4,7 @@ import { getPath as ne, getName as ae, getReturnData as T } from "../utils/retur
|
|
|
4
4
|
import { CloseOutlined as se, PlusOutlined as oe } from "@ant-design/icons-vue";
|
|
5
5
|
import { useOss as ie, getOssInstance as D } from "../hooks/useOss.mjs";
|
|
6
6
|
import { fileMatchesAccept as ce, getAcceptText as ue } from "../utils/accept.mjs";
|
|
7
|
-
import { message as m, Progress as re } from "
|
|
7
|
+
import { message as m, Progress as re } from "@aplus-frontend/antdv";
|
|
8
8
|
import { omit as le } from "lodash-unified";
|
|
9
9
|
import { useLocale as pe } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -3,7 +3,7 @@ import "../../config-provider/index.mjs";
|
|
|
3
3
|
import { getName as ce, getReturnData as q } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as ue, useOssInit as pe } from "../hooks/useOss.mjs";
|
|
5
5
|
import { fileMatchesAccept as ve, getAcceptText as de } from "../utils/accept.mjs";
|
|
6
|
-
import { message as u, Progress as fe } from "
|
|
6
|
+
import { message as u, Progress as fe } from "@aplus-frontend/antdv";
|
|
7
7
|
import { DeleteOutlined as me } from "@ant-design/icons-vue";
|
|
8
8
|
import M from "../assets/single-file-icon.png.mjs";
|
|
9
9
|
import { useLocale as ge } from "../../config-provider/hooks/use-locale.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttachmentItemProps, ApAttachmentProps } from './interface';
|
|
2
2
|
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
import { TooltipPlacement } from '
|
|
3
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
4
4
|
declare const _default: DefineComponent<{
|
|
5
5
|
attachmentList: {
|
|
6
6
|
type: PropType<Array<AttachmentItemProps>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as w, useSlots as j, computed as n, cloneVNode as B, toRaw as v, unref as G, createVNode as l, createTextVNode as H } from "vue";
|
|
2
|
-
import { Tooltip as R, Popover as W } from "
|
|
2
|
+
import { Tooltip as R, Popover as W } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { ApAttachmentProps as q } from "./constans.mjs";
|
|
5
5
|
import { getHexWithOpacity as D, getFileInfo as y } from "../../ap-download/utils/getFileInfo.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { AttachmentItemProps, ApAttachmentProps } from './interface';
|
|
3
|
-
import { TooltipPlacement } from '
|
|
3
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
4
4
|
export * from './interface';
|
|
5
5
|
declare const ApAttachment: {
|
|
6
6
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApDownLoadProps } from '../../ap-download/interface';
|
|
2
|
-
import { TooltipPlacement } from '
|
|
2
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
3
3
|
export type AttachmentItemProps = {
|
|
4
4
|
fileName: string;
|
|
5
5
|
filePath: string;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ApBatchActionProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
slots: {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
header: () => void;
|
|
6
|
+
prefix: () => void;
|
|
7
|
+
suffix: () => void;
|
|
8
|
+
}> & {
|
|
9
|
+
header: () => void;
|
|
10
|
+
prefix: () => void;
|
|
11
|
+
suffix: () => void;
|
|
7
12
|
};
|
|
8
13
|
refs: {};
|
|
9
14
|
attrs: Partial<{}>;
|
|
@@ -1,45 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { defineComponent as v, useSlots as _, computed as u, openBlock as m, createElementBlock as f, normalizeClass as r, unref as t, renderSlot as i, createCommentVNode as B, createElementVNode as s, createTextVNode as d, toDisplayString as o, createVNode as C, withCtx as k } from "vue";
|
|
2
|
+
import { Button as N } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
const
|
|
4
|
+
import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
import { useLocale as $ } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
const b = { class: "selected-desc" }, g = { class: "selected-desc-conut" }, w = { class: "selected-desc-clean" }, z = /* @__PURE__ */ v({
|
|
7
7
|
__name: "ApBatchAction",
|
|
8
8
|
props: {
|
|
9
9
|
selectedRowKeys: {},
|
|
10
10
|
clearAll: { type: Function }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { b:
|
|
12
|
+
setup(h) {
|
|
13
|
+
const { b: c } = V("ap-batch-action"), { t: a } = $(), l = h, n = _().header, y = u(() => {
|
|
14
14
|
var e;
|
|
15
15
|
return ((e = l.selectedRowKeys) == null ? void 0 : e.length) || 0;
|
|
16
|
+
}), A = u(() => {
|
|
17
|
+
const e = n == null ? void 0 : n();
|
|
18
|
+
return Array.isArray(e) && e.length > 0;
|
|
16
19
|
});
|
|
17
|
-
return (e,
|
|
18
|
-
class:
|
|
20
|
+
return (e, p) => (m(), f("div", {
|
|
21
|
+
class: r([t(c)()])
|
|
19
22
|
}, [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
A.value ? (m(), f("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: r(t(c)("header"))
|
|
26
|
+
}, [
|
|
27
|
+
i(e.$slots, "header")
|
|
28
|
+
], 2)) : B("", !0),
|
|
29
|
+
s("div", {
|
|
30
|
+
class: r(t(c)("body"))
|
|
31
|
+
}, [
|
|
32
|
+
i(e.$slots, "prefix"),
|
|
33
|
+
s("div", b, [
|
|
34
|
+
s("div", g, [
|
|
35
|
+
d(o(t(a)("ap.apBatchAction.selected")) + " ", 1),
|
|
36
|
+
s("span", null, o(y.value), 1),
|
|
37
|
+
d(" " + o(t(a)("ap.apBatchAction.piecesOfData")), 1)
|
|
38
|
+
]),
|
|
39
|
+
s("div", w, [
|
|
40
|
+
C(t(N), {
|
|
41
|
+
type: "link",
|
|
42
|
+
onClick: p[0] || (p[0] = (x) => l.clearAll && l.clearAll())
|
|
43
|
+
}, {
|
|
44
|
+
default: k(() => [
|
|
45
|
+
d(o(t(a)("ap.apBatchAction.empty")), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})
|
|
49
|
+
])
|
|
26
50
|
]),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type: "link",
|
|
30
|
-
onClick: a[0] || (a[0] = (w) => l.clearAll && l.clearAll())
|
|
31
|
-
}, {
|
|
32
|
-
default: B(() => [
|
|
33
|
-
n(c(t(o)("ap.apBatchAction.empty")), 1)
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
})
|
|
37
|
-
])
|
|
38
|
-
]),
|
|
39
|
-
r(e.$slots, "suffix")
|
|
51
|
+
i(e.$slots, "suffix")
|
|
52
|
+
], 2)
|
|
40
53
|
], 2));
|
|
41
54
|
}
|
|
42
55
|
});
|
|
43
56
|
export {
|
|
44
|
-
|
|
57
|
+
z as default
|
|
45
58
|
};
|
|
@@ -41,9 +41,14 @@ declare const ApBatchAction: {
|
|
|
41
41
|
type: PropType<() => void>;
|
|
42
42
|
};
|
|
43
43
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
44
|
-
$slots: {
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
$slots: Readonly<{
|
|
45
|
+
header: () => void;
|
|
46
|
+
prefix: () => void;
|
|
47
|
+
suffix: () => void;
|
|
48
|
+
}> & {
|
|
49
|
+
header: () => void;
|
|
50
|
+
prefix: () => void;
|
|
51
|
+
suffix: () => void;
|
|
47
52
|
};
|
|
48
53
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
49
54
|
$props: {
|