@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
package/es/index.mjs
CHANGED
|
@@ -89,7 +89,7 @@ import { useTableRefresh as Nr } from "./src/business/hooks/useTableRefresh.mjs"
|
|
|
89
89
|
import { computedRecords as wr, flattenColumns as Rr, formatDataIndex as vr, formatNumber as Er } from "./src/business/ap-summary/utils.mjs";
|
|
90
90
|
import { ApSummary as Kr } from "./src/business/ap-summary/index.mjs";
|
|
91
91
|
import { useTablePaging as Wr } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
92
|
-
import {
|
|
92
|
+
import { ApTable as Ur } from "./src/ap-table/index.mjs";
|
|
93
93
|
import { default as $r } from "./src/editable-table/index.vue.mjs";
|
|
94
94
|
import { default as qr } from "./src/editable-table/form-item.vue.mjs";
|
|
95
95
|
import { default as Jr } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApActionGroupProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { Trigger } from '
|
|
3
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
4
4
|
import { GroupActionTypes } from '..';
|
|
5
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionGroupProps>, {
|
|
6
6
|
count: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, computed as s, unref as c, openBlock as t, createBlock as r, withCtx as k, createElementBlock as u, Fragment as a, renderList as A, mergeProps as i, createCommentVNode as v } from "vue";
|
|
2
|
-
import { Space as y } from "
|
|
2
|
+
import { Space as y } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
4
|
import "../item-modal/index.vue2.mjs";
|
|
5
5
|
import "../item-popconfirm/index.vue2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropdownProps, ModalFuncProps, PopconfirmProps } from '
|
|
1
|
+
import { DropdownProps, ModalFuncProps, PopconfirmProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
3
|
export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
|
|
4
4
|
export type ApActionItemProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, ref as b, unref as s, computed as d, renderSlot as c, openBlock as t, createElementBlock as u, mergeProps as C, createBlock as f, createCommentVNode as m, isVNode as v, resolveDynamicComponent as B, toDisplayString as A } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import h from "
|
|
3
|
+
import h from "@aplus-frontend/antdv/es/button/LoadingIcon";
|
|
4
4
|
import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
5
|
const L = { key: 1 }, V = /* @__PURE__ */ y({
|
|
6
6
|
name: "ApActionItem",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApActionItemDropdownProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ActionColor, MixedActionTypes } from '..';
|
|
4
|
-
import { Trigger } from '
|
|
4
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: {
|
|
7
7
|
default?(_: {}): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as v, computed as k, openBlock as t, createBlock as l, unref as r, withCtx as n, createVNode as u, createElementBlock as w, Fragment as A, renderList as B, normalizeClass as m, mergeProps as i, createElementVNode as b, normalizeProps as C, guardReactiveProps as I, renderSlot as P, createCommentVNode as D } from "vue";
|
|
2
|
-
import { Dropdown as N, Menu as $, MenuItem as h } from "
|
|
2
|
+
import { Dropdown as N, Menu as $, MenuItem as h } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
4
|
import "../item-modal/index.vue2.mjs";
|
|
5
5
|
import "../item-popconfirm/index.vue2.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApActionItemModalProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
|
-
import { ModalFuncProps } from '
|
|
4
|
+
import { ModalFuncProps } from '@aplus-frontend/antdv';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
7
7
|
refs: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, useSlots as m, openBlock as d, createBlock as p, mergeProps as f, unref as u, createSlots as _, renderList as A, withCtx as P, renderSlot as y, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { Modal as B } from "
|
|
2
|
+
import { Modal as B } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
4
|
import { omit as g } from "lodash-unified";
|
|
5
5
|
import h from "../item/index.vue2.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApActionItemPopconfirmProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
5
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
4
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
7
|
-
import { MouseEventHandler } from '
|
|
8
|
-
import { TriggerType } from '
|
|
9
|
-
import { TooltipPlacement, AdjustOverflow } from '
|
|
10
|
-
import { LiteralUnion } from '
|
|
11
|
-
import { PresetColorType } from '
|
|
12
|
-
import { AlignType, BuildInPlacements } from '
|
|
7
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
8
|
+
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
9
|
+
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
10
|
+
import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
11
|
+
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
12
|
+
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
15
15
|
refs: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, useSlots as u, openBlock as P, createBlock as _, unref as i, mergeProps as y, withCtx as a, createVNode as C, normalizeProps as p, guardReactiveProps as s, createSlots as x, renderList as A, renderSlot as B } from "vue";
|
|
2
|
-
import { Popconfirm as b } from "
|
|
2
|
+
import { Popconfirm as b } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
4
|
import { omit as g } from "lodash-unified";
|
|
5
5
|
import h from "../item/index.vue2.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ApButtonProps } from './interface';
|
|
3
|
-
import { ButtonType } from '
|
|
3
|
+
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
refs: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApButtonProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { ButtonType } from '
|
|
3
|
+
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
refs: {};
|
|
@@ -11,16 +11,19 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
11
11
|
type: string;
|
|
12
12
|
minWidth: boolean;
|
|
13
13
|
loading: undefined;
|
|
14
|
+
lazy: boolean;
|
|
14
15
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApButtonProps>, {
|
|
15
16
|
type: string;
|
|
16
17
|
minWidth: boolean;
|
|
17
18
|
loading: undefined;
|
|
19
|
+
lazy: boolean;
|
|
18
20
|
}>>>, {
|
|
19
21
|
type: ButtonType | "borderLink";
|
|
20
22
|
minWidth: boolean | number | string;
|
|
21
23
|
loading: boolean | {
|
|
22
24
|
delay?: number;
|
|
23
25
|
};
|
|
26
|
+
lazy: boolean | number;
|
|
24
27
|
}, {}>;
|
|
25
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
29
|
export default _default;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { defineComponent as C, ref as B, computed as t, openBlock as W, createBlock as z, unref as a, mergeProps as L, createSlots as w, renderList as M, withCtx as T, renderSlot as $, normalizeProps as P, guardReactiveProps as _ } from "vue";
|
|
2
|
+
import { Button as x } from "@aplus-frontend/antdv";
|
|
3
|
+
import { wait as N } from "@aplus-frontend/utils";
|
|
3
4
|
import "../config-provider/index.mjs";
|
|
4
5
|
import { omit as O } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { transferOpacityColor as j, isAsynchronous as A } from "./utils/index.mjs";
|
|
7
|
+
import { useNamespace as D } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import { useGlobalConfig as F } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
|
+
const S = 88, G = 300, U = /* @__PURE__ */ C({
|
|
8
10
|
__name: "ap-button",
|
|
9
11
|
props: {
|
|
10
12
|
prefixCls: {},
|
|
@@ -24,94 +26,73 @@ const G = 88, K = /* @__PURE__ */ L({
|
|
|
24
26
|
type: { default: "default" },
|
|
25
27
|
borderLinkColor: {},
|
|
26
28
|
minWidth: { type: [Boolean, Number, String], default: !1 },
|
|
29
|
+
lazy: { type: [Boolean, Number], default: !0 },
|
|
27
30
|
onClick: {}
|
|
28
31
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const e =
|
|
32
|
+
setup(f) {
|
|
33
|
+
const e = f, l = {
|
|
31
34
|
aplus: "#0070FF",
|
|
32
35
|
admin: "#34b77c"
|
|
33
|
-
}, { b:
|
|
34
|
-
() => e.borderLinkColor ||
|
|
35
|
-
),
|
|
36
|
-
() => e.type === "borderLink" ?
|
|
37
|
-
),
|
|
36
|
+
}, { b: i } = D("ap-action-button"), m = F("uiMode"), r = B(!1), y = t(
|
|
37
|
+
() => e.borderLinkColor || l[m.value] || l.aplus
|
|
38
|
+
), s = t(
|
|
39
|
+
() => e.type === "borderLink" ? y.value : void 0
|
|
40
|
+
), u = t(
|
|
41
|
+
() => j(s.value)
|
|
42
|
+
), b = t(() => e.minWidth === !0 ? `${S}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), v = t(
|
|
38
43
|
() => (e.type === "borderLink" ? "default" : e.type) || "default"
|
|
39
|
-
),
|
|
40
|
-
function
|
|
41
|
-
const
|
|
44
|
+
), d = t(() => e.loading ?? r.value ?? !1), p = t(() => e.lazy === !0 ? G : typeof e.lazy == "number" && e.lazy >= 0 ? e.lazy : 0);
|
|
45
|
+
function h() {
|
|
46
|
+
const o = O(e, [
|
|
42
47
|
"type",
|
|
43
48
|
"borderLinkColor",
|
|
44
49
|
"minWidth",
|
|
45
50
|
"onClick",
|
|
46
51
|
"loading"
|
|
47
52
|
]);
|
|
48
|
-
return
|
|
49
|
-
...
|
|
50
|
-
type:
|
|
51
|
-
onclick:
|
|
53
|
+
return o ? {
|
|
54
|
+
...o,
|
|
55
|
+
type: v.value,
|
|
56
|
+
onclick: k
|
|
52
57
|
} : {};
|
|
53
58
|
}
|
|
54
|
-
async function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
s.value = !0;
|
|
58
|
-
try {
|
|
59
|
-
await ((t = e.onClick) == null ? void 0 : t.call(e));
|
|
60
|
-
} finally {
|
|
61
|
-
s.value = !1;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function W(t, u = "0.7") {
|
|
66
|
-
var i;
|
|
59
|
+
async function k() {
|
|
60
|
+
if (d.value) return;
|
|
61
|
+
const o = A(e.onClick), c = Date.now();
|
|
67
62
|
try {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
r += o.slice(l, l + 1).concat(o.slice(l, l + 1));
|
|
74
|
-
o = r;
|
|
75
|
-
}
|
|
76
|
-
const n = [];
|
|
77
|
-
for (let r = 1; r < 7; r += 2)
|
|
78
|
-
n.push(parseInt("0x" + o.slice(r, r + 2)));
|
|
79
|
-
return "rgba(" + n.join(",") + "," + u + ")";
|
|
80
|
-
}
|
|
81
|
-
if (o && o.startsWith("rgb")) {
|
|
82
|
-
let n = o.match(/(\d(\.\d+)?)+/g);
|
|
83
|
-
return n = (i = n == null ? void 0 : n.slice(0, 3)) == null ? void 0 : i.concat(u), "rgba(" + n.join(",") + ")";
|
|
63
|
+
o && (r.value = !0, await o);
|
|
64
|
+
} finally {
|
|
65
|
+
if (o) {
|
|
66
|
+
const n = Date.now() - c;
|
|
67
|
+
n < p.value && await N(p.value - n), r.value = !1;
|
|
84
68
|
}
|
|
85
|
-
return o;
|
|
86
|
-
} catch {
|
|
87
|
-
return;
|
|
88
69
|
}
|
|
89
70
|
}
|
|
90
|
-
return (
|
|
71
|
+
return (o, c) => (W(), z(a(x), L({
|
|
91
72
|
class: {
|
|
92
|
-
[
|
|
93
|
-
[`${
|
|
73
|
+
[a(i)()]: !0,
|
|
74
|
+
[`${a(i)()}-border-link`]: u.value
|
|
94
75
|
}
|
|
95
76
|
}, {
|
|
96
|
-
...
|
|
97
|
-
...
|
|
77
|
+
...o.$attrs,
|
|
78
|
+
...h()
|
|
98
79
|
}, {
|
|
99
80
|
style: {
|
|
100
|
-
color:
|
|
101
|
-
minWidth:
|
|
102
|
-
"--button-border-color":
|
|
81
|
+
color: s.value,
|
|
82
|
+
minWidth: b.value,
|
|
83
|
+
"--button-border-color": u.value
|
|
103
84
|
},
|
|
104
|
-
loading:
|
|
105
|
-
}),
|
|
106
|
-
|
|
107
|
-
name:
|
|
108
|
-
fn:
|
|
109
|
-
|
|
85
|
+
loading: d.value
|
|
86
|
+
}), w({ _: 2 }, [
|
|
87
|
+
M(Object.keys(o.$slots), (n) => ({
|
|
88
|
+
name: n,
|
|
89
|
+
fn: T((g) => [
|
|
90
|
+
$(o.$slots, n, P(_(g || {})))
|
|
110
91
|
])
|
|
111
92
|
}))
|
|
112
93
|
]), 1040, ["class", "style", "loading"]));
|
|
113
94
|
}
|
|
114
95
|
});
|
|
115
96
|
export {
|
|
116
|
-
|
|
97
|
+
U as default
|
|
117
98
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ButtonProps } from '
|
|
1
|
+
import { ButtonProps } from '@aplus-frontend/antdv';
|
|
2
2
|
export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
|
|
3
3
|
type?: ButtonProps['type'] | 'borderLink';
|
|
4
4
|
borderLinkColor?: string;
|
|
5
5
|
minWidth?: boolean | number | string;
|
|
6
|
+
lazy?: boolean | number;
|
|
6
7
|
onClick?: () => any | Promise<any>;
|
|
7
8
|
};
|
|
8
9
|
export type ApActionButtonProps = ApButtonProps;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function a(t) {
|
|
2
|
+
return typeof t == "object" && typeof t.then == "function" ? t : !1;
|
|
3
|
+
}
|
|
4
|
+
const l = (t) => typeof t == "function" && a(t == null ? void 0 : t()), f = (t, n = "0.7") => {
|
|
5
|
+
var s;
|
|
6
|
+
try {
|
|
7
|
+
let e = t == null ? void 0 : t.toLowerCase();
|
|
8
|
+
if (e && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)) {
|
|
9
|
+
if (e.length === 4) {
|
|
10
|
+
let o = "#";
|
|
11
|
+
for (let c = 1; c < 4; c += 1)
|
|
12
|
+
o += e.slice(c, c + 1).concat(e.slice(c, c + 1));
|
|
13
|
+
e = o;
|
|
14
|
+
}
|
|
15
|
+
const r = [];
|
|
16
|
+
for (let o = 1; o < 7; o += 2)
|
|
17
|
+
r.push(parseInt("0x" + e.slice(o, o + 2)));
|
|
18
|
+
return "rgba(" + r.join(",") + "," + n + ")";
|
|
19
|
+
}
|
|
20
|
+
if (e && e.startsWith("rgb")) {
|
|
21
|
+
let r = e.match(/(\d(\.\d+)?)+/g);
|
|
22
|
+
return r = (s = r == null ? void 0 : r.slice(0, 3)) == null ? void 0 : s.concat(n), "rgba(" + r.join(",") + ")";
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
} catch {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
l as isAsynchronous,
|
|
31
|
+
a as isPromise,
|
|
32
|
+
f as transferOpacityColor
|
|
33
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, openBlock as l, createElementBlock as a, normalizeClass as h, unref as r, normalizeStyle as T, createVNode as B, mergeProps as _, withCtx as f, Fragment as s, renderList as w, createBlock as i, h as c, renderSlot as E, resolveDynamicComponent as M } from "vue";
|
|
2
|
-
import { Descriptions as V, DescriptionsItem as m } from "
|
|
2
|
+
import { Descriptions as V, DescriptionsItem as m } from "@aplus-frontend/antdv";
|
|
3
3
|
import { mixinsAttachmentExtraProps as j, transformValue as x, isEmptyWithType as z } from "./helper.mjs";
|
|
4
4
|
import { get as S } from "lodash-unified";
|
|
5
5
|
import "./help-message/index.vue.mjs";
|
|
@@ -8,9 +8,9 @@ declare function __VLS_template(): {
|
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
10
|
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<{
|
|
11
|
-
helpMessage?:
|
|
11
|
+
helpMessage?: any;
|
|
12
12
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
-
helpMessage?:
|
|
13
|
+
helpMessage?: any;
|
|
14
14
|
}>>>, {}, {}>;
|
|
15
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
16
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as t, createElementBlock as l, renderSlot as n, createBlock as r, unref as o, withCtx as p, createVNode as a, createCommentVNode as i } from "vue";
|
|
2
2
|
import { QuestionCircleOutlined as c } from "@ant-design/icons-vue";
|
|
3
|
-
import { Tooltip as m } from "
|
|
3
|
+
import { Tooltip as m } from "@aplus-frontend/antdv";
|
|
4
4
|
const d = { style: { display: "flex", "align-items": "center" } }, k = /* @__PURE__ */ s({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DescriptionsProps } from '
|
|
1
|
+
import { DescriptionsProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { CSSProperties, StyleValue, VNode, VNodeChild } from 'vue';
|
|
3
3
|
import { formatterMap } from './formatter';
|
|
4
4
|
/** 字段路径 */
|
|
@@ -23,7 +23,7 @@ export interface ItemSchema<T extends Recordable = Recordable> {
|
|
|
23
23
|
labelStyle?: CSSProperties;
|
|
24
24
|
customRender?: (record?: T) => VNodeChild | VNode;
|
|
25
25
|
contentSlotName?: string;
|
|
26
|
-
helpMessage?:
|
|
26
|
+
helpMessage?: any;
|
|
27
27
|
}
|
|
28
28
|
/** 空的类型描述类型 */
|
|
29
29
|
export type EmptyItemSchema = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApDownLoadProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { ButtonType } from '
|
|
3
|
+
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
slots: {
|
|
6
6
|
icon?(_: {}): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as A, useSlots as S, computed as t, unref as s, openBlock as r, createBlock as j, mergeProps as I, withCtx as M, createElementVNode as u, normalizeClass as T, createElementBlock as f, createVNode as U, createCommentVNode as g, renderSlot as V, toDisplayString as D } from "vue";
|
|
2
|
-
import { Button as E } from "
|
|
2
|
+
import { Button as E } from "@aplus-frontend/antdv";
|
|
3
3
|
import { LoadingOutlined as G } from "@ant-design/icons-vue";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
5
|
import { useOssInit as P } from "./hooks/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckboxOptionType } from '
|
|
2
|
-
import { CheckboxValueType } from '
|
|
3
|
-
import { VueNode } from '
|
|
1
|
+
import { CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
2
|
+
import { CheckboxValueType } from '@aplus-frontend/antdv/es/checkbox/interface';
|
|
3
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
4
4
|
export declare const getOptionValue: (v: CheckboxOptionType | string | number) => CheckboxValueType;
|
|
5
5
|
export declare const getOptionLabel: (v: CheckboxOptionType | string | number) => VueNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFieldCheckboxProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
|
-
import { CheckboxOptionType } from '
|
|
4
|
+
import { CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
5
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldCheckboxProps>, {
|
|
6
6
|
emptyText: string;
|
|
7
7
|
mode: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as h, ref as
|
|
2
|
-
import { isFunction as
|
|
3
|
-
import { Spin as T, CheckboxGroup as U } from "
|
|
1
|
+
import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as c, createBlock as d, mergeProps as V } from "vue";
|
|
2
|
+
import { isFunction as B, isNil as O, omit as q } from "lodash-unified";
|
|
3
|
+
import { Spin as T, CheckboxGroup as U } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { getOptionValue as _, getOptionLabel as F } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import N from "../hooks/use-options.mjs";
|
|
8
|
+
import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useControllableValue as S } from "../../hooks/useControllableValue.mjs";
|
|
10
|
+
const I = /* @__PURE__ */ h({
|
|
10
11
|
name: "ApFieldCheckbox",
|
|
11
12
|
inheritAttrs: !1,
|
|
12
13
|
__name: "index",
|
|
@@ -28,35 +29,35 @@ const P = /* @__PURE__ */ h({
|
|
|
28
29
|
vertical: { type: Boolean }
|
|
29
30
|
},
|
|
30
31
|
emits: ["update:value"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
setup(f, { emit: v }) {
|
|
33
|
+
const y = v, t = f, { options: p, updateOptions: k } = N(t), { m: x } = A("field-checkbox"), i = b(!1);
|
|
34
|
+
C(() => {
|
|
35
|
+
B(t.request) && (i.value = !0, t.request().then((a) => k(a)).finally(() => {
|
|
36
|
+
i.value = !1;
|
|
36
37
|
}));
|
|
37
38
|
});
|
|
38
|
-
const { value:
|
|
39
|
+
const { value: r, updateValue: g } = S(
|
|
39
40
|
t,
|
|
40
|
-
|
|
41
|
+
y,
|
|
41
42
|
{
|
|
42
43
|
defaultValue: []
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
|
-
return (a,
|
|
46
|
-
var
|
|
46
|
+
return (a, j) => {
|
|
47
|
+
var u;
|
|
47
48
|
return a.mode === "read" ? (o(), l(n, { key: 0 }, [
|
|
48
|
-
e(
|
|
49
|
-
c(
|
|
49
|
+
e(O)(e(r)) ? (o(), l(n, { key: 0 }, [
|
|
50
|
+
m(c(t.emptyText), 1)
|
|
50
51
|
], 64)) : (o(), l(n, { key: 1 }, [
|
|
51
|
-
c(
|
|
52
|
+
m(c(((u = e(p)) == null ? void 0 : u.filter((s) => e(r).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
|
|
52
53
|
], 64))
|
|
53
54
|
], 64)) : (o(), l(n, { key: 1 }, [
|
|
54
|
-
|
|
55
|
+
i.value ? (o(), d(e(T), {
|
|
55
56
|
key: 0,
|
|
56
57
|
size: "small"
|
|
57
|
-
})) : (o(),
|
|
58
|
-
options:
|
|
59
|
-
value: e(
|
|
58
|
+
})) : (o(), d(e(U), V({ key: 1 }, e(q)(t, ["onUpdate:value", "value", "request", "vertical"]), {
|
|
59
|
+
options: e(p),
|
|
60
|
+
value: e(r),
|
|
60
61
|
"onUpdate:value": e(g),
|
|
61
62
|
class: a.vertical ? e(x)("vertical") : null
|
|
62
63
|
}), null, 16, ["options", "value", "onUpdate:value", "class"]))
|
|
@@ -65,5 +66,5 @@ const P = /* @__PURE__ */ h({
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
I as default
|
|
69
70
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerMode } from '
|
|
1
|
+
import { PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
2
2
|
import { ApFormatPresetType } from './interface';
|
|
3
3
|
export declare const ApFieldDatePresetFormats: string[];
|
|
4
4
|
export declare const PRESET_FORMAT_MAP: Record<ApFormatPresetType, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
2
|
-
import { EventValue } from '
|
|
2
|
+
import { EventValue } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
export declare const formatDay: (d: Dayjs, f: string, begin?: boolean) => number | null;
|
|
5
5
|
/**
|
|
@@ -4,7 +4,7 @@ import { ApFormatPresetType } from './interface';
|
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
|
|
5
5
|
import { FieldMode } from '..';
|
|
6
6
|
import { LiteralUnion } from '../../type';
|
|
7
|
-
import { SharedTimeProps } from '
|
|
7
|
+
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
8
8
|
type ApFieldDataSlots = {
|
|
9
9
|
dateRender: any;
|
|
10
10
|
suffixIcon?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, computed as i, unref as t, openBlock as v, createElementBlock as _, Fragment as w, createTextVNode as M, toDisplayString as R, createBlock as F, mergeProps as A, createSlots as D, renderList as x, withCtx as E, renderSlot as V, normalizeProps as z, guardReactiveProps as N } from "vue";
|
|
2
2
|
import r from "dayjs";
|
|
3
|
-
import { DatePicker as j } from "
|
|
3
|
+
import { DatePicker as j } from "@aplus-frontend/antdv";
|
|
4
4
|
import { ApFieldDatePresetFormats as I, PRESET_FORMAT_MAP as H, PRESET_FORMAT_PICK_MAP as U, PRESET_FORMAT_TIME_MAP as K } from "./constant.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
6
|
import { isNil as y, omit as $ } from "lodash-unified";
|
|
@@ -3,7 +3,7 @@ import { ApFieldDatePresetFormats as Q, PRESET_FORMAT_MAP as X, PRESET_FORMAT_PI
|
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as T, omit as b, isString as m, isFunction as ne } from "lodash-unified";
|
|
5
5
|
import d from "dayjs";
|
|
6
|
-
import { DatePicker as te } from "
|
|
6
|
+
import { DatePicker as te } from "@aplus-frontend/antdv";
|
|
7
7
|
import { formatDayWithTimezone as ae, formatValue as R } from "../date/helper.mjs";
|
|
8
8
|
import { SwapRightOutlined as re } from "@ant-design/icons-vue";
|
|
9
9
|
import { omitUndefined as le } from "../../utils/index.mjs";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ref as i, watch as o } from "vue";
|
|
2
|
+
const f = (e) => {
|
|
3
|
+
const u = i((e == null ? void 0 : e.options) || []);
|
|
4
|
+
function n(t) {
|
|
5
|
+
t && (u.value = t);
|
|
6
|
+
}
|
|
7
|
+
return o(
|
|
8
|
+
() => e.options,
|
|
9
|
+
(t) => {
|
|
10
|
+
t && (u.value = t);
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
deep: !0
|
|
14
|
+
}
|
|
15
|
+
), {
|
|
16
|
+
options: u,
|
|
17
|
+
updateOptions: n
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
f as default
|
|
22
|
+
};
|