@aplus-frontend/ui 0.6.0-beta.12 → 0.6.0-beta.13
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 +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- 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 +5 -5
- 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-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-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.vue2.mjs +2 -2
- 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/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/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/index.vue.d.ts +2 -4
- 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-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-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-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/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/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 +3 -3
- package/theme/ap-action/item.css +12 -1
- package/theme/ap-action/item.less +13 -1
- 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 +23 -3
- package/theme/ui-mode.css +9 -1
- package/theme/ui-mode.less +17 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, ref as I, computed as A,
|
|
1
|
+
import { defineComponent as h, ref as I, computed as A, createElementBlock as C, createBlock as g, openBlock as d, normalizeClass as z, unref as t, toDisplayString as T, mergeProps as k } from "vue";
|
|
2
2
|
import { isNil as w, omit as R } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -82,8 +82,8 @@ const O = /* @__PURE__ */ h({
|
|
|
82
82
|
})
|
|
83
83
|
}), (e, a) => e.mode === "read" ? (d(), C("span", {
|
|
84
84
|
key: 0,
|
|
85
|
-
class:
|
|
86
|
-
},
|
|
85
|
+
class: z(t(v)())
|
|
86
|
+
}, T(t(w)(t(n)) || t(n) === "" ? e.emptyText : t(n)), 3)) : (d(), g(t(_).TextArea, k({ key: 1 }, t(R)(o, ["onUpdate:value", "value", "beforeInput"]), {
|
|
87
87
|
ref_key: "textAreaRef",
|
|
88
88
|
ref: l,
|
|
89
89
|
placeholder: t(B),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as E, defineComponent as F, useSlots as K, ref as U, computed as z, unref as o, createVNode as d, Fragment as S,
|
|
1
|
+
import { isVNode as E, defineComponent as F, useSlots as K, ref as U, computed as z, unref as o, createVNode as d, Fragment as S, createBlock as w, openBlock as C, resolveDynamicComponent as M, mergeProps as j, createSlots as q, renderList as O, withCtx as x, renderSlot as $, normalizeProps as H, guardReactiveProps as W } from "vue";
|
|
2
2
|
import { Space as G, Tag as J, TreeSelect as Q, Spin as X } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isArray as Y, omit as Z } from "lodash-unified";
|
|
@@ -220,9 +220,9 @@ const ie = /* @__PURE__ */ F({
|
|
|
220
220
|
request: h,
|
|
221
221
|
focus: P,
|
|
222
222
|
blur: L
|
|
223
|
-
}), (e, t) => e.mode === "read" ? (
|
|
223
|
+
}), (e, t) => e.mode === "read" ? (C(), w(M(I.value), {
|
|
224
224
|
key: 0
|
|
225
|
-
})) : (
|
|
225
|
+
})) : (C(), w(o(Q), j({
|
|
226
226
|
key: 1
|
|
227
227
|
}, o(Z)(a, ["onUpdate:value", "value", "treeData", "loadData"]), {
|
|
228
228
|
ref_key: "treeSelectRef",
|
|
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
checkable?: boolean | undefined;
|
|
10
10
|
disableCheckbox?: boolean | undefined;
|
|
11
|
-
children?: any[] | undefined;
|
|
11
|
+
children?: /*elided*/ any[] | undefined;
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
value?: RawValueType | undefined;
|
|
15
15
|
title?: any;
|
|
16
16
|
label?: any;
|
|
17
17
|
key?: Key | undefined;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
checkable?: boolean | undefined;
|
|
21
21
|
disableCheckbox?: boolean | undefined;
|
|
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
checkable?: boolean | undefined;
|
|
26
26
|
disableCheckbox?: boolean | undefined;
|
|
27
|
-
children?: any[] | undefined;
|
|
27
|
+
children?: /*elided*/ any[] | undefined;
|
|
28
28
|
} | {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
value?: RawValueType | undefined;
|
|
31
31
|
title?: any;
|
|
32
32
|
label?: any;
|
|
33
33
|
key?: Key | undefined;
|
|
34
|
-
children?: any[] | undefined;
|
|
34
|
+
children?: /*elided*/ any[] | undefined;
|
|
35
35
|
disabled?: boolean | undefined;
|
|
36
36
|
checkable?: boolean | undefined;
|
|
37
37
|
disableCheckbox?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
|
|
2
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign,
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
5
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
@@ -7,7 +7,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
declare function __VLS_template(): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q,
|
|
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
2
|
import { Form as ne } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useProvideForm as ie } from "./context.mjs";
|
|
4
4
|
import { isArray as f, cloneDeep as ae, isFunction as B, isPlainObject as M, omit as ue } from "lodash-unified";
|
|
@@ -219,7 +219,7 @@ const Re = /* @__PURE__ */ Q({
|
|
|
219
219
|
registerField: j,
|
|
220
220
|
setFieldValue: U
|
|
221
221
|
}
|
|
222
|
-
}), N(x), (e, t) => (
|
|
222
|
+
}), N(x), (e, t) => (re(), te(p(ne), le({
|
|
223
223
|
ref_key: "formRef",
|
|
224
224
|
ref: u
|
|
225
225
|
}, p(ue)(l, ["initialValues", "onValuesChange", "onFinish"]), {
|
|
@@ -1,6 +1,6 @@
|
|
|
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, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity
|
|
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
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
@@ -8,7 +8,6 @@ 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, 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: {
|
|
@@ -1060,7 +1059,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1060
1059
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1061
1060
|
readonly initialValues?: Recordable | undefined;
|
|
1062
1061
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1063
|
-
readonly syncToUrl?:
|
|
1062
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1064
1063
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1065
1064
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1066
1065
|
$attrs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as K, defineComponent as Q, useSlots as Y, ref as v, computed as w, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b,
|
|
1
|
+
import { isVNode as K, defineComponent as Q, useSlots as Y, ref as v, computed as w, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b, createElementBlock as N, openBlock as y, Fragment as ee, createBlock as M, createCommentVNode as S, withCtx as g, renderSlot as _, withModifiers as te, normalizeClass as ie, resolveDynamicComponent as L, createTextVNode as ne, toDisplayString as oe } from "vue";
|
|
2
2
|
import { Button as V, Flex as le, Space as ae, Drawer as se } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -274,23 +274,23 @@ const je = /* @__PURE__ */ Q({
|
|
|
274
274
|
"onUpdate:open": H,
|
|
275
275
|
onCancel: R
|
|
276
276
|
}), {
|
|
277
|
-
title: g(() => [
|
|
278
|
-
footer: g(() => [(y(),
|
|
277
|
+
title: g(() => [_(e.$slots, "title", {}, () => [ne(oe(n.title), 1)])]),
|
|
278
|
+
footer: g(() => [(y(), M(L(I.value)))]),
|
|
279
279
|
default: g(() => [d(ve, b({
|
|
280
280
|
ref_key: "formRef",
|
|
281
281
|
ref: a
|
|
282
282
|
}, l(ce)(n, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
|
|
283
|
-
default: g(() => [
|
|
283
|
+
default: g(() => [_(e.$slots, "default")]),
|
|
284
284
|
_: 3
|
|
285
285
|
}, 16), e.resize ? (y(), N("div", {
|
|
286
286
|
key: 0,
|
|
287
|
-
class:
|
|
288
|
-
onMousedown:
|
|
289
|
-
}, null, 34)) :
|
|
287
|
+
class: ie(q.value),
|
|
288
|
+
onMousedown: te(A, ["stop", "prevent"])
|
|
289
|
+
}, null, 34)) : S("", !0)]),
|
|
290
290
|
_: 3
|
|
291
|
-
}, 16, ["open", "width"]), l(x) ? (y(),
|
|
291
|
+
}, 16, ["open", "width"]), l(x) ? (y(), M(L(l(x)), {
|
|
292
292
|
key: 0
|
|
293
|
-
})) :
|
|
293
|
+
})) : S("", !0)], 64));
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
296
|
export {
|
|
@@ -243,9 +243,9 @@ export type ApFormDrawerFormExpose = ApFormExpose;
|
|
|
243
243
|
* ApFormItem支持的插槽
|
|
244
244
|
*/
|
|
245
245
|
export type ApFormItemSlots = {
|
|
246
|
-
help
|
|
247
|
-
label
|
|
248
|
-
extra
|
|
246
|
+
help?: any;
|
|
247
|
+
label?: any;
|
|
248
|
+
extra?: any;
|
|
249
249
|
default: () => VNode[];
|
|
250
250
|
};
|
|
251
251
|
export type ApFormDependencyProps = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as D, useSlots as $, ref as
|
|
1
|
+
import { defineComponent as D, useSlots as $, ref as d, onMounted as j, computed as F, unref as t, watch as q, cloneVNode as E, createBlock as g, openBlock as h, mergeProps as K, createSlots as O, withCtx as i, createCommentVNode as Q, resolveDynamicComponent as U, renderList as Y, createElementVNode as G, normalizeClass as H, createVNode as p, normalizeStyle as J, renderSlot as M, normalizeProps as W, guardReactiveProps as X } from "vue";
|
|
2
2
|
import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { isFunction as B, cloneDeep as
|
|
3
|
+
import { useToken as te } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { isFunction as B, cloneDeep as le, isArray as re, omit as C } from "lodash-unified";
|
|
5
5
|
import { apFormItemColPropKeys as ae } from "../constant.mjs";
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as ie } from "../context.mjs";
|
|
9
9
|
import { isPromise as se } from "@fruits-chain/utils";
|
|
10
10
|
import { getSingleVNode as ue, getValidVNodeList as me } from "../../utils/slot.mjs";
|
|
11
|
-
import { useNamespace as
|
|
11
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
const Ce = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
@@ -54,17 +54,17 @@ const Ce = /* @__PURE__ */ D({
|
|
|
54
54
|
transform: {},
|
|
55
55
|
description: {}
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const o =
|
|
57
|
+
setup(x, { expose: N }) {
|
|
58
|
+
const o = x, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: k } = fe("ap-form-item"), f = d(!1), n = d(), [, P] = te();
|
|
59
59
|
j(async () => {
|
|
60
60
|
let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
61
61
|
se(e) && (e = await e), m == null || m.registerField({
|
|
62
62
|
name: o.name,
|
|
63
|
-
initialValue:
|
|
63
|
+
initialValue: le(e),
|
|
64
64
|
transform: o.transform
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e,
|
|
67
|
+
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e, l) => e == null ? void 0 : e[l], t(s)) : s == null ? void 0 : s.value[o.name] : null), v = d(ue(a.default));
|
|
68
68
|
q(
|
|
69
69
|
() => {
|
|
70
70
|
var e;
|
|
@@ -74,25 +74,25 @@ const Ce = /* @__PURE__ */ D({
|
|
|
74
74
|
v.value = me(e)[0];
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
function
|
|
77
|
+
function S(e) {
|
|
78
78
|
u == null || u(o.name, e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
80
|
+
function w() {
|
|
81
|
+
f.value = !0;
|
|
82
82
|
}
|
|
83
83
|
function T() {
|
|
84
|
-
|
|
84
|
+
f.value = !1;
|
|
85
85
|
}
|
|
86
86
|
const V = F(() => {
|
|
87
|
-
var
|
|
87
|
+
var l, r;
|
|
88
88
|
if (!o.name)
|
|
89
|
-
return (
|
|
90
|
-
const e =
|
|
89
|
+
return (l = a.default()) == null ? void 0 : l[0];
|
|
90
|
+
const e = t(v);
|
|
91
91
|
return e ? E(e, {
|
|
92
|
-
[o.valuePropName]:
|
|
93
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
92
|
+
[o.valuePropName]: t(y),
|
|
93
|
+
[`onUpdate:${o.valuePropName}`]: S,
|
|
94
94
|
bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
|
|
95
|
-
onFocus:
|
|
95
|
+
onFocus: w,
|
|
96
96
|
onBlur: T
|
|
97
97
|
}) : null;
|
|
98
98
|
});
|
|
@@ -113,35 +113,35 @@ const Ce = /* @__PURE__ */ D({
|
|
|
113
113
|
(e = n.value) == null || e.resetField();
|
|
114
114
|
}
|
|
115
115
|
function R(e = !1) {
|
|
116
|
-
const
|
|
116
|
+
const l = t(y);
|
|
117
117
|
if (!e || !o.transform)
|
|
118
|
-
return
|
|
118
|
+
return l;
|
|
119
119
|
const r = B(o.transform) ? o.transform : o.transform.transformer;
|
|
120
|
-
return o.transform ? r(
|
|
120
|
+
return o.transform ? r(l) : l;
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return N({
|
|
123
123
|
onFieldBlur: I,
|
|
124
124
|
onFieldChange: z,
|
|
125
125
|
clearValidate: A,
|
|
126
126
|
resetField: L,
|
|
127
127
|
getFieldValue: R
|
|
128
|
-
}), (e,
|
|
128
|
+
}), (e, l) => (h(), g(t(Z).Item, K(
|
|
129
129
|
{
|
|
130
130
|
ref_key: "formItemRef",
|
|
131
131
|
ref: n
|
|
132
132
|
},
|
|
133
|
-
|
|
133
|
+
t(C)(o, [...t(ae), "tooltip", "label", "description"]),
|
|
134
134
|
{
|
|
135
135
|
class: {
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
136
|
+
[t(c)("bordered")]: e.bordered,
|
|
137
|
+
[t(c)("focused")]: e.bordered && f.value,
|
|
138
|
+
[t(k)()]: !0
|
|
139
139
|
},
|
|
140
140
|
colon: e.bordered ? !1 : o.colon
|
|
141
141
|
}
|
|
142
142
|
), O({
|
|
143
143
|
default: i(() => [
|
|
144
|
-
V.value ? (
|
|
144
|
+
V.value ? (h(), g(U(V.value), { key: 0 })) : Q("", !0)
|
|
145
145
|
]),
|
|
146
146
|
_: 2
|
|
147
147
|
}, [
|
|
@@ -151,12 +151,16 @@ const Ce = /* @__PURE__ */ D({
|
|
|
151
151
|
G("span", {
|
|
152
152
|
class: H(r)
|
|
153
153
|
}, [
|
|
154
|
-
p(
|
|
154
|
+
p(t(ee), {
|
|
155
155
|
title: o.tooltip
|
|
156
156
|
}, {
|
|
157
157
|
default: i(() => [
|
|
158
|
-
p(
|
|
159
|
-
style: J({
|
|
158
|
+
p(t(ne), {
|
|
159
|
+
style: J({
|
|
160
|
+
color: t(P).colorTextTertiary,
|
|
161
|
+
fontSize: "14px",
|
|
162
|
+
transform: "translateY(1px)"
|
|
163
|
+
})
|
|
160
164
|
}, null, 8, ["style"])
|
|
161
165
|
]),
|
|
162
166
|
_: 1
|
|
@@ -168,7 +172,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
168
172
|
e.label ? {
|
|
169
173
|
name: "label",
|
|
170
174
|
fn: i(() => [
|
|
171
|
-
p(
|
|
175
|
+
p(t(oe), {
|
|
172
176
|
content: e.label,
|
|
173
177
|
ellipsis: { tooltip: e.label },
|
|
174
178
|
style: { "min-width": "0px", flex: "1" }
|
|
@@ -176,10 +180,10 @@ const Ce = /* @__PURE__ */ D({
|
|
|
176
180
|
]),
|
|
177
181
|
key: "1"
|
|
178
182
|
} : void 0,
|
|
179
|
-
|
|
183
|
+
Y(t(C)(a, "default"), (r, b) => ({
|
|
180
184
|
name: b,
|
|
181
185
|
fn: i((_) => [
|
|
182
|
-
|
|
186
|
+
M(e.$slots, b, W(X(_ || {})))
|
|
183
187
|
])
|
|
184
188
|
}))
|
|
185
189
|
]), 1040, ["class", "colon"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as C, defineComponent as h, useSlots as w, onBeforeUpdate as k,
|
|
1
|
+
import { isVNode as C, defineComponent as h, useSlots as w, onBeforeUpdate as k, shallowRef as _, watch as B, computed as P, unref as r, createVNode as R, mergeProps as u, createBlock as d, openBlock as s, withCtx as S, createElementBlock as b, Fragment as x, renderList as N, resolveDynamicComponent as j } from "vue";
|
|
2
2
|
import { Col as v, Row as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import { pick as D, isBoolean as I, omit as O } from "lodash-unified";
|
|
4
4
|
import { apFormItemColPropKeys as V } from "../constant.mjs";
|
|
@@ -33,10 +33,10 @@ const T = /* @__PURE__ */ h({
|
|
|
33
33
|
} = G("ap-form-item-group"), i = t, a = w();
|
|
34
34
|
k(() => {
|
|
35
35
|
p.value = l(a.default());
|
|
36
|
-
}),
|
|
36
|
+
}), B(() => a.default(), (o) => {
|
|
37
37
|
p.value = l(o);
|
|
38
38
|
});
|
|
39
|
-
const p =
|
|
39
|
+
const p = _(l(a.default())), f = P(() => r(p).map((o, m) => {
|
|
40
40
|
const e = o.props, n = D(e, V), g = n != null && n.span ? {} : $(i.countPerRow), y = I(e.hidden) ? !!e.hidden : E(e.hidden);
|
|
41
41
|
return {
|
|
42
42
|
key: `${m}-${A(e.name)}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, useSlots as m,
|
|
1
|
+
import { defineComponent as f, useSlots as m, createBlock as u, openBlock as c, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as v, renderSlot as x } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as i } from "lodash-unified";
|
|
@@ -52,7 +52,7 @@ const w = /* @__PURE__ */ f({
|
|
|
52
52
|
},
|
|
53
53
|
setup(d) {
|
|
54
54
|
const s = d, n = m();
|
|
55
|
-
return (e, h) => (
|
|
55
|
+
return (e, h) => (c(), u(y, a(t(o(i)(s, ["field", "disabled"]))), b({
|
|
56
56
|
default: r(() => [
|
|
57
57
|
B(o(g), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
58
58
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as v,
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -63,7 +63,7 @@ const L = /* @__PURE__ */ h({
|
|
|
63
63
|
bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
|
|
64
64
|
};
|
|
65
65
|
});
|
|
66
|
-
return (o, P) => (
|
|
66
|
+
return (o, P) => (x(), y(k, a(t(r(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
67
67
|
default: i(() => [
|
|
68
68
|
g(C, a(t(b.value)), s({ _: 2 }, [
|
|
69
69
|
p(r(m)(n, r(u)), (_, l) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as g, computed as v,
|
|
1
|
+
import { defineComponent as B, useSlots as g, computed as v, createBlock as y, openBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as i, createVNode as F, renderList as f, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
|
|
@@ -63,7 +63,7 @@ const I = /* @__PURE__ */ B({
|
|
|
63
63
|
bordered: e.bordered ? !1 : S((l = e.field) == null ? void 0 : l.bordered) ? !0 : (d = e.field) == null ? void 0 : d.bordered
|
|
64
64
|
};
|
|
65
65
|
});
|
|
66
|
-
return (l, d) => (
|
|
66
|
+
return (l, d) => (x(), y(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
|
|
67
67
|
default: i(() => [
|
|
68
68
|
F(o(P), r(t(_.value)), p({ _: 2 }, [
|
|
69
69
|
f(o(u)(s, o(c)), (h, a) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as B, ref as _,
|
|
1
|
+
import { defineComponent as y, useSlots as B, ref as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as N, renderList as i, renderSlot as u } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
4
|
import { omit as f, pick as S } from "lodash-unified";
|
|
@@ -64,7 +64,7 @@ const T = /* @__PURE__ */ y({
|
|
|
64
64
|
var e;
|
|
65
65
|
(e = r.value) == null || e.blur();
|
|
66
66
|
}
|
|
67
|
-
}), (e, R) => (
|
|
67
|
+
}), (e, R) => (x(), g(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), d({
|
|
68
68
|
default: n(() => [
|
|
69
69
|
k(F, N({
|
|
70
70
|
ref_key: "inputNumberRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, useSlots as m, ref as c,
|
|
1
|
+
import { defineComponent as u, useSlots as m, ref as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as h } from "lodash-unified";
|
|
@@ -61,7 +61,7 @@ const q = /* @__PURE__ */ u({
|
|
|
61
61
|
var e;
|
|
62
62
|
(e = o.value) == null || e.blur();
|
|
63
63
|
}
|
|
64
|
-
}), (e, P) => (
|
|
64
|
+
}), (e, P) => (v(), b(k, a(t(r(h)(n, ["field", "disabled"]))), _({
|
|
65
65
|
default: s(() => [
|
|
66
66
|
y(r(C), B({
|
|
67
67
|
ref_key: "radioRef",
|
|
@@ -124,12 +124,12 @@ declare function __VLS_template(): {
|
|
|
124
124
|
readonly emptyText?: string | undefined;
|
|
125
125
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
126
126
|
readonly multiple?: boolean | undefined;
|
|
127
|
-
readonly value?:
|
|
127
|
+
readonly value?: SelectValue;
|
|
128
128
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
129
|
-
readonly searchMode?:
|
|
129
|
+
readonly searchMode?: "filter" | "request" | undefined;
|
|
130
130
|
readonly refetchOnFocus?: boolean | undefined;
|
|
131
131
|
readonly lazy?: boolean | undefined;
|
|
132
|
-
readonly addAll?:
|
|
132
|
+
readonly addAll?: boolean | number | undefined;
|
|
133
133
|
readonly params?: Recordable | undefined;
|
|
134
134
|
readonly searchDelay?: number | undefined;
|
|
135
135
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -755,12 +755,12 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
755
755
|
readonly emptyText?: string | undefined;
|
|
756
756
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
757
757
|
readonly multiple?: boolean | undefined;
|
|
758
|
-
readonly value?:
|
|
758
|
+
readonly value?: SelectValue;
|
|
759
759
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
760
|
-
readonly searchMode?:
|
|
760
|
+
readonly searchMode?: "filter" | "request" | undefined;
|
|
761
761
|
readonly refetchOnFocus?: boolean | undefined;
|
|
762
762
|
readonly lazy?: boolean | undefined;
|
|
763
|
-
readonly addAll?:
|
|
763
|
+
readonly addAll?: boolean | number | undefined;
|
|
764
764
|
readonly params?: Recordable | undefined;
|
|
765
765
|
readonly searchDelay?: number | undefined;
|
|
766
766
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, ref as x, useSlots as g, computed as S,
|
|
1
|
+
import { defineComponent as B, ref as x, useSlots as g, computed as S, createBlock as k, openBlock as F, normalizeProps as d, guardReactiveProps as n, unref as l, createSlots as f, withCtx as i, createVNode as C, mergeProps as P, renderList as u, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as m, pick as $ } from "lodash-unified";
|
|
@@ -78,7 +78,7 @@ const E = /* @__PURE__ */ B({
|
|
|
78
78
|
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
|
-
return (e, a) => (
|
|
81
|
+
return (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
|
|
82
82
|
default: i(() => [
|
|
83
83
|
C(l(R), P(h.value, {
|
|
84
84
|
ref_key: "selectRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, useSlots as B,
|
|
1
|
+
import { defineComponent as b, useSlots as B, createBlock as h, openBlock as v, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as i, createVNode as y, mergeProps as g, renderList as n, renderSlot as p } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
4
|
import { omit as m, pick as x } from "lodash-unified";
|
|
@@ -53,7 +53,7 @@ const I = /* @__PURE__ */ b({
|
|
|
53
53
|
},
|
|
54
54
|
setup(u) {
|
|
55
55
|
const c = u, s = B();
|
|
56
|
-
return (a, C) => (
|
|
56
|
+
return (a, C) => (v(), h(S, t(r(o(m)(c, ["field", "disabled"]))), d({
|
|
57
57
|
default: i(() => [
|
|
58
58
|
y(k, g({ disabled: a.disabled }, a.field), d({ _: 2 }, [
|
|
59
59
|
n(o(m)(s, o(f)), (_, e) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
1
|
+
import { defineComponent as a, createBlock as m, openBlock as s, unref as o, mergeProps as c, withCtx as n, renderSlot as u } from "vue";
|
|
2
2
|
import { Input as l } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as f } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -11,7 +11,7 @@ const B = /* @__PURE__ */ a({
|
|
|
11
11
|
},
|
|
12
12
|
setup(t) {
|
|
13
13
|
const { b: p } = f("ap-form-item-text-group"), r = t;
|
|
14
|
-
return (e, i) => (
|
|
14
|
+
return (e, i) => (s(), m(o(l).Group, c({
|
|
15
15
|
class: e.$props.compact ? o(p)("compact") : null
|
|
16
16
|
}, r), {
|
|
17
17
|
default: n(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x, ref as S, computed as _,
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as _, createBlock as k, openBlock as F, normalizeProps as n, guardReactiveProps as p, unref as t, createSlots as u, withCtx as i, createVNode as R, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as m, pick as A } from "lodash-unified";
|
|
@@ -75,7 +75,7 @@ const E = /* @__PURE__ */ B({
|
|
|
75
75
|
var e;
|
|
76
76
|
return (e = l.value) == null ? void 0 : e.input;
|
|
77
77
|
})
|
|
78
|
-
}), (e, a) => (
|
|
78
|
+
}), (e, a) => (F(), k(N, n(p(t(m)(y, ["field", "disabled", "placeholder"]))), u({
|
|
79
79
|
default: i(() => [
|
|
80
80
|
R(t(g), C({
|
|
81
81
|
ref_key: "inputRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _, ref as g,
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as S, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as u, pick as P } from "lodash-unified";
|
|
@@ -63,7 +63,7 @@ const z = /* @__PURE__ */ B({
|
|
|
63
63
|
var e;
|
|
64
64
|
(e = a.value) == null || e.blur();
|
|
65
65
|
}
|
|
66
|
-
}), (e, R) => (
|
|
66
|
+
}), (e, R) => (k(), x(w, t(s(o(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
67
67
|
default: d(() => [
|
|
68
68
|
F(o(h).Password, S({
|
|
69
69
|
ref_key: "inputRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, useSlots as b, ref as x, computed as h,
|
|
1
|
+
import { defineComponent as c, useSlots as b, ref as x, computed as h, createBlock as v, openBlock as y, normalizeProps as r, guardReactiveProps as t, unref as s, createSlots as B, withCtx as d, createVNode as A, mergeProps as g, renderList as _, renderSlot as k } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as F } from "lodash-unified";
|
|
@@ -65,7 +65,7 @@ const $ = /* @__PURE__ */ c({
|
|
|
65
65
|
var e;
|
|
66
66
|
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
67
67
|
})
|
|
68
|
-
}), (e, o) => (
|
|
68
|
+
}), (e, o) => (y(), v(S, r(t(s(F)(f, ["field", "disabled", "placeholder"]))), B({
|
|
69
69
|
default: d(() => [
|
|
70
70
|
A(s(p), g({
|
|
71
71
|
ref_key: "textAreaRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, ref as x, useSlots as S, computed as g,
|
|
1
|
+
import { defineComponent as B, ref as x, useSlots as S, computed as g, createBlock as k, openBlock as F, normalizeProps as n, guardReactiveProps as i, unref as l, createSlots as u, withCtx as p, createVNode as C, mergeProps as P, renderList as c, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as b, pick as $ } from "lodash-unified";
|
|
@@ -78,7 +78,7 @@ const E = /* @__PURE__ */ B({
|
|
|
78
78
|
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (r = o.field) == null ? void 0 : r.bordered
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
|
-
return (e, r) => (
|
|
81
|
+
return (e, r) => (F(), k(N, n(i(l(b)(o, ["field", "placeholder", "disabled"]))), u({
|
|
82
82
|
default: p(() => [
|
|
83
83
|
C(l(R), P(y.value, {
|
|
84
84
|
ref_key: "treeSelectRef",
|