@aplus-frontend/ui 0.5.36 → 0.6.0-beta.0
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/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +31 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- 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/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 +127 -127
- package/es/src/ap-grid/editable/form-item.vue.mjs +62 -56
- package/es/src/ap-grid/editable/index.vue.mjs +82 -76
- package/es/src/ap-grid/index.vue.mjs +97 -93
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-list/index.vue.mjs +145 -138
- package/es/src/ap-list/interface.d.ts +4 -0
- 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/hooks/use-table-paging-ng.mjs +28 -30
- 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 +171 -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 +175 -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/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/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/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/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +31 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- 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/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-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +4 -0
- 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/hooks/use-table-paging-ng.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/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/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/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 +28 -0
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +35 -1
- package/theme/ap-action/item.less +1 -2
- 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 +28 -0
- package/theme/ap-field/index.css +28 -0
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +28 -0
- 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 +28 -0
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +169 -0
- 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 +169 -0
- package/theme/ap-form/search-form.less +56 -0
- package/theme/ap-grid/editable.css +28 -0
- package/theme/ap-grid/index.css +176 -1
- 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 +66 -4
- package/theme/ap-list/index.less +41 -3
- 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 +190 -13
- package/theme/ap-table/ap-table.less +0 -1
- package/theme/ap-table/setting/index.css +42 -0
- 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 +34 -0
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +190 -13
- 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 +28 -0
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +49 -1
- package/theme/check-card/index.less +3 -4
- package/theme/editable-table/index.css +176 -1
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +378 -19
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +1 -0
- 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 +28 -0
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef } from 'vue';
|
|
3
3
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
4
|
-
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
|
-
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
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';
|
|
@@ -30,10 +30,6 @@ declare function __VLS_template(): {
|
|
|
30
30
|
readonly layout?: string | undefined;
|
|
31
31
|
readonly disabled?: boolean | undefined;
|
|
32
32
|
readonly prefixCls?: string | undefined;
|
|
33
|
-
readonly name?: string | undefined;
|
|
34
|
-
readonly validateMessages?: ValidateMessages | undefined;
|
|
35
|
-
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
36
|
-
readonly colon?: boolean | undefined;
|
|
37
33
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
38
34
|
span: (StringConstructor | NumberConstructor)[];
|
|
39
35
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,13 +96,17 @@ declare function __VLS_template(): {
|
|
|
100
96
|
prefixCls: StringConstructor;
|
|
101
97
|
flex: (StringConstructor | NumberConstructor)[];
|
|
102
98
|
}>> & HTMLAttributes) | undefined;
|
|
99
|
+
readonly colon?: boolean | undefined;
|
|
103
100
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
101
|
+
readonly name?: string | undefined;
|
|
104
102
|
readonly rules?: {
|
|
105
103
|
[k: string]: RuleObject | RuleObject[];
|
|
106
104
|
} | undefined;
|
|
107
105
|
readonly validateTrigger?: string | string[] | undefined;
|
|
108
106
|
readonly labelWrap?: boolean | undefined;
|
|
107
|
+
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
109
108
|
readonly hideRequiredMark?: boolean | undefined;
|
|
109
|
+
readonly validateMessages?: ValidateMessages | undefined;
|
|
110
110
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
111
111
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
112
112
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
@@ -840,11 +840,7 @@ declare function __VLS_template(): {
|
|
|
840
840
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
841
841
|
declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
842
842
|
apForm: ComputedRef<ApFormExpose | undefined>;
|
|
843
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
844
|
-
"update:collapse": (...args: any[]) => void;
|
|
845
|
-
}, string, PublicProps, Readonly<ApFormSearchFormProps> & Readonly<{
|
|
846
|
-
"onUpdate:collapse"?: ((...args: any[]) => any) | undefined;
|
|
847
|
-
}>, {
|
|
843
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormProps> & Readonly<{}>, {
|
|
848
844
|
collapse: boolean;
|
|
849
845
|
layout: string;
|
|
850
846
|
colon: boolean;
|
|
@@ -852,11 +848,13 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
852
848
|
validateTrigger: string | string[];
|
|
853
849
|
hideRequiredMark: boolean;
|
|
854
850
|
validateOnRuleChange: boolean;
|
|
855
|
-
countPerRow:
|
|
851
|
+
countPerRow: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
|
|
856
852
|
defaultCollapse: boolean;
|
|
857
853
|
customReset: boolean;
|
|
858
854
|
extraInAction: boolean;
|
|
859
855
|
forceExpand: boolean;
|
|
856
|
+
maxRows: number;
|
|
857
|
+
sortable: boolean;
|
|
860
858
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
861
859
|
apForm: ({
|
|
862
860
|
$: ComponentInternalInstance;
|
|
@@ -867,10 +865,6 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
867
865
|
readonly layout?: string | undefined;
|
|
868
866
|
readonly disabled?: boolean | undefined;
|
|
869
867
|
readonly prefixCls?: string | undefined;
|
|
870
|
-
readonly name?: string | undefined;
|
|
871
|
-
readonly validateMessages?: ValidateMessages | undefined;
|
|
872
|
-
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
873
|
-
readonly colon?: boolean | undefined;
|
|
874
868
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
875
869
|
span: (StringConstructor | NumberConstructor)[];
|
|
876
870
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -937,13 +931,17 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
937
931
|
prefixCls: StringConstructor;
|
|
938
932
|
flex: (StringConstructor | NumberConstructor)[];
|
|
939
933
|
}>> & HTMLAttributes) | undefined;
|
|
934
|
+
readonly colon?: boolean | undefined;
|
|
940
935
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
936
|
+
readonly name?: string | undefined;
|
|
941
937
|
readonly rules?: {
|
|
942
938
|
[k: string]: RuleObject | RuleObject[];
|
|
943
939
|
} | undefined;
|
|
944
940
|
readonly validateTrigger?: string | string[] | undefined;
|
|
945
941
|
readonly labelWrap?: boolean | undefined;
|
|
942
|
+
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
946
943
|
readonly hideRequiredMark?: boolean | undefined;
|
|
944
|
+
readonly validateMessages?: ValidateMessages | undefined;
|
|
947
945
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
948
946
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
949
947
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
1
|
+
import { isVNode as ee, defineComponent as te, useSlots as oe, ref as ae, shallowRef as j, computed as _, unref as n, watch as L, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as ne, withCtx as F, resolveDynamicComponent as A, createElementBlock as le, renderList as re } from "vue";
|
|
2
|
+
import { Col as R, Flex as B, Button as U, Row as se } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
|
-
import "
|
|
6
|
-
import { genRealChildren as L } from "../item-group/helper.mjs";
|
|
7
|
-
import { DoubleRightOutlined as ye } from "@ant-design/icons-vue";
|
|
5
|
+
import { genRealChildren as V } from "../item-group/helper.mjs";
|
|
8
6
|
import "../../config-provider/index.mjs";
|
|
9
|
-
import { isArray as
|
|
10
|
-
import { isDef as
|
|
11
|
-
import { execFunc as W, diffFormItem as
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
import { isArray as ie, isBoolean as ce, omit as ue } from "lodash-unified";
|
|
8
|
+
import { isDef as M } from "../../utils/index.mjs";
|
|
9
|
+
import { execFunc as W, diffFormItem as pe } from "./utils.mjs";
|
|
10
|
+
import "./components/popover-filter.vue.mjs";
|
|
11
|
+
import { useCountPerRow as de } from "./hooks/use-count-per-row.mjs";
|
|
12
|
+
import "./components/popover-sorter/index.vue.mjs";
|
|
13
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import { useLocale as me } from "../../config-provider/hooks/use-locale.mjs";
|
|
15
|
+
import D from "../item/index.vue.mjs";
|
|
16
|
+
import he from "./components/popover-filter.vue2.mjs";
|
|
17
|
+
import xe from "./components/popover-sorter/index.vue2.mjs";
|
|
18
|
+
import ye from "../ap-form.vue2.mjs";
|
|
19
|
+
function ge(f) {
|
|
20
|
+
return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !ee(f);
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const s = 24, Le = /* @__PURE__ */ te({
|
|
22
23
|
name: "ApFormSearchForm",
|
|
23
24
|
__name: "index",
|
|
24
25
|
props: {
|
|
@@ -100,149 +101,148 @@ const r = 24, ze = /* @__PURE__ */ ie({
|
|
|
100
101
|
},
|
|
101
102
|
submitLoading: {
|
|
102
103
|
type: Boolean
|
|
104
|
+
},
|
|
105
|
+
maxRows: {
|
|
106
|
+
default: 2
|
|
107
|
+
},
|
|
108
|
+
sortable: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: !0
|
|
103
111
|
}
|
|
104
112
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
expose: z,
|
|
108
|
-
emit: H
|
|
113
|
+
setup(f, {
|
|
114
|
+
expose: q
|
|
109
115
|
}) {
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
} = Be("ap-form-search-form"), Q = Re("uiMode"), {
|
|
120
|
-
t: w
|
|
121
|
-
} = Ae(), g = ce();
|
|
122
|
-
function X() {
|
|
123
|
-
J(!o(c));
|
|
116
|
+
var P;
|
|
117
|
+
const i = oe(), o = f, {
|
|
118
|
+
b: m
|
|
119
|
+
} = fe("ap-form-search-form"), {
|
|
120
|
+
t: N
|
|
121
|
+
} = me(), z = de(o), y = ae();
|
|
122
|
+
function k() {
|
|
123
|
+
var e, a;
|
|
124
|
+
(a = (e = y.value) == null ? void 0 : e.validateFields()) == null || a.then((l) => W(o.onSubmit, l));
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
-
var e,
|
|
127
|
-
(
|
|
126
|
+
function H() {
|
|
127
|
+
var e, a;
|
|
128
|
+
o.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), W(o.onReset);
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
D(() => u.default(), (e) => {
|
|
136
|
-
N = R.value, R.value = Se(N, L(e));
|
|
137
|
-
}), D(() => {
|
|
130
|
+
const G = (e) => M(e) ? (ie(e) ? e : [e]).join("") : Date.now();
|
|
131
|
+
let I = [];
|
|
132
|
+
const c = j(V(i.default())), u = j((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / n(z)));
|
|
133
|
+
L(() => i.default(), (e) => {
|
|
134
|
+
I = c.value, c.value = pe(I, V(e));
|
|
135
|
+
}), L(() => {
|
|
138
136
|
var e;
|
|
139
|
-
return (e =
|
|
137
|
+
return (e = i.extra) == null ? void 0 : e.call(i);
|
|
140
138
|
}, (e) => {
|
|
141
|
-
|
|
139
|
+
u.value = e;
|
|
142
140
|
});
|
|
143
|
-
const
|
|
144
|
-
const e =
|
|
145
|
-
let
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
141
|
+
const r = _(() => {
|
|
142
|
+
const e = c.value, a = [], l = [], g = [], h = n(E);
|
|
143
|
+
let v = 0, b = 0;
|
|
144
|
+
const Q = s * o.maxRows - h * (n(u) && !o.extraInAction ? 2 : 1);
|
|
145
|
+
e.forEach((S, Z) => {
|
|
146
|
+
const p = S.props;
|
|
147
|
+
if (ce(p.hidden) ? !!p.hidden : M(p.hidden))
|
|
148
|
+
a.push(S);
|
|
150
149
|
else {
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
let C = p.span || h;
|
|
151
|
+
const O = {
|
|
152
|
+
node: S,
|
|
153
|
+
span: C,
|
|
154
|
+
key: `ApFormSearchFormItem-${Z}-${G(p.name)}-${p._signal}`
|
|
155
|
+
}, $ = s - v % s;
|
|
156
|
+
$ < C && (C += $), v += C, v > Q ? l.push(O) : (b = v, g.push(O));
|
|
153
157
|
}
|
|
154
158
|
});
|
|
155
|
-
const
|
|
156
|
-
P < l && (i += P);
|
|
157
|
-
const T = r - (i + l) % r, oe = i % r < l, ae = T < l ? r : T, O = r - l * (o(d) && !n.extraInAction ? 2 : 1), ne = !n.forceExpand && i > O;
|
|
158
|
-
let V = 0, j = 0;
|
|
159
|
-
const le = s.map((p, f) => {
|
|
160
|
-
const x = p.props, y = x.span || l;
|
|
161
|
-
if (V += y, !n.forceExpand && o(c) && V > O) {
|
|
162
|
-
t.push(pe(p, {
|
|
163
|
-
hidden: !0
|
|
164
|
-
}));
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
return j += y, {
|
|
168
|
-
node: p,
|
|
169
|
-
span: x.span || l,
|
|
170
|
-
key: `ApFormSearchFormItem-${f}-${ee(x.name)}-${x._signal}`
|
|
171
|
-
};
|
|
172
|
-
}).filter(Boolean), re = r - j - l;
|
|
159
|
+
const T = s - (b + h) % s, X = b % s < h, Y = T < h ? s : T;
|
|
173
160
|
return {
|
|
174
|
-
hideNode:
|
|
175
|
-
nodes:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
lastRowOnlyIncludeActionAndExtra: oe
|
|
161
|
+
hideNode: t(w, null, [a]),
|
|
162
|
+
nodes: g,
|
|
163
|
+
collapseNodes: l,
|
|
164
|
+
extraSpan: Y,
|
|
165
|
+
lastRowOnlyIncludeActionAndExtra: X
|
|
180
166
|
};
|
|
181
|
-
})
|
|
167
|
+
});
|
|
168
|
+
function J(e) {
|
|
169
|
+
c.value = [...e];
|
|
170
|
+
}
|
|
171
|
+
const K = _(() => {
|
|
182
172
|
let e;
|
|
183
|
-
const
|
|
184
|
-
span:
|
|
173
|
+
const a = t(R, {
|
|
174
|
+
span: n(E),
|
|
185
175
|
key: "actionWrapper"
|
|
186
176
|
}, {
|
|
187
|
-
default: () => [
|
|
188
|
-
default: () => [
|
|
189
|
-
|
|
177
|
+
default: () => [t(D, null, {
|
|
178
|
+
default: () => [t(B, {
|
|
179
|
+
wrap: "wrap",
|
|
180
|
+
justify: r.value.lastRowOnlyIncludeActionAndExtra && !(n(u) && o.extraInAction) ? "flex-end" : "space-between"
|
|
190
181
|
}, {
|
|
191
|
-
default: () => [
|
|
192
|
-
|
|
182
|
+
default: () => [t(B, {
|
|
183
|
+
gap: 8,
|
|
184
|
+
wrap: "wrap"
|
|
185
|
+
}, {
|
|
186
|
+
default: () => [t("div", {
|
|
187
|
+
class: m("column-setting-trigger-wrapper")
|
|
188
|
+
}, [r.value.collapseNodes.length ? t(he, {
|
|
189
|
+
onSubmit: k,
|
|
190
|
+
config: r.value.collapseNodes,
|
|
191
|
+
submitLoading: o.submitLoading
|
|
192
|
+
}, null) : null, o.sortable && c.value.length ? t(xe, {
|
|
193
|
+
children: c.value,
|
|
194
|
+
onClickConfirm: J
|
|
195
|
+
}, null) : null]), t(U, {
|
|
193
196
|
type: "primary",
|
|
194
|
-
onClick:
|
|
195
|
-
loading:
|
|
196
|
-
htmlType: "submit"
|
|
197
|
+
onClick: k,
|
|
198
|
+
loading: o.submitLoading,
|
|
199
|
+
htmlType: "submit",
|
|
200
|
+
class: m("action-btn")
|
|
197
201
|
}, {
|
|
198
|
-
default: () => [
|
|
199
|
-
}),
|
|
200
|
-
onClick:
|
|
202
|
+
default: () => [o.searchText || N("ap.apForm.search.search")]
|
|
203
|
+
}), t(U, {
|
|
204
|
+
onClick: H,
|
|
205
|
+
type: "text",
|
|
206
|
+
class: [m("action-btn"), m("action-btn-reset")]
|
|
201
207
|
}, {
|
|
202
|
-
default: () => [
|
|
203
|
-
})
|
|
204
|
-
|
|
205
|
-
icon: a(ye, {
|
|
206
|
-
style: Q.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
|
|
207
|
-
rotate: o(c) ? 90 : -90
|
|
208
|
-
}, null)
|
|
209
|
-
}, null) : null]
|
|
210
|
-
}), n.extraInAction ? o(d) : null]
|
|
208
|
+
default: () => [o.resetText || N("ap.apForm.search.reset")]
|
|
209
|
+
})]
|
|
210
|
+
}), o.extraInAction ? n(u) : null]
|
|
211
211
|
})]
|
|
212
212
|
})]
|
|
213
|
-
}), l = !
|
|
214
|
-
span:
|
|
213
|
+
}), l = !o.extraInAction && n(u) ? t(R, {
|
|
214
|
+
span: r.value.extraSpan,
|
|
215
215
|
key: "extraNode"
|
|
216
216
|
}, {
|
|
217
|
-
default: () => [
|
|
218
|
-
default: () => [
|
|
219
|
-
justify:
|
|
220
|
-
},
|
|
217
|
+
default: () => [t(D, null, {
|
|
218
|
+
default: () => [t(B, {
|
|
219
|
+
justify: r.value.extraSpan === s || r.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
|
|
220
|
+
}, ge(e = n(u)) ? e : {
|
|
221
221
|
default: () => [e]
|
|
222
222
|
})]
|
|
223
223
|
})]
|
|
224
|
-
}) : null,
|
|
225
|
-
span:
|
|
224
|
+
}) : null, g = t(R, {
|
|
225
|
+
span: r.value.extraSpan
|
|
226
226
|
}, null);
|
|
227
|
-
return
|
|
227
|
+
return r.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [l || g, a]) : t(w, null, [a, l]);
|
|
228
228
|
});
|
|
229
|
-
return
|
|
230
|
-
apForm:
|
|
231
|
-
}), (e,
|
|
229
|
+
return q({
|
|
230
|
+
apForm: _(() => n(y))
|
|
231
|
+
}), (e, a) => (d(), x(ye, ne({
|
|
232
232
|
ref_key: "apForm",
|
|
233
|
-
ref:
|
|
234
|
-
class:
|
|
235
|
-
},
|
|
236
|
-
default:
|
|
233
|
+
ref: y,
|
|
234
|
+
class: n(m)()
|
|
235
|
+
}, n(ue)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
236
|
+
default: F(() => [(d(), x(A(r.value.hideNode))), t(n(se), {
|
|
237
237
|
gutter: 16
|
|
238
238
|
}, {
|
|
239
|
-
default:
|
|
240
|
-
key:
|
|
241
|
-
span:
|
|
239
|
+
default: F(() => [(d(!0), le(w, null, re(r.value.nodes, (l) => (d(), x(n(R), {
|
|
240
|
+
key: l.key,
|
|
241
|
+
span: l.span
|
|
242
242
|
}, {
|
|
243
|
-
default:
|
|
243
|
+
default: F(() => [(d(), x(A(l.node)))]),
|
|
244
244
|
_: 2
|
|
245
|
-
}, 1032, ["span"]))), 128)), (
|
|
245
|
+
}, 1032, ["span"]))), 128)), (d(), x(A(K.value)))]),
|
|
246
246
|
_: 1
|
|
247
247
|
})]),
|
|
248
248
|
_: 1
|
|
@@ -250,5 +250,5 @@ const r = 24, ze = /* @__PURE__ */ ie({
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
export {
|
|
253
|
-
|
|
253
|
+
Le as default
|
|
254
254
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as
|
|
2
|
-
import { ApForm as
|
|
1
|
+
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as g, withCtx as y, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
|
+
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { isDef as w } from "../../utils/index.mjs";
|
|
@@ -9,7 +9,7 @@ import { useInjectForm as te } from "../../ap-form/context.mjs";
|
|
|
9
9
|
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
11
|
import ne from "../index.vue.mjs";
|
|
12
|
-
const
|
|
12
|
+
const ye = /* @__PURE__ */ P({
|
|
13
13
|
name: "EditableGrid",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -154,10 +154,10 @@ const ge = /* @__PURE__ */ P({
|
|
|
154
154
|
default: () => ({})
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
-
setup(
|
|
158
|
-
expose:
|
|
157
|
+
setup(b, {
|
|
158
|
+
expose: x
|
|
159
159
|
}) {
|
|
160
|
-
const R = A(), l =
|
|
160
|
+
const R = A(), l = b, {
|
|
161
161
|
b: B
|
|
162
162
|
} = ae("editable-grid");
|
|
163
163
|
function S(e, o) {
|
|
@@ -166,108 +166,114 @@ const ge = /* @__PURE__ */ P({
|
|
|
166
166
|
const {
|
|
167
167
|
internalInstance: t,
|
|
168
168
|
model: F
|
|
169
|
-
} = te(), p = H(l.name), d = h(S(
|
|
170
|
-
|
|
169
|
+
} = te(), p = H(l.name), d = h(S(u(F), p.value) || []), N = C.useWatch(p);
|
|
170
|
+
K(() => N.value, async (e) => {
|
|
171
171
|
var o;
|
|
172
|
-
await
|
|
172
|
+
await W(), d.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
173
173
|
}, {
|
|
174
174
|
deep: !0
|
|
175
175
|
});
|
|
176
|
-
const c = h(), v = le("valueTypeMap"),
|
|
177
|
-
function
|
|
178
|
-
var
|
|
179
|
-
const n = ((
|
|
176
|
+
const c = h(), v = le("valueTypeMap"), k = oe(l, v);
|
|
177
|
+
function D(e, o) {
|
|
178
|
+
var s;
|
|
179
|
+
const n = ((s = u(d)) == null ? void 0 : s.length) || 0;
|
|
180
180
|
if (w(l.maxLength) && n >= l.maxLength)
|
|
181
181
|
return;
|
|
182
182
|
const a = {
|
|
183
183
|
...e || {}
|
|
184
184
|
};
|
|
185
|
-
t == null || t.setFieldValue(l.name, a, !0, (
|
|
186
|
-
if (!
|
|
187
|
-
|
|
185
|
+
t == null || t.setFieldValue(l.name, a, !0, (r, f) => {
|
|
186
|
+
if (!r[f]) {
|
|
187
|
+
r[f] = [a];
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
I(o) ?
|
|
190
|
+
I(o) ? r[f].push(a) : r[f].splice(o, 0, a);
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
var
|
|
195
|
-
const n = ((
|
|
193
|
+
function L(e, o = "suffix") {
|
|
194
|
+
var r;
|
|
195
|
+
const n = ((r = u(d)) == null ? void 0 : r.length) || 0, a = m(e) ? e : e.length;
|
|
196
196
|
if (w(l.maxLength) && n + a > l.maxLength)
|
|
197
197
|
return;
|
|
198
|
-
const
|
|
199
|
-
t == null || t.setFieldValue(l.name,
|
|
200
|
-
if (!
|
|
201
|
-
|
|
198
|
+
const s = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
|
|
199
|
+
t == null || t.setFieldValue(l.name, s, !0, (f, i) => {
|
|
200
|
+
if (!f[i]) {
|
|
201
|
+
f[i] = [...s];
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
o === "suffix" ?
|
|
204
|
+
o === "suffix" ? f[i].push(...s) : f[i].unshift(...s);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function V(e) {
|
|
208
208
|
const o = new Set(m(e) ? [e] : e);
|
|
209
209
|
t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
|
|
210
|
-
n[a] = n[a].filter((
|
|
210
|
+
n[a] = n[a].filter((s, r) => !o.has(r));
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function T() {
|
|
214
|
+
return u(d);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function _(e) {
|
|
217
217
|
var o;
|
|
218
|
-
return (o =
|
|
218
|
+
return (o = u(d)) == null ? void 0 : o[e];
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
t == null || t.setFieldValue(l.name, void 0, !0, (a,
|
|
222
|
-
!a[
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
function j(e, o, n = !0) {
|
|
221
|
+
t == null || t.setFieldValue(l.name, void 0, !0, (a, s) => {
|
|
222
|
+
if (!(!a[s] || !a[s][e])) {
|
|
223
|
+
if (!n) {
|
|
224
|
+
const r = Object.keys(a[s][e]);
|
|
225
|
+
for (const f of r)
|
|
226
|
+
f !== l.rowKey && delete a[s][e][f];
|
|
227
|
+
}
|
|
228
|
+
Object.assign(a[s][e], {
|
|
229
|
+
...o
|
|
230
|
+
});
|
|
231
|
+
}
|
|
226
232
|
});
|
|
227
233
|
}
|
|
228
|
-
function
|
|
234
|
+
function E(e) {
|
|
229
235
|
t == null || t.setFieldValue(l.name, e);
|
|
230
236
|
}
|
|
231
|
-
function
|
|
237
|
+
function O(e) {
|
|
232
238
|
var n;
|
|
233
239
|
const o = e === "end" ? d.value.length - 1 : e;
|
|
234
240
|
(n = c.value) == null || n.scrollToRow(o);
|
|
235
241
|
}
|
|
236
|
-
function
|
|
242
|
+
function z() {
|
|
237
243
|
var e;
|
|
238
244
|
(e = t == null ? void 0 : t.setFieldValue) == null || e.call(t, l.name, []);
|
|
239
245
|
}
|
|
240
|
-
return
|
|
241
|
-
add:
|
|
242
|
-
remove:
|
|
243
|
-
getRowData:
|
|
244
|
-
getRowsData:
|
|
245
|
-
setRowData:
|
|
246
|
-
addMultiple:
|
|
247
|
-
scrollTo:
|
|
248
|
-
setTableData:
|
|
249
|
-
clear:
|
|
250
|
-
}), (e, o) => (U(),
|
|
246
|
+
return x({
|
|
247
|
+
add: D,
|
|
248
|
+
remove: V,
|
|
249
|
+
getRowData: _,
|
|
250
|
+
getRowsData: T,
|
|
251
|
+
setRowData: j,
|
|
252
|
+
addMultiple: L,
|
|
253
|
+
scrollTo: O,
|
|
254
|
+
setTableData: E,
|
|
255
|
+
clear: z
|
|
256
|
+
}), (e, o) => (U(), G(u(C).FormItem, g(e.formItem, {
|
|
251
257
|
name: e.name,
|
|
252
258
|
label: e.label
|
|
253
259
|
}), {
|
|
254
|
-
default:
|
|
260
|
+
default: y(() => [$(ne, g(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
255
261
|
ref_key: "tableRef",
|
|
256
262
|
ref: c,
|
|
257
|
-
class:
|
|
258
|
-
columns:
|
|
263
|
+
class: u(B)(),
|
|
264
|
+
columns: u(k),
|
|
259
265
|
"data-source": d.value,
|
|
260
266
|
"search-form": !1
|
|
261
267
|
}), q({
|
|
262
268
|
_: 2
|
|
263
269
|
}, [J(R, (n, a) => ({
|
|
264
270
|
name: a,
|
|
265
|
-
fn:
|
|
271
|
+
fn: y((s) => [Q(e.$slots, a, X(Y(s || {})))])
|
|
266
272
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
267
273
|
_: 3
|
|
268
274
|
}, 16, ["name", "label"]));
|
|
269
275
|
}
|
|
270
276
|
});
|
|
271
277
|
export {
|
|
272
|
-
|
|
278
|
+
ye as default
|
|
273
279
|
};
|