@aplus-frontend/ui 0.5.37 → 0.6.0-beta.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 +74 -72
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/ap-form.vue2.mjs +57 -58
- package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +35 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/item/index.vue.mjs +33 -28
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.mjs +8 -7
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/number/index.vue.mjs +9 -8
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/select/index.vue.mjs +7 -6
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
- package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/render/item.vue.mjs +5 -4
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/es/src/ap-form/search-form/index.vue.mjs +128 -127
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ap-grid/editable/index.vue.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +113 -108
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-table/ap-table.vue2.mjs +108 -104
- package/es/src/ap-table/constants.d.ts +161 -161
- package/es/src/ap-table/context.d.ts +5 -0
- package/es/src/ap-table/context.mjs +13 -5
- package/es/src/ap-table/utils.d.ts +147 -147
- package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/index.d.ts +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +174 -0
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +177 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
- package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
- package/es/src/business/ap-view/index.d.ts +27 -0
- package/es/src/business/ap-view/index.mjs +8 -0
- package/es/src/business/ap-view/interface.d.ts +54 -0
- package/es/src/business/ap-view/interface.mjs +1 -0
- package/es/src/business/ap-view/style/css.d.ts +0 -0
- package/es/src/business/ap-view/style/css.js +1 -0
- package/es/src/business/ap-view/style/index.d.ts +0 -0
- package/es/src/business/ap-view/style/index.js +1 -0
- package/es/src/business/ap-view/utils/enum.d.ts +1 -0
- package/es/src/business/ap-view/utils/enum.mjs +4 -0
- package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/es/src/business/ap-view/utils/uuid.mjs +22 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +25 -23
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +5 -0
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +25 -1
- package/es/src/config-provider/config-provider.mjs +21 -20
- package/es/src/config-provider/css-var.d.ts +14 -0
- package/es/src/config-provider/css-var.mjs +40 -12
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/es/src/config-provider/index.d.ts +89 -3
- package/es/src/design-token/index.mjs +9 -3
- package/es/src/editable-table/form-item.vue.mjs +1 -1
- package/es/src/editable-table/index.vue.mjs +27 -27
- package/es/src/full-screen/interface.d.ts +1 -1
- package/es/src/index.mjs +61 -59
- package/es/src/locale/lang/en.mjs +22 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/config-provider-preset.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +35 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +161 -161
- package/lib/src/ap-table/context.d.ts +5 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +147 -147
- package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/index.d.ts +15 -15
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/lib/src/business/ap-view/ap-view.vue.js +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +27 -0
- package/lib/src/business/ap-view/index.js +1 -0
- package/lib/src/business/ap-view/interface.d.ts +54 -0
- package/lib/src/business/ap-view/interface.js +1 -0
- package/lib/src/business/ap-view/style/css.cjs +1 -0
- package/lib/src/business/ap-view/style/css.d.ts +0 -0
- package/lib/src/business/ap-view/style/index.cjs +1 -0
- package/lib/src/business/ap-view/style/index.d.ts +0 -0
- package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
- package/lib/src/business/ap-view/utils/enum.js +1 -0
- package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/lib/src/business/ap-view/utils/uuid.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/css-var.d.ts +14 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/lib/src/config-provider/index.d.ts +89 -3
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/full-screen/interface.d.ts +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 +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/package.json +7 -7
- package/theme/ap-action/item-dropdown.css +30 -2
- package/theme/ap-action/item-dropdown.less +2 -2
- package/theme/ap-action/item.css +36 -2
- package/theme/ap-action/item.less +2 -3
- package/theme/ap-appendix/ap-appendix.css +28 -0
- package/theme/ap-attachment/ap-attachment.css +28 -0
- package/theme/ap-batch-action/ap-batch-action.css +28 -0
- package/theme/ap-button/ap-button.css +28 -0
- package/theme/ap-card/ap-card.css +28 -0
- package/theme/ap-descriptions/ap-descriptions.css +28 -0
- package/theme/ap-download/ap-download.css +28 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
- package/theme/ap-field/checkbox.css +29 -1
- package/theme/ap-field/checkbox.less +2 -1
- package/theme/ap-field/index.css +30 -2
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +29 -1
- package/theme/ap-field/radio.less +1 -1
- package/theme/ap-field/text-area.css +28 -0
- package/theme/ap-form/ap-form-item-group.css +28 -0
- package/theme/ap-form/ap-form-item.css +35 -5
- package/theme/ap-form/ap-form-item.less +8 -6
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +177 -6
- package/theme/ap-form/item-text-group.css +28 -0
- package/theme/ap-form/item-text.css +28 -0
- package/theme/ap-form/modal-form.css +28 -0
- package/theme/ap-form/search-form-sorter.css +120 -0
- package/theme/ap-form/search-form-sorter.less +71 -0
- package/theme/ap-form/search-form.css +177 -6
- package/theme/ap-form/search-form.less +57 -1
- package/theme/ap-grid/editable.css +30 -2
- package/theme/ap-grid/editable.less +2 -2
- package/theme/ap-grid/index.css +206 -20
- package/theme/ap-grid/index.less +17 -8
- package/theme/ap-group-search/ap-extension-select.css +28 -0
- package/theme/ap-group-search/ap-group-search.css +28 -0
- package/theme/ap-group-search/ap-popover-select.css +28 -0
- package/theme/ap-image/ap-image.css +28 -0
- package/theme/ap-input-radio/ap-input-radio.css +28 -0
- package/theme/ap-label/ap-label.css +28 -0
- package/theme/ap-ladder/ap-ladder.css +28 -0
- package/theme/ap-layout/ap-info-layout.css +28 -0
- package/theme/ap-list/index.css +29 -1
- package/theme/ap-list/index.less +2 -1
- package/theme/ap-product-info/ap-product-info.css +28 -0
- package/theme/ap-select-layout/ap-select-layout.css +28 -0
- package/theme/ap-size-input/ap-size-input.css +28 -0
- package/theme/ap-status/ap-status.css +28 -0
- package/theme/ap-summary/index.css +28 -0
- package/theme/ap-table/ap-table-index.css +28 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
- package/theme/ap-table/ap-table.css +217 -34
- package/theme/ap-table/ap-table.less +12 -9
- package/theme/ap-table/setting/index.css +44 -2
- package/theme/ap-table/setting/modal.css +36 -0
- package/theme/ap-table/setting/modal.less +1 -0
- package/theme/ap-table/setting/select-group.css +28 -0
- package/theme/ap-table/setting/sortable-item-meta.css +28 -0
- package/theme/ap-table/setting/sortable-item.css +28 -0
- package/theme/ap-table/setting/sorter.css +36 -2
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +217 -34
- package/theme/ap-tag/ap-tag-group.css +28 -0
- package/theme/ap-tag/ap-tag.css +28 -0
- package/theme/ap-title/ap-title.css +28 -0
- package/theme/ap-upload/index.css +28 -0
- package/theme/ap-upload/multiple-file.css +28 -0
- package/theme/ap-upload/picture.css +28 -0
- package/theme/ap-upload/single-file.css +28 -0
- package/theme/ap-upload/upload.css +28 -0
- package/theme/ap-upload-single/index.css +28 -0
- package/theme/ap-view/ap-view.css +149 -0
- package/theme/ap-view/ap-view.less +128 -0
- package/theme/batch-input-group/index.css +30 -2
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +65 -17
- package/theme/check-card/index.less +20 -19
- package/theme/editable-table/index.css +198 -19
- package/theme/editable-table/index.less +9 -7
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +417 -75
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +26 -3
- package/theme/mixins/mixins.css +28 -0
- package/theme/mixins/mixins.less +35 -0
- package/theme/scroll-bar/index.css +28 -0
- package/theme/scroll-view/index.css +28 -0
- package/theme/splitter/index.css +33 -5
- package/theme/text/group.css +28 -0
- package/theme/text/index.css +36 -1
- package/theme/text/index.less +1 -1
- package/theme/work-order-modal/index.css +28 -0
package/es/index.mjs
CHANGED
|
@@ -7,11 +7,11 @@ import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./s
|
|
|
7
7
|
import { buildLocaleContext as S, buildTranslator as b, localeContextKey as C, translate as D, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as h, namespaceContextKey as E, useGetDerivedNamespace as P, useNamespace as R } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as M, globalConfigCached as N } from "./src/config-provider/config-provider.mjs";
|
|
10
|
-
import { APConfigProvider as
|
|
10
|
+
import { APConfigProvider as y } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { ApFormItemText as v } from "./src/ap-form/items/text/index.mjs";
|
|
12
12
|
import { default as O } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as U } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
|
-
import { default as
|
|
14
|
+
import { default as _ } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
15
|
import { default as W } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
16
16
|
import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
17
17
|
import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
|
|
@@ -34,11 +34,11 @@ import { default as he } from "./src/ap-form/provider/index.vue.mjs";
|
|
|
34
34
|
import { ApField as Pe } from "./src/ap-field/index.mjs";
|
|
35
35
|
import { ApFieldText as Le } from "./src/ap-field/text/index.mjs";
|
|
36
36
|
import { default as Ne } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
37
|
-
import { default as
|
|
37
|
+
import { default as ye } from "./src/ap-field/date/index.vue.mjs";
|
|
38
38
|
import { default as ve } from "./src/ap-field/number/index.vue.mjs";
|
|
39
39
|
import { default as Oe } from "./src/ap-field/radio/index.vue.mjs";
|
|
40
40
|
import { default as Ue } from "./src/ap-field/switch/index.vue.mjs";
|
|
41
|
-
import { default as
|
|
41
|
+
import { default as _e } from "./src/ap-field/text-area/index.vue.mjs";
|
|
42
42
|
import { default as We } from "./src/ap-field/date-range/index.vue.mjs";
|
|
43
43
|
import { default as $e } from "./src/ap-field/select/index.vue.mjs";
|
|
44
44
|
import { default as qe } from "./src/ap-field/text/password.vue.mjs";
|
|
@@ -59,12 +59,12 @@ import { default as Go } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
|
59
59
|
import { default as Eo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
60
60
|
import { default as Ro } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
61
61
|
import { NeedNameKeyDefault as Mo } from "./src/ap-upload/apUploadTypes.mjs";
|
|
62
|
-
import { default as
|
|
62
|
+
import { default as wo } from "./src/ap-upload/apUpload.vue.mjs";
|
|
63
63
|
import { ApDownLoadNeedNameKeyDefault as ko } from "./src/ap-download/interface.mjs";
|
|
64
64
|
import { default as Bo } from "./src/ap-download/ap-download.vue.mjs";
|
|
65
65
|
import { CheckCard as Ko } from "./src/check-card/index.mjs";
|
|
66
|
-
import { default as
|
|
67
|
-
import { ApModal as
|
|
66
|
+
import { default as Vo } from "./src/check-card/group.vue.mjs";
|
|
67
|
+
import { ApModal as zo } from "./src/ap-modal/index.mjs";
|
|
68
68
|
import { default as Ho } from "./src/ap-list/index.vue.mjs";
|
|
69
69
|
import { default as jo } from "./src/ap-button/ap-button.vue.mjs";
|
|
70
70
|
import { default as Jo } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
@@ -86,11 +86,11 @@ import { handleExportDownload as Gr } from "./src/business/ap-export-group/handl
|
|
|
86
86
|
import { convertExportField as Er } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
87
87
|
import { ApImage as Rr } from "./src/business/ap-image/index.mjs";
|
|
88
88
|
import { ApInputRadio as Mr } from "./src/business/ap-input-radio/index.mjs";
|
|
89
|
-
import { ApLabel as
|
|
89
|
+
import { ApLabel as wr, ApLabelGroup as yr } from "./src/business/ap-label/index.mjs";
|
|
90
90
|
import { locales as vr } from "./src/business/ap-ladder/interface.mjs";
|
|
91
91
|
import { ApLadder as Or } from "./src/business/ap-ladder/index.mjs";
|
|
92
92
|
import { ApSelectLayout as Ur } from "./src/business/ap-select-layout/index.mjs";
|
|
93
|
-
import { ApStatus as
|
|
93
|
+
import { ApStatus as _r, ApStatusGroup as zr } from "./src/business/ap-status/index.mjs";
|
|
94
94
|
import { ApTitle as Hr } from "./src/business/ap-title/index.mjs";
|
|
95
95
|
import { usePageListApTable as jr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
96
96
|
import { useTableRefresh as Jr } from "./src/business/hooks/useTableRefresh.mjs";
|
|
@@ -106,32 +106,33 @@ import { default as It } from "./src/business/batch-input-group/index.vue.mjs";
|
|
|
106
106
|
import { default as St } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
107
107
|
import { ApSizeInput as Ct } from "./src/business/ap-size-input/index.mjs";
|
|
108
108
|
import { ApProductInfo as gt } from "./src/business/ap-product-info/index.mjs";
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import { default as Nt } from "./src/editable-table/
|
|
113
|
-
import { default as
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import { default as Ut } from "./src/scroll-bar/
|
|
117
|
-
import { default as
|
|
118
|
-
import { default as Wt } from "./src/
|
|
119
|
-
import { default as $t } from "./src/
|
|
120
|
-
import { default as qt } from "./src/
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import { default as ep } from "./src/ap-grid/
|
|
124
|
-
import { default as rp } from "./src/ap-grid/editable/
|
|
125
|
-
import { default as pp } from "./src/
|
|
126
|
-
import { default as fp } from "./src/text/
|
|
127
|
-
import { default as lp } from "./src/
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
109
|
+
import { ApView as ht } from "./src/business/ap-view/index.mjs";
|
|
110
|
+
import { useTablePaging as Pt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
111
|
+
import { ApTable as Lt } from "./src/ap-table/index.mjs";
|
|
112
|
+
import { default as Nt } from "./src/editable-table/index.vue.mjs";
|
|
113
|
+
import { default as yt } from "./src/editable-table/form-item.vue.mjs";
|
|
114
|
+
import { default as vt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
115
|
+
import { ensureRangeValue as Ot } from "./src/scroll-bar/utils/index.mjs";
|
|
116
|
+
import { default as Ut } from "./src/scroll-bar/index.vue.mjs";
|
|
117
|
+
import { default as _t } from "./src/scroll-bar/internal.vue.mjs";
|
|
118
|
+
import { default as Wt } from "./src/scroll-view/index.vue.mjs";
|
|
119
|
+
import { default as $t } from "./src/portal/index.vue.mjs";
|
|
120
|
+
import { default as qt } from "./src/full-screen/index.vue.mjs";
|
|
121
|
+
import { default as Qt } from "./src/resize-observer/index.vue.mjs";
|
|
122
|
+
import { ROW_SELECTION_FIELD as Yt } from "./src/ap-grid/constants.mjs";
|
|
123
|
+
import { default as ep } from "./src/ap-grid/index.vue.mjs";
|
|
124
|
+
import { default as rp } from "./src/ap-grid/editable/index.vue.mjs";
|
|
125
|
+
import { default as pp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
126
|
+
import { default as fp } from "./src/text/index.vue.mjs";
|
|
127
|
+
import { default as lp } from "./src/text/group.vue.mjs";
|
|
128
|
+
import { default as dp } from "./src/mask/index.vue.mjs";
|
|
129
|
+
import { Splitter as sp } from "./src/splitter/index.mjs";
|
|
130
|
+
import { useMessage as ip } from "./src/hooks/useMessage.mjs";
|
|
131
|
+
import { useControllableValue as cp } from "./src/hooks/useControllableValue.mjs";
|
|
132
|
+
import { useManualRef as Ip } from "./src/hooks/useManualRef.mjs";
|
|
133
|
+
import { useThrottleRef as Sp } from "./src/hooks/useThrottleRef.mjs";
|
|
134
|
+
import { useFullScreen as Cp } from "./src/hooks/useFullScreen.mjs";
|
|
135
|
+
import { useResize as gp } from "./src/hooks/useResize.mjs";
|
|
135
136
|
const a = {
|
|
136
137
|
install: (r) => {
|
|
137
138
|
for (const t in o) {
|
|
@@ -141,7 +142,7 @@ const a = {
|
|
|
141
142
|
}
|
|
142
143
|
};
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
y as APConfigProvider,
|
|
145
146
|
Jo as ApActionButton,
|
|
146
147
|
co as ApActionGroup,
|
|
147
148
|
mo as ApActionItem,
|
|
@@ -156,7 +157,7 @@ export {
|
|
|
156
157
|
nr as ApButtonGroup,
|
|
157
158
|
Fr as ApCard,
|
|
158
159
|
Xo as ApConfirmButton,
|
|
159
|
-
|
|
160
|
+
vt as ApDescriptions,
|
|
160
161
|
ko as ApDownLoadNeedNameKeyDefault,
|
|
161
162
|
Bo as ApDownload,
|
|
162
163
|
Zo as ApDrawer,
|
|
@@ -166,7 +167,7 @@ export {
|
|
|
166
167
|
st as ApExtensionSelect,
|
|
167
168
|
Pe as ApField,
|
|
168
169
|
Ne as ApFieldCheckbox,
|
|
169
|
-
|
|
170
|
+
ye as ApFieldDate,
|
|
170
171
|
We as ApFieldDateRange,
|
|
171
172
|
ve as ApFieldNumber,
|
|
172
173
|
qe as ApFieldPassword,
|
|
@@ -177,7 +178,7 @@ export {
|
|
|
177
178
|
Qe as ApFieldSlider,
|
|
178
179
|
Ue as ApFieldSwitch,
|
|
179
180
|
Le as ApFieldText,
|
|
180
|
-
|
|
181
|
+
_e as ApFieldTextArea,
|
|
181
182
|
ro as ApFieldTreeSelect,
|
|
182
183
|
pe as ApForm,
|
|
183
184
|
Ce as ApFormControlRender,
|
|
@@ -186,7 +187,7 @@ export {
|
|
|
186
187
|
fe as ApFormItem,
|
|
187
188
|
St as ApFormItemBatchInput,
|
|
188
189
|
Y as ApFormItemCheckbox,
|
|
189
|
-
|
|
190
|
+
_ as ApFormItemDate,
|
|
190
191
|
W as ApFormItemDateRange,
|
|
191
192
|
le as ApFormItemGroup,
|
|
192
193
|
U as ApFormItemNumber,
|
|
@@ -203,55 +204,56 @@ export {
|
|
|
203
204
|
he as ApFormProvider,
|
|
204
205
|
se as ApFormSearchForm,
|
|
205
206
|
Ie as ApFormSet,
|
|
206
|
-
|
|
207
|
+
ep as ApGrid,
|
|
207
208
|
At as ApGroupSearch,
|
|
208
209
|
Rr as ApImage,
|
|
209
210
|
Ro as ApInfoLayout,
|
|
210
211
|
Mr as ApInputRadio,
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
wr as ApLabel,
|
|
213
|
+
yr as ApLabelGroup,
|
|
213
214
|
Or as ApLadder,
|
|
214
215
|
Ho as ApList,
|
|
215
|
-
|
|
216
|
+
zo as ApModal,
|
|
216
217
|
lt as ApNeedNameKeyDefault,
|
|
217
218
|
it as ApPopoverSelect,
|
|
218
219
|
gt as ApProductInfo,
|
|
219
220
|
Ur as ApSelectLayout,
|
|
220
221
|
Ct as ApSizeInput,
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
_r as ApStatus,
|
|
223
|
+
zr as ApStatusGroup,
|
|
223
224
|
ft as ApSummary,
|
|
224
|
-
|
|
225
|
+
Lt as ApTable,
|
|
225
226
|
tr as ApTableModal,
|
|
226
227
|
Go as ApTag,
|
|
227
228
|
Eo as ApTagGroup,
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
fp as ApText,
|
|
230
|
+
lp as ApTextGroup,
|
|
230
231
|
Hr as ApTitle,
|
|
231
232
|
or as ApTransformDataHelper,
|
|
232
|
-
|
|
233
|
+
wo as ApUpload,
|
|
233
234
|
ct as ApUploadSingle,
|
|
235
|
+
ht as ApView,
|
|
234
236
|
It as BatchInputGroup,
|
|
235
237
|
Ko as CheckCard,
|
|
236
|
-
|
|
238
|
+
Vo as CheckCardGroup,
|
|
237
239
|
M as ConfigProvider,
|
|
238
240
|
s as DEFAULT_NAMESPACE,
|
|
239
241
|
A as DEFAULT_UIMODE,
|
|
240
242
|
Io as DictCode,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
243
|
+
rp as EditableGrid,
|
|
244
|
+
pp as EditableGridFormItem,
|
|
245
|
+
Nt as EditableTable,
|
|
246
|
+
yt as EditableTableFormItem,
|
|
247
|
+
qt as FullScreen,
|
|
248
|
+
_t as InternalScrollBar,
|
|
249
|
+
dp as Mask,
|
|
248
250
|
Mo as NeedNameKeyDefault,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
$t as Portal,
|
|
252
|
+
Yt as ROW_SELECTION_FIELD,
|
|
253
|
+
Qt as ResizeObserver,
|
|
254
|
+
Ut as ScrollBar,
|
|
255
|
+
Wt as ScrollView,
|
|
256
|
+
sp as Splitter,
|
|
255
257
|
Do as WorkOrderModal,
|
|
256
258
|
po as adminToken,
|
|
257
259
|
ao as aplusToken,
|
|
@@ -264,7 +266,7 @@ export {
|
|
|
264
266
|
bo as createWorkOrderModal,
|
|
265
267
|
a as default,
|
|
266
268
|
h as defaultNamespace,
|
|
267
|
-
|
|
269
|
+
Ot as ensureRangeValue,
|
|
268
270
|
rt as flattenColumns,
|
|
269
271
|
tt as formatDataIndex,
|
|
270
272
|
pt as formatNumber,
|
|
@@ -278,21 +280,21 @@ export {
|
|
|
278
280
|
l as pathMap,
|
|
279
281
|
F as provideGlobalConfig,
|
|
280
282
|
D as translate,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
cp as useControllableValue,
|
|
284
|
+
Cp as useFullScreen,
|
|
283
285
|
P as useGetDerivedNamespace,
|
|
284
286
|
I as useGlobalConfig,
|
|
285
287
|
Zr as useGridRefresh,
|
|
286
288
|
g as useLocale,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
+
Ip as useManualRef,
|
|
290
|
+
ip as useMessage,
|
|
289
291
|
R as useNamespace,
|
|
290
292
|
Xr as usePageListApGrid,
|
|
291
293
|
jr as usePageListApTable,
|
|
292
|
-
|
|
294
|
+
gp as useResize,
|
|
293
295
|
ar as useTableModal,
|
|
294
|
-
|
|
296
|
+
Pt as useTablePaging,
|
|
295
297
|
Jr as useTableRefresh,
|
|
296
298
|
mr as useTableSelectModal,
|
|
297
|
-
|
|
299
|
+
Sp as useThrottleRef
|
|
298
300
|
};
|
|
@@ -450,13 +450,13 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
450
450
|
multiple: boolean;
|
|
451
451
|
disabled: boolean;
|
|
452
452
|
bordered: boolean;
|
|
453
|
-
virtual: boolean;
|
|
454
|
-
showSearch: boolean;
|
|
455
453
|
loading: boolean;
|
|
456
454
|
autofocus: boolean;
|
|
455
|
+
virtual: boolean;
|
|
457
456
|
lazy: boolean;
|
|
458
457
|
allowClear: boolean;
|
|
459
458
|
defaultOpen: boolean;
|
|
459
|
+
showSearch: boolean;
|
|
460
460
|
showArrow: boolean;
|
|
461
461
|
autoClearSearchValue: boolean;
|
|
462
462
|
defaultActiveFirstOption: boolean;
|
|
@@ -594,13 +594,13 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
594
594
|
multiple: boolean;
|
|
595
595
|
disabled: boolean;
|
|
596
596
|
bordered: boolean;
|
|
597
|
-
virtual: boolean;
|
|
598
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
599
|
-
showSearch: boolean;
|
|
600
597
|
loading: boolean;
|
|
601
598
|
autofocus: boolean;
|
|
599
|
+
virtual: boolean;
|
|
600
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
602
601
|
allowClear: boolean;
|
|
603
602
|
defaultOpen: boolean;
|
|
603
|
+
showSearch: boolean;
|
|
604
604
|
showArrow: boolean;
|
|
605
605
|
autoClearSearchValue: boolean;
|
|
606
606
|
labelInValue: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Q, reactive as X, ref as
|
|
2
|
-
import { Form as
|
|
3
|
-
import { useProvideForm as
|
|
4
|
-
import { isArray as f, cloneDeep as ae, isFunction as
|
|
1
|
+
import { defineComponent as Q, reactive as X, ref as E, unref as p, nextTick as Y, toRaw as _, watch as Z, onWatcherCleanup as z, computed as ee, createBlock as te, openBlock as re, mergeProps as le, withCtx as oe, renderSlot as se } from "vue";
|
|
2
|
+
import { Form as ne } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useProvideForm as ie } from "./context.mjs";
|
|
4
|
+
import { isArray as f, cloneDeep as ae, isFunction as B, isPlainObject as M, omit as ue } from "lodash-unified";
|
|
5
5
|
import { useUrlSearchParams as ce } from "@vueuse/core";
|
|
6
6
|
import { INTERNAL_FORM_INSTANCE_MARK as fe } from "./constant.mjs";
|
|
7
7
|
import { getRouteType as de, isDef as V } from "../utils/index.mjs";
|
|
8
8
|
import ge from "./utils/set.mjs";
|
|
9
|
-
import { genParams as
|
|
10
|
-
import { useInjectFormProvider as
|
|
9
|
+
import { genParams as b, setToParams as A } from "./utils/params.mjs";
|
|
10
|
+
import { useInjectFormProvider as he } from "./provider/context.mjs";
|
|
11
11
|
const Re = /* @__PURE__ */ Q({
|
|
12
12
|
__name: "ap-form",
|
|
13
13
|
props: {
|
|
@@ -38,11 +38,11 @@ const Re = /* @__PURE__ */ Q({
|
|
|
38
38
|
syncToUrl: { type: [Boolean, Function], default: !1 },
|
|
39
39
|
syncToUrlPriority: { type: Boolean }
|
|
40
40
|
},
|
|
41
|
-
setup(
|
|
42
|
-
function
|
|
41
|
+
setup(C, { expose: N }) {
|
|
42
|
+
function S(e, t) {
|
|
43
43
|
return f(t) ? t.reduce((r, o) => r == null ? void 0 : r[o], e) : e == null ? void 0 : e[t];
|
|
44
44
|
}
|
|
45
|
-
const l =
|
|
45
|
+
const l = C;
|
|
46
46
|
function v(e, t, r = !0, o) {
|
|
47
47
|
var s;
|
|
48
48
|
if (f(e)) {
|
|
@@ -59,13 +59,13 @@ const Re = /* @__PURE__ */ Q({
|
|
|
59
59
|
}
|
|
60
60
|
T();
|
|
61
61
|
}
|
|
62
|
-
const u =
|
|
63
|
-
l.syncToUrl ?
|
|
62
|
+
const u = E(), I = ce(de()), y = he(), P = E(
|
|
63
|
+
l.syncToUrl ? b(l.syncToUrl, I, "get") : {}
|
|
64
64
|
);
|
|
65
|
-
let m = ae(
|
|
66
|
-
const n = X(
|
|
67
|
-
let
|
|
68
|
-
function
|
|
65
|
+
let m = ae(w()), g = {};
|
|
66
|
+
const n = X(w());
|
|
67
|
+
let h = [];
|
|
68
|
+
function w() {
|
|
69
69
|
const e = l.initialValues || {};
|
|
70
70
|
return l.syncToUrlPriority ? {
|
|
71
71
|
...e,
|
|
@@ -75,43 +75,42 @@ const Re = /* @__PURE__ */ Q({
|
|
|
75
75
|
...e
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function W(e) {
|
|
79
79
|
var r;
|
|
80
|
-
const t =
|
|
81
|
-
y.triggerFormFinish(l.name, e), l.syncToUrl &&
|
|
80
|
+
const t = F(e, g);
|
|
81
|
+
y.triggerFormFinish(l.name, e), l.syncToUrl && A(I, b(l.syncToUrl, t, "set")), (r = l.onFinish) == null || r.call(l, t);
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const q = async () => {
|
|
84
84
|
var e;
|
|
85
85
|
(e = u.value) == null || e.resetFields(), await Y(() => {
|
|
86
|
-
Object.keys(n).forEach((t) => delete n[t]), Object.assign(n, m), T(), l.syncToUrl &&
|
|
86
|
+
Object.keys(n).forEach((t) => delete n[t]), Object.assign(n, m), T(), l.syncToUrl && A(
|
|
87
87
|
I,
|
|
88
|
-
|
|
88
|
+
b(
|
|
89
89
|
l.syncToUrl,
|
|
90
|
-
|
|
90
|
+
F(m, g),
|
|
91
91
|
"set"
|
|
92
92
|
)
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
|
-
},
|
|
95
|
+
}, D = (e) => {
|
|
96
96
|
var t;
|
|
97
97
|
(t = u.value) == null || t.clearValidate(e);
|
|
98
|
-
},
|
|
98
|
+
}, k = (e, t) => {
|
|
99
99
|
var r;
|
|
100
100
|
return (r = u.value) == null ? void 0 : r.validateFields(e, t);
|
|
101
|
-
},
|
|
101
|
+
}, K = async (e, t) => {
|
|
102
102
|
var o;
|
|
103
103
|
const r = await ((o = u.value) == null ? void 0 : o.validateFields(
|
|
104
104
|
e,
|
|
105
105
|
t
|
|
106
106
|
));
|
|
107
|
-
return
|
|
108
|
-
},
|
|
107
|
+
return F(r, g);
|
|
108
|
+
}, O = (e) => {
|
|
109
109
|
var t;
|
|
110
|
-
return (t = u.value) == null ? void 0 : t.getFieldsValue(e);
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return h(t, g);
|
|
110
|
+
return e === !0 ? _(n) : (t = u.value) == null ? void 0 : t.getFieldsValue(e);
|
|
111
|
+
}, L = (e) => {
|
|
112
|
+
const t = O(e);
|
|
113
|
+
return F(t, g);
|
|
115
114
|
}, $ = (e, t) => {
|
|
116
115
|
var r;
|
|
117
116
|
return (r = u.value) == null ? void 0 : r.validate(e, t);
|
|
@@ -124,13 +123,13 @@ const Re = /* @__PURE__ */ Q({
|
|
|
124
123
|
v(e, t, r, o), T();
|
|
125
124
|
};
|
|
126
125
|
function R(e, t) {
|
|
127
|
-
return t || e(
|
|
128
|
-
|
|
126
|
+
return t || e(_(n)), h.push(e), () => {
|
|
127
|
+
h = h.filter((r) => r !== e);
|
|
129
128
|
};
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function j({ initialValue: e, name: t, transform: r }) {
|
|
132
131
|
if (V(e) && V(t)) {
|
|
133
|
-
const o =
|
|
132
|
+
const o = S(p(P), t);
|
|
134
133
|
if (!V(o) || !l.syncToUrlPriority)
|
|
135
134
|
if (v(t, e, !1), f(t)) {
|
|
136
135
|
let i = m;
|
|
@@ -153,33 +152,33 @@ const Re = /* @__PURE__ */ Q({
|
|
|
153
152
|
return;
|
|
154
153
|
}
|
|
155
154
|
return {
|
|
156
|
-
registerField:
|
|
155
|
+
registerField: j,
|
|
157
156
|
registerWatch: R,
|
|
158
157
|
setFieldValue: U
|
|
159
158
|
};
|
|
160
159
|
}
|
|
161
160
|
function T() {
|
|
162
|
-
if (
|
|
163
|
-
const e =
|
|
164
|
-
|
|
161
|
+
if (h.length) {
|
|
162
|
+
const e = _(n);
|
|
163
|
+
h.forEach((t) => {
|
|
165
164
|
t(e);
|
|
166
165
|
});
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
|
-
function
|
|
168
|
+
function F(e, t) {
|
|
170
169
|
if (e == null)
|
|
171
170
|
return;
|
|
172
171
|
let r = f(e) ? [] : {};
|
|
173
172
|
return Object.keys(e).forEach((o) => {
|
|
174
|
-
const i = e[o], s = t == null ? void 0 : t[o], a =
|
|
175
|
-
if (
|
|
173
|
+
const i = e[o], s = t == null ? void 0 : t[o], a = B(s) ? s : s == null ? void 0 : s.transformer, d = B(s) ? !0 : s == null ? void 0 : s.flat;
|
|
174
|
+
if (B(a)) {
|
|
176
175
|
const c = a(i);
|
|
177
|
-
d ? f(c) && f(r) ? r = [...r, ...c] :
|
|
176
|
+
d ? f(c) && f(r) ? r = [...r, ...c] : M(c) && M(r) ? r = {
|
|
178
177
|
...r,
|
|
179
178
|
...c
|
|
180
179
|
} : r[o] = c : r[o] = c;
|
|
181
|
-
} else if (
|
|
182
|
-
const c =
|
|
180
|
+
} else if (M(i) || f(i)) {
|
|
181
|
+
const c = F(
|
|
183
182
|
i,
|
|
184
183
|
s
|
|
185
184
|
);
|
|
@@ -188,44 +187,44 @@ const Re = /* @__PURE__ */ Q({
|
|
|
188
187
|
r[o] = i;
|
|
189
188
|
}), r;
|
|
190
189
|
}
|
|
191
|
-
const
|
|
192
|
-
resetFields:
|
|
193
|
-
clearValidate:
|
|
194
|
-
validateFields:
|
|
195
|
-
getFieldsValue:
|
|
190
|
+
const x = {
|
|
191
|
+
resetFields: q,
|
|
192
|
+
clearValidate: D,
|
|
193
|
+
validateFields: k,
|
|
194
|
+
getFieldsValue: O,
|
|
196
195
|
validate: $,
|
|
197
196
|
scrollToField: G,
|
|
198
197
|
setFieldsValue: H,
|
|
199
198
|
setFieldValue: U,
|
|
200
199
|
registerWatch: R,
|
|
201
|
-
validateFieldsReturnTransformed:
|
|
202
|
-
getFieldsValueTransformed:
|
|
200
|
+
validateFieldsReturnTransformed: K,
|
|
201
|
+
getFieldsValueTransformed: L,
|
|
203
202
|
getInternalInstance: J
|
|
204
203
|
};
|
|
205
204
|
return Z(
|
|
206
205
|
() => l.name,
|
|
207
206
|
(e) => {
|
|
208
|
-
e && (y.registerForm(e,
|
|
207
|
+
e && (y.registerForm(e, x), z(() => {
|
|
209
208
|
y.unregisterForm(l.name);
|
|
210
209
|
}));
|
|
211
210
|
},
|
|
212
211
|
{
|
|
213
212
|
immediate: !0
|
|
214
213
|
}
|
|
215
|
-
),
|
|
214
|
+
), ie({
|
|
216
215
|
model: ee(() => n),
|
|
217
216
|
updateModel: v,
|
|
218
217
|
internalInstance: {
|
|
219
218
|
registerWatch: R,
|
|
220
|
-
registerField:
|
|
219
|
+
registerField: j,
|
|
221
220
|
setFieldValue: U
|
|
222
221
|
}
|
|
223
|
-
}),
|
|
222
|
+
}), N(x), (e, t) => (re(), te(p(ne), le({
|
|
224
223
|
ref_key: "formRef",
|
|
225
224
|
ref: u
|
|
226
225
|
}, p(ue)(l, ["initialValues", "onValuesChange", "onFinish"]), {
|
|
227
226
|
model: n,
|
|
228
|
-
onFinish:
|
|
227
|
+
onFinish: W
|
|
229
228
|
}), {
|
|
230
229
|
default: oe(() => [
|
|
231
230
|
se(e.$slots, "default")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions,
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
5
|
-
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
@@ -32,10 +32,6 @@ declare function __VLS_template(): {
|
|
|
32
32
|
readonly layout?: string | undefined;
|
|
33
33
|
readonly disabled?: boolean | undefined;
|
|
34
34
|
readonly prefixCls?: string | undefined;
|
|
35
|
-
readonly name?: string | undefined;
|
|
36
|
-
readonly validateMessages?: ValidateMessages | undefined;
|
|
37
|
-
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
38
|
-
readonly colon?: boolean | undefined;
|
|
39
35
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
40
36
|
span: (StringConstructor | NumberConstructor)[];
|
|
41
37
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -102,13 +98,17 @@ declare function __VLS_template(): {
|
|
|
102
98
|
prefixCls: StringConstructor;
|
|
103
99
|
flex: (StringConstructor | NumberConstructor)[];
|
|
104
100
|
}>> & HTMLAttributes) | undefined;
|
|
101
|
+
readonly colon?: boolean | undefined;
|
|
105
102
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
103
|
+
readonly name?: string | undefined;
|
|
106
104
|
readonly rules?: {
|
|
107
105
|
[k: string]: RuleObject | RuleObject[];
|
|
108
106
|
} | undefined;
|
|
109
107
|
readonly validateTrigger?: string | string[] | undefined;
|
|
110
108
|
readonly labelWrap?: boolean | undefined;
|
|
109
|
+
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
111
110
|
readonly hideRequiredMark?: boolean | undefined;
|
|
111
|
+
readonly validateMessages?: ValidateMessages | undefined;
|
|
112
112
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
113
113
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
114
114
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
@@ -974,10 +974,6 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
974
974
|
readonly layout?: string | undefined;
|
|
975
975
|
readonly disabled?: boolean | undefined;
|
|
976
976
|
readonly prefixCls?: string | undefined;
|
|
977
|
-
readonly name?: string | undefined;
|
|
978
|
-
readonly validateMessages?: ValidateMessages | undefined;
|
|
979
|
-
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
980
|
-
readonly colon?: boolean | undefined;
|
|
981
977
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
982
978
|
span: (StringConstructor | NumberConstructor)[];
|
|
983
979
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1044,13 +1040,17 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1044
1040
|
prefixCls: StringConstructor;
|
|
1045
1041
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1046
1042
|
}>> & HTMLAttributes) | undefined;
|
|
1043
|
+
readonly colon?: boolean | undefined;
|
|
1047
1044
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1045
|
+
readonly name?: string | undefined;
|
|
1048
1046
|
readonly rules?: {
|
|
1049
1047
|
[k: string]: RuleObject | RuleObject[];
|
|
1050
1048
|
} | undefined;
|
|
1051
1049
|
readonly validateTrigger?: string | string[] | undefined;
|
|
1052
1050
|
readonly labelWrap?: boolean | undefined;
|
|
1051
|
+
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
1053
1052
|
readonly hideRequiredMark?: boolean | undefined;
|
|
1053
|
+
readonly validateMessages?: ValidateMessages | undefined;
|
|
1054
1054
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
1055
1055
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
1056
1056
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|