@aplus-frontend/ui 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/group/index.vue.mjs +1 -1
- package/es/src/ap-action/interface.d.ts +1 -1
- package/es/src/ap-action/item/index.vue2.mjs +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.mjs +1 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-modal/index.vue.mjs +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +1 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-button/interface.d.ts +1 -1
- package/es/src/ap-custom-column/column-select.vue.mjs +1 -1
- package/es/src/ap-custom-column/custom-column.vue.mjs +1 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +1 -1
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-download/interface.d.ts +1 -1
- package/es/src/ap-field/checkbox/helper.d.ts +3 -3
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/constant.d.ts +1 -1
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/interface.d.ts +4 -4
- package/es/src/ap-field/number/index.vue.d.ts +4 -4
- package/es/src/ap-field/number/index.vue.mjs +1 -1
- package/es/src/ap-field/radio/helper.d.ts +1 -1
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +3 -3
- package/es/src/ap-field/rate/index.vue.mjs +1 -1
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +4 -4
- package/es/src/ap-field/slider/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +1 -1
- package/es/src/ap-field/text/input-password-props.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +2 -2
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item.vue.d.ts +4 -4
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -2
- 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/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +3 -3
- 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/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/drawer.vue.d.ts +6 -6
- package/es/src/ap-form/modal-form/drawer.vue.mjs +1 -1
- 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-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 -2
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/utils.d.ts +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +36 -60
- package/es/src/ap-table/context.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/es/src/ap-table/interface.d.ts +3 -3
- package/es/src/ap-table/utils.d.ts +6 -6
- 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/base-button/button.vue2.mjs +1 -1
- package/es/src/base-button/pop-confirm-button.vue.mjs +1 -1
- package/es/src/basic/help.vue.d.ts +1 -1
- package/es/src/basic/help.vue2.mjs +1 -1
- package/es/src/basic/index.d.ts +1 -1
- package/es/src/basic/interface.d.ts +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/interface.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-button-group/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +1 -1
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +1 -1
- package/es/src/business/ap-export-group/handleExportDownload.mjs +1 -1
- package/es/src/business/ap-export-group/interface.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/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/ApLabelGroup.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/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/interface.d.ts +1 -1
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +5 -5
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +1 -1
- package/es/src/business/ap-title/ApTitle.vue2.mjs +1 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/es/src/business/index.d.ts +14 -14
- package/es/src/check-card/group.vue.mjs +1 -1
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +8 -8
- package/es/src/config-provider/config-provider-props.mjs +1 -1
- package/es/src/config-provider/config-provider.d.ts +8 -8
- package/es/src/config-provider/config-provider.mjs +1 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/es/src/config-provider/index.d.ts +8 -8
- package/es/src/container/collapse/index.vue2.mjs +1 -1
- package/es/src/count-down/button.vue2.mjs +1 -1
- package/es/src/count-down/input.vue2.mjs +1 -1
- package/es/src/count-down/interface.d.ts +1 -1
- package/es/src/cropper/cropper-avatar.vue2.mjs +1 -1
- package/es/src/cropper/cropper-modal.vue2.mjs +1 -1
- package/es/src/description/description.vue2.mjs +1 -1
- package/es/src/description/interface.d.ts +1 -1
- package/es/src/design-token/index.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue2.mjs +1 -1
- package/es/src/editable-table/form-item.vue.mjs +1 -1
- 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 +5 -5
- package/es/src/editable-table/utils.mjs +1 -1
- package/es/src/hooks/useMessage.d.ts +4 -4
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon-picker/icon-picker.vue2.mjs +1 -1
- package/es/src/modal/basic.vue.d.ts +2 -2
- package/es/src/modal/components/modal-close.vue2.mjs +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal-footer.vue2.mjs +1 -1
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/components/modal.mjs +1 -1
- package/es/src/modal/index.d.ts +4 -4
- package/es/src/modal/interface.d.ts +1 -1
- package/es/src/modal/props.d.ts +2 -2
- package/es/src/pro-form/component-map.mjs +1 -1
- package/es/src/pro-form/components/api-cascader.vue.mjs +1 -1
- package/es/src/pro-form/components/api-radio-group.vue.mjs +1 -1
- package/es/src/pro-form/components/api-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-transfer.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree.vue.mjs +1 -1
- package/es/src/pro-form/components/form-action.vue2.mjs +1 -1
- package/es/src/pro-form/components/form-item.vue2.mjs +1 -1
- package/es/src/pro-form/components/interface.d.ts +4 -4
- package/es/src/pro-form/components/radio-button-group.vue.mjs +1 -1
- package/es/src/pro-form/helper.d.ts +1 -1
- package/es/src/pro-form/hooks/use-break-point.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-events.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.d.ts +8 -8
- package/es/src/pro-form/pro-form.vue.mjs +1 -1
- package/es/src/pro-form/table-form-inner.vue.mjs +1 -1
- package/es/src/pro-form/table-form.vue.d.ts +1 -1
- package/es/src/pro-form/table-form.vue.mjs +1 -1
- package/es/src/pro-form/types/form-item.d.ts +2 -2
- package/es/src/pro-form/types/form.d.ts +2 -2
- package/es/src/pro-form/types/index.d.ts +25 -25
- package/es/src/pro-form/types/table-form.d.ts +2 -2
- package/es/src/pro-table/component-map.mjs +1 -1
- package/es/src/pro-table/components/editable/cell-component.mjs +1 -1
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +1 -1
- package/es/src/pro-table/components/header-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +1 -1
- package/es/src/pro-table/components/table-action.vue.mjs +1 -1
- package/es/src/pro-table/components/table-footer.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-footer.vue2.mjs +1 -1
- package/es/src/pro-table/components/table-header.vue2.mjs +1 -1
- package/es/src/pro-table/components/table-image.vue.mjs +1 -1
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +1 -1
- package/es/src/pro-table/hooks/use-columns.d.ts +1 -1
- package/es/src/pro-table/hooks/use-custom-row.d.ts +1 -1
- package/es/src/pro-table/hooks/use-data-source.d.ts +2 -2
- package/es/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-expand.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +13 -13
- package/es/src/pro-table/pro-table.vue.mjs +1 -1
- package/es/src/pro-table/types/pagination.d.ts +1 -1
- package/es/src/pro-table/types/table-action.d.ts +2 -2
- package/es/src/pro-table/types/table.d.ts +3 -3
- package/es/src/prompt/dialog.vue2.mjs +1 -1
- package/es/src/strength-meter/strength-meter.vue2.mjs +1 -1
- package/es/src/utils/config-provider-preset.d.ts +10 -10
- package/es/src/utils/copy-text-to-clipboard.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +1 -1
- package/es/src/work-order-modal/interfaces.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -1
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +3 -3
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/constant.d.ts +1 -1
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +4 -4
- 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-item-group/index.vue.d.ts +2 -2
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +4 -4
- package/lib/src/ap-form/ap-form-item.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/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -3
- 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/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/drawer.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/drawer.vue.js +1 -1
- 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-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/index.d.ts +1 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +1 -1
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +36 -60
- package/lib/src/ap-table/context.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/lib/src/ap-table/interface.d.ts +3 -3
- package/lib/src/ap-table/utils.d.ts +6 -6
- 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/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/help.vue.d.ts +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.d.ts +1 -1
- package/lib/src/basic/interface.d.ts +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/interface.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- 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/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/ApLabelGroup.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/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/interface.d.ts +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +5 -5
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/lib/src/business/index.d.ts +14 -14
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +8 -8
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +8 -8
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/lib/src/config-provider/index.d.ts +8 -8
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.d.ts +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/interface.d.ts +1 -1
- package/lib/src/design-token/index.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- 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 +5 -5
- 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/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/components/modal.js +1 -1
- package/lib/src/modal/index.d.ts +4 -4
- package/lib/src/modal/interface.d.ts +1 -1
- package/lib/src/modal/props.d.ts +2 -2
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-cascader.vue.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.js +1 -1
- package/lib/src/pro-form/components/api-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-transfer.vue.js +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.js +1 -1
- package/lib/src/pro-form/components/api-tree.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.d.ts +4 -4
- package/lib/src/pro-form/components/radio-button-group.vue.js +1 -1
- package/lib/src/pro-form/helper.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-form-events.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +8 -8
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/table-form-inner.vue.js +1 -1
- package/lib/src/pro-form/table-form.vue.d.ts +1 -1
- package/lib/src/pro-form/table-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.d.ts +2 -2
- package/lib/src/pro-form/types/form.d.ts +2 -2
- package/lib/src/pro-form/types/index.d.ts +25 -25
- package/lib/src/pro-form/types/table-form.d.ts +2 -2
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/cell-component.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-image.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-columns.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-custom-row.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +2 -2
- package/lib/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-expand.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +13 -13
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.d.ts +1 -1
- package/lib/src/pro-table/types/table-action.d.ts +2 -2
- package/lib/src/pro-table/types/table.d.ts +3 -3
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +10 -10
- package/lib/src/utils/copy-text-to-clipboard.js +1 -1
- 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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./index.css");const W=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./index.css");const W=require("@aplus-frontend/antdv");require("../config-provider/index.js");const L=require("lodash-unified"),M=require("../config-provider/hooks/use-namespace.js"),q=require("../config-provider/hooks/use-global-config.js"),$=88,j=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},onClick:{}},setup(m){const t=m,c={aplus:"#0070FF",admin:"#34b77c"},{b:d}=M.useNamespace("ap-action-button"),g=q.useGlobalConfig("uiMode"),u=e.ref(!1),y=e.computed(()=>t.borderLinkColor||c[g.value]||c.aplus),f=e.computed(()=>t.type==="borderLink"?y.value:void 0),p=e.computed(()=>B(f.value)),v=e.computed(()=>t.minWidth===!0?`${$}px`:typeof t.minWidth=="number"?`${t.minWidth}px`:typeof t.minWidth=="string"?t.minWidth:void 0),h=e.computed(()=>(t.type==="borderLink"?"default":t.type)||"default"),b=e.computed(()=>t.loading??u.value??!1);function C(){const o=L.omit(t,["type","borderLinkColor","minWidth","onClick","loading"]);return o?{...o,type:h.value,onclick:k}:{}}async function k(){var o;if(!b.value){u.value=!0;try{await((o=t.onClick)==null?void 0:o.call(t))}finally{u.value=!1}}}function B(o,s="0.7"){var i;try{let n=o==null?void 0:o.toLowerCase();if(n&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)){if(n.length===4){let l="#";for(let a=1;a<4;a+=1)l+=n.slice(a,a+1).concat(n.slice(a,a+1));n=l}const r=[];for(let l=1;l<7;l+=2)r.push(parseInt("0x"+n.slice(l,l+2)));return"rgba("+r.join(",")+","+s+")"}if(n&&n.startsWith("rgb")){let r=n.match(/(\d(\.\d+)?)+/g);return r=(i=r==null?void 0:r.slice(0,3))==null?void 0:i.concat(s),"rgba("+r.join(",")+")"}return n}catch{return}}return(o,s)=>(e.openBlock(),e.createBlock(e.unref(W.Button),e.mergeProps({class:{[e.unref(d)()]:!0,[`${e.unref(d)()}-border-link`]:p.value}},{...o.$attrs,...C()},{style:{color:f.value,minWidth:v.value,"--button-border-color":p.value},loading:b.value}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),i=>({name:i,fn:e.withCtx(n=>[e.renderSlot(o.$slots,i,e.normalizeProps(e.guardReactiveProps(n||{})))])}))]),1040,["class","style","loading"]))}});exports.default=j;
|
|
@@ -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("../config-provider/index.js");require("./styles/column-select.css");const b=require("../config-provider/hooks/use-locale.js"),k=require("../config-provider/hooks/use-global-config.js"),N=require("../config-provider/hooks/use-namespace.js"),y=e.defineComponent({__name:"column-select",props:{columns:{}},emits:["updateColumns"],setup(d,{emit:m}){const o=e.ref(!1),r=e.ref(!1),a=e.ref([]),{t:i}=b.useLocale(),p=k.useGlobalConfig("uiMode"),{b:f,e:c}=N.useNamespace(p.value==="aplus"?"column-select":"column-select-admin"),{columns:n}=d,v=m,h=t=>{const s=t.target.checked;a.value=s?n.map(l=>l.dataIndex):n.filter(l=>l.disabled&&l.selected).map(l=>l.dataIndex)},C=t=>{a.value=t};e.watch(()=>n,()=>{a.value=n.filter(t=>t.selected).map(t=>t.dataIndex)},{deep:!0,immediate:!0}),e.watch(a,()=>{r.value=a.value.length>0&&a.value.length!==n.length,o.value=a.value.length===n.length},{deep:!0,immediate:!0}),e.watch(a,()=>{const t=n.map(s=>({...s,selected:a.value.includes(s.dataIndex)}));v("updateColumns",t)},{deep:!0});const g=e.computed(()=>n.map(t=>({label:t.title,value:t.dataIndex,disabled:t.disabled})));return(t,s)=>(e.openBlock(),e.createBlock(e.unref(u.Flex),{vertical:"",class:e.normalizeClass(e.unref(f)())},{default:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass(e.unref(c)("des"))},e.toDisplayString(e.unref(i)("ap.apCustomColumn.selectDes")),3),e.createVNode(e.unref(u.Flex),{class:e.normalizeClass(e.unref(c)("all")),justify:"space-between",align:"center"},{default:e.withCtx(()=>{var l;return[e.createVNode(e.unref(u.Checkbox),{style:{padding:"0 6px;"},checked:o.value,"onUpdate:checked":s[0]||(s[0]=x=>o.value=x),indeterminate:r.value,onChange:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.apCustomColumn.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(c)("statistics"))},e.toDisplayString((l=a.value)==null?void 0:l.length)+"/"+e.toDisplayString(t.columns.length),3)]}),_:1},8,["class"]),e.createVNode(e.unref(u.Divider),{style:{margin:"12px 0 4px 0"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("content"))},[e.createVNode(e.unref(u.CheckboxGroup),{value:a.value,"onUpdate:value":C,options:g.value},null,8,["value","options"])],2)]),_:1},8,["class"]))}});exports.default=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),s=require("@aplus-frontend/antdv");require("./column-select.vue2.js");require("./styles/custom-column.css");require("../config-provider/index.js");const q=require("../config-provider/hooks/use-global-config.js"),w=require("../config-provider/hooks/use-locale.js"),x=require("../config-provider/hooks/use-namespace.js"),N=require("./column-select.vue.js"),D=e.defineComponent({__name:"custom-column",props:{columns:{},baseContainerSelector:{},fullContentSelector:{}},emits:["update:columns"],setup(m,{emit:p}){const f=q.useGlobalConfig("uiMode"),{t:c}=w.useLocale(),{b:C,e:_}=x.useNamespace(f.value==="aplus"?"custom-column":"custom-column-admin"),{baseContainerSelector:a,columns:b,fullContentSelector:h}=m,v=p,g=t=>{v("update:columns",t)},u=e.ref(!1),o=e.ref(0),S=()=>{var t,n;if(a){const l=document.querySelector(a),r=document.querySelector(h);l?o.value=Math.max((t=l==null?void 0:l.getBoundingClientRect())==null?void 0:t.top,((n=r==null?void 0:r.getBoundingClientRect())==null?void 0:n.top)||0):o.value=0}u.value=!0},i=()=>{u.value=!1},y=e.computed(()=>window.innerHeight-o.value-57-40);return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)())},[e.createVNode(e.unref(s.Tooltip),null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("ap.apCustomColumn.title")),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(s.Button),{style:{minWidth:"auto"},onClick:S},{icon:e.withCtx(()=>[e.createVNode(e.unref(d.SettingOutlined))]),_:1})]),_:1}),e.createVNode(e.unref(s.Drawer),{open:u.value,width:280,title:e.unref(c)("ap.apCustomColumn.title"),closable:!1,contentWrapperStyle:{top:`${o.value}px`},bodyStyle:{overflow:"hidden",padding:"20px"},mask:!0,"root-class-name":e.unref(_)("drawer"),onClose:i},{extra:e.withCtx(()=>[e.createVNode(e.unref(d.CloseOutlined),{onClick:i})]),default:e.withCtx(()=>[e.createVNode(N.default,{style:e.normalizeStyle({height:`${y.value}px`}),columns:t.columns,onUpdateColumns:g},null,8,["style","columns"])]),_:1},8,["open","title","contentWrapperStyle","root-class-name"])],2))}});exports.default=D;
|
|
@@ -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"),p=require("lodash-unified");require("./help-message/index.vue.js");require("../config-provider/index.js");require("./style/ap-descriptions.css");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=p.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,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.field||"empty"+i},[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(p.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:i,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;
|
|
@@ -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,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"),q=require("@ant-design/icons-vue");require("../config-provider/index.js");const O=require("./hooks/index.js");require("./style/ap-download.css");const d=require("./utils/getFileInfo.js"),z=require("./hooks/useStyle.js"),F=require("../config-provider/hooks/use-locale.js"),i=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=i.useGlobalConfig("uiMode"),o=p,v=i.useGlobalConfig("apUpload"),r=i.useGlobalConfig("downloadCenterTriggerConfig"),c=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,_,c),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=r.value)!=null&&t.trigger){let a=d.getFileInfo(o.needName,o.fileName).map(u=>({objectName:u.path,fileName:u.fileName}));(l=r.value)==null||l.trigger(a)}else{const a=await(await O.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:c.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(q.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"),u=require("lodash-unified"),i=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified"),i=require("@aplus-frontend/antdv");require("../../hooks/index.js");const c=require("./helper.js");require("../../config-provider/index.js");require("./style.css");const k=require("../../config-provider/hooks/use-namespace.js"),y=require("../../hooks/useControllableValue.js"),B=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,a=e.ref(t.options),{m}=k.useNamespace("field-checkbox"),n=e.ref(!1);e.onMounted(()=>{u.isFunction(t.request)&&(n.value=!0,t.request().then(l=>a.value=l).finally(()=>{n.value=!1}))});const{value:o,updateValue:v}=y.useControllableValue(t,f,{defaultValue:[]});return(l,g)=>{var s;return l.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(u.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=a.value)==null?void 0:s.filter(r=>e.unref(o).indexOf(e.unref(c.getOptionValue)(r))>-1).map(r=>e.unref(c.getOptionLabel)(r)).join("、"))||t.emptyText),1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.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(u.omit)(t,["onUpdate:value","value","request","vertical"]),{options:a.value,value:e.unref(o),"onUpdate:value":e.unref(v),class:l.vertical?e.unref(m)("vertical"):null}),null,16,["options","value","onUpdate:value","class"]))],64))}}});exports.default=B;
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
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';
|
|
@@ -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");require("./style.css");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"),d=require("./helper.js");require("./style.css");require("../../config-provider/index.js");const x=require("../../hooks/useControllableValue.js"),T=require("../../config-provider/hooks/use-namespace.js"),_=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(p,{expose:f,emit:v}){const o=p,m=v,l=e.ref(),n=e.ref((o==null?void 0:o.options)||[]),{value:r,updateValue:y}=x.useControllableValue(o,m),{m:k}=T.useNamespace("field-radio"),u=e.ref(!1);e.onMounted(()=>{var t;o.request&&(u.value=!0,(t=o.request)==null||t.call(o).then(a=>n.value=a).finally(()=>{u.value=!1}))});const q=e.computed(()=>{var s;const t=e.unref(r);if(c.isNil(t))return o.emptyText;const a=(s=n.value)==null?void 0:s.find(b=>t===d.getOptionValue(b));return d.getOptionLabel(a)||o.emptyText});function g(){var t;(t=l.value)==null||t.focus()}function B(){var t;(t=l.value)==null||t.blur()}return f({focus:g,blur:B}),(t,a)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(q.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(y),options:n.value,ref_key:"radioGroupRef",ref:l,class:t.vertical?e.unref(k)("vertical"):null}),null,16,["value","onUpdate:value","options","class"]))],64))}});exports.default=_;
|
|
@@ -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"),o=require("lodash-unified");require("../../hooks/index.js");const y=require("../../hooks/useControllableValue.js"),b=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:m}){const t=f,r=e.ref((t==null?void 0:t.options)||[]),p=m,{value:i,updateValue:v}=y.useControllableValue(t,p),s=e.ref(!1),g=e.useSlots();e.onMounted(()=>{o.isFunction(t.request)&&(s.value=!0,t.request().then(n=>r.value=n).finally(()=>{s.value=!1}))});const k=e.computed(()=>{var d;const n=e.unref(i);if(o.isUndefined(n))return e.createVNode(e.Fragment,null,[t.emptyText]);const l=(d=e.unref(r))==null?void 0:d.find(u=>u===n||(u==null?void 0:u.value)===n);if(o.isString(l)||o.isNumber(l))return e.createVNode(e.Fragment,null,[l]);const a=(l==null?void 0:l.label)||g.label;return o.isFunction(a)?e.createVNode(e.Fragment,null,[a==null?void 0:a({...l})]):e.createVNode(e.Fragment,null,[a||t.emptyText])});return(n,l)=>s.value?(e.openBlock(),e.createBlock(e.unref(c.Spin),{key:0,size:"small"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{key:0})):(e.openBlock(),e.createBlock(e.unref(c.Segmented),e.mergeProps({key:1},e.unref(o.omit)(t,["onUpdate:value","value","defaultValue","options"]),{value:e.unref(i),"onUpdate:value":e.unref(v),options:r.value}),{label:e.withCtx(a=>[e.renderSlot(n.$slots,"label",e.normalizeProps(e.guardReactiveProps(a)))]),_:3},16,["value","onUpdate:value","options"]))],64))}});exports.default=b;
|
|
@@ -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 t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("lodash-unified"),y=require("@aplus-frontend/antdv");require("../../hooks/index.js");const M=require("../../utils/index.js"),k=require("../hooks/use-default-placeholder.js"),T=require("../../hooks/useControllableValue.js"),_={key:0},A=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}},emits:["update:value"],setup(w,{expose:S,emit:g}){let u=0;const B=d.debounce(o=>{if(!d.isFunction(e.request))return;u+=1;const n=u;i.value=[],r.value=!0,e.request(o).then(l=>{u===n&&(i.value=l)}).finally(()=>{r.value=!1})},300),e=w,b=(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},i=t.ref((e==null?void 0:e.options)||[]),c=t.ref(),r=t.ref((e==null?void 0:e.loading)||!1),F=g;async function f(o=!0){if(!d.isFunction(e.request))return;r.value=!0,u+=1;const n=u;try{o&&(i.value=[]);const l=await e.request();if(n!==u)return;i.value=l}finally{r.value=!1}}function C(o){var n;(n=e.onFocus)==null||n.call(e,o),e.refetchOnFocus&&u>0&&!r.value&&f(!0)}t.onMounted(()=>{if(e.lazy){u+=1;return}f()});const{value:v,updateValue:q}=T.useControllableValue(e,F),x=k.useDefaultPlaceholder("Select",e),N=t.computed(()=>{var s,m;const o=t.unref(v);if(!o)return e.emptyText;const n=((s=e.fieldNames)==null?void 0:s.label)||"label",l=((m=e.fieldNames)==null?void 0:m.value)||"value";if(d.isArray(o))return o.map(p=>{var h;return(h=t.unref(i).find(V=>V[l]===p))==null?void 0:h[n]}).filter(Boolean).join("、")||e.emptyText;const a=t.unref(i).find(p=>p[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:d.isNil(e==null?void 0:e.filterOption)?b:e==null?void 0:e.filterOption}),{...M.omitUndefined(d.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus"])),placeholder:t.unref(x),...l}});function P(){var o;(o=c.value)==null||o.focus()}function O(){var o;(o=c.value)==null||o.blur()}return S({focus:P,blur:O,request:f}),(o,n)=>o.mode==="read"?(t.openBlock(),t.createElementBlock("span",_,t.toDisplayString(N.value),1)):(t.openBlock(),t.createBlock(t.unref(y.Select),t.mergeProps({key:1,"allow-clear":"",ref_key:"selectRef",ref:c},I.value,{mode:o.multiple?"multiple":void 0,value:t.unref(v),"onUpdate:value":t.unref(q),options:i.value,loading:r.value,onFocus:C}),t.createSlots({_:2},[t.renderList(o.$slots,(l,a)=>({name:a,fn:t.withCtx(s=>[t.renderSlot(o.$slots,a,t.normalizeProps(t.guardReactiveProps(s||{})))])})),r.value?{name:"notFoundContent",fn:t.withCtx(()=>[t.createVNode(t.unref(y.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","onUpdate:value","options","loading"]))}});exports.default=A;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv");require("../../hooks/index.js");const r=require("lodash-unified"),x=require("../../hooks/useControllableValue.js"),S=e.defineComponent({name:"ApFieldSlider",__name:"index",props:{mode:{},class:{},style:{},id:{},prefixCls:{},tooltipPrefixCls:{},range:{},reverse:{type:Boolean},min:{default:0},max:{default:100},step:{default:1},marks:{},dots:{type:Boolean},value:{},defaultValue:{},included:{type:Boolean,default:!0},disabled:{type:Boolean},vertical:{type:Boolean},tipFormatter:{},tooltipOpen:{type:Boolean,default:void 0},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{},getTooltipPopupContainer:{},autofocus:{type:Boolean},handleStyle:{},trackStyle:{},onChange:{},onAfterChange:{},onFocus:{},onBlur:{},"onUpdate:value":{},emptyText:{default:"--"}},emits:["update:value"],setup(s,{expose:i,emit:d}){const p=e.useSlots(),l=e.ref(),a=s,c=d,{value:n,updateValue:f}=x.useControllableValue(a,c),m=e.computed(()=>{const t=e.unref(n);return r.isNil(t)?a.emptyText:r.isArray(t)?`${t[0]}-${t[1]}`:t});function v(){var t,o;(o=(t=l.value)==null?void 0:t.focus)==null||o.call(t)}function y(){var t,o;(o=(t=l.value)==null?void 0:t.blur)==null||o.call(t)}return i({focus:v,blur:y}),(t,o)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(g.Slider),e.mergeProps({key:1},e.unref(r.omit)(a,["value","onUpdate:value","mode","emptyText","defaultValue"]),{value:e.unref(n),"onUpdate:value":e.unref(f),ref_key:"sliderRef",ref:l}),e.createSlots({_:2},[e.renderList(p,(k,u)=>({name:u,fn:e.withCtx(B=>[e.renderSlot(t.$slots,u,e.normalizeProps(e.guardReactiveProps(B||{})))])}))]),1040,["value","onUpdate:value"]))}});exports.default=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("@aplus-frontend/antdv");require("../../hooks/index.js");const h=require("lodash-unified"),i=require("@fruits-chain/utils"),V=require("../../hooks/useControllableValue.js"),v=e.defineComponent({name:"ApFieldSwitch",__name:"index",props:{mode:{},class:{},style:{},id:{},prefixCls:{},size:{default:"default"},disabled:{type:Boolean},checkedChildren:{},unCheckedChildren:{},tabindex:{},autofocus:{type:Boolean},loading:{type:Boolean,default:void 0},checked:{},checkedValue:{default:!0},unCheckedValue:{default:!1},onChange:{},onKeydown:{},onMouseup:{},"onUpdate:checked":{},onBlur:{},onFocus:{},emptyText:{default:"--"},onAction:{},confirm:{}},emits:["update:checked"],setup(m,{emit:p}){const r=e.useSlots(),o=m,C=p,{value:l,updateValue:u}=V.useControllableValue(o,C,{valuePropName:"checked"}),a=e.ref(!1);async function k(n,d){if(!i.isDef(o.confirm)){if(!i.isDef(o.onAction)){u(n);return}a.value=!0;try{await o.onAction(n,d)&&u(n)}finally{a.value=!1}}}async function g(){const n=e.unref(l)===o.checkedValue?o.unCheckedValue:o.checkedValue;if(!i.isDef(o.onAction)){u(n);return}await o.onAction(n)&&u(n)}const y=e.computed(()=>{var c,t;const n=e.unref(l);return h.isNil(n)?e.createVNode(e.Fragment,null,[o.emptyText]):n===o.checkedValue?e.createVNode(e.Fragment,null,[o.checkedChildren||((c=r.checkedChildren)==null?void 0:c.call(r))||`${o.checkedValue}`]):e.createVNode(e.Fragment,null,[o.unCheckedChildren||((t=r.unCheckedChildren)==null?void 0:t.call(r))||`${o.unCheckedValue}`])});return(n,d)=>n.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[!e.unref(i.isDef)(n.confirm)||n.disabled?(e.openBlock(),e.createBlock(e.unref(f.Switch),e.mergeProps({key:0},e.unref(h.omit)(o,"onUpdate:checked"),{checked:e.unref(l),onClick:k,loading:n.loading??a.value}),e.createSlots({_:2},[e.renderList(r,(c,t)=>({name:t,fn:e.withCtx(s=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040,["checked","loading"])):(e.openBlock(),e.createBlock(e.unref(f.Popconfirm),e.mergeProps({key:1},n.confirm||{},{onConfirm:g}),{default:e.withCtx(()=>[e.createVNode(e.unref(f.Switch),e.mergeProps(e.unref(h.omit)(o,"onUpdate:checked"),{checked:e.unref(l),onClick:k,loading:n.loading??a.value}),e.createSlots({_:2},[e.renderList(r,(c,t)=>({name:t,fn:e.withCtx(s=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040,["checked","loading"])]),_:3},16))],64))}});exports.default=v;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),v=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),v=require("@aplus-frontend/antdv");require("../../hooks/index.js");const x=require("lodash-unified"),B=require("../hooks/use-default-placeholder.js"),b=require("../../hooks/useControllableValue.js");function g(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!t.isVNode(a)}const h=t.defineComponent({name:"ApFieldText",__name:"index",props:{mode:{default:"edit"},class:{},style:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onFocus:{},onBlur:{},onChange:{},onInput:{},"onUpdate:value":{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},value:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(a,{expose:d,emit:i}){const l=t.ref(),o=t.useSlots();d({focus:e=>{var n;(n=l.value)==null||n.focus(e)},blur:()=>{var e;(e=l.value)==null||e.blur()},setSelectionRange:(e,n,y)=>{var c;(c=l.value)==null||c.setSelectionRange(e,n,y)},select:()=>{var e;(e=l.value)==null||e.select()},input:t.computed(()=>{var e;return(e=l.value)==null?void 0:e.input})});const s=i,u=a,{value:r,updateValue:p}=b.useControllableValue(u,s),f=B.useDefaultPlaceholder("Text",u);function m(){var e,n;return u.mode==="edit"?t.createVNode(v.Input,t.mergeProps(x.omit(u,["mode","emptyText","value","onUpdate:value"]),{placeholder:t.unref(f),value:t.unref(r),"onUpdate:value":p,ref:l}),g(o)?o:{default:()=>[o]}):t.createVNode(t.Fragment,null,[u.prefix||((e=o==null?void 0:o.prefix)==null?void 0:e.call(o)),t.unref(r)||u.emptyText,u.suffix||((n=o==null?void 0:o.suffix)==null?void 0:n.call(o))])}return(e,n)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(m())))}});exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@aplus-frontend/antdv");require("../../hooks/index.js");const h=require("lodash-unified"),c=require("@ant-design/icons-vue"),x=require("../hooks/use-default-placeholder.js"),p=require("../../hooks/useControllableValue.js");function C(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const g=e.defineComponent({name:"ApFieldTextPassword",__name:"password",props:{mode:{default:"edit"},class:{},style:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onFocus:{},onBlur:{},onChange:{},onInput:{},"onUpdate:value":{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},value:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},inputPrefixCls:{},action:{default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":{},emptyText:{default:"--"}},emits:["update:value","update:visible"],setup(l,{expose:f,emit:v}){const a=e.ref(),u=e.useSlots();f({focus:()=>{var t;(t=a.value)==null||t.focus()},blur:()=>{var t;(t=a.value)==null||t.blur()}});const r=v,o=l,{value:y,updateValue:m}=p.useControllableValue(o,r),b=x.useDefaultPlaceholder("TextPassword",o),{value:B,updateValue:s}=p.useControllableValue(o,r,{valuePropName:"visible"});function V(){const t=e.unref(y),n=e.unref(B);if(o.mode==="edit")return e.createVNode(d.Input.Password,e.mergeProps(h.omit(o,["mode","emptyText","value","onUpdate:value","visible","onUpdate:visible"]),{placeholder:e.unref(b),value:t,"onUpdate:value":m,visible:n,"onUpdate:visible":s,ref:a}),C(u)?u:{default:()=>[u]});let i=e.createVNode(e.Fragment,null,[o.emptyText]);return t&&(i=e.createVNode(d.Space,null,{default:()=>[e.createVNode("span",null,[n?t:"********"]),e.createVNode("span",{style:{cursor:"pointer"},onClick:()=>s(!n)},[n?e.createVNode(c.EyeOutlined,null,null):e.createVNode(c.EyeInvisibleOutlined,null,null)])]})),i}return(t,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V())))}});exports.default=g;
|
|
@@ -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>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const m=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const m=require("@aplus-frontend/antdv");require("./style.css");const y=require("../hooks/use-default-placeholder.js"),v=require("../../hooks/useControllableValue.js"),B=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},autocomplete:{},readonly:{type:Boolean},status:{},defaultValue:{},"onUpdate:value":{},loading:{type:Boolean},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(r,{expose:s,emit:d}){const t=e.ref(),l=r,i=d,{value:a,updateValue:p}=v.useControllableValue(l,i),{b:c}=B.useNamespace("field-text-area"),f=y.useDefaultPlaceholder("TextArea",l);return s({focus:o=>{var n;(n=t.value)==null||n.focus(o)},blur:()=>{var o;(o=t.value)==null||o.blur()},resizableTextArea:e.computed(()=>{var o;return(o=t.value)==null?void 0:o.resizableTextArea})}),(o,n)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(c)())},e.toDisplayString(e.unref(u.isNil)(e.unref(a))||e.unref(a)===""?o.emptyText:e.unref(a)),3)):(e.openBlock(),e.createBlock(e.unref(m.Input).TextArea,e.mergeProps({key:1},e.unref(u.omit)(l,["onUpdate:value","value"]),{placeholder:e.unref(f),value:e.unref(a),"onUpdate:value":e.unref(p),ref_key:"textAreaRef",ref:t}),null,16,["placeholder","value","onUpdate:value"]))}});exports.default=h;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemGroupProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { Breakpoint } from '
|
|
4
|
-
import { Gutter } from '
|
|
3
|
+
import { Breakpoint } from '@aplus-frontend/antdv/es/_util/responsiveObserve';
|
|
4
|
+
import { Gutter } from '@aplus-frontend/antdv/es/grid/Row';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: Readonly<{
|
|
7
7
|
default(): any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv"),l=require("lodash-unified"),h=require("../constant.js"),r=require("./helper.js");require("../../config-provider/index.js");require("../style/ap-form-item-group.css");const C=require("../../utils/index.js"),k=require("../../config-provider/hooks/use-namespace.js");function y(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!e.isVNode(n)}const q=e.defineComponent({name:"ApFormItemGroup",__name:"index",props:{align:{},justify:{},prefixCls:{},gutter:{default:16},wrap:{type:Boolean,default:void 0},countPerRow:{default:3}},setup(n){const{b:c}=k.useNamespace("ap-form-item-group"),i=n,u=e.useSlots();e.onBeforeUpdate(()=>{a.value=r.genRealChildren(u.default())}),e.watch(()=>u.default(),o=>{a.value=r.genRealChildren(o)});const a=e.shallowRef(r.genRealChildren(u.default())),f=e.computed(()=>e.unref(a).map((o,d)=>{const t=o.props,s=l.pick(t,h.apFormItemColPropKeys),m=s!=null&&s.span?{}:r.buildColSpan(i.countPerRow),g=l.isBoolean(t.hidden)?!!t.hidden:C.isDef(t.hidden);return{key:`${d}-${r.getStringName(t.name)}`,node:e.createVNode(p.Col,e.mergeProps(m,s,{class:g?c("col-hidden"):""}),y(o)?o:{default:()=>[o]})}}));return(o,d)=>(e.openBlock(),e.createBlock(e.unref(p.Row),e.mergeProps({class:e.unref(c)()},e.unref(l.omit)(i,["countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.node),{key:t.key}))),128))]),_:1},16,["class"]))}});exports.default=q;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApFormItemProps, ApFormItemSlots } from './interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
3
|
-
import { RuleObject } from '
|
|
4
|
-
import { ColSize } from '
|
|
5
|
-
import { FormLabelAlign } from '
|
|
3
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
4
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
+
import { FormLabelAlign } from '@aplus-frontend/antdv/es/form/interface';
|
|
6
6
|
import { VueTypeValidableDef, VueTypeDef } from '../../node_modules/vue-types';
|
|
7
|
-
import { CustomSlotsType } from '
|
|
7
|
+
import { CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
8
|
declare function onFieldBlur(): void;
|
|
9
9
|
declare function onFieldChange(): void;
|
|
10
10
|
declare function clearValidate(): void;
|