@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApActionItemDropdownProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ActionColor, MixedActionTypes } from '..';
|
|
4
|
-
import { Trigger } from '
|
|
4
|
+
import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: {
|
|
7
7
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const f=require("@aplus-frontend/icon");require("../../config-provider/index.js");const s=require("lodash-unified"),m=require("../../config-provider/hooks/use-namespace.js"),_=require("../item-modal/index.vue.js"),g=require("../item-popconfirm/index.vue.js"),i=require("../item/index.vue2.js"),k=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1}},setup(c){const a=c,n=e.ref(!1),{e:l}=m.useNamespace("action-item-dropdown"),p=e.computed(()=>a.actions.filter(r=>r.visible||s.isUndefined(r.visible)).map(r=>({...r,onAction:async o=>{var t;try{await((t=r.onAction)==null?void 0:t.call(r,o))}finally{n.value=!1}}})));return(r,o)=>(e.openBlock(),e.createBlock(e.unref(u.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=t=>n.value=t),trigger:r.trigger,placement:r.placement},{overlay:e.withCtx(()=>[e.createVNode(e.unref(u.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t,d)=>(e.openBlock(),e.createBlock(e.unref(u.MenuItem),{key:d,class:e.normalizeClass(e.unref(l)("item"))},{default:e.withCtx(()=>[t.modalProps?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:0,ref_for:!0},t),null,16)):t.popconfirmProps?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:1,ref_for:!0},t),null,16)):(e.openBlock(),e.createBlock(i.default,e.mergeProps({key:2,ref_for:!0},t),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("wrapper"))},[e.createVNode(i.default,e.normalizeProps(e.guardReactiveProps(e.unref(s.omit)(a,["actions","trigger","placement"]))),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16),r.showIcon?(e.openBlock(),e.createBlock(e.unref(f.IconApAdLineDown),{key:0,class:e.normalizeClass(e.unref(l)("icon"))},null,8,["class"])):e.createCommentVNode("",!0)],2)]),_:3},8,["open","trigger","placement"]))}});exports.default=k;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApActionItemModalProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
|
-
import { ModalFuncProps } from '
|
|
4
|
+
import { ModalFuncProps } from '@aplus-frontend/antdv';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
7
7
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv");require("../item/index.vue.js");const d=require("lodash-unified"),p=require("../item/index.vue2.js"),f=e.defineComponent({name:"ApActionItemModal",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},modalProps:{default:()=>({})}},setup(l){const s=e.useSlots(),o=l;async function i(n){c.Modal.confirm({...o.modalProps,zIndex:1060,onOk:async()=>{var r,a,t;(a=(r=o.modalProps).onOk)==null||a.call(r),await((t=o.onAction)==null?void 0:t.call(o,n))}})}return(n,r)=>(e.openBlock(),e.createBlock(p.default,e.mergeProps(e.unref(d.omit)(o,["modalProps","onAction"]),{onAction:i}),e.createSlots({_:2},[e.renderList(s,(a,t)=>({name:t,fn:e.withCtx(u=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040))}});exports.default=f;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApActionItemPopconfirmProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
5
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
4
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
7
|
-
import { MouseEventHandler } from '
|
|
8
|
-
import { TriggerType } from '
|
|
9
|
-
import { TooltipPlacement, AdjustOverflow } from '
|
|
10
|
-
import { LiteralUnion } from '
|
|
11
|
-
import { PresetColorType } from '
|
|
12
|
-
import { AlignType, BuildInPlacements } from '
|
|
7
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
8
|
+
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
9
|
+
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
10
|
+
import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
11
|
+
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
12
|
+
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
15
15
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../item/index.vue.js");const p=require("lodash-unified"),d=require("../item/index.vue2.js"),f=e.defineComponent({name:"ApActionItemPopconfirm",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},popconfirmProps:{default:()=>({})}},setup(a){const s=e.useSlots(),o=a;async function l(n){var t,i,r;(i=(t=o.popconfirmProps).onConfirm)==null||i.call(t,n),await((r=o.onAction)==null?void 0:r.call(o,n))}return(n,t)=>(e.openBlock(),e.createBlock(e.unref(u.Popconfirm),e.mergeProps(o.popconfirmProps,{onConfirm:l,disabled:!o.popconfirmProps,"overlay-style":{zIndex:1060}}),{default:e.withCtx(()=>[e.createVNode(d.default,e.normalizeProps(e.guardReactiveProps(e.unref(p.omit)(o,["popconfirmProps","onAction"]))),e.createSlots({_:2},[e.renderList(s,(i,r)=>({name:r,fn:e.withCtx(c=>[e.renderSlot(n.$slots,r,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040)]),_:3},16,["disabled"]))}});exports.default=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ApButtonProps } from './interface';
|
|
3
|
-
import { ButtonType } from '
|
|
3
|
+
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./ap-button.vue2.js");const l=require("./ap-button.vue.js"),s=e.defineComponent({__name:"ap-action-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"borderLink"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!0},onClick:{}},setup(r){const n=r;return(t,u)=>(e.openBlock(),e.createBlock(l.default,e.normalizeProps(e.guardReactiveProps({...t.$attrs,...n})),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),o=>({name:o,fn:e.withCtx(a=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040))}});exports.default=s;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./ap-button.vue2.js");const l=require("./ap-button.vue.js"),s=e.defineComponent({__name:"ap-action-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"borderLink"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!0},lazy:{type:[Boolean,Number]},onClick:{}},setup(r){const n=r;return(t,u)=>(e.openBlock(),e.createBlock(l.default,e.normalizeProps(e.guardReactiveProps({...t.$attrs,...n})),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),o=>({name:o,fn:e.withCtx(a=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040))}});exports.default=s;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@aplus-frontend/antdv"),B=require("@aplus-frontend/utils");require("../config-provider/index.js");const W=require("lodash-unified"),p=require("./utils/index.js"),z=require("../config-provider/hooks/use-namespace.js"),L=require("../config-provider/hooks/use-global-config.js"),q=88,M=300,w=e.defineComponent({__name:"ap-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object],default:void 0},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onMousedown:{},type:{default:"default"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!1},lazy:{type:[Boolean,Number],default:!0},onClick:{}},setup(f){const t=f,l={aplus:"#0070FF",admin:"#34b77c"},{b:a}=z.useNamespace("ap-action-button"),y=L.useGlobalConfig("uiMode"),r=e.ref(!1),m=e.computed(()=>t.borderLinkColor||l[y.value]||l.aplus),i=e.computed(()=>t.type==="borderLink"?m.value:void 0),u=e.computed(()=>p.transferOpacityColor(i.value)),b=e.computed(()=>t.minWidth===!0?`${q}px`:typeof t.minWidth=="number"?`${t.minWidth}px`:typeof t.minWidth=="string"?t.minWidth:void 0),v=e.computed(()=>(t.type==="borderLink"?"default":t.type)||"default"),s=e.computed(()=>t.loading??r.value??!1),c=e.computed(()=>t.lazy===!0?M:typeof t.lazy=="number"&&t.lazy>=0?t.lazy:0);function h(){const o=W.omit(t,["type","borderLinkColor","minWidth","onClick","loading"]);return o?{...o,type:v.value,onclick:g}:{}}async function g(){if(s.value)return;const o=p.isAsynchronous(t.onClick),d=Date.now();try{o&&(r.value=!0,await o)}finally{if(o){const n=Date.now()-d;n<c.value&&await B.wait(c.value-n),r.value=!1}}}return(o,d)=>(e.openBlock(),e.createBlock(e.unref(C.Button),e.mergeProps({class:{[e.unref(a)()]:!0,[`${e.unref(a)()}-border-link`]:u.value}},{...o.$attrs,...h()},{style:{color:i.value,minWidth:b.value,"--button-border-color":u.value},loading:s.value}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),n=>({name:n,fn:e.withCtx(k=>[e.renderSlot(o.$slots,n,e.normalizeProps(e.guardReactiveProps(k||{})))])}))]),1040,["class","style","loading"]))}});exports.default=w;
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e){return typeof e=="object"&&typeof e.then=="function"?e:!1}const a=e=>typeof e=="function"&&i(e==null?void 0:e()),l=(e,c="0.7")=>{var n;try{let t=e==null?void 0:e.toLowerCase();if(t&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)){if(t.length===4){let o="#";for(let s=1;s<4;s+=1)o+=t.slice(s,s+1).concat(t.slice(s,s+1));t=o}const r=[];for(let o=1;o<7;o+=2)r.push(parseInt("0x"+t.slice(o,o+2)));return"rgba("+r.join(",")+","+c+")"}if(t&&t.startsWith("rgb")){let r=t.match(/(\d(\.\d+)?)+/g);return r=(n=r==null?void 0:r.slice(0,3))==null?void 0:n.concat(c),"rgba("+r.join(",")+")"}return t}catch{return}};exports.isAsynchronous=a;exports.isPromise=i;exports.transferOpacityColor=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@aplus-frontend/antdv"),s=require("./helper.js"),i=require("lodash-unified");require("./help-message/index.vue.js");require("../config-provider/index.js");const c=require("../config-provider/hooks/use-global-config.js"),m=require("../config-provider/hooks/use-namespace.js"),B=require("./help-message/index.vue2.js"),v={key:0},C=e.defineComponent({__name:"ap-descriptions",props:{descriptionsProps:{},schemas:{},dataSource:{},style:{type:[Boolean,null,String,Object,Array]},className:{}},setup(d){const r=d,y=c.useGlobalConfig("uiMode","admin"),f=c.useGlobalConfig("apDescriptions"),g=c.useGlobalConfig("downloadCenterTriggerConfig"),{m:S,b}=m.useNamespace("ap-descriptions"),k=(l={})=>{var n;let o="";return((n=r.descriptionsProps)==null?void 0:n.layout)==="vertical"&&(o="start"),{justifyContent:o,...l}},u=l=>{var n,t;const o=i.get(r.dataSource,l.field);return l.customRender?l.customRender(r.dataSource):(l.valueType==="attachment"&&(l.extraProps=s.mixinsAttachmentExtraProps(l.extraProps,{fromConfig:(n=f.value)==null?void 0:n.downloadFile,fromGlobal:(t=g.value)==null?void 0:t.trigger})),s.transformValue({value:o,record:r.dataSource},l))};return(l,o)=>{var n;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([l.className,e.unref(b)(),e.unref(S)(e.unref(y))]),style:e.normalizeStyle(l.style)},[e.createVNode(e.unref(a.Descriptions),e.mergeProps(l.descriptionsProps,{labelStyle:k({...((n=l.descriptionsProps)==null?void 0:n.labelStyle)||{}})}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.schemas,(t,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.field||"empty"+p},[t.valueType==="empty"?(e.openBlock(),e.createBlock(e.unref(a.DescriptionsItem),{key:0,contentStyle:t.contentStyle,labelStyle:t.labelStyle,span:t.span},null,8,["contentStyle","labelStyle","span"])):(e.openBlock(),e.createBlock(e.unref(a.DescriptionsItem),{key:1,label:t.label?e.h(e.Fragment,[e.h(B.default,{helpMessage:t.helpMessage},{default:()=>t.label})]):null,span:t.span,contentStyle:t.contentStyle,labelStyle:t.labelStyle},{default:e.withCtx(()=>[e.unref(s.isEmptyWithType)(e.unref(i.get)(l.dataSource,t.field),t.valueType)?(e.openBlock(),e.createElementBlock("span",v,"--")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.contentSlotName?e.renderSlot(l.$slots,t.contentSlotName,{key:0,index:p,item:u(t),record:l.dataSource}):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[t.prefix,u(t),t.suffix])),{key:1}))],64))]),_:2},1032,["label","span","contentStyle","labelStyle"]))],64))),128))]),_:3},16,["labelStyle"])],6)}}});exports.default=C;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@ant-design/icons-vue"),o=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@ant-design/icons-vue"),o=require("@aplus-frontend/antdv"),s={style:{display:"flex","align-items":"center"}},l=e.defineComponent({__name:"index",props:{helpMessage:{}},setup(r){return(t,i)=>(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(t.$slots,"default"),t.helpMessage?(e.openBlock(),e.createBlock(e.unref(o.Tooltip),{key:0,placement:"topLeft",title:t.helpMessage},{default:e.withCtx(()=>[e.createVNode(e.unref(n.QuestionCircleOutlined),{class:"ap-descriptions-item-content__help"})]),_:1},8,["title"])):e.createCommentVNode("",!0)]))}});exports.default=l;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("@aplus-frontend/antdv"),O=require("@ant-design/icons-vue");require("../config-provider/index.js");const q=require("./hooks/index.js"),d=require("./utils/getFileInfo.js"),z=require("./hooks/useStyle.js"),F=require("../config-provider/hooks/use-locale.js"),c=require("../config-provider/hooks/use-global-config.js"),S={key:0,class:"spin"},L={key:1,class:"icon"},I={class:"text"},j=e.defineComponent({name:"ApDownload",__name:"ap-download",props:{prefixCls:{},type:{default:"link"},htmlType:{},shape:{},size:{default:"middle"},loading:{type:[Boolean,Object]},disabled:{type:Boolean,default:!1},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onClick:{},onMousedown:{},text:{},color:{},fileName:{},needName:{type:[Boolean,Object]},getOssAccess:{}},emits:["downloadCallback"],setup(p,{emit:f}){const g=f,n=e.ref(!1),{lang:m}=F.useLocale(),C=e.useSlots(),y=e.computed(()=>m.value==="zh-cn"?"zh_CN":"en_US"),b=c.useGlobalConfig("uiMode"),o=p,v=c.useGlobalConfig("apUpload"),i=c.useGlobalConfig("downloadCenterTriggerConfig"),r=e.computed(()=>o.disabled),N=e.computed(()=>o.color?o.color:b.value==="aplus"?"#0070FF":"#1890FF"),_=e.computed(()=>o.size),{getInnerWrapperClass:k}=z.useStyle(N,_,r),h=e.computed(()=>{var t;return o.getOssAccess||((t=v.value)==null?void 0:t.getOssAccess)}),B=async()=>{var t,l;if(!o.disabled){n.value=!0;try{if((t=i.value)!=null&&t.trigger){let a=d.getFileInfo(o.needName,o.fileName).map(u=>({objectName:u.path,fileName:u.fileName}));(l=i.value)==null||l.trigger(a)}else{const a=await(await q.useOssInit(h.value,e.unref(y))).downloadFile(d.getFileInfo(o.needName,o.fileName));g("downloadCallback",a)}}catch(s){console.error(s)}finally{n.value=!1}}};return(t,l)=>(e.openBlock(),e.createBlock(e.unref(w.Button),e.mergeProps(o,{type:o.type,size:o.size,disabled:r.value,onClick:B}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(k))},[n.value?(e.openBlock(),e.createElementBlock("span",S,[e.createVNode(e.unref(O.LoadingOutlined),{spin:!0})])):e.createCommentVNode("",!0),e.unref(C).icon?(e.openBlock(),e.createElementBlock("span",L,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("span",I,e.toDisplayString(t.text),1)],2)]),_:3},16,["type","size","disabled"]))}});exports.default=j;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("lodash-unified"),i=require("@aplus-frontend/antdv");require("../../hooks/index.js");const c=require("./helper.js");require("../../config-provider/index.js");const y=require("../hooks/use-options.js"),B=require("../../config-provider/hooks/use-namespace.js"),g=require("../../hooks/useControllableValue.js"),q=e.defineComponent({name:"ApFieldCheckbox",inheritAttrs:!1,__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},value:{},onChange:{},"onUpdate:value":{},name:{},prefixCls:{},options:{default:()=>[]},disabled:{type:Boolean},id:{},emptyText:{default:"--"},request:{},vertical:{type:Boolean}},emits:["update:value"],setup(p,{emit:d}){const f=d,t=p,{options:u,updateOptions:m}=y.default(t),{m:k}=B.useNamespace("field-checkbox"),l=e.ref(!1);e.onMounted(()=>{r.isFunction(t.request)&&(l.value=!0,t.request().then(n=>m(n)).finally(()=>{l.value=!1}))});const{value:o,updateValue:v}=g.useControllableValue(t,f,{defaultValue:[]});return(n,x)=>{var s;return n.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(r.isNil)(e.unref(o))?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.emptyText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(((s=e.unref(u))==null?void 0:s.filter(a=>e.unref(o).indexOf(e.unref(c.getOptionValue)(a))>-1).map(a=>e.unref(c.getOptionLabel)(a)).join("、"))||t.emptyText),1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.value?(e.openBlock(),e.createBlock(e.unref(i.Spin),{key:0,size:"small"})):(e.openBlock(),e.createBlock(e.unref(i.CheckboxGroup),e.mergeProps({key:1},e.unref(r.omit)(t,["onUpdate:value","value","request","vertical"]),{options:e.unref(u),value:e.unref(o),"onUpdate:value":e.unref(v),class:n.vertical?e.unref(k)("vertical"):null}),null,16,["options","value","onUpdate:value","class"]))],64))}}});exports.default=q;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("dayjs"),S=require("@aplus-frontend/antdv"),s=require("./constant.js");require("../../hooks/index.js");const v=require("lodash-unified"),T=require("./helper.js"),_=require("@aplus-frontend/utils"),M=require("../hooks/use-default-placeholder.js"),w=require("../../hooks/useControllableValue.js"),R=e.defineComponent({name:"ApFieldDate",__name:"index",props:{mode:{default:"edit"},class:{},style:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},placeholder:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},id:{},presets:{},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},panelRender:{},inputRender:{},onOpenChange:{},onPanelChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},onContextmenu:{},onKeydown:{},role:{},name:{},autocomplete:{},direction:{},showToday:{type:Boolean,default:void 0},showTime:{type:Boolean,default:void 0},picker:{},prefixCls:{},defaultPickerValue:{},disabledDate:{},dateRender:{},monthCellRender:{},renderExtraFooter:{},onSelect:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},disabledTime:{},defaultOpenValue:{},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean,default:void 0},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},timezone:{}},emits:["update:value"],setup(y,{emit:h}){const o=y,B=h,{value:c,updateValue:f}=w.useControllableValue(o,B),P=M.useDefaultPlaceholder("Date",o),l=e.computed(()=>s.ApFieldDatePresetFormats.indexOf(o.format)>-1),u=e.computed(()=>l.value?s.PRESET_FORMAT_MAP[o.format]:o.format),p=e.computed(()=>{if(v.isNil(e.unref(c)))return;let t=r(e.unref(c));return o.timezone&&(t=r(_.getTimeFormatToZone(e.unref(c),o.timezone))),t}),g=e.computed(()=>e.unref(l)?o.picker??s.PRESET_FORMAT_PICK_MAP[o.format]:o.picker),k=e.computed(()=>{const t=e.unref(l)?s.PRESET_FORMAT_TIME_MAP[o.format]:{};return{...v.omit(o,["value","defaultValue","onChange","onOk","format","onUpdate:value","mode"]),placeholder:e.unref(P),...t}}),m=T.formatDayWithTimezone(o.timezone);function O(t){if(v.isNil(t)){f(null);return}const n=r(t);e.unref(l)?f(m(n,e.unref(u))):f(n.valueOf())}function C(t,n){var i;const d=r(t),a=t?e.unref(l)?m(d,e.unref(u)):d.valueOf():null;(i=o.onChange)==null||i.call(o,a,n)}function b(t){var a;const n=r(t),d=t?e.unref(l)?m(n,e.unref(u)):n.valueOf():null;(a=o.onOk)==null||a.call(o,d)}return(t,n)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(p.value?e.unref(r)(p.value).format(u.value):t.emptyText),1)],64)):(e.openBlock(),e.createBlock(e.unref(S.DatePicker),e.mergeProps({key:1},k.value,{value:p.value,format:u.value,"onUpdate:value":O,onChange:C,onOk:b,picker:g.value}),e.createSlots({_:2},[e.renderList(t.$slots,(d,a)=>({name:a,fn:e.withCtx(i=>[e.renderSlot(t.$slots,a,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040,["value","format","picker"]))}});exports.default=R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../date/constant.js");require("../../hooks/index.js");const r=require("lodash-unified"),d=require("dayjs"),w=require("@aplus-frontend/antdv"),h=require("../date/helper.js"),N=require("@ant-design/icons-vue"),V=require("../../utils/index.js"),B=require("@aplus-frontend/utils"),q=require("../hooks/use-default-placeholder.js"),A=require("../../hooks/useControllableValue.js"),x=e.defineComponent({__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array],default:void 0},disabledTime:{},presets:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array],default:void 0},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},tabindex:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},suffixIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},clearIcon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean,default:void 0},showTime:{type:Boolean,default:void 0},showNow:{type:Boolean,default:void 0},order:{type:Boolean,default:void 0},defaultOpenValue:{},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean,default:void 0},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},timezone:{},readModeSeparator:{}},emits:["update:value"],setup(P,{emit:T}){const t=P,O=T,S=e.useSlots(),i=e.computed(()=>g.ApFieldDatePresetFormats.indexOf(t.format)>-1),u=e.computed(()=>i.value?g.PRESET_FORMAT_MAP[t.format]:t.format),{value:p,updateValue:v}=A.useControllableValue(t,O),C=q.useDefaultPlaceholder("DateRange",t),c=h.formatDayWithTimezone(t.timezone),m=e.computed(()=>{var l,s;const n=e.unref(p);if(r.isNil(n)||!(n!=null&&n.length))return n;const a=t.timezone?B.getTimeFormatToZone(e.unref(p)[0],t.timezone):(l=e.unref(p))==null?void 0:l[0],o=t.timezone?B.getTimeFormatToZone(e.unref(p)[1],t.timezone):(s=e.unref(p))==null?void 0:s[1];return[d(a),d(o)]}),D=e.computed(()=>e.unref(i)?t.picker??g.PRESET_FORMAT_PICK_MAP[t.format]:t.picker),M=e.computed(()=>{const n=e.unref(i)?g.PRESET_FORMAT_TIME_MAP[t.format]:{};return{...V.omitUndefined(r.omit(t,["value","onUpdate:value","onChange","onOk","format","mode"])),placeholder:e.unref(C),...n}});function b(n){if(!n){v(n);return}let a=r.isString(n[0])?d(n[0]):n[0],o=r.isString(n[1])?d(n[1]):n[1];e.unref(i)?v([c(a,e.unref(u)),c(o,e.unref(u),!1)]):v([h.formatValue(a),h.formatValue(o)])}function F(n){var f;const a=r.isString(n[0])?d(n[0]):n[0],o=r.isString(n[1])?d(n[1]):n[1],l=n[0]?e.unref(i)?c(a,e.unref(u)):a.valueOf():null,s=n[1]?e.unref(i)?c(o,e.unref(u),!1):o.valueOf():null;(f=t.onOk)==null||f.call(t,[l,s])}function R(n,a){var y,k;if(r.isNil(n)){(y=t.onChange)==null||y.call(t,n,a);return}const o=r.isString(n[0])?d(n[0]):n[0],l=r.isString(n[1])?d(n[1]):n[1],s=n[0]?e.unref(i)?c(o,e.unref(u)):o.valueOf():null,f=n[1]?e.unref(i)?c(l,e.unref(u),!1):l.valueOf():null;(k=t.onChange)==null||k.call(t,[s,f],a)}const _=e.computed(()=>{var o;const n=t.readModeSeparator;if(n)return e.isVNode(n)||r.isFunction(n)?t.readModeSeparator:e.createVNode(e.Fragment,null,[t.readModeSeparator]);const a=(o=S.readModeSeparator)==null?void 0:o.call(S);return a?e.createVNode(e.Fragment,null,[a]):N.SwapRightOutlined});return(n,a)=>{var o,l;return n.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString((o=m.value[0])==null?void 0:o.format(u.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value))),e.createTextVNode(" "+e.toDisplayString((l=m.value[1])==null?void 0:l.format(u.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.emptyText),1)],64))],64)):(e.openBlock(),e.createBlock(e.unref(w.DatePicker).RangePicker,e.mergeProps({key:1},M.value,{value:m.value,"onUpdate:value":b,onChange:R,picker:D.value,format:u.value,onOk:F}),e.createSlots({_:2},[e.renderList(e.unref(r.omit)(n.$slots,"readModeSeparator"),(s,f)=>({name:f,fn:e.withCtx(y=>[e.renderSlot(n.$slots,f,e.normalizeProps(e.guardReactiveProps(y||{})))])}))]),1040,["value","picker","format"]))}}});exports.default=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),o=t=>{const u=i.ref((t==null?void 0:t.options)||[]);function n(e){e&&(u.value=e)}return i.watch(()=>t.options,e=>{e&&(u.value=e)},{deep:!0}),{options:u,updateOptions:n}};exports.default=o;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps, SliderProps, SegmentedProps, RateProps } from '
|
|
2
|
-
import { InputFocusOptions } from '
|
|
1
|
+
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps, SliderProps, SegmentedProps, RateProps } from '@aplus-frontend/antdv';
|
|
2
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormatPresetType } from './date/interface';
|
|
4
|
-
import { RangeValue } from '
|
|
5
|
-
import { RangePickerProps } from '
|
|
4
|
+
import { RangeValue } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
5
|
+
import { RangePickerProps } from '@aplus-frontend/antdv/es/date-picker/dayjs';
|
|
6
6
|
import { LiteralUnion } from '../type';
|
|
7
7
|
import { InputPasswordProps } from './text/input-password-props';
|
|
8
8
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
9
|
-
import { SelectValue } from '
|
|
9
|
+
import { SelectValue } from '@aplus-frontend/antdv/es/select';
|
|
10
10
|
export type FieldMode = 'read' | 'edit';
|
|
11
11
|
export type BasicApFieldProps<FieldPropsType = any> = {
|
|
12
12
|
mode?: FieldMode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApFieldNumberProps } from '../interface';
|
|
2
2
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
3
|
-
import { ButtonSize } from '
|
|
3
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
|
-
import { ValueType } from '
|
|
6
|
-
import { KeyboardEventHandler } from '
|
|
7
|
-
import { VueNode, CustomSlotsType } from '
|
|
5
|
+
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
6
|
+
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
8
|
type ApFieldNumberSlots = {
|
|
9
9
|
addonBefore?: any;
|
|
10
10
|
addonAfter?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@aplus-frontend/antdv");require("../../hooks/index.js");const s=require("lodash-unified"),i=require("@fruits-chain/utils"),S=require("./helper.js");require("../../config-provider/index.js");const g=require("../hooks/use-default-placeholder.js"),q=require("../../config-provider/hooks/use-namespace.js"),C=require("../../hooks/useControllableValue.js"),N=e.defineComponent({name:"ApFieldNumber",__name:"index",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean,default:!0},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},"onUpdate:value":{},valueModifiers:{},status:{},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{default:-1/0},max:{default:1/0},step:{default:1},tabindex:{},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},emits:["update:value"],setup(d,{expose:p,emit:c}){const f=c,{b:a}=q.useNamespace("field-number"),o=d,l=e.ref(),{value:n,updateValue:m}=C.useControllableValue(o,f),y=g.useDefaultPlaceholder("Number",o),v=e.computed(()=>{let t=e.unref(n);if(s.isNil(t))return o.emptyText;o.precision&&(t=i.roundWith(t,o.precision));let r=o.thousands?i.toDecimalMark(t):String(t);return o.precision&&o.limitDecimalsRetain&&(r=S.addZeroToDecimalPlaces(r,o.precision)),r});function B(){var t;(t=l.value)==null||t.focus()}function b(){var t;(t=l.value)==null||t.blur()}return p({focus:B,blur:b}),(t,r)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(a)("label-left"))},[e.renderSlot(t.$slots,"prefix")],2)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(v.value),1),t.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a)("label-right"))},[e.renderSlot(t.$slots,"addonAfter")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:1},e.unref(s.omit)(o,["value","onUpdate:value"]),{placeholder:e.unref(y),value:e.unref(n),"onUpdate:value":e.unref(m),ref_key:"inputRef",ref:l}),e.createSlots({_:2},[e.renderList(t.$slots,(P,u)=>({name:u,fn:e.withCtx(h=>[e.renderSlot(t.$slots,u,e.normalizeProps(e.guardReactiveProps(h||{})))])}))]),1040,["placeholder","value","onUpdate:value"]))}});exports.default=N;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RadioGroupChildOption } from '
|
|
1
|
+
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
2
2
|
export declare const getOptionValue: (v: RadioGroupChildOption | string | number) => any;
|
|
3
3
|
export declare const getOptionLabel: (v: RadioGroupChildOption | string | number) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../../hooks/index.js");const c=require("lodash-unified"),p=require("./helper.js");require("../../config-provider/index.js");const T=require("../hooks/use-options.js"),_=require("../../hooks/useControllableValue.js"),V=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldRadio",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean},name:{},buttonStyle:{},id:{},optionType:{},onChange:{},"onUpdate:value":{},emptyText:{default:"--"},request:{},vertical:{type:Boolean,default:!1}},emits:["update:value"],setup(d,{expose:f,emit:v}){const o=d,m=v,a=e.ref(),{options:l,updateOptions:y}=T.default(o),{value:r,updateValue:k}=_.useControllableValue(o,m),{m:q}=V.useNamespace("field-radio"),u=e.ref(!1);e.onMounted(()=>{var t;o.request&&(u.value=!0,(t=o.request)==null||t.call(o).then(n=>y(n)).finally(()=>{u.value=!1}))});const g=e.computed(()=>{var s;const t=e.unref(r);if(c.isNil(t))return o.emptyText;const n=(s=l.value)==null?void 0:s.find(x=>t===p.getOptionValue(x));return p.getOptionLabel(n)||o.emptyText});function B(){var t;(t=a.value)==null||t.focus()}function b(){var t;(t=a.value)==null||t.blur()}return f({focus:B,blur:b}),(t,n)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(g.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u.value?(e.openBlock(),e.createBlock(e.unref(i.Spin),{key:0,size:"small"})):(e.openBlock(),e.createBlock(e.unref(i.RadioGroup),e.mergeProps({key:1},e.unref(c.omit)(o,["value","onUpdate:value","options","request","vertical"]),{value:e.unref(r),"onUpdate:value":e.unref(k),options:e.unref(l),ref_key:"radioGroupRef",ref:a,class:t.vertical?e.unref(q)("vertical"):null}),null,16,["value","onUpdate:value","options","class"]))],64))}});exports.default=h;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ApFieldRateProps } from '../interface';
|
|
2
2
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
3
3
|
import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
|
|
4
|
-
import { Direction } from '
|
|
5
|
-
import { FocusEventHandler, KeyboardEventHandler } from '
|
|
6
|
-
import { VueNode } from '
|
|
4
|
+
import { Direction } from '@aplus-frontend/antdv/es/config-provider';
|
|
5
|
+
import { FocusEventHandler, KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
7
|
import { FieldMode } from '..';
|
|
8
8
|
declare function focus(): void;
|
|
9
9
|
declare function blur(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("lodash-unified");require("../../hooks/index.js");const b=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("lodash-unified");require("../../hooks/index.js");const b=require("@aplus-frontend/antdv"),h=require("../../hooks/useControllableValue.js"),y=e.defineComponent({name:"ApFieldRate",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},count:{default:5},value:{},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},tooltips:{},disabled:{type:Boolean,default:!1},character:{default:void 0},autofocus:{type:Boolean,default:!1},tabindex:{},direction:{},id:{},onChange:{},onHoverChange:{},"onUpdate:value":{},onFocus:{},onBlur:{},onKeydown:{},defaultValue:{}},emits:["update:value"],setup(u,{expose:r,emit:n}){const o=u,l=e.ref(),s=n,d=e.useSlots(),{value:c,updateValue:i}=h.useControllableValue(o,s),f=e.computed(()=>o.mode==="read"?!0:o.disabled);function p(){var t,a;(a=(t=l.value)==null?void 0:t.focus)==null||a.call(t)}function v(){var t,a;(a=(t=l.value)==null?void 0:t.blur)==null||a.call(t)}return r({focus:p,blur:v}),(t,a)=>(e.openBlock(),e.createBlock(e.unref(b.Rate),e.mergeProps(e.unref(m.omit)(o,["mode","defaultValue"]),{value:e.unref(c),"onUpdate:value":e.unref(i),disabled:f.value,ref_key:"rateRef",ref:l}),e.createSlots({_:2},[d.character?{name:"character",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"character")]),key:"0"}:void 0]),1040,["value","onUpdate:value","disabled"]))}});exports.default=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),a=require("lodash-unified");require("../../hooks/index.js");const b=require("../hooks/use-options.js"),B=require("../../hooks/useControllableValue.js"),q=e.defineComponent({name:"ApFieldSegmented",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},options:{},block:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},size:{},value:{},motionName:{},onChange:{},"onUpdate:value":{},emptyText:{default:"--"},defaultValue:{},request:{}},emits:["update:value"],setup(f,{emit:p}){const l=f,{options:s,updateOptions:m}=b.default(l),v=p,{value:i,updateValue:g}=B.useControllableValue(l,v),r=e.ref(!1),k=e.useSlots();e.onMounted(()=>{a.isFunction(l.request)&&(r.value=!0,l.request().then(t=>m(t)).finally(()=>{r.value=!1}))});const y=e.computed(()=>{var d;const t=e.unref(i);if(a.isUndefined(t))return e.createVNode(e.Fragment,null,[l.emptyText]);const n=(d=e.unref(s))==null?void 0:d.find(u=>u===t||(u==null?void 0:u.value)===t);if(a.isString(n)||a.isNumber(n))return e.createVNode(e.Fragment,null,[n]);const o=(n==null?void 0:n.label)||k.label;return a.isFunction(o)?e.createVNode(e.Fragment,null,[o==null?void 0:o({...n})]):e.createVNode(e.Fragment,null,[o||l.emptyText])});return(t,n)=>r.value?(e.openBlock(),e.createBlock(e.unref(c.Spin),{key:0,size:"small"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:0})):(e.openBlock(),e.createBlock(e.unref(c.Segmented),e.mergeProps({key:1},e.unref(a.omit)(l,["onUpdate:value","value","defaultValue","options"]),{value:e.unref(i),"onUpdate:value":e.unref(g),options:e.unref(s)}),{label:e.withCtx(o=>[e.renderSlot(t.$slots,"label",e.normalizeProps(e.guardReactiveProps(o)))]),_:3},16,["value","onUpdate:value","options"]))],64))}});exports.default=q;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DefaultOptionType, SelectValue, LabeledValue } from '
|
|
1
|
+
import { DefaultOptionType, SelectValue, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
2
2
|
import { ApFieldSelectProps } from '../interface';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
|
-
import { ButtonSize } from '
|
|
6
|
-
import { VueNode, CustomSlotsType } from '
|
|
7
|
-
import { SelectHandler, FieldNames, FilterFunc } from '
|
|
8
|
-
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '
|
|
9
|
-
import { AlignType } from '
|
|
5
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
|
+
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
|
+
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
8
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
9
|
+
import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
10
10
|
import { FieldMode } from '..';
|
|
11
11
|
type ApFieldSelectSlots = {
|
|
12
12
|
notFoundContent: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("lodash-unified"),S=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../../utils/index.js"),T=require("../hooks/use-default-placeholder.js"),_=require("../hooks/use-options.js"),A=require("../../hooks/useControllableValue.js"),U={key:0},D=t.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},onBeforeSelect:{}},emits:["update:value"],setup(w,{expose:B,emit:g}){let u=0;const b=i.debounce(o=>{if(!i.isFunction(e.request))return;u+=1;const n=u;s([]),r.value=!0,e.request(o).then(l=>{u===n&&s(l)}).finally(()=>{r.value=!1})},300),e=w,F=(o,n)=>{var a;const l=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(n==null?void 0:n[l])=="string"&&n[l].indexOf(o)>-1},{options:c,updateOptions:s}=_.default(e),f=t.ref(),r=t.ref((e==null?void 0:e.loading)||!1),C=g;async function p(o=!0){if(!i.isFunction(e.request))return;r.value=!0,u+=1;const n=u;try{o&&s([]);const l=await e.request();if(n!==u)return;s(l)}finally{r.value=!1}}function q(o){var n;(n=e.onFocus)==null||n.call(e,o),e.refetchOnFocus&&u>0&&!r.value&&p(!0)}t.onMounted(()=>{if(e.lazy){u+=1;return}p()});const{value:v,updateValue:x}=A.useControllableValue(e,C,{beforeUpdateValue:e.onBeforeSelect}),N=T.useDefaultPlaceholder("Select",e),O=t.computed(()=>{var d,h;const o=t.unref(v);if(!o)return e.emptyText;const n=((d=e.fieldNames)==null?void 0:d.label)||"label",l=((h=e.fieldNames)==null?void 0:h.value)||"value";if(i.isArray(o))return o.map(m=>{var y;return(y=t.unref(c).find(M=>M[l]===m))==null?void 0:y[n]}).filter(Boolean).join("、")||e.emptyText;const a=t.unref(c).find(m=>m[l]===o);return(a==null?void 0:a[n])||e.emptyText}),I=t.computed(()=>{const o=!!(e!=null&&e.showSearch),n=e.searchMode;let l={};return o&&(l=n==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:b,notFoundContent:r.value?void 0:null}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?F:e==null?void 0:e.filterOption}),{...k.omitUndefined(i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus"])),placeholder:t.unref(N),...l}});function P(){var o;(o=f.value)==null||o.focus()}function V(){var o;(o=f.value)==null||o.blur()}return B({focus:P,blur:V,request:p}),(o,n)=>o.mode==="read"?(t.openBlock(),t.createElementBlock("span",U,t.toDisplayString(O.value),1)):(t.openBlock(),t.createBlock(t.unref(S.Select),t.mergeProps({key:1,"allow-clear":"",ref_key:"selectRef",ref:f},I.value,{mode:o.multiple?"multiple":void 0,value:t.unref(v),"onUpdate:value":t.unref(x),options:t.unref(c),loading:r.value,onFocus:q}),t.createSlots({_:2},[t.renderList(o.$slots,(l,a)=>({name:a,fn:t.withCtx(d=>[t.renderSlot(o.$slots,a,t.normalizeProps(t.guardReactiveProps(d||{})))])})),r.value?{name:"notFoundContent",fn:t.withCtx(()=>[t.createVNode(t.unref(S.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","onUpdate:value","options","loading"]))}});exports.default=D;
|