@aplus-frontend/ui 0.2.0-beta.5 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +1 -1
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/group/index.vue.mjs +1 -1
- package/es/src/ap-action/interface.d.ts +1 -1
- package/es/src/ap-action/item/index.vue2.mjs +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.mjs +1 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-modal/index.vue.mjs +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +1 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-action-button.vue.mjs +1 -0
- package/es/src/ap-button/ap-button.vue.d.ts +4 -1
- package/es/src/ap-button/ap-button.vue.mjs +47 -66
- package/es/src/ap-button/interface.d.ts +2 -1
- package/es/src/ap-button/utils/index.d.ts +3 -0
- package/es/src/ap-button/utils/index.mjs +33 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +1 -1
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-descriptions/interface.d.ts +2 -2
- package/es/src/ap-download/ap-download.vue.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-download/interface.d.ts +1 -1
- package/es/src/ap-field/checkbox/helper.d.ts +3 -3
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +24 -23
- package/es/src/ap-field/date/constant.d.ts +1 -1
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/hooks/use-options.d.ts +8 -0
- package/es/src/ap-field/hooks/use-options.mjs +22 -0
- package/es/src/ap-field/interface.d.ts +5 -5
- package/es/src/ap-field/number/index.vue.d.ts +4 -4
- package/es/src/ap-field/number/index.vue.mjs +1 -1
- package/es/src/ap-field/radio/helper.d.ts +1 -1
- package/es/src/ap-field/radio/index.vue.mjs +26 -25
- package/es/src/ap-field/rate/index.vue.d.ts +3 -3
- package/es/src/ap-field/rate/index.vue.mjs +1 -1
- package/es/src/ap-field/segmented/index.vue.mjs +37 -33
- package/es/src/ap-field/select/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.mjs +74 -73
- package/es/src/ap-field/slider/index.vue.d.ts +4 -4
- package/es/src/ap-field/slider/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +1 -1
- package/es/src/ap-field/text/input-password-props.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +7 -7
- package/es/src/ap-form/ap-form.vue2.mjs +1 -1
- package/es/src/ap-form/context.d.ts +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -6
- package/es/src/ap-form/drawer-form/index.vue.mjs +1 -1
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +3 -3
- package/es/src/ap-form/item/index.vue.d.ts +4 -4
- package/es/src/ap-form/item/index.vue.mjs +2 -2
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -2
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/interface.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/group.vue2.mjs +1 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/es/src/ap-form/modal-form/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/index.d.ts +1 -1
- package/es/src/ap-modal/index.mjs +1 -1
- package/es/src/ap-modal/interface.d.ts +1 -1
- package/es/src/ap-modal/utils/createModal.mjs +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.mjs +2 -428
- package/es/src/ap-table/ap-table.vue2.mjs +428 -2
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +23 -21
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/utils.d.ts +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +30 -30
- package/es/src/ap-table/context.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.mjs +75 -71
- package/es/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/es/src/ap-table/index.d.ts +6 -1
- package/es/src/ap-table/index.mjs +9 -3
- package/es/src/ap-table/interface.d.ts +3 -3
- package/es/src/ap-table/utils.d.ts +8 -7
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
- package/es/src/ap-tag/interface.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +1 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +1 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +1 -1
- package/es/src/business/ap-attachment/index.d.ts +1 -1
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -29
- package/es/src/business/ap-batch-action/index.d.ts +8 -3
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +14 -13
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +12 -8
- package/es/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-button-group/index.d.ts +13 -5
- package/es/src/business/ap-button-group/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +1 -1
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +42 -40
- package/es/src/business/ap-export-group/handleExportDownload.mjs +1 -1
- package/es/src/business/ap-export-group/interface.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/index.d.ts +2 -2
- package/es/src/business/ap-input-radio/interface.d.ts +1 -1
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-label/ApLabel.mjs +1 -1
- package/es/src/business/ap-label/constans.d.ts +2 -2
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +1 -1
- package/es/src/business/ap-label/index.d.ts +2 -2
- package/es/src/business/ap-label/interface.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
- package/es/src/business/ap-ladder/index.d.ts +5 -5
- package/es/src/business/ap-ladder/interface.d.ts +1 -1
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +1 -1
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-summary/interface.d.ts +2 -2
- package/es/src/business/ap-summary/utils.d.ts +1 -1
- package/es/src/business/ap-summary/utils.mjs +16 -16
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +43 -6
- package/es/src/business/ap-table-modal/interface.d.ts +17 -2
- package/es/src/business/ap-table-modal/style/css.js +1 -1
- package/es/src/business/ap-table-modal/style/index.js +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +74 -0
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +134 -79
- package/es/src/business/ap-title/ApTitle.vue2.mjs +1 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +8 -8
- package/es/src/config-provider/config-provider-props.mjs +1 -1
- package/es/src/config-provider/config-provider.d.ts +9 -8
- package/es/src/config-provider/config-provider.mjs +1 -1
- package/es/src/config-provider/constants.d.ts +1 -1
- package/es/src/config-provider/css-var.d.ts +1 -0
- package/es/src/config-provider/css-var.mjs +7 -5
- package/es/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/es/src/config-provider/index.d.ts +14 -8
- package/es/src/design-token/index.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +60 -55
- package/es/src/editable-table/hooks/use-get-columns.d.ts +1 -1
- package/es/src/editable-table/hooks/use-get-columns.mjs +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +1 -1
- package/es/src/editable-table/interface.d.ts +6 -6
- package/es/src/editable-table/utils.mjs +69 -69
- package/es/src/hooks/useMessage.d.ts +4 -4
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/index.mjs +201 -202
- package/es/src/locale/lang/en.mjs +3 -1
- package/es/src/locale/lang/zh-cn.mjs +3 -1
- package/es/src/path-map.mjs +2 -0
- package/es/src/utils/config-provider-preset.d.ts +10 -10
- package/es/src/work-order-modal/help-message.vue2.mjs +1 -1
- package/es/src/work-order-modal/interfaces.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +4 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +2 -1
- package/lib/src/ap-button/utils/index.d.ts +3 -0
- package/lib/src/ap-button/utils/index.js +1 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +2 -2
- package/lib/src/ap-download/ap-download.vue.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +3 -3
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/constant.d.ts +1 -1
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-options.d.ts +8 -0
- package/lib/src/ap-field/hooks/use-options.js +1 -0
- package/lib/src/ap-field/interface.d.ts +5 -5
- package/lib/src/ap-field/number/index.vue.d.ts +4 -4
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/helper.d.ts +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +3 -3
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +6 -6
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +4 -4
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/input-password-props.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +7 -7
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/context.d.ts +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -6
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.d.ts +4 -4
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -2
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/group.vue2.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/lib/src/ap-form/modal-form/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/index.d.ts +1 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +1 -1
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +30 -30
- package/lib/src/ap-table/context.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/lib/src/ap-table/index.d.ts +6 -1
- package/lib/src/ap-table/index.js +1 -1
- package/lib/src/ap-table/interface.d.ts +3 -3
- package/lib/src/ap-table/utils.d.ts +8 -7
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/index.d.ts +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +8 -3
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +12 -8
- package/lib/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-button-group/index.d.ts +13 -5
- package/lib/src/business/ap-button-group/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/index.d.ts +2 -2
- package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-label/ApLabel.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +2 -2
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +2 -2
- package/lib/src/business/ap-label/interface.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +5 -5
- package/lib/src/business/ap-ladder/interface.d.ts +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +2 -2
- package/lib/src/business/ap-summary/utils.d.ts +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +43 -6
- package/lib/src/business/ap-table-modal/interface.d.ts +17 -2
- package/lib/src/business/ap-table-modal/style/css.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +8 -8
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +9 -8
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -1
- package/lib/src/config-provider/css-var.d.ts +1 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/lib/src/config-provider/index.d.ts +14 -8
- package/lib/src/design-token/index.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -6
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useMessage.d.ts +4 -4
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +10 -10
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +5 -5
|
@@ -1,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"),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,p=d,{value:a,updateValue:i}=v.useControllableValue(l,p),{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(i),ref_key:"textAreaRef",ref:t}),null,16,["placeholder","value","onUpdate:value"]))}});exports.default=h;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ApFormProps, RegistedFieldType, WatchFunc } from './interface';
|
|
2
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
4
4
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { RequiredMark } from '
|
|
7
|
-
import { RuleObject } from '
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
7
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
|
-
import { SizeType } from '
|
|
10
|
-
import { SizeType } from '
|
|
11
|
-
import { VueNode } from '
|
|
9
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
12
|
/**
|
|
13
13
|
* 订阅事件
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),S=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),S=require("@aplus-frontend/antdv"),W=require("./context.js"),n=require("lodash-unified"),m=require("./constant.js"),b=require("../utils/index.js"),z=require("./utils/set.js"),C=a.defineComponent({__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{}},setup(O,{expose:R}){const u=O;function p(e,t,l=!0){var r;if(n.isArray(e)){let s=o;for(let d=0;d<e.length-1;d++)e[d]in s||(s[e[d]]={}),s=s[e[d]];s[e[e.length-1]]=t}else o[e]=t;let i=n.isArray(e)?e[0]:e;l&&((r=u.onValuesChange)==null||r.call(u,{[i]:o[i]},o)),g()}function T(e){var l;const t=v(e,F);(l=u.onFinish)==null||l.call(u,t)}const c=a.ref();let V=u.initialValues?n.cloneDeep(u.initialValues):{},F={};const o=a.reactive(u.initialValues||{});let h=[];const q=async()=>{var e;(e=c.value)==null||e.resetFields(),await a.nextTick(()=>{Object.keys(o).forEach(t=>delete o[t]),Object.assign(o,n.cloneDeep(V)),g()})},M=e=>{var t;(t=c.value)==null||t.clearValidate(e)},j=(e,t)=>{var l;return(l=c.value)==null?void 0:l.validateFields(e,t)},w=async(e,t)=>{var i;const l=await((i=c.value)==null?void 0:i.validateFields(e,t));return v(l,F)},B=e=>{var t;return(t=c.value)==null?void 0:t.getFieldsValue(e)},I=e=>{var l;const t=(l=c.value)==null?void 0:l.getFieldsValue(e);return v(t,F)},x=(e,t)=>{var l;return(l=c.value)==null?void 0:l.validate(e,t)},E=(e,t={})=>{var l;(l=c.value)==null||l.scrollToField(e,t)},P=e=>{Object.assign(o,e),g()},_=(e,t)=>{p(e,t),g()};function y(e,t){return t||e(a.toRaw(o)),h.push(e),()=>{h=h.filter(l=>l!==e)}}function A({initialValue:e,name:t,transform:l}){if(b.isDef(e)&&b.isDef(t))if(p(t,e,!1),n.isArray(t)){let i=V;for(let r=0;r<t.length-1;r++)b.isDef(i[t[r]])||(i[t[r]]={}),i=i[t[r]];i[t[t.length-1]]=e}else V[t]=e;l&&(F=z.default(F,[t].flat(1),l,!0))}function D(e){if(e!==m.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:A,registerWatch:y}}function g(){if(h.length){const e=a.toRaw(o);h.forEach(t=>{t(e)})}}function v(e,t){if(e==null)return;let l=n.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const r=e[i],s=t==null?void 0:t[i],d=n.isFunction(s)?s:s==null?void 0:s.transformer,N=n.isFunction(s)?!0:s==null?void 0:s.flat;if(n.isFunction(d)){const f=d(r);N?n.isArray(f)&&n.isArray(l)?l=[...l,...f]:n.isPlainObject(f)&&n.isPlainObject(l)?l={...l,...f}:l[i]=f:l[i]=f}else if(n.isPlainObject(r)||n.isArray(r)){const f=v(r,s);l[i]=f}else l[i]=r}),l}return W.useProvideForm({model:a.computed(()=>o),updateModel:p,internalInstance:{registerWatch:y,registerField:A,setFieldValue:_}}),R({resetFields:q,clearValidate:M,validateFields:j,getFieldsValue:B,validate:x,scrollToField:E,setFieldsValue:P,setFieldValue:_,registerWatch:y,validateFieldsReturnTransformed:w,getFieldsValueTransformed:I,getInternalInstance:D}),(e,t)=>(a.openBlock(),a.createBlock(a.unref(S.Form),a.mergeProps({ref_key:"formRef",ref:c},a.unref(n.omit)(u,["initialValues","onValuesChange","onFinish"]),{onFinish:T,model:o}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16,["model"]))}});exports.default=C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NamePath } from '
|
|
1
|
+
import { NamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { ComputedRef, InjectionKey } from 'vue';
|
|
3
3
|
import { ApFormInternalInstance } from './interface';
|
|
4
4
|
type ApFormContextProps<ModelType> = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '
|
|
4
|
-
import { RequiredMark } from '
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { RuleObject } from '
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { WatchFunc, RegistedFieldType, ApFormInternalInstance, ApFormSubmitterConfig } from '..';
|
|
10
10
|
import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { PushState } from '
|
|
12
|
-
import { MouseEventHandler, KeyboardEventHandler } from '
|
|
11
|
+
import { PushState } from '@aplus-frontend/antdv/es/drawer';
|
|
12
|
+
import { MouseEventHandler, KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
13
13
|
type ApDrawerFormSlots = {
|
|
14
14
|
trigger: any;
|
|
15
15
|
default: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const M=require("../../utils/slot.js");require("../../config-provider/index.js");const g=require("lodash-unified"),L=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function k(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!t.isVNode(c)}const I=t.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},drawerProps:{default:()=>({})},title:{},width:{default:378},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{},resize:{type:[Object,Boolean],default:!1}},emits:["update:open"],setup(c,{expose:W,emit:x}){const i=c,h=t.useSlots(),N=x,a=t.ref(),f=t.ref(),u=t.ref(!1),{value:V,updateValue:m}=j.useControllableValue(i,N,{valuePropName:"open",defaultValue:!1}),p=t.computed(()=>{var n,o,r,s;const e={onResize:()=>{},minWidth:300,maxWidth:window.innerWidth*.8,resizeOnOpen:!0};return g.isBoolean(i.resize)?i.resize?e:{}:{minWidth:((n=i.resize)==null?void 0:n.minWidth)??e.minWidth,maxWidth:((o=i.resize)==null?void 0:o.maxWidth)??e.maxWidth,onResize:((r=i.resize)==null?void 0:r.onResize)??e.onResize,resizeOnOpen:g.isUndefined((s=i.resize)==null?void 0:s.resizeOnOpen)?e.onResize:i.resize.resizeOnOpen}}),v=t.ref(y()),{t:b}=E.useLocale(),{e:T}=U.useNamespace("ap-form-drawer-form");t.watch(()=>a.value,e=>{var n;e&&f.value&&((n=e.setFieldsValue)==null||n.call(e,f.value),f.value=void 0)}),t.watch(()=>t.unref(V),e=>{var n;e&&(n=t.unref(p))!=null&&n.resizeOnOpen&&(v.value=y())});function y(){var n;const e=(n=t.unref(p))==null?void 0:n.minWidth;return!e||e&&e<i.width?i.width:e}const F=M.getSingleVNode(h.trigger),w=F?t.cloneVNode(F,{onClick:()=>{m(!0)}}):null,O=t.computed(()=>{var n,o,r,s;const e=[];if(i.submitter===!1)return null;if(i.showCancel){let l;e.push(t.createVNode(d.Button,{onClick:z,disabled:u.value},k(l=b("ap.common.cancelText"))?l:{default:()=>[l]}))}return((n=i.submitter)==null?void 0:n.resetButtonProps)!==!1&&e.push(t.createVNode(d.Button,t.mergeProps(((o=i.submitter)==null?void 0:o.resetButtonProps)||{},{key:"submit",disabled:u.value,onClick:P}),{default:()=>{var l;return[((l=i.submitter)==null?void 0:l.resetText)||b("ap.common.resetText")]}})),((r=i.submitter)==null?void 0:r.submitButtonProps)!==!1&&e.push(t.createVNode(d.Button,t.mergeProps({type:"primary",key:"submit"},((s=i.submitter)==null?void 0:s.submitButtonProps)||{},{loading:u.value,onClick:q}),{default:()=>{var l;return[((l=i.submitter)==null?void 0:l.submitText)||b("ap.common.okText")]}})),t.createVNode(d.Flex,{justify:"flex-end"},{default:()=>[h.submitter?h.submitter(e):t.createVNode(d.Space,null,k(e)?e:{default:()=>[e]})]})});function _(){var e,n;(n=(e=p.value)==null?void 0:e.onResize)==null||n.call(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",B)}function C(e){const n=t.unref(p),o=(document.body.offsetWidth||1e3)-(e.clientX-document.body.offsetLeft),r=(n==null?void 0:n.minWidth)??(i.width||800),s=(n==null?void 0:n.maxWidth)??window.innerWidth*.8;let l=o;o<r&&(l=r),o>s&&(l=s),v.value=l}function B(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",B)}function P(){var e,n,o;i.submitter!==!1&&((e=a.value)==null||e.resetFields(),(o=(n=i.submitter)==null?void 0:n.onReset)==null||o.call(n))}async function q(){var e,n,o,r;if(i.submitter!==!1)try{const s=await((e=a.value)==null?void 0:e.validateFields());(o=(n=i.submitter)==null?void 0:n.onSubmit)==null||o.call(n),u.value=!0;const l=(r=i.onFinish)==null?void 0:r.call(i,L.convertReactiveToRaw(s));if(i.submitTimeout&&l instanceof Promise){const S=setTimeout(()=>u.value=!1,i.submitTimeout);l.finally(()=>{clearTimeout(S),u.value=!1})}await l&&m(!1)}finally{u.value=!1}}function z(){t.unref(u)||m(!1)}function R(e){!e&&t.unref(u)||m(e)}return W({resetFields:()=>{var e;(e=a.value)==null||e.resetFields()},clearValidate:e=>{var n;(n=a.value)==null||n.clearValidate(e)},validateFields:(e,n)=>{var o;return(o=a.value)==null?void 0:o.validateFields(e,n)},getFieldsValue:e=>{var n;return(n=a.value)==null?void 0:n.getFieldsValue(e)},validate:(e,n)=>{var o;return(o=a.value)==null?void 0:o.validate(e,n)},scrollToField:(e,n={})=>{var o;(o=a.value)==null||o.scrollToField(e,n)},setFieldValue:(e,n)=>{var o,r;(r=(o=a.value)==null?void 0:o.setFieldValue)==null||r.call(o,e,n)},setFieldsValue:e=>{var n,o;if(!a.value){f.value=e;return}(o=(n=a.value)==null?void 0:n.setFieldsValue)==null||o.call(n,e)},getInternalInstance:e=>{var n;return(n=a.value)==null?void 0:n.getInternalInstance(e)}}),(e,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(d.Drawer),t.mergeProps(e.drawerProps,{open:t.unref(V),"onUpdate:open":R,onCancel:z,width:v.value}),{title:t.withCtx(()=>[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])]),footer:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(O.value)))]),default:t.withCtx(()=>[t.createVNode(D.default,t.mergeProps({ref_key:"formRef",ref:a},t.unref(g.omit)(i,["drawerProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16),e.resize?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(T)("resize-bar")),onMousedown:t.withModifiers(_,["stop","prevent"])},null,34)):t.createCommentVNode("",!0)]),_:3},16,["open","width"]),t.unref(w)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(w)),{key:0})):t.createCommentVNode("",!0)],64))}});exports.default=I;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonProps, ColProps, DrawerProps, FormItemProps, FormProps, ModalProps, RowProps } from '
|
|
2
|
-
import { FormItemExpose } from '
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions } from '
|
|
1
|
+
import { ButtonProps, ColProps, DrawerProps, FormItemProps, FormProps, ModalProps, RowProps } from '@aplus-frontend/antdv';
|
|
2
|
+
import { FormItemExpose } from '@aplus-frontend/antdv/es/form/FormItem';
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../type';
|
|
5
5
|
import { VNode } from 'vue';
|
|
6
6
|
export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
|
|
@@ -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 { ColSize } from '
|
|
4
|
-
import { FormLabelAlign } from '
|
|
5
|
-
import { RuleObject } from '
|
|
3
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
+
import { FormLabelAlign } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("@aplus-frontend/antdv"),I=require("@aplus-frontend/antdv/es/theme/internal"),a=require("lodash-unified"),T=require("../constant.js"),z=require("@ant-design/icons-vue");require("../../config-provider/index.js");const A=require("../context.js"),D=require("@fruits-chain/utils"),b=require("../../utils/slot.js"),L=require("../../config-provider/hooks/use-namespace.js"),O=["title"],R=e.defineComponent({name:"ApFormItem",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean,default:!1},valuePropName:{default:"value"},initialValue:{},_signal:{},transform:{}},setup(h,{expose:F}){const o=h,n=e.useSlots(),{model:i,updateModel:s,internalInstance:d}=A.useInjectForm(),{m:c,b:g}=L.useNamespace("ap-form-item"),f=e.ref(!1),u=e.ref(),[,B]=I.useToken();e.onMounted(async()=>{let t=a.isFunction(o.initialValue)?o.initialValue():o.initialValue;D.isPromise(t)&&(t=await t),d==null||d.registerField({name:o.name,initialValue:a.cloneDeep(t),transform:o.transform})});const m=e.computed(()=>o.name?a.isArray(o.name)?o.name.reduce((t,r)=>t==null?void 0:t[r],e.unref(i)):i==null?void 0:i.value[o.name]:null),p=e.ref(b.getSingleVNode(n.default));e.watch(()=>{var t;return(t=n.default)==null?void 0:t.call(n)},t=>{p.value=b.getValidVNodeList(t)[0]});function C(t){s==null||s(o.name,t)}function w(){f.value=!0}function N(){f.value=!1}const v=e.computed(()=>{var r,l;if(!o.name)return(r=n.default())==null?void 0:r[0];const t=e.unref(p);return t?e.cloneVNode(t,{[o.valuePropName]:e.unref(m),[`onUpdate:${o.valuePropName}`]:C,bordered:o.bordered?!1:(l=t==null?void 0:t.props)==null?void 0:l.bordered,onFocus:w,onBlur:N}):null});function k(){var t;(t=u.value)==null||t.onFieldBlur()}function q(){var t;(t=u.value)==null||t.onFieldChange()}function S(){var t;(t=u.value)==null||t.clearValidate()}function x(){var t;(t=u.value)==null||t.resetField()}function P(t=!1){const r=e.unref(m);if(!t||!o.transform)return r;const l=a.isFunction(o.transform)?o.transform:o.transform.transformer;return o.transform?l(r):r}return F({onFieldBlur:k,onFieldChange:q,clearValidate:S,resetField:x,getFieldValue:P}),(t,r)=>(e.openBlock(),e.createBlock(e.unref(V.Form).Item,e.mergeProps({ref_key:"formItemRef",ref:u},e.unref(a.omit)(o,[...e.unref(T.apFormItemColPropKeys),"tooltip","label"]),{class:{[e.unref(c)("bordered")]:t.bordered,[e.unref(c)("focused")]:t.bordered&&f.value,[e.unref(g)()]:!0},colon:t.bordered?!1:o.colon}),e.createSlots({default:e.withCtx(()=>[v.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.value),{key:0})):e.createCommentVNode("",!0)]),_:2},[o.tooltip?{name:"tooltip",fn:e.withCtx(({class:l})=>[e.createElementVNode("span",{class:e.normalizeClass(l)},[e.createVNode(e.unref(V.Tooltip),{title:o.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(z.QuestionCircleOutlined),{style:e.normalizeStyle({color:e.unref(B).colorPrimary})},null,8,["style"])]),_:1},8,["title"])],2)]),key:"0"}:void 0,t.label?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("span",{title:t.label,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},e.toDisplayString(t.label),9,O)]),key:"1"}:void 0,e.renderList(e.unref(a.omit)(n,"default"),(l,y)=>({name:y,fn:e.withCtx(_=>[e.renderSlot(t.$slots,y,e.normalizeProps(e.guardReactiveProps(_||{})))])}))]),1040,["class","colon"]))}});exports.default=R;
|
|
@@ -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");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 B=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=B;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SizeType } from '
|
|
1
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
2
2
|
import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextPasswordProps, ApFieldTextProps } from '../../ap-field';
|
|
3
3
|
import { ApFormItemProps } from '../interface';
|
|
4
4
|
export type ApFormItemTextProps = ApFormItemProps & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ApFormItemNumberProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
4
|
-
import { ValueType } from '
|
|
4
|
+
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
5
5
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
6
|
-
import { KeyboardEventHandler } from '
|
|
6
|
+
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
8
|
slots: Readonly<{
|
|
9
9
|
addonBefore?: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApFormItemRadioProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
4
|
-
import { RadioChangeEvent, RadioGroupProps } from '
|
|
4
|
+
import { RadioChangeEvent, RadioGroupProps } from '@aplus-frontend/antdv';
|
|
5
5
|
import { FieldMode, ApFieldRadioProps } from '../../..';
|
|
6
|
-
import { RadioGroupChildOption } from '
|
|
7
|
-
import { RadioGroupButtonStyle, RadioGroupOptionType } from '
|
|
6
|
+
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
7
|
+
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
8
8
|
type ApFormItemRadioSlots = Omit<ApFormItemSlots, 'default'>;
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
10
|
slots: Readonly<ApFormItemRadioSlots> & ApFormItemRadioSlots;
|
|
@@ -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");const a=require("../../../config-provider/hooks/use-namespace.js"),n=e.defineComponent({name:"ApFormItemTextGroup",__name:"group",props:{size:{},compact:{type:Boolean,default:!1}},setup(o){const{b:r}=a.useNamespace("ap-form-item-text-group"),s=o;return(t,p)=>(e.openBlock(),e.createBlock(e.unref(u.Input).Group,e.mergeProps({class:t.$props.compact?e.unref(r)("compact"):null},s),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["class"]))}});exports.default=n;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApFormItemTextProps } from '../interface';
|
|
2
|
-
import { InputFocusOptions } from '
|
|
2
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormItemSlots } from '../../interface';
|
|
4
4
|
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
5
5
|
import { FieldMode, ApFieldTextProps } from '../../..';
|
|
6
|
-
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '
|
|
7
|
-
import { ShowCountProps } from '
|
|
6
|
+
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
9
|
slots: Readonly<{
|
|
10
10
|
addonAfter: any;
|
|
@@ -2,8 +2,8 @@ import { ApFormItemTextPasswordProps } from '../interface';
|
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
4
4
|
import { FieldMode, ApFieldTextPasswordProps } from '../../..';
|
|
5
|
-
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '
|
|
6
|
-
import { ShowCountProps } from '
|
|
5
|
+
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
8
|
slots: Readonly<{
|
|
9
9
|
addonAfter: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApFormItemTextAreaProps } from '../interface';
|
|
2
|
-
import { InputFocusOptions } from '
|
|
2
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormItemSlots } from '../../interface';
|
|
4
4
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
|
|
5
|
-
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '
|
|
5
|
+
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
6
|
import { FieldMode, ApFieldTextAreaProps } from '../../..';
|
|
7
|
-
import { ShowCountProps } from '
|
|
8
|
-
import { AutoSizeType } from '
|
|
7
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
8
|
+
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
9
9
|
type ApFormItemTextAreaSlots = Omit<ApFormItemSlots, 'default'>;
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
11
|
slots: Readonly<ApFormItemTextAreaSlots> & ApFormItemTextAreaSlots;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '
|
|
4
|
-
import { RequiredMark } from '
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { RuleObject } from '
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { WatchFunc, RegistedFieldType, ApFormInternalInstance, ApFormSubmitterConfig } from '..';
|
|
10
10
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { LegacyButtonType, ButtonHTMLType } from '
|
|
12
|
-
import { ButtonType, ButtonShape, ButtonSize } from '
|
|
13
|
-
import { MouseEventHandler } from '
|
|
14
|
-
import { VueNode } from '
|
|
11
|
+
import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
12
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
13
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
14
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
15
15
|
type ApModalFormSlots = {
|
|
16
16
|
trigger: any;
|
|
17
17
|
default: 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"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const S=require("../../utils/slot.js");require("../../config-provider/index.js");const M=require("lodash-unified"),R=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function F(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const E=e.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{}},emits:["update:open"],setup(d,{expose:C,emit:B}){const o=d,p=e.useSlots(),k=B,n=e.ref(),c=e.ref(),u=e.ref(!1),{value:N,updateValue:f}=j.useControllableValue(o,k,{valuePropName:"open",defaultValue:!1}),{t:v}=O.useLocale(),b=U.useGlobalConfig("uiMode","aplus"),{b:T,e:g}=z.useNamespace("ap-form-modal-form");e.watch(()=>n.value,t=>{var l;t&&c.value&&((l=t.setFieldsValue)==null||l.call(t,c.value),c.value=void 0)});const h=S.getSingleVNode(p.trigger),V=h?e.cloneVNode(h,{onClick:()=>{f(!0)}}):null,_=e.computed(()=>{var l,a,r,m;const t=[];if(o.submitter===!1)return null;if(o.showCancel){let s;t.push(e.createVNode(i.Button,{onClick:y,disabled:u.value},F(s=v("ap.common.cancelText"))?s:{default:()=>[s]}))}return((l=o.submitter)==null?void 0:l.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((a=o.submitter)==null?void 0:a.resetButtonProps)||{},{key:"submit",disabled:u.value,onClick:q}),{default:()=>{var s;return[((s=o.submitter)==null?void 0:s.resetText)||v("ap.common.resetText")]}})),((r=o.submitter)==null?void 0:r.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((m=o.submitter)==null?void 0:m.submitButtonProps)||{},{loading:u.value,onClick:w}),{default:()=>{var s;return[((s=o.submitter)==null?void 0:s.submitText)||v("ap.common.okText")]}})),e.createVNode(i.Flex,{justify:"flex-end",class:g(e.unref(b)==="admin"?"footer-admin":"footer")},{default:()=>[p.submitter?p.submitter(t):e.createVNode(i.Space,null,F(t)?t:{default:()=>[t]})]})});function q(){var t,l,a;o.submitter!==!1&&((t=n.value)==null||t.resetFields(),(a=(l=o.submitter)==null?void 0:l.onReset)==null||a.call(l))}async function w(){var t,l,a,r;if(o.submitter!==!1)try{const m=await((t=n.value)==null?void 0:t.validateFields());(a=(l=o.submitter)==null?void 0:l.onSubmit)==null||a.call(l),u.value=!0;const s=(r=o.onFinish)==null?void 0:r.call(o,R.convertReactiveToRaw(m));if(o.submitTimeout&&s instanceof Promise){const x=setTimeout(()=>u.value=!1,o.submitTimeout);s.finally(()=>{clearTimeout(x),u.value=!1})}await s&&f(!1)}finally{u.value=!1}}function y(){e.unref(u)||f(!1)}function P(t){!t&&e.unref(u)||f(t)}return C({resetFields:()=>{var t;(t=n.value)==null||t.resetFields()},clearValidate:t=>{var l;(l=n.value)==null||l.clearValidate(t)},validateFields:(t,l)=>{var a;return(a=n.value)==null?void 0:a.validateFields(t,l)},getFieldsValue:t=>{var l;return(l=n.value)==null?void 0:l.getFieldsValue(t)},validate:(t,l)=>{var a;return(a=n.value)==null?void 0:a.validate(t,l)},scrollToField:(t,l={})=>{var a;(a=n.value)==null||a.scrollToField(t,l)},setFieldValue:(t,l)=>{var a,r;(r=(a=n.value)==null?void 0:a.setFieldValue)==null||r.call(a,t,l)},setFieldsValue:t=>{var l,a;if(!n.value){c.value=t;return}(a=(l=n.value)==null?void 0:l.setFieldsValue)==null||a.call(l,t)},getInternalInstance:t=>{var l;return(l=n.value)==null?void 0:l.getInternalInstance(t)}}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(t.modalProps,{open:e.unref(N),"onUpdate:open":P,onCancel:y,footer:null,width:t.width,class:e.unref(T)(),"body-style":{padding:e.unref(b)==="admin"?"0px !important":"20px !important"}}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)(e.unref(b)==="admin"?"content-admin":"content"))},[e.createVNode(D.default,e.mergeProps({ref_key:"formRef",ref:n},e.unref(M.omit)(o,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)],2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value)))]),_:3},16,["open","width","class","body-style"]),e.unref(V)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(V)),{key:0})):e.createCommentVNode("",!0)],64))}});exports.default=E;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef, PublicProps } from 'vue';
|
|
3
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '
|
|
4
|
-
import { RequiredMark } from '
|
|
5
|
-
import { ColSize } from '
|
|
6
|
-
import { RuleObject } from '
|
|
3
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
|
+
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { WatchFunc, RegistedFieldType } from '..';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");require("../../hooks/index.js");const b=require("../item-group/helper.js"),J=require("@ant-design/icons-vue");require("../../config-provider/index.js");const y=require("lodash-unified"),w=require("../../utils/index.js"),K=require("./utils.js"),Q=require("../../hooks/useControllableValue.js"),X=require("../../config-provider/hooks/use-namespace.js"),Y=require("../../config-provider/hooks/use-global-config.js"),Z=require("../../config-provider/hooks/use-locale.js"),A=require("../item/index.vue.js"),ee=require("../ap-form.vue2.js");function te(m){return typeof m=="function"||Object.prototype.toString.call(m)==="[object Object]"&&!e.isVNode(m)}const s=24,ne=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!1},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:4},submitLoading:{type:Boolean}},emits:["update:collapse"],setup(m,{expose:q,emit:E}){var v;const u=e.useSlots(),a=m,I=E,{value:c,updateValue:P}=Q.useControllableValue(a,I,{valuePropName:"collapse",defaultValuePropName:"defaultCollapse"}),{b:T}=X.useNamespace("ap-form-search-form"),O=Y.useGlobalConfig("uiMode"),{t:g}=Z.useLocale(),x=e.ref();function D(){P(!e.unref(c))}function M(){var t,n;(n=(t=x.value)==null?void 0:t.validateFields())==null||n.then(a.onSubmit)}function j(){var t,n,o;a.customReset||(n=(t=x.value)==null?void 0:t.resetFields)==null||n.call(t),(o=a.onReset)==null||o.call(a)}let N=[];const C=e.shallowRef(b.genRealChildren(u.default())),i=e.shallowRef((v=u.extra)==null?void 0:v.call(u)),B=e.computed(()=>Math.floor(s/a.countPerRow));e.watch(()=>u.default(),t=>{N=C.value,C.value=b.genRealChildren(t)}),e.watch(()=>{var t;return(t=u.extra)==null?void 0:t.call(u)},t=>{i.value=t});const L=t=>w.isDef(t)?(y.isArray(t)?t:[t]).join(""):Date.now(),_=e.computed(()=>{const t=K.diffFormItem(N,C.value),n=[],o=[],l=e.unref(B);let p=0;t.forEach(d=>{const f=d.props;(y.isBoolean(f.hidden)?!!f.hidden:w.isDef(f.hidden))?n.push(d):(p+=f.span||l,o.push(d))});const F=s-(p+l)%s,U=p%s<l,$=F<l?s:F,R=s-l*(e.unref(i)&&!a.extraInAction?2:1),z=!a.forceExpand&&p>R;let S=0,V=0;const G=o.map((d,f)=>{const h=d.props,k=h.span||l;if(S+=k,!a.forceExpand&&e.unref(c)&&S>R){n.push(e.cloneVNode(d,{class:"ant-form-item-hidden",hidden:!0}));return}return V+=k,{node:d,span:h.span||l,key:`ApFormSearchFormItem-${f}-${L(h.name)}-${h._signal}`}}).filter(Boolean),H=s-V-l;return{hideNode:e.createVNode(e.Fragment,null,[n]),nodes:G,defaultExtraSpan:$,actualExtraSpan:H,showCollapse:z,lastRowOnlyIncludeActionAndExtra:U}}),W=e.computed(()=>{let t;const n=e.unref(_),o=e.createVNode(r.Col,{span:e.unref(B),key:"actionWrapper"},{default:()=>[e.createVNode(A.default,null,{default:()=>[e.createVNode(r.Flex,{justify:!e.unref(c)&&n.lastRowOnlyIncludeActionAndExtra&&!(e.unref(i)&&a.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(r.Space,null,{default:()=>[e.createVNode(r.Button,{type:"primary",onClick:M,loading:a.submitLoading,htmlType:"submit"},{default:()=>[a.searchText||g("ap.apForm.search.search")]}),e.createVNode(r.Button,{onClick:j},{default:()=>[a.resetText||g("ap.apForm.search.reset")]}),n.showCollapse?e.createVNode(r.Button,{onClick:D,icon:e.createVNode(J.DoubleRightOutlined,{style:O.value==="aplus"?"color:#B8C3D1":"color:#BFBFBF",rotate:e.unref(c)?90:-90},null)},null):null]}),a.extraInAction?e.unref(i):null]})]})]}),l=!a.extraInAction&&e.unref(i)?e.createVNode(r.Col,{span:e.unref(c)?n.actualExtraSpan:n.defaultExtraSpan,key:"extraNode"},{default:()=>[e.createVNode(A.default,null,{default:()=>[e.createVNode(r.Flex,{justify:!e.unref(c)&&(n.defaultExtraSpan===s||n.lastRowOnlyIncludeActionAndExtra)?"start":"flex-end"},te(t=e.unref(i))?t:{default:()=>[t]})]})]}):null,p=e.createVNode(r.Col,{span:n.defaultExtraSpan},null);return!e.unref(c)&&n.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[l||p,o]):e.createVNode(e.Fragment,null,[o,l])});return q({apForm:e.computed(()=>e.unref(x))}),(t,n)=>(e.openBlock(),e.createBlock(ee.default,e.mergeProps({class:e.unref(T)(),ref_key:"apForm",ref:x},e.unref(y.omit)(a,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value.hideNode))),e.createVNode(e.unref(r.Row),{gutter:16},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value.nodes,o=>(e.openBlock(),e.createBlock(e.unref(r.Col),{key:o.key,span:o.span},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.node)))]),_:2},1032,["span"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const g=require("../../config-provider/hooks/use-namespace.js"),E=e.defineComponent({name:"ApInfoLayout",__name:"ap-info-layout",props:{toEl:{default:"#microapp-fixed-header"},telDisabled:{type:Boolean,default:!1}},emits:["update:telDisabled"],setup(s,{emit:n}){const r=s,d=n,{b:a,be:c,bem:l}=g.useNamespace("info-layout"),i=e.computed(()=>[a("container")]),u=e.computed(()=>[a("header")]),m=e.computed(()=>[a("divider")]),p=e.computed(()=>[a("contant")]),v=e.computed(()=>[c("header","contant")]),C=e.computed(()=>[l("header","contant","title")]),f=e.computed(()=>[l("header","contant","actions")]),o=e.computed({get:()=>r.telDisabled,set:t=>{d("update:telDisabled",t)}});return e.onActivated(()=>{o.value=!1}),e.onDeactivated(()=>{o.value=!0}),(t,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value)},[(e.openBlock(),e.createBlock(e.Teleport,{to:t.toEl,disabled:o.value},[e.renderSlot(t.$slots,"header"),e.createElementVNode("div",{class:e.normalizeClass(`${u.value}`)},[e.createElementVNode("div",{class:e.normalizeClass(v.value)},[e.createElementVNode("div",{class:e.normalizeClass(C.value)},[e.renderSlot(t.$slots,"title")],2),e.createElementVNode("div",{class:e.normalizeClass(f.value)},[e.renderSlot(t.$slots,"actions")],2)],2)],2)],8,["to","disabled"])),e.createElementVNode("div",{class:e.normalizeClass(m.value)},[e.renderSlot(t.$slots,"divider",{},()=>[e.createVNode(e.unref(b.Divider),{class:"ap-info-layout-divider",dashed:""})])],2),e.createElementVNode("div",{class:e.normalizeClass(p.value)},[e.renderSlot(t.$slots,"content")],2)],2))}});exports.default=E;
|
|
@@ -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("../ap-table/index.js");require("../config-provider/index.js");const f=require("lodash-unified"),N=require("./hooks/use-offline-list.js"),T=require("../config-provider/hooks/use-namespace.js"),O=require("../ap-table/hooks/use-table-paging.js"),_=e.defineComponent({__name:"index",props:{dataSource:{},loading:{type:Boolean,default:void 0},onItem:{},params:{},request:{},defaultData:{},onLoadingChange:{},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},manual:{type:Boolean},containerStyle:{},footerWarpperStyle:{}},setup(y,{expose:v}){const b=i.Empty.PRESENTED_IMAGE_SIMPLE,n=y,{b:c,e:d}=T.useNamespace("ap-list"),m=e.ref(),{formRef:C,submit:g,reset:p,handleTableChange:P,data:l,refresh:k,refreshByDelete:B,tableProps:S}=O.useTablePaging({async request(t){var r;const a=await((r=n.request)==null?void 0:r.call(n,t));return{data:(a==null?void 0:a.data)||[],total:(a==null?void 0:a.total)||0}},defaultParams:n.params,defaultData:n.defaultData,manual:n.manual,defaultCurrent:n.pagination?n.pagination.defaultCurrent:void 0,defaultPageSize:n.pagination?n.pagination.defaultPageSize:void 0,formatParams:n.beforeSearchSubmit}),q={form:C},{pagination:h,dataSource:E,onChange:z}=N.useOfflineList(n);function D(t,a){if(e.unref(o)){z(t,a);return}P({current:t,pageSize:a},{},{},{currentDataSource:[],action:"paginate"})}const u=e.computed(()=>e.unref(o)?e.unref(E):e.unref(l).records),s=e.computed(()=>f.isUndefined(n.loading)?e.unref(l).loading:n.loading),w=e.computed(()=>{var t,a;return n.pagination===!1?!1:((t=n.pagination)==null?void 0:t.hideOnSinglePage)!==!0?!0:e.unref(o)?(((a=n.dataSource)==null?void 0:a.length)||0)>e.unref(h).pageSize:e.unref(l).total>e.unref(S).pagination.pageSize}),o=e.computed(()=>!f.isUndefined(n.dataSource));e.watch(()=>e.unref(s),t=>{var a;(a=n.onLoadingChange)==null||a.call(n,t)});function I(t){var a,r;(r=(a=m.value)==null?void 0:a.querySelector(t||":first-child"))==null||r.scrollIntoView({behavior:"smooth",block:"center"})}return v({submit:()=>g(),reset:()=>p(),refresh:()=>k(),refreshByDelete:t=>B(t),scrollToFirstRow:I}),(t,a)=>(e.openBlock(),e.createBlock(e.unref(i.Spin),{spinning:s.value,class:e.normalizeClass(e.unref(c)("spin"))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)()),style:e.normalizeStyle(t.containerStyle)},[e.renderSlot(t.$slots,"header",{formIns:q,submit:e.unref(g),reset:e.unref(p)}),u.value.length===0?e.renderSlot(t.$slots,"empty",{key:0,loading:s.value},()=>[e.createVNode(e.unref(i.Empty),{image:e.unref(b)},null,8,["image"])]):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"contentRef",ref:m,class:e.normalizeClass(e.unref(d)("content"))},[e.renderSlot(t.$slots,"renderContent",{dataSource:u.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(r,L)=>e.renderSlot(t.$slots,"renderItem",{item:r,index:L})),256))])],2)),w.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(d)("footer")),style:e.normalizeStyle(t.footerWarpperStyle)},[e.createVNode(e.unref(i.Pagination),e.mergeProps(o.value?e.unref(h):e.unref(f.omit)(e.unref(S).pagination,["showTotal"]),{onChange:D}),null,16)],6)):e.createCommentVNode("",!0)],6)]),_:3},8,["spinning","class"]))}});exports.default=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@aplus-frontend/antdv");require("./utils/index.js");require("./interface.js");const a=require("./utils/createModal.js"),e=r.Modal;e.createModal=a.createModal;e.name="ApModal";exports.ApModal=e;
|