@aplus-frontend/ui 0.6.0-beta.12 → 0.6.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/interface.d.ts +3 -3
- package/es/src/ap-form/item/index.vue.mjs +38 -34
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +7 -7
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +9 -6
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +15 -12
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +110 -95
- package/es/src/ap-grid/interface.d.ts +10 -0
- package/es/src/ap-grid/utils/table.mjs +15 -14
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/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 +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +23 -23
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/utils.d.ts +23 -23
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-copy/ApCopy.mjs +43 -43
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-product-info/ApProductInfo.mjs +23 -24
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
- package/es/src/business/ap-radio-group/index.d.ts +5 -0
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +96 -84
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/ap-view/index.d.ts +12 -3
- package/es/src/business/ap-view/interface.d.ts +7 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +17 -20
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +4 -4
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/es/test/setup.d.ts +5 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +9 -6
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +10 -0
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +23 -23
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/utils.d.ts +23 -23
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +5 -0
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/index.d.ts +12 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -0
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/lib/test/setup.d.ts +5 -0
- package/package.json +6 -5
- package/theme/ap-action/item.css +12 -1
- package/theme/ap-action/item.less +13 -1
- package/theme/ap-copy/ap-copy.css +2 -0
- package/theme/ap-copy/ap-copy.less +2 -0
- package/theme/ap-grid/index.css +12 -1
- package/theme/ap-radio-group/ap-radio-group.css +2 -1
- package/theme/ap-radio-group/ap-radio-group.less +3 -1
- package/theme/ap-table/ap-table.css +12 -1
- package/theme/ap-table-modal/index.css +12 -1
- package/theme/editable-table/index.css +12 -1
- package/theme/index.css +25 -3
- package/theme/ui-mode.css +9 -1
- package/theme/ui-mode.less +17 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFormModalFormProps } 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, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ButtonSize, SizeType, ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -8,7 +8,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
|
8
8
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
9
9
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
|
|
|
118
117
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
118
|
readonly initialValues?: Recordable | undefined;
|
|
120
119
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?:
|
|
120
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
121
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
123
|
$attrs: {
|
|
@@ -1248,7 +1247,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1248
1247
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1249
1248
|
readonly initialValues?: Recordable | undefined;
|
|
1250
1249
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1251
|
-
readonly syncToUrl?:
|
|
1250
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1252
1251
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1253
1252
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1254
1253
|
$attrs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s,
|
|
1
|
+
import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s, createElementBlock as W, openBlock as g, Fragment as H, createBlock as P, createCommentVNode as J, withCtx as F, createElementVNode as Q, normalizeClass as X, normalizeStyle as Y, renderSlot as w, resolveDynamicComponent as N, createTextVNode as Z, toDisplayString as ee } from "vue";
|
|
2
2
|
import { Button as V, Flex as te, Space as le, Modal as oe } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -241,7 +241,7 @@ const Me = /* @__PURE__ */ L({
|
|
|
241
241
|
"onUpdate:open": $,
|
|
242
242
|
onCancel: k
|
|
243
243
|
}), {
|
|
244
|
-
title: F(() => [
|
|
244
|
+
title: F(() => [w(e.$slots, "title", {}, () => [Z(ee(o.title), 1)])]),
|
|
245
245
|
default: F(() => [u(de, b({
|
|
246
246
|
ref_key: "formRef",
|
|
247
247
|
ref: a
|
|
@@ -250,17 +250,17 @@ const Me = /* @__PURE__ */ L({
|
|
|
250
250
|
}), {
|
|
251
251
|
default: F(() => {
|
|
252
252
|
var l;
|
|
253
|
-
return [
|
|
253
|
+
return [Q("div", {
|
|
254
254
|
style: Y((l = e.modalProps) == null ? void 0 : l.bodyStyle),
|
|
255
|
-
class:
|
|
256
|
-
}, [
|
|
255
|
+
class: X(s(h)("content"))
|
|
256
|
+
}, [w(e.$slots, "default")], 6), (g(), P(N(O.value)))];
|
|
257
257
|
}),
|
|
258
258
|
_: 3
|
|
259
259
|
}, 16)]),
|
|
260
260
|
_: 3
|
|
261
|
-
}, 16, ["open", "width", "class"]), s(B) ? (g(),
|
|
261
|
+
}, 16, ["open", "width", "class"]), s(B) ? (g(), P(N(s(B)), {
|
|
262
262
|
key: 0
|
|
263
|
-
})) :
|
|
263
|
+
})) : J("", !0)], 64));
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, useSlots as c,
|
|
1
|
+
import { defineComponent as m, useSlots as c, createBlock as B, openBlock as v, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as y, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
|
|
2
2
|
import { omit as g } from "lodash-unified";
|
|
3
3
|
import { ApForm as p } from "../index.mjs";
|
|
4
4
|
const S = /* @__PURE__ */ m({
|
|
@@ -48,7 +48,7 @@ const S = /* @__PURE__ */ m({
|
|
|
48
48
|
},
|
|
49
49
|
setup(d) {
|
|
50
50
|
const i = d, u = c();
|
|
51
|
-
return (a, h) => (
|
|
51
|
+
return (a, h) => (v(), B(e(p).FormItem, o(l(i)), y({
|
|
52
52
|
default: t(() => [
|
|
53
53
|
x(e(p).ControlRender, null, {
|
|
54
54
|
default: t((r) => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as C, ref as d,
|
|
2
|
-
import { Popover as h,
|
|
1
|
+
import { defineComponent as C, ref as d, createBlock as c, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as s, createElementVNode as g, createElementBlock as F, Fragment as _, renderList as B, resolveDynamicComponent as x, createTextVNode as v, toDisplayString as y } from "vue";
|
|
2
|
+
import { Popover as h, Tooltip as L, Button as u, Row as N, Col as S, Divider as w, Flex as D } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApFilterOutlined as P } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
5
|
import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -32,9 +32,9 @@ const U = /* @__PURE__ */ C({
|
|
|
32
32
|
class: s([e(a)("popover-content")]),
|
|
33
33
|
style: { paddingBottom: "4px", width: "825px" }
|
|
34
34
|
}, [
|
|
35
|
-
t(e(
|
|
35
|
+
t(e(N), { gutter: 8 }, {
|
|
36
36
|
default: o(() => [
|
|
37
|
-
(i(!0), F(_, null, B(r.config, (n) => (i(), c(e(
|
|
37
|
+
(i(!0), F(_, null, B(r.config, (n) => (i(), c(e(S), {
|
|
38
38
|
key: n.key,
|
|
39
39
|
span: 8
|
|
40
40
|
}, {
|
|
@@ -47,11 +47,11 @@ const U = /* @__PURE__ */ C({
|
|
|
47
47
|
_: 1
|
|
48
48
|
})
|
|
49
49
|
], 2),
|
|
50
|
-
t(e(
|
|
50
|
+
t(e(w), { style: { margin: "0" } }),
|
|
51
51
|
g("div", {
|
|
52
52
|
class: s(e(a)("popover-footer"))
|
|
53
53
|
}, [
|
|
54
|
-
t(e(
|
|
54
|
+
t(e(D), { justify: "end" }, {
|
|
55
55
|
default: o(() => [
|
|
56
56
|
t(e(u), {
|
|
57
57
|
onClick: p[0] || (p[0] = (n) => l.value = !1)
|
|
@@ -78,7 +78,7 @@ const U = /* @__PURE__ */ C({
|
|
|
78
78
|
], 2)
|
|
79
79
|
]),
|
|
80
80
|
default: o(() => [
|
|
81
|
-
t(e(
|
|
81
|
+
t(e(L), {
|
|
82
82
|
title: e(m)("ap.apForm.search.moreFilter"),
|
|
83
83
|
placement: "top"
|
|
84
84
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as S, ref as C, watch as k, unref as e,
|
|
2
|
-
import { Popover as V,
|
|
1
|
+
import { defineComponent as S, ref as C, watch as k, unref as e, createBlock as D, openBlock as P, withCtx as a, createVNode as o, normalizeClass as r, createElementVNode as s, toDisplayString as m, createTextVNode as b } from "vue";
|
|
2
|
+
import { Popover as V, Tooltip as j, Button as h, Flex as _, Divider as z } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApLayoutOutlined as A } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
5
|
import I from "vuedraggable";
|
|
@@ -43,7 +43,7 @@ const W = /* @__PURE__ */ S({
|
|
|
43
43
|
(t) => {
|
|
44
44
|
t && (c.value = [...v]);
|
|
45
45
|
}
|
|
46
|
-
), (t, u) => (
|
|
46
|
+
), (t, u) => (P(), D(e(V), {
|
|
47
47
|
open: p.value,
|
|
48
48
|
"onUpdate:open": u[1] || (u[1] = (d) => p.value = d),
|
|
49
49
|
"overlay-class-name": e(f)("popover"),
|
|
@@ -55,22 +55,22 @@ const W = /* @__PURE__ */ S({
|
|
|
55
55
|
}, {
|
|
56
56
|
content: a(() => [
|
|
57
57
|
s("div", {
|
|
58
|
-
class:
|
|
58
|
+
class: r(e(n)("header"))
|
|
59
59
|
}, [
|
|
60
60
|
s("span", {
|
|
61
|
-
class:
|
|
61
|
+
class: r(e(n)("header-title"))
|
|
62
62
|
}, m(e(i)("ap.apForm.search.sorterTitle")), 3),
|
|
63
|
-
|
|
63
|
+
o(e(_), { justify: "space-between" }, {
|
|
64
64
|
default: a(() => [
|
|
65
65
|
s("span", {
|
|
66
|
-
class:
|
|
66
|
+
class: r(e(n)("header-desc"))
|
|
67
67
|
}, m(e(i)("ap.apForm.search.sorterDesc")), 3),
|
|
68
68
|
s("div", {
|
|
69
|
-
class:
|
|
69
|
+
class: r(e(n)("header-action-wrapper")),
|
|
70
70
|
onClick: N
|
|
71
71
|
}, [
|
|
72
72
|
s("span", {
|
|
73
|
-
class:
|
|
73
|
+
class: r(e(n)("header-reset-btn"))
|
|
74
74
|
}, m(e(i)("ap.apForm.search.sorterReset")), 3)
|
|
75
75
|
], 2)
|
|
76
76
|
]),
|
|
@@ -78,26 +78,26 @@ const W = /* @__PURE__ */ S({
|
|
|
78
78
|
})
|
|
79
79
|
], 2),
|
|
80
80
|
s("div", {
|
|
81
|
-
class:
|
|
81
|
+
class: r([e(f)("popover-content"), e(n)("content")])
|
|
82
82
|
}, [
|
|
83
|
-
|
|
83
|
+
o(e(I), {
|
|
84
84
|
list: c.value,
|
|
85
|
-
class:
|
|
85
|
+
class: r(e(n)("sorter-wrapper")),
|
|
86
86
|
"item-key": T
|
|
87
87
|
}, {
|
|
88
88
|
item: a(({ element: d }) => [
|
|
89
|
-
|
|
89
|
+
o($, { item: d }, null, 8, ["item"])
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
92
|
}, 8, ["list", "class"])
|
|
93
93
|
], 2),
|
|
94
|
-
|
|
94
|
+
o(e(z), { style: { margin: "0" } }),
|
|
95
95
|
s("div", {
|
|
96
|
-
class:
|
|
96
|
+
class: r(e(f)("popover-footer"))
|
|
97
97
|
}, [
|
|
98
|
-
|
|
98
|
+
o(e(_), { justify: "end" }, {
|
|
99
99
|
default: a(() => [
|
|
100
|
-
|
|
100
|
+
o(e(h), {
|
|
101
101
|
onClick: u[0] || (u[0] = (d) => p.value = !1)
|
|
102
102
|
}, {
|
|
103
103
|
default: a(() => [
|
|
@@ -105,8 +105,8 @@ const W = /* @__PURE__ */ S({
|
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
107
|
}),
|
|
108
|
-
|
|
109
|
-
class:
|
|
108
|
+
o(e(h), {
|
|
109
|
+
class: r(e(f)("popover-footer-confirm-btn")),
|
|
110
110
|
type: "primary",
|
|
111
111
|
onClick: B
|
|
112
112
|
}, {
|
|
@@ -121,16 +121,16 @@ const W = /* @__PURE__ */ S({
|
|
|
121
121
|
], 2)
|
|
122
122
|
]),
|
|
123
123
|
default: a(() => [
|
|
124
|
-
|
|
124
|
+
o(e(j), {
|
|
125
125
|
title: e(i)("ap.apForm.search.sorterTitle"),
|
|
126
126
|
placement: "top"
|
|
127
127
|
}, {
|
|
128
128
|
default: a(() => [
|
|
129
|
-
|
|
130
|
-
class:
|
|
129
|
+
o(e(h), {
|
|
130
|
+
class: r([e(y)("trigger-btn"), { [e(y)("trigger-btn-active")]: p.value }])
|
|
131
131
|
}, {
|
|
132
132
|
icon: a(() => [
|
|
133
|
-
|
|
133
|
+
o(e(A), { size: 14 })
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
}, 8, ["class"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as n,
|
|
1
|
+
import { defineComponent as c, computed as n, createElementBlock as a, openBlock as d, normalizeClass as r, unref as t, createElementVNode as l, createVNode as u, toDisplayString as f } from "vue";
|
|
2
2
|
import { HolderOutlined as h } from "@ant-design/icons-vue";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import { isBoolean as _ } from "lodash-unified";
|
|
@@ -18,7 +18,7 @@ const x = ["title"], C = /* @__PURE__ */ c({
|
|
|
18
18
|
const e = s.item.props;
|
|
19
19
|
return _(e.hidden) ? !!e.hidden : v(e.hidden);
|
|
20
20
|
}), { b: o } = b("search-form-sorter");
|
|
21
|
-
return (e, B) => (
|
|
21
|
+
return (e, B) => (d(), a("div", {
|
|
22
22
|
class: r([t(o)("sorter-item"), { [t(o)("sorter-item--hidden")]: p.value }])
|
|
23
23
|
}, [
|
|
24
24
|
l("div", null, [
|
|
@@ -2,13 +2,12 @@ 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
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath,
|
|
5
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
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';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -116,7 +115,7 @@ declare function __VLS_template(): {
|
|
|
116
115
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
117
116
|
readonly initialValues?: Recordable | undefined;
|
|
118
117
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
119
|
-
readonly syncToUrl?:
|
|
118
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
120
119
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
121
120
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
122
121
|
$attrs: {
|
|
@@ -384,7 +383,9 @@ declare function __VLS_template(): {
|
|
|
384
383
|
default: string | number | ColSize;
|
|
385
384
|
};
|
|
386
385
|
xxl: {
|
|
387
|
-
type: PropType<string | number |
|
|
386
|
+
type: PropType<string | number | **
|
|
387
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
388
|
+
*/).ColSize>;
|
|
388
389
|
default: string | number | ColSize;
|
|
389
390
|
};
|
|
390
391
|
prefixCls: StringConstructor;
|
|
@@ -951,7 +952,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
951
952
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
952
953
|
readonly initialValues?: Recordable | undefined;
|
|
953
954
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
954
|
-
readonly syncToUrl?:
|
|
955
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
955
956
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
956
957
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
957
958
|
$attrs: {
|
|
@@ -1219,7 +1220,9 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1219
1220
|
default: string | number | ColSize;
|
|
1220
1221
|
};
|
|
1221
1222
|
xxl: {
|
|
1222
|
-
type: PropType<string | number |
|
|
1223
|
+
type: PropType<string | number | **
|
|
1224
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
1225
|
+
*/).ColSize>;
|
|
1223
1226
|
default: string | number | ColSize;
|
|
1224
1227
|
};
|
|
1225
1228
|
prefixCls: StringConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as n, watch as V, createVNode as t, Fragment as w,
|
|
1
|
+
import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as n, watch as V, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
|
|
2
2
|
import { Col as R, Flex as N, Button as M, Row as ie } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V,
|
|
1
|
+
import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as m, Fragment as y, renderList as k, createBlock as F, resolveDynamicComponent as h } from "vue";
|
|
2
2
|
import { useInjectForm as v } from "../context.mjs";
|
|
3
3
|
import { isFunction as w, cloneDeep as x } from "lodash-unified";
|
|
4
4
|
import { isPromise as B } from "@fruits-chain/utils";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, useSlots as A, toRef as W, ref as h, unref as r, watch as G, nextTick as U, createBlock as $, openBlock as q, mergeProps as y, withCtx as g, createVNode as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as I } from "vue";
|
|
2
2
|
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isArray as w, isUndefined as M, isNumber as m, cloneDeep as ee, omit as oe } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -7,9 +7,9 @@ import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
|
|
|
7
7
|
import "../index.vue2.mjs";
|
|
8
8
|
import { useInjectForm as ae } from "../../ap-form/context.mjs";
|
|
9
9
|
import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import
|
|
12
|
-
const Ce = /* @__PURE__ */
|
|
10
|
+
import { useGlobalConfig as ne } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import fe from "../index.vue.mjs";
|
|
12
|
+
const Ce = /* @__PURE__ */ P({
|
|
13
13
|
name: "EditableGrid",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -145,6 +145,9 @@ const Ce = /* @__PURE__ */ A({
|
|
|
145
145
|
},
|
|
146
146
|
expandable: {},
|
|
147
147
|
value: {},
|
|
148
|
+
rowHighlightable: {
|
|
149
|
+
type: [Boolean, Function]
|
|
150
|
+
},
|
|
148
151
|
columns: {},
|
|
149
152
|
defaultValue: {},
|
|
150
153
|
"onUpdate:value": {},
|
|
@@ -160,11 +163,11 @@ const Ce = /* @__PURE__ */ A({
|
|
|
160
163
|
setup(x, {
|
|
161
164
|
expose: R
|
|
162
165
|
}) {
|
|
163
|
-
const B =
|
|
166
|
+
const B = A(), l = x, {
|
|
164
167
|
b: S
|
|
165
168
|
} = le("editable-grid");
|
|
166
169
|
function F(e, t) {
|
|
167
|
-
return w(t) ? t.reduce((
|
|
170
|
+
return w(t) ? t.reduce((n, a) => n == null ? void 0 : n[a], e) : e == null ? void 0 : e[t];
|
|
168
171
|
}
|
|
169
172
|
const {
|
|
170
173
|
internalInstance: o,
|
|
@@ -176,11 +179,11 @@ const Ce = /* @__PURE__ */ A({
|
|
|
176
179
|
}, {
|
|
177
180
|
deep: !0
|
|
178
181
|
});
|
|
179
|
-
const c = h(), D =
|
|
182
|
+
const c = h(), D = ne("valueTypeMap"), V = te(l, D);
|
|
180
183
|
function L(e, t) {
|
|
181
|
-
var
|
|
182
|
-
const
|
|
183
|
-
if (b(l.maxLength) &&
|
|
184
|
+
var f;
|
|
185
|
+
const n = ((f = r(d)) == null ? void 0 : f.length) || 0;
|
|
186
|
+
if (b(l.maxLength) && n >= l.maxLength)
|
|
184
187
|
return;
|
|
185
188
|
const a = {
|
|
186
189
|
...e || {}
|
|
@@ -195,29 +198,29 @@ const Ce = /* @__PURE__ */ A({
|
|
|
195
198
|
}
|
|
196
199
|
function T(e, t = "suffix") {
|
|
197
200
|
var s;
|
|
198
|
-
const
|
|
199
|
-
if (b(l.maxLength) &&
|
|
201
|
+
const n = ((s = r(d)) == null ? void 0 : s.length) || 0, a = m(e) ? e : e.length;
|
|
202
|
+
if (b(l.maxLength) && n + a > l.maxLength)
|
|
200
203
|
return;
|
|
201
|
-
const
|
|
202
|
-
o == null || o.setFieldValue(l.name,
|
|
204
|
+
const f = m(e) ? new Array(e).fill(0).map(() => ({})) : ee(e);
|
|
205
|
+
o == null || o.setFieldValue(l.name, f, !0, (u, i) => {
|
|
203
206
|
if (!u[i]) {
|
|
204
|
-
u[i] = [...
|
|
207
|
+
u[i] = [...f];
|
|
205
208
|
return;
|
|
206
209
|
}
|
|
207
|
-
t === "suffix" ? u[i].push(...
|
|
210
|
+
t === "suffix" ? u[i].push(...f) : u[i].unshift(...f);
|
|
208
211
|
});
|
|
209
212
|
}
|
|
210
213
|
function k(e) {
|
|
211
214
|
const t = new Set(m(e) ? [e] : e);
|
|
212
|
-
o == null || o.setFieldValue(l.name, void 0, !0, (
|
|
213
|
-
|
|
215
|
+
o == null || o.setFieldValue(l.name, void 0, !0, (n, a) => {
|
|
216
|
+
n[a] = n[a].filter((f, s) => !t.has(s));
|
|
214
217
|
});
|
|
215
218
|
}
|
|
216
219
|
function _(e) {
|
|
217
|
-
var
|
|
220
|
+
var n;
|
|
218
221
|
const t = new Set(w(e) ? e : [e]);
|
|
219
|
-
t.size !== 0 && ((
|
|
220
|
-
a[
|
|
222
|
+
t.size !== 0 && ((n = o == null ? void 0 : o.setFieldValue) == null || n.call(o, l.name, void 0, !0, (a, f) => {
|
|
223
|
+
a[f] = a[f].filter((s) => !t.has(s[l.rowKey]));
|
|
221
224
|
}));
|
|
222
225
|
}
|
|
223
226
|
function j() {
|
|
@@ -227,15 +230,15 @@ const Ce = /* @__PURE__ */ A({
|
|
|
227
230
|
var t;
|
|
228
231
|
return (t = r(d)) == null ? void 0 : t[e];
|
|
229
232
|
}
|
|
230
|
-
function O(e, t,
|
|
231
|
-
o == null || o.setFieldValue(l.name, void 0, !0, (a,
|
|
232
|
-
if (!(!a[
|
|
233
|
-
if (!
|
|
234
|
-
const s = Object.keys(a[
|
|
233
|
+
function O(e, t, n = !0) {
|
|
234
|
+
o == null || o.setFieldValue(l.name, void 0, !0, (a, f) => {
|
|
235
|
+
if (!(!a[f] || !a[f][e])) {
|
|
236
|
+
if (!n) {
|
|
237
|
+
const s = Object.keys(a[f][e]);
|
|
235
238
|
for (const u of s)
|
|
236
|
-
u !== l.rowKey && delete a[
|
|
239
|
+
u !== l.rowKey && delete a[f][e][u];
|
|
237
240
|
}
|
|
238
|
-
Object.assign(a[
|
|
241
|
+
Object.assign(a[f][e], {
|
|
239
242
|
...t
|
|
240
243
|
});
|
|
241
244
|
}
|
|
@@ -245,11 +248,11 @@ const Ce = /* @__PURE__ */ A({
|
|
|
245
248
|
o == null || o.setFieldValue(l.name, e);
|
|
246
249
|
}
|
|
247
250
|
function K(e) {
|
|
248
|
-
var
|
|
251
|
+
var n;
|
|
249
252
|
const t = e === "end" ? d.value.length - 1 : e;
|
|
250
|
-
(
|
|
253
|
+
(n = c.value) == null || n.scrollToRow(t);
|
|
251
254
|
}
|
|
252
|
-
function
|
|
255
|
+
function H() {
|
|
253
256
|
var e;
|
|
254
257
|
(e = o == null ? void 0 : o.setFieldValue) == null || e.call(o, l.name, []);
|
|
255
258
|
}
|
|
@@ -262,13 +265,13 @@ const Ce = /* @__PURE__ */ A({
|
|
|
262
265
|
addMultiple: T,
|
|
263
266
|
scrollTo: K,
|
|
264
267
|
setTableData: z,
|
|
265
|
-
clear:
|
|
268
|
+
clear: H,
|
|
266
269
|
removeByKey: _
|
|
267
|
-
}), (e, t) => (
|
|
270
|
+
}), (e, t) => (q(), $(r(C).FormItem, y(e.formItem, {
|
|
268
271
|
name: e.name,
|
|
269
272
|
label: e.label
|
|
270
273
|
}), {
|
|
271
|
-
default: g(() => [J(
|
|
274
|
+
default: g(() => [J(fe, y(r(oe)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
272
275
|
ref_key: "tableRef",
|
|
273
276
|
ref: c,
|
|
274
277
|
class: r(S)(),
|
|
@@ -277,9 +280,9 @@ const Ce = /* @__PURE__ */ A({
|
|
|
277
280
|
"search-form": !1
|
|
278
281
|
}), Q({
|
|
279
282
|
_: 2
|
|
280
|
-
}, [X(B, (
|
|
283
|
+
}, [X(B, (n, a) => ({
|
|
281
284
|
name: a,
|
|
282
|
-
fn: g((
|
|
285
|
+
fn: g((f) => [Y(e.$slots, a, Z(I(f || {})))])
|
|
283
286
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
284
287
|
_: 3
|
|
285
288
|
}, 16, ["name", "label"]));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u,
|
|
1
|
+
import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, createBlock as J, openBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
2
|
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isEqual as ae, isArray as g, isUndefined as oe, isNumber as C, cloneDeep as le, omit as ne } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -146,6 +146,9 @@ const Re = /* @__PURE__ */ $({
|
|
|
146
146
|
},
|
|
147
147
|
expandable: {},
|
|
148
148
|
value: {},
|
|
149
|
+
rowHighlightable: {
|
|
150
|
+
type: [Boolean, Function]
|
|
151
|
+
},
|
|
149
152
|
columns: {},
|
|
150
153
|
defaultValue: {},
|
|
151
154
|
"onUpdate:value": {},
|
|
@@ -158,12 +161,12 @@ const Re = /* @__PURE__ */ $({
|
|
|
158
161
|
},
|
|
159
162
|
emits: ["update:value"],
|
|
160
163
|
setup(B, {
|
|
161
|
-
expose:
|
|
162
|
-
emit:
|
|
164
|
+
expose: F,
|
|
165
|
+
emit: S
|
|
163
166
|
}) {
|
|
164
167
|
const N = q(), o = B, {
|
|
165
168
|
b: V
|
|
166
|
-
} = re("editable-grid"), _ =
|
|
169
|
+
} = re("editable-grid"), _ = S, w = v(), {
|
|
167
170
|
value: m,
|
|
168
171
|
updateValue: L
|
|
169
172
|
} = ue(o, _), i = v(), k = ie("valueTypeMap"), c = y.useWatch(o.name, i);
|
|
@@ -236,14 +239,14 @@ const Re = /* @__PURE__ */ $({
|
|
|
236
239
|
s[n] = s[n].filter((r) => !t.has(r[o.rowKey]));
|
|
237
240
|
}));
|
|
238
241
|
}
|
|
239
|
-
function
|
|
242
|
+
function H() {
|
|
240
243
|
return u(m);
|
|
241
244
|
}
|
|
242
|
-
function
|
|
245
|
+
function I(e) {
|
|
243
246
|
var t;
|
|
244
247
|
(t = i.value) == null || t.setFieldValue(o.name, e);
|
|
245
248
|
}
|
|
246
|
-
function
|
|
249
|
+
function P(e) {
|
|
247
250
|
var t;
|
|
248
251
|
return (t = u(m)) == null ? void 0 : t[e];
|
|
249
252
|
}
|
|
@@ -271,20 +274,20 @@ const Re = /* @__PURE__ */ $({
|
|
|
271
274
|
var e, t;
|
|
272
275
|
(t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, o.name, []);
|
|
273
276
|
}
|
|
274
|
-
return
|
|
277
|
+
return F({
|
|
275
278
|
resetFields: E,
|
|
276
279
|
validateFields: j,
|
|
277
280
|
add: O,
|
|
278
281
|
remove: A,
|
|
279
|
-
getRowData:
|
|
280
|
-
getRowsData:
|
|
282
|
+
getRowData: P,
|
|
283
|
+
getRowsData: H,
|
|
281
284
|
setRowData: W,
|
|
282
285
|
addMultiple: z,
|
|
283
286
|
scrollTo: G,
|
|
284
287
|
clear: U,
|
|
285
|
-
setTableData:
|
|
288
|
+
setTableData: I,
|
|
286
289
|
removeByKey: K
|
|
287
|
-
}), (e, t) => (
|
|
290
|
+
}), (e, t) => (Q(), J(u(y), {
|
|
288
291
|
ref_key: "formRef",
|
|
289
292
|
ref: i,
|
|
290
293
|
"initial-values": {
|