@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,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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as N, computed as x, unref as t, openBlock as r, createElementBlock as n, Fragment as D, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as P, toDisplayString as V, createBlock as $, mergeProps as R, createSlots as A, renderList as I, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
|
|
2
|
-
import { InputNumber as F } from "
|
|
2
|
+
import { InputNumber as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, omit as T } from "lodash-unified";
|
|
5
5
|
import { roundWith as _, toDecimalMark as w } from "@fruits-chain/utils";
|
|
@@ -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,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as G, RadioGroup as N } from "
|
|
1
|
+
import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, openBlock as l, createElementBlock as m, Fragment as c, createTextVNode as R, toDisplayString as U, createBlock as d, mergeProps as h } from "vue";
|
|
2
|
+
import { Spin as G, RadioGroup as N } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as S, omit as z } from "lodash-unified";
|
|
5
|
-
import { getOptionValue as F, getOptionLabel as
|
|
5
|
+
import { getOptionValue as F, getOptionLabel as A } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import D from "../hooks/use-options.mjs";
|
|
8
|
+
import { useControllableValue as E } from "../../hooks/useControllableValue.mjs";
|
|
9
|
+
import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const W = /* @__PURE__ */ q({
|
|
10
11
|
name: "ApFieldRadio",
|
|
11
12
|
__name: "index",
|
|
12
13
|
props: {
|
|
@@ -30,36 +31,36 @@ const J = /* @__PURE__ */ _({
|
|
|
30
31
|
},
|
|
31
32
|
emits: ["update:value"],
|
|
32
33
|
setup(f, { expose: v, emit: y }) {
|
|
33
|
-
const t = f, g = y, n =
|
|
34
|
-
|
|
34
|
+
const t = f, g = y, n = p(), { options: u, updateOptions: k } = D(t), { value: i, updateValue: x } = E(t, g), { m: b } = L("field-radio"), r = p(!1);
|
|
35
|
+
C(() => {
|
|
35
36
|
var e;
|
|
36
|
-
t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) =>
|
|
37
|
+
t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => k(a)).finally(() => {
|
|
37
38
|
r.value = !1;
|
|
38
39
|
}));
|
|
39
40
|
});
|
|
40
|
-
const
|
|
41
|
-
var
|
|
42
|
-
const e = o(
|
|
41
|
+
const T = O(() => {
|
|
42
|
+
var s;
|
|
43
|
+
const e = o(i);
|
|
43
44
|
if (S(e))
|
|
44
45
|
return t.emptyText;
|
|
45
|
-
const a = (
|
|
46
|
-
(
|
|
46
|
+
const a = (s = u.value) == null ? void 0 : s.find(
|
|
47
|
+
(_) => e === F(_)
|
|
47
48
|
);
|
|
48
|
-
return
|
|
49
|
+
return A(a) || t.emptyText;
|
|
49
50
|
});
|
|
50
|
-
function
|
|
51
|
+
function B() {
|
|
51
52
|
var e;
|
|
52
53
|
(e = n.value) == null || e.focus();
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function V() {
|
|
55
56
|
var e;
|
|
56
57
|
(e = n.value) == null || e.blur();
|
|
57
58
|
}
|
|
58
59
|
return v({
|
|
59
|
-
focus:
|
|
60
|
-
blur:
|
|
60
|
+
focus: B,
|
|
61
|
+
blur: V
|
|
61
62
|
}), (e, a) => e.mode === "read" ? (l(), m(c, { key: 0 }, [
|
|
62
|
-
R(U(
|
|
63
|
+
R(U(T.value), 1)
|
|
63
64
|
], 64)) : (l(), m(c, { key: 1 }, [
|
|
64
65
|
r.value ? (l(), d(o(G), {
|
|
65
66
|
key: 0,
|
|
@@ -74,17 +75,17 @@ const J = /* @__PURE__ */ _({
|
|
|
74
75
|
"vertical"
|
|
75
76
|
]),
|
|
76
77
|
{
|
|
77
|
-
value: o(
|
|
78
|
-
"onUpdate:value": o(
|
|
79
|
-
options: u
|
|
78
|
+
value: o(i),
|
|
79
|
+
"onUpdate:value": o(x),
|
|
80
|
+
options: o(u),
|
|
80
81
|
ref_key: "radioGroupRef",
|
|
81
82
|
ref: n,
|
|
82
|
-
class: e.vertical ? o(
|
|
83
|
+
class: e.vertical ? o(b)("vertical") : null
|
|
83
84
|
}
|
|
84
85
|
), null, 16, ["value", "onUpdate:value", "options", "class"]))
|
|
85
86
|
], 64));
|
|
86
87
|
}
|
|
87
88
|
});
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
W as default
|
|
90
91
|
};
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as v, ref as b, useSlots as h, computed as y, openBlock as B, createBlock as C, unref as o, mergeProps as _, createSlots as x, withCtx as g, renderSlot as k } from "vue";
|
|
2
2
|
import { omit as w } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { Rate as R } from "
|
|
4
|
+
import { Rate as R } from "@aplus-frontend/antdv";
|
|
5
5
|
import { useControllableValue as V } from "../../hooks/useControllableValue.mjs";
|
|
6
6
|
const D = /* @__PURE__ */ v({
|
|
7
7
|
name: "ApFieldRate",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { isFunction as
|
|
1
|
+
import { defineComponent as S, ref as B, useSlots as U, onMounted as V, computed as _, unref as l, createVNode as s, Fragment as a, openBlock as r, createBlock as d, createElementBlock as h, resolveDynamicComponent as N, mergeProps as q, withCtx as z, renderSlot as F, normalizeProps as P, guardReactiveProps as T } from "vue";
|
|
2
|
+
import { Spin as O, Segmented as R } from "@aplus-frontend/antdv";
|
|
3
|
+
import { isFunction as c, isUndefined as w, isString as A, isNumber as D, omit as E } from "lodash-unified";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import M from "../hooks/use-options.mjs";
|
|
6
|
+
import { useControllableValue as $ } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const L = /* @__PURE__ */ S({
|
|
7
8
|
name: "ApFieldSegmented",
|
|
8
9
|
__name: "index",
|
|
9
10
|
props: {
|
|
@@ -34,50 +35,53 @@ const J = /* @__PURE__ */ S({
|
|
|
34
35
|
request: {}
|
|
35
36
|
},
|
|
36
37
|
emits: ["update:value"],
|
|
37
|
-
setup(
|
|
38
|
-
emit:
|
|
38
|
+
setup(v, {
|
|
39
|
+
emit: y
|
|
39
40
|
}) {
|
|
40
|
-
const
|
|
41
|
+
const o = v, {
|
|
42
|
+
options: m,
|
|
43
|
+
updateOptions: g
|
|
44
|
+
} = M(o), k = y, {
|
|
41
45
|
value: p,
|
|
42
46
|
updateValue: b
|
|
43
|
-
} =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
} = $(o, k), i = B(!1), x = U();
|
|
48
|
+
V(() => {
|
|
49
|
+
c(o.request) && (i.value = !0, o.request().then((e) => g(e)).finally(() => {
|
|
50
|
+
i.value = !1;
|
|
47
51
|
}));
|
|
48
52
|
});
|
|
49
|
-
const C =
|
|
53
|
+
const C = _(() => {
|
|
50
54
|
var f;
|
|
51
|
-
const
|
|
52
|
-
if (w(
|
|
53
|
-
return s(
|
|
54
|
-
const
|
|
55
|
-
if (A(
|
|
56
|
-
return s(
|
|
57
|
-
const n = (
|
|
58
|
-
return
|
|
59
|
-
...
|
|
60
|
-
})]) : s(
|
|
55
|
+
const e = l(p);
|
|
56
|
+
if (w(e))
|
|
57
|
+
return s(a, null, [o.emptyText]);
|
|
58
|
+
const t = (f = l(m)) == null ? void 0 : f.find((u) => u === e || (u == null ? void 0 : u.value) === e);
|
|
59
|
+
if (A(t) || D(t))
|
|
60
|
+
return s(a, null, [t]);
|
|
61
|
+
const n = (t == null ? void 0 : t.label) || x.label;
|
|
62
|
+
return c(n) ? s(a, null, [n == null ? void 0 : n({
|
|
63
|
+
...t
|
|
64
|
+
})]) : s(a, null, [n || o.emptyText]);
|
|
61
65
|
});
|
|
62
|
-
return (
|
|
66
|
+
return (e, t) => i.value ? (r(), d(l(O), {
|
|
63
67
|
key: 0,
|
|
64
68
|
size: "small"
|
|
65
|
-
})) : (r(),
|
|
69
|
+
})) : (r(), h(a, {
|
|
66
70
|
key: 1
|
|
67
|
-
}, [
|
|
71
|
+
}, [e.mode === "read" ? (r(), d(N(C.value), {
|
|
68
72
|
key: 0
|
|
69
|
-
})) : (r(),
|
|
73
|
+
})) : (r(), d(l(R), q({
|
|
70
74
|
key: 1
|
|
71
|
-
},
|
|
72
|
-
value:
|
|
73
|
-
"onUpdate:value":
|
|
74
|
-
options:
|
|
75
|
+
}, l(E)(o, ["onUpdate:value", "value", "defaultValue", "options"]), {
|
|
76
|
+
value: l(p),
|
|
77
|
+
"onUpdate:value": l(b),
|
|
78
|
+
options: l(m)
|
|
75
79
|
}), {
|
|
76
|
-
label:
|
|
80
|
+
label: z((n) => [F(e.$slots, "label", P(T(n)))]),
|
|
77
81
|
_: 3
|
|
78
82
|
}, 16, ["value", "onUpdate:value", "options"]))], 64));
|
|
79
83
|
}
|
|
80
84
|
});
|
|
81
85
|
export {
|
|
82
|
-
|
|
86
|
+
L as default
|
|
83
87
|
};
|
|
@@ -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,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { debounce as
|
|
3
|
-
import { Select as
|
|
1
|
+
import { defineComponent as _, ref as y, onMounted as R, computed as S, unref as a, openBlock as w, createElementBlock as U, toDisplayString as z, createBlock as D, mergeProps as L, createSlots as K, renderList as H, withCtx as B, renderSlot as $, normalizeProps as j, guardReactiveProps as E, createVNode as W } from "vue";
|
|
2
|
+
import { debounce as G, isFunction as g, isArray as J, isNil as Q, omit as X } from "lodash-unified";
|
|
3
|
+
import { Select as Y, Spin as Z } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { omitUndefined as
|
|
6
|
-
import { useDefaultPlaceholder as
|
|
7
|
-
import
|
|
8
|
-
|
|
5
|
+
import { omitUndefined as ee } from "../../utils/index.mjs";
|
|
6
|
+
import { useDefaultPlaceholder as oe } from "../hooks/use-default-placeholder.mjs";
|
|
7
|
+
import te from "../hooks/use-options.mjs";
|
|
8
|
+
import { useControllableValue as le } from "../../hooks/useControllableValue.mjs";
|
|
9
|
+
const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
9
10
|
name: "ApFieldSelect",
|
|
10
11
|
__name: "index",
|
|
11
12
|
props: {
|
|
@@ -94,80 +95,80 @@ const te = { key: 0 }, se = /* @__PURE__ */ T({
|
|
|
94
95
|
onBeforeSelect: {}
|
|
95
96
|
},
|
|
96
97
|
emits: ["update:value"],
|
|
97
|
-
setup(
|
|
98
|
-
let
|
|
99
|
-
const
|
|
100
|
-
if (!
|
|
98
|
+
setup(F, { expose: b, emit: C }) {
|
|
99
|
+
let r = 0;
|
|
100
|
+
const N = G((o) => {
|
|
101
|
+
if (!g(e.request))
|
|
101
102
|
return;
|
|
102
|
-
|
|
103
|
-
const t =
|
|
104
|
-
i
|
|
105
|
-
|
|
103
|
+
r += 1;
|
|
104
|
+
const t = r;
|
|
105
|
+
i([]), u.value = !0, e.request(o).then((l) => {
|
|
106
|
+
r === t && i(l);
|
|
106
107
|
}).finally(() => {
|
|
107
|
-
|
|
108
|
+
u.value = !1;
|
|
108
109
|
});
|
|
109
|
-
}, 300), e =
|
|
110
|
-
var
|
|
111
|
-
const l = ((
|
|
110
|
+
}, 300), e = F, x = (o, t) => {
|
|
111
|
+
var n;
|
|
112
|
+
const l = ((n = e.fieldNames) == null ? void 0 : n.label) || "label";
|
|
112
113
|
return typeof (t == null ? void 0 : t[l]) == "string" && t[l].indexOf(o) > -1;
|
|
113
|
-
},
|
|
114
|
-
async function
|
|
115
|
-
if (!
|
|
114
|
+
}, { options: s, updateOptions: i } = te(e), c = y(), u = y((e == null ? void 0 : e.loading) || !1), I = C;
|
|
115
|
+
async function f(o = !0) {
|
|
116
|
+
if (!g(e.request))
|
|
116
117
|
return;
|
|
117
|
-
|
|
118
|
-
const t =
|
|
118
|
+
u.value = !0, r += 1;
|
|
119
|
+
const t = r;
|
|
119
120
|
try {
|
|
120
|
-
o && (
|
|
121
|
+
o && i([]);
|
|
121
122
|
const l = await e.request();
|
|
122
|
-
if (t !==
|
|
123
|
+
if (t !== r)
|
|
123
124
|
return;
|
|
124
|
-
i
|
|
125
|
+
i(l);
|
|
125
126
|
} finally {
|
|
126
|
-
|
|
127
|
+
u.value = !1;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function O(o) {
|
|
130
131
|
var t;
|
|
131
|
-
(t = e.onFocus) == null || t.call(e, o), e.refetchOnFocus &&
|
|
132
|
+
(t = e.onFocus) == null || t.call(e, o), e.refetchOnFocus && r > 0 && !u.value && f(!0);
|
|
132
133
|
}
|
|
133
|
-
|
|
134
|
+
R(() => {
|
|
134
135
|
if (e.lazy) {
|
|
135
|
-
|
|
136
|
+
r += 1;
|
|
136
137
|
return;
|
|
137
138
|
}
|
|
138
|
-
|
|
139
|
+
f();
|
|
139
140
|
});
|
|
140
|
-
const { value: m, updateValue: V } =
|
|
141
|
+
const { value: m, updateValue: V } = le(e, I, { beforeUpdateValue: e.onBeforeSelect }), P = oe("Select", e), k = S(() => {
|
|
141
142
|
var d, v;
|
|
142
|
-
const o =
|
|
143
|
+
const o = a(m);
|
|
143
144
|
if (!o)
|
|
144
145
|
return e.emptyText;
|
|
145
146
|
const t = ((d = e.fieldNames) == null ? void 0 : d.label) || "label", l = ((v = e.fieldNames) == null ? void 0 : v.value) || "value";
|
|
146
|
-
if (
|
|
147
|
+
if (J(o))
|
|
147
148
|
return o.map(
|
|
148
|
-
(
|
|
149
|
+
(p) => {
|
|
149
150
|
var h;
|
|
150
|
-
return (h =
|
|
151
|
+
return (h = a(s).find((T) => T[l] === p)) == null ? void 0 : h[t];
|
|
151
152
|
}
|
|
152
153
|
).filter(Boolean).join("、") || e.emptyText;
|
|
153
|
-
const
|
|
154
|
-
(
|
|
154
|
+
const n = a(s).find(
|
|
155
|
+
(p) => p[l] === o
|
|
155
156
|
);
|
|
156
|
-
return (
|
|
157
|
-
}),
|
|
157
|
+
return (n == null ? void 0 : n[t]) || e.emptyText;
|
|
158
|
+
}), q = S(() => {
|
|
158
159
|
const o = !!(e != null && e.showSearch), t = e.searchMode;
|
|
159
160
|
let l = {};
|
|
160
161
|
return o && (l = t === "request" ? {
|
|
161
162
|
showArrow: !1,
|
|
162
163
|
defaultActiveFirstOption: !1,
|
|
163
|
-
onSearch:
|
|
164
|
-
notFoundContent:
|
|
164
|
+
onSearch: N,
|
|
165
|
+
notFoundContent: u.value ? void 0 : null
|
|
165
166
|
} : {
|
|
166
167
|
showArrow: !0,
|
|
167
|
-
filterOption:
|
|
168
|
+
filterOption: Q(e == null ? void 0 : e.filterOption) ? x : e == null ? void 0 : e.filterOption
|
|
168
169
|
}), {
|
|
169
|
-
...
|
|
170
|
-
|
|
170
|
+
...ee(
|
|
171
|
+
X(e, [
|
|
171
172
|
"mode",
|
|
172
173
|
"value",
|
|
173
174
|
"onUpdate:value",
|
|
@@ -177,45 +178,45 @@ const te = { key: 0 }, se = /* @__PURE__ */ T({
|
|
|
177
178
|
"onFocus"
|
|
178
179
|
])
|
|
179
180
|
),
|
|
180
|
-
placeholder:
|
|
181
|
+
placeholder: a(P),
|
|
181
182
|
...l
|
|
182
183
|
};
|
|
183
184
|
});
|
|
184
|
-
function
|
|
185
|
+
function A() {
|
|
185
186
|
var o;
|
|
186
|
-
(o =
|
|
187
|
+
(o = c.value) == null || o.focus();
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function M() {
|
|
189
190
|
var o;
|
|
190
|
-
(o =
|
|
191
|
+
(o = c.value) == null || o.blur();
|
|
191
192
|
}
|
|
192
|
-
return
|
|
193
|
-
focus:
|
|
194
|
-
blur:
|
|
195
|
-
request:
|
|
196
|
-
}), (o, t) => o.mode === "read" ? (
|
|
193
|
+
return b({
|
|
194
|
+
focus: A,
|
|
195
|
+
blur: M,
|
|
196
|
+
request: f
|
|
197
|
+
}), (o, t) => o.mode === "read" ? (w(), U("span", ne, z(k.value), 1)) : (w(), D(a(Y), L({
|
|
197
198
|
key: 1,
|
|
198
199
|
"allow-clear": "",
|
|
199
200
|
ref_key: "selectRef",
|
|
200
|
-
ref:
|
|
201
|
-
},
|
|
201
|
+
ref: c
|
|
202
|
+
}, q.value, {
|
|
202
203
|
mode: o.multiple ? "multiple" : void 0,
|
|
203
|
-
value:
|
|
204
|
-
"onUpdate:value":
|
|
205
|
-
options:
|
|
206
|
-
loading:
|
|
207
|
-
onFocus:
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
name:
|
|
211
|
-
fn:
|
|
212
|
-
|
|
204
|
+
value: a(m),
|
|
205
|
+
"onUpdate:value": a(V),
|
|
206
|
+
options: a(s),
|
|
207
|
+
loading: u.value,
|
|
208
|
+
onFocus: O
|
|
209
|
+
}), K({ _: 2 }, [
|
|
210
|
+
H(o.$slots, (l, n) => ({
|
|
211
|
+
name: n,
|
|
212
|
+
fn: B((d) => [
|
|
213
|
+
$(o.$slots, n, j(E(d || {})))
|
|
213
214
|
])
|
|
214
215
|
})),
|
|
215
|
-
|
|
216
|
+
u.value ? {
|
|
216
217
|
name: "notFoundContent",
|
|
217
|
-
fn:
|
|
218
|
-
|
|
218
|
+
fn: B(() => [
|
|
219
|
+
W(a(Z), { size: "small" })
|
|
219
220
|
]),
|
|
220
221
|
key: "0"
|
|
221
222
|
} : void 0
|
|
@@ -223,5 +224,5 @@ const te = { key: 0 }, se = /* @__PURE__ */ T({
|
|
|
223
224
|
}
|
|
224
225
|
});
|
|
225
226
|
export {
|
|
226
|
-
|
|
227
|
+
pe as default
|
|
227
228
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ApFieldSliderProps } from '../interface';
|
|
2
2
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
3
|
-
import { SliderRange, SliderMarks } from '
|
|
4
|
-
import { TooltipPlacement } from '
|
|
5
|
-
import { FocusEventHandler } from '
|
|
6
|
-
import { VueNode, CustomSlotsType } from '
|
|
3
|
+
import { SliderRange, SliderMarks } from '@aplus-frontend/antdv/es/slider';
|
|
4
|
+
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
5
|
+
import { FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
7
|
type ApFieldSliderSlots = {
|
|
8
8
|
default?: any;
|
|
9
9
|
mark?: (option: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, useSlots as g, ref as k, computed as C, unref as o, openBlock as u, createElementBlock as S, Fragment as _, createTextVNode as P, toDisplayString as T, createBlock as V, mergeProps as b, createSlots as h, renderList as F, withCtx as R, renderSlot as U, normalizeProps as A, guardReactiveProps as $ } from "vue";
|
|
2
|
-
import { Slider as N } from "
|
|
2
|
+
import { Slider as N } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as w, isArray as z, omit as D } from "lodash-unified";
|
|
5
5
|
import { useControllableValue as E } from "../../hooks/useControllableValue.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as F, useSlots as U, ref as z, unref as o, computed as D, createVNode as u, Fragment as s, openBlock as h, createBlock as k, resolveDynamicComponent as T, createElementBlock as E, mergeProps as p, createSlots as g, renderList as V, withCtx as C, renderSlot as v, normalizeProps as B, guardReactiveProps as w } from "vue";
|
|
2
|
-
import { Switch as A, Popconfirm as K } from "
|
|
2
|
+
import { Switch as A, Popconfirm as K } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as L, omit as P } from "lodash-unified";
|
|
5
5
|
import { isDef as f } from "@fruits-chain/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFieldTextProps } from '../interface';
|
|
2
|
-
import { InputFocusOptions } from '
|
|
2
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import { FieldMode } from '..';
|
|
5
5
|
type ApFieldTextSlots = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode as v, defineComponent as B, ref as g, useSlots as h, computed as b, createVNode as i, mergeProps as C, unref as u, Fragment as S, openBlock as _, createBlock as R, resolveDynamicComponent as T } from "vue";
|
|
2
|
-
import { Input as V } from "
|
|
2
|
+
import { Input as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { omit as j } from "lodash-unified";
|
|
5
5
|
import { useDefaultPlaceholder as F } from "../hooks/use-default-placeholder.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode as x, defineComponent as h, ref as C, useSlots as g, unref as i, createVNode as o, mergeProps as P, Fragment as w, openBlock as V, createBlock as _, resolveDynamicComponent as S } from "vue";
|
|
2
|
-
import { Input as T, Space as U } from "
|
|
2
|
+
import { Input as T, Space as U } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { omit as O } from "lodash-unified";
|
|
5
5
|
import { EyeOutlined as j, EyeInvisibleOutlined as k } from "@ant-design/icons-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFieldTextAreaProps } from '../interface';
|
|
2
|
-
import { InputFocusOptions } from '
|
|
2
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import { FieldMode } from '..';
|
|
5
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextAreaProps>, {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as f, ref as y, computed as x, openBlock as r, createEl
|
|
|
2
2
|
import { isNil as z, omit as A } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { Input as g } from "
|
|
5
|
+
import { Input as g } from "@aplus-frontend/antdv";
|
|
6
6
|
import { useDefaultPlaceholder as T } from "../hooks/use-default-placeholder.mjs";
|
|
7
7
|
import { useControllableValue as k } from "../../hooks/useControllableValue.mjs";
|
|
8
8
|
import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ApFormProps, RegistedFieldType, WatchFunc } from './interface';
|
|
2
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
4
4
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { RequiredMark } from '
|
|
7
|
-
import { RuleObject } from '
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
7
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
|
-
import { SizeType } from '
|
|
10
|
-
import { SizeType } from '
|
|
11
|
-
import { VueNode } from '
|
|
9
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
12
|
/**
|
|
13
13
|
* 订阅事件
|
|
14
14
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as D, ref as L, reactive as k, nextTick as K, toRaw as b, computed as $, openBlock as G, createBlock as H, unref as B, mergeProps as J, withCtx as Q, renderSlot as U } from "vue";
|
|
2
|
-
import { Form as X } from "
|
|
2
|
+
import { Form as X } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useProvideForm as Y } from "./context.mjs";
|
|
4
4
|
import { isArray as f, cloneDeep as I, isFunction as m, isPlainObject as _, omit as Z } from "lodash-unified";
|
|
5
5
|
import { INTERNAL_FORM_INSTANCE_MARK as ee } from "./constant.mjs";
|