@vunk/form 1.1.6 → 1.1.7
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/components/cascader/index.d.ts +2 -0
- package/components/cascader/index.js +45 -26
- package/components/cascader/src/ctx.d.ts +41 -49
- package/components/cascader/src/ctx.js +1 -1
- package/components/cascader/src/index.vue.d.ts +89 -105
- package/components/cascader/src/use.d.ts +5 -0
- package/components/cascader/src/use.js +28 -0
- package/components/checkbox/src/index.vue.d.ts +2 -2
- package/components/color-picker/src/index.vue.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +2 -2
- package/components/form/src/ctx.d.ts +18 -18
- package/components/form/src/index.vue.d.ts +56 -56
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/geoinput/src/index.vue.d.ts +26 -26
- package/components/geoinput-read/src/core.vue.d.ts +11 -11
- package/components/geoinput-read/src/ctx.d.ts +2 -2
- package/components/geoinput-read/src/index.vue.d.ts +14 -14
- package/components/geoinput-update/src/ctx.d.ts +2 -2
- package/components/geoinput-update/src/index.vue.d.ts +10 -10
- package/components/input/src/ctx.d.ts +2 -2
- package/components/input/src/index.vue.d.ts +14 -14
- package/components/input-link/src/index.vue.d.ts +14 -14
- package/components/input-number/src/index.vue.d.ts +5 -5
- package/components/radio/src/index.vue.d.ts +1 -1
- package/components/select/index.js +4 -4
- package/components/select/src/index.vue.d.ts +4 -4
- package/components/switch/src/index.vue.d.ts +5 -5
- package/components/upload/src/ctx.d.ts +1 -1
- package/components/upload/src/index.vue.d.ts +4 -4
- package/components/van-cascader/index.css +4 -0
- package/components/van-cascader/index.d.ts +4 -0
- package/components/van-cascader/index.js +128 -0
- package/components/van-cascader/src/ctx.d.ts +111 -0
- package/components/van-cascader/src/ctx.js +22 -0
- package/components/van-cascader/src/index.vue.d.ts +273 -0
- package/components/van-cascader/src/types.d.ts +1 -0
- package/components/van-cascader/src/types.js +1 -0
- package/index.css +5 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +23 -23
- package/shared/element-plus/index.js +2 -18088
- package/shared/element-plus/instances.d.ts +0 -71
|
@@ -146,15 +146,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
elRef: any;
|
|
147
147
|
inline: boolean;
|
|
148
148
|
readonly: boolean | undefined;
|
|
149
|
-
form: string | undefined;
|
|
150
|
-
resize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown> | undefined;
|
|
151
149
|
id: string | undefined;
|
|
152
150
|
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
151
|
+
resize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown> | undefined;
|
|
153
152
|
autosize: import("element-plus").InputAutoSize;
|
|
154
153
|
autocomplete: string;
|
|
155
154
|
formatter: Function | undefined;
|
|
156
155
|
parser: Function | undefined;
|
|
157
156
|
placeholder: string;
|
|
157
|
+
form: string | undefined;
|
|
158
158
|
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
159
159
|
showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
160
160
|
showWordLimit: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -170,18 +170,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
170
|
rows: number;
|
|
171
171
|
}>;
|
|
172
172
|
coreEmits: {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
change: (
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
173
|
+
"update:modelValue": (evt: CompositionEvent) => void;
|
|
174
|
+
input: (evt: CompositionEvent) => void;
|
|
175
|
+
change: (evt: CompositionEvent) => void;
|
|
176
|
+
focus: (evt: CompositionEvent) => void;
|
|
177
|
+
blur: (evt: CompositionEvent) => void;
|
|
178
|
+
clear: (evt: CompositionEvent) => void;
|
|
179
|
+
mouseleave: (evt: CompositionEvent) => void;
|
|
180
|
+
mouseenter: (evt: CompositionEvent) => void;
|
|
181
|
+
keydown: (evt: CompositionEvent) => void;
|
|
182
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
183
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
184
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
185
185
|
};
|
|
186
186
|
createAppendEl: (url: string) => () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
187
187
|
[key: string]: any;
|
|
@@ -109,11 +109,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
precision: number | undefined;
|
|
110
110
|
}>;
|
|
111
111
|
iOnEmits: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
change: (
|
|
115
|
-
focus: (
|
|
116
|
-
|
|
112
|
+
"update:modelValue": (e: FocusEvent) => void;
|
|
113
|
+
input: (e: FocusEvent) => void;
|
|
114
|
+
change: (e: FocusEvent) => void;
|
|
115
|
+
focus: (e: FocusEvent) => void;
|
|
116
|
+
blur: (e: FocusEvent) => void;
|
|
117
117
|
};
|
|
118
118
|
readonly: import("vue").ComputedRef<boolean>;
|
|
119
119
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -97,8 +97,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
textColor: string;
|
|
98
98
|
}>;
|
|
99
99
|
coreOnEmits: {
|
|
100
|
-
change: (val: string | number | boolean) => void;
|
|
101
100
|
"update:modelValue": (val: string | number | boolean) => void;
|
|
101
|
+
change: (val: string | number | boolean) => void;
|
|
102
102
|
};
|
|
103
103
|
options: import("vue").ComputedRef<import("../../../shared/types/form").RadioProps[]>;
|
|
104
104
|
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
2
|
import { selectProps, selectEmits, createSelectBindProps, createSelectOnEmits } from '@vunk/form/shared/element-plus';
|
|
3
|
-
import { defineComponent, ref, watch, computed, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps, toHandlers, createSlots, createElementBlock, Fragment, renderList,
|
|
3
|
+
import { defineComponent, ref, watch, computed, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps, toHandlers, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, createCommentVNode, renderSlot } from 'vue';
|
|
4
4
|
import { ElSelect, ElOption } from 'element-plus';
|
|
5
5
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
6
6
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
@@ -128,8 +128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
128
128
|
return openBlock(), createBlock(_component_ElOption, mergeProps(item, {
|
|
129
129
|
key: item.key
|
|
130
130
|
}), null, 16);
|
|
131
|
-
}), 128))
|
|
132
|
-
renderSlot(_ctx.$slots, "default")
|
|
131
|
+
}), 128))
|
|
133
132
|
]),
|
|
134
133
|
_: 2
|
|
135
134
|
}, [
|
|
@@ -141,7 +140,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
140
|
])
|
|
142
141
|
};
|
|
143
142
|
})
|
|
144
|
-
]), 1040, ["disabled", "class"])) : createCommentVNode("v-if", true)
|
|
143
|
+
]), 1040, ["disabled", "class"])) : createCommentVNode("v-if", true),
|
|
144
|
+
renderSlot(_ctx.$slots, "default")
|
|
145
145
|
]),
|
|
146
146
|
_: 3
|
|
147
147
|
}, 16);
|
|
@@ -216,7 +216,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
216
216
|
size: "" | "default" | "small" | "large" | undefined;
|
|
217
217
|
name: string | undefined;
|
|
218
218
|
loading: boolean;
|
|
219
|
-
multiple: boolean;
|
|
220
219
|
id: string | undefined;
|
|
221
220
|
modelValue: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
222
221
|
autocomplete: string;
|
|
@@ -235,6 +234,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
234
|
noDataText: string | undefined;
|
|
236
235
|
remoteMethod: Function | undefined;
|
|
237
236
|
filterMethod: Function | undefined;
|
|
237
|
+
multiple: boolean;
|
|
238
238
|
multipleLimit: number;
|
|
239
239
|
defaultFirstOption: boolean;
|
|
240
240
|
reserveKeyword: boolean;
|
|
@@ -247,11 +247,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
247
247
|
tagType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>;
|
|
248
248
|
}>;
|
|
249
249
|
selectOnEmits: {
|
|
250
|
-
|
|
250
|
+
"update:modelValue": (...e: any[]) => void;
|
|
251
251
|
change: (...e: any[]) => void;
|
|
252
252
|
focus: (...e: any[]) => void;
|
|
253
|
+
blur: (...e: any[]) => void;
|
|
253
254
|
clear: (...e: any[]) => void;
|
|
254
|
-
"update:modelValue": (...e: any[]) => void;
|
|
255
255
|
"visible-change": (...e: any[]) => void;
|
|
256
256
|
"remove-tag": (...e: any[]) => void;
|
|
257
257
|
};
|
|
@@ -542,7 +542,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
542
542
|
readonly: boolean;
|
|
543
543
|
disabled: boolean;
|
|
544
544
|
loading: boolean;
|
|
545
|
-
multiple: boolean;
|
|
546
545
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
547
546
|
autocomplete: string;
|
|
548
547
|
clearable: boolean;
|
|
@@ -554,6 +553,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
554
553
|
filterable: boolean;
|
|
555
554
|
allowCreate: boolean;
|
|
556
555
|
remote: boolean;
|
|
556
|
+
multiple: boolean;
|
|
557
557
|
multipleLimit: number;
|
|
558
558
|
defaultFirstOption: boolean;
|
|
559
559
|
reserveKeyword: boolean;
|
|
@@ -118,11 +118,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
name: string;
|
|
119
119
|
value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
120
120
|
loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
121
|
-
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
122
|
-
borderColor: string;
|
|
123
121
|
id: string | undefined;
|
|
124
122
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
125
123
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
124
|
+
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
126
125
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
127
126
|
activeIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown> | undefined;
|
|
128
127
|
inactiveIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown> | undefined;
|
|
@@ -132,12 +131,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
131
|
inactiveValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
133
132
|
activeColor: string;
|
|
134
133
|
inactiveColor: string;
|
|
134
|
+
borderColor: string;
|
|
135
135
|
beforeChange: (() => boolean | Promise<boolean>) | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
switchOnEmits: {
|
|
138
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
138
139
|
input: (val: string | number | boolean) => void;
|
|
139
140
|
change: (val: string | number | boolean) => void;
|
|
140
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
141
141
|
};
|
|
142
142
|
readonly: import("vue").ComputedRef<boolean>;
|
|
143
143
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -258,10 +258,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
258
258
|
value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
259
259
|
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
260
260
|
loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
261
|
-
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
262
|
-
borderColor: string;
|
|
263
261
|
modelValue: undefined;
|
|
264
262
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
263
|
+
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
265
264
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
266
265
|
activeText: string;
|
|
267
266
|
inactiveText: string;
|
|
@@ -269,6 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
268
|
inactiveValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
270
269
|
activeColor: string;
|
|
271
270
|
inactiveColor: string;
|
|
271
|
+
borderColor: string;
|
|
272
272
|
defaultModelValue: boolean;
|
|
273
273
|
}>;
|
|
274
274
|
export default _default;
|
|
@@ -157,7 +157,7 @@ export declare const props: {
|
|
|
157
157
|
default: undefined;
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"
|
|
160
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>]: T2[k]; }[P]; }>;
|
|
161
161
|
export declare const emits: {
|
|
162
162
|
'update:fileList': null;
|
|
163
163
|
remove: (e: UploadFile) => UploadFile;
|
|
@@ -187,9 +187,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
187
|
type: string;
|
|
188
188
|
name: string;
|
|
189
189
|
data: Record<string, any>;
|
|
190
|
-
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
191
|
-
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
192
190
|
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
191
|
+
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
193
192
|
onRemove: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => void) & ((e: UploadFile) => any);
|
|
194
193
|
listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
195
194
|
onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -200,6 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
199
|
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
201
200
|
action: string;
|
|
202
201
|
headers: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown> | undefined;
|
|
202
|
+
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
203
203
|
withCredentials: boolean;
|
|
204
204
|
showFileList: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
205
205
|
accept: string;
|
|
@@ -391,9 +391,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
391
391
|
name: string;
|
|
392
392
|
data: Record<string, any>;
|
|
393
393
|
disabled: boolean;
|
|
394
|
-
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
395
|
-
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
396
394
|
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
395
|
+
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
397
396
|
onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
398
397
|
listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
399
398
|
onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -405,6 +404,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
405
404
|
onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
406
405
|
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
407
406
|
action: string;
|
|
407
|
+
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
408
408
|
withCredentials: boolean;
|
|
409
409
|
showFileList: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
410
410
|
accept: string;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { _VkfCascaderCtx, _VkfCascaderUse } from '@vunk/form/components/cascader';
|
|
2
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, normalizeClass } from 'vue';
|
|
3
|
+
import { VkfFormItem, _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
4
|
+
import { Cascader, Popup } from 'vant';
|
|
5
|
+
import { ElSelect } from 'element-plus';
|
|
6
|
+
import 'vant/es/cascader/style';
|
|
7
|
+
import 'vant/es/popup/style';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
+
var __spreadValues = (a, b) => {
|
|
15
|
+
for (var prop in b || (b = {}))
|
|
16
|
+
if (__hasOwnProp.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
if (__getOwnPropSymbols)
|
|
19
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
20
|
+
if (__propIsEnum.call(b, prop))
|
|
21
|
+
__defNormalProp(a, prop, b[prop]);
|
|
22
|
+
}
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
25
|
+
const props = __spreadValues({}, _VkfCascaderCtx.props);
|
|
26
|
+
const emits = __spreadValues({}, _VkfCascaderCtx.emits);
|
|
27
|
+
|
|
28
|
+
var _export_sfc = (sfc, props) => {
|
|
29
|
+
const target = sfc.__vccOpts || sfc;
|
|
30
|
+
for (const [key, val] of props) {
|
|
31
|
+
target[key] = val;
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const _sfc_main = defineComponent({
|
|
37
|
+
name: "VkfVanCascader",
|
|
38
|
+
components: {
|
|
39
|
+
VkfFormItem,
|
|
40
|
+
Cascader,
|
|
41
|
+
Popup,
|
|
42
|
+
ElSelect
|
|
43
|
+
},
|
|
44
|
+
emits,
|
|
45
|
+
props,
|
|
46
|
+
setup(props2, { emit }) {
|
|
47
|
+
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
48
|
+
const popupShow = ref(false);
|
|
49
|
+
const fieldValue = ref("");
|
|
50
|
+
const cascaderValue = ref("");
|
|
51
|
+
const options = _VkfCascaderUse.useOptions(props2, emit);
|
|
52
|
+
watch(() => props2.modelValue, (val) => {
|
|
53
|
+
if (Array.isArray(val) && val.length) {
|
|
54
|
+
fieldValue.value = val.join("/");
|
|
55
|
+
const last = val.at(-1);
|
|
56
|
+
if (typeof last === "string" || typeof last === "number") {
|
|
57
|
+
cascaderValue.value = last + "";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
deep: true
|
|
62
|
+
});
|
|
63
|
+
const handleFinish = ({ selectedOptions }) => {
|
|
64
|
+
popupShow.value = false;
|
|
65
|
+
emit("update:modelValue", selectedOptions.map((item) => item.value));
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
formItemBindProps,
|
|
69
|
+
fieldValue,
|
|
70
|
+
popupShow,
|
|
71
|
+
handleFinish,
|
|
72
|
+
cascaderValue,
|
|
73
|
+
options
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78
|
+
const _component_ElSelect = resolveComponent("ElSelect");
|
|
79
|
+
const _component_Cascader = resolveComponent("Cascader");
|
|
80
|
+
const _component_Popup = resolveComponent("Popup");
|
|
81
|
+
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
82
|
+
return openBlock(), createBlock(_component_VkfFormItem, mergeProps({ class: "vkf-van-cascader" }, _ctx.formItemBindProps), {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createVNode(_component_ElSelect, {
|
|
85
|
+
disabled: true,
|
|
86
|
+
class: normalizeClass({
|
|
87
|
+
"is-readonly": true
|
|
88
|
+
}),
|
|
89
|
+
"model-value": _ctx.fieldValue,
|
|
90
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.popupShow = true)
|
|
91
|
+
}, null, 8, ["model-value"]),
|
|
92
|
+
createVNode(_component_Popup, {
|
|
93
|
+
show: _ctx.popupShow,
|
|
94
|
+
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => _ctx.popupShow = $event),
|
|
95
|
+
round: "",
|
|
96
|
+
position: "bottom"
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(() => [
|
|
99
|
+
createVNode(_component_Cascader, {
|
|
100
|
+
modelValue: _ctx.cascaderValue,
|
|
101
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.cascaderValue = $event),
|
|
102
|
+
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.popupShow = false),
|
|
103
|
+
options: _ctx.options,
|
|
104
|
+
"field-names": {
|
|
105
|
+
text: "label",
|
|
106
|
+
value: "value",
|
|
107
|
+
children: "children"
|
|
108
|
+
},
|
|
109
|
+
onFinish: _ctx.handleFinish
|
|
110
|
+
}, null, 8, ["modelValue", "options", "onFinish"])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["show"])
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 16);
|
|
117
|
+
}
|
|
118
|
+
var VkfVanCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
119
|
+
|
|
120
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
121
|
+
__proto__: null
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
VkfVanCascader.install = (app) => {
|
|
125
|
+
app.component(VkfVanCascader.name, VkfVanCascader);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export { VkfVanCascader, types as __VkfVanCascader, VkfVanCascader as default };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
optionsUrl: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
readonly: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
11
|
+
label: StringConstructor;
|
|
12
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
13
|
+
prop: {
|
|
14
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
};
|
|
19
|
+
rules: {
|
|
20
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
21
|
+
readonly required: false;
|
|
22
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
23
|
+
__epPropKey: true;
|
|
24
|
+
};
|
|
25
|
+
error: StringConstructor;
|
|
26
|
+
validateStatus: {
|
|
27
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
28
|
+
readonly required: false;
|
|
29
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
|
+
__epPropKey: true;
|
|
31
|
+
};
|
|
32
|
+
for: StringConstructor;
|
|
33
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
34
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
35
|
+
formItemSize: {
|
|
36
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
formItemSlots: {
|
|
40
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
elRef: {
|
|
44
|
+
type: import("vue").PropType<any>;
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
inline: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
57
|
+
placeholder: StringConstructor;
|
|
58
|
+
disabled: BooleanConstructor;
|
|
59
|
+
clearable: BooleanConstructor;
|
|
60
|
+
filterable: BooleanConstructor;
|
|
61
|
+
filterMethod: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean) | (() => (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean) | {
|
|
62
|
+
(): (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean;
|
|
63
|
+
new (): any;
|
|
64
|
+
readonly prototype: any;
|
|
65
|
+
} | ((new (...args: any[]) => (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean) | (() => (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean) | {
|
|
66
|
+
(): (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean;
|
|
67
|
+
new (): any;
|
|
68
|
+
readonly prototype: any;
|
|
69
|
+
})[], unknown, unknown, (node: import("element-plus/es/components/cascader-panel/src/node").default, keyword: string) => boolean, boolean>;
|
|
70
|
+
separator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
71
|
+
showAllLevels: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
72
|
+
collapseTags: BooleanConstructor;
|
|
73
|
+
collapseTagsTooltip: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
74
|
+
debounce: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
75
|
+
beforeFilter: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (value: string) => boolean | Promise<any>) | (() => (value: string) => boolean | Promise<any>) | {
|
|
76
|
+
(): (value: string) => boolean | Promise<any>;
|
|
77
|
+
new (): any;
|
|
78
|
+
readonly prototype: any;
|
|
79
|
+
} | ((new (...args: any[]) => (value: string) => boolean | Promise<any>) | (() => (value: string) => boolean | Promise<any>) | {
|
|
80
|
+
(): (value: string) => boolean | Promise<any>;
|
|
81
|
+
new (): any;
|
|
82
|
+
readonly prototype: any;
|
|
83
|
+
})[], unknown, unknown, () => true, boolean>;
|
|
84
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
85
|
+
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
86
|
+
tagType: {
|
|
87
|
+
default: string;
|
|
88
|
+
type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>>;
|
|
89
|
+
required: false;
|
|
90
|
+
validator: ((val: unknown) => boolean) | undefined;
|
|
91
|
+
__epPropKey: true;
|
|
92
|
+
};
|
|
93
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
94
|
+
modelValue: {
|
|
95
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus/es/components/cascader-panel/src/node").CascaderValue & {}) | (() => import("element-plus/es/components/cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("element-plus/es/components/cascader-panel/src/node").CascaderValue & {}) | (() => import("element-plus/es/components/cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
};
|
|
100
|
+
options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]))[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
|
|
101
|
+
props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps))[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
|
|
102
|
+
};
|
|
103
|
+
export declare const emits: {
|
|
104
|
+
"update:modelValue": (val: import("element-plus").CascaderValue) => boolean;
|
|
105
|
+
change: (val: import("element-plus").CascaderValue) => boolean;
|
|
106
|
+
focus: (evt: FocusEvent) => boolean;
|
|
107
|
+
blur: (evt: FocusEvent) => boolean;
|
|
108
|
+
visibleChange: (val: boolean) => boolean;
|
|
109
|
+
expandChange: (val: import("element-plus").CascaderValue) => boolean;
|
|
110
|
+
removeTag: (val: import("element-plus/es/components/cascader-panel/src/node").CascaderNodeValue | import("element-plus/es/components/cascader-panel/src/node").CascaderNodePathValue) => boolean;
|
|
111
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { _VkfCascaderCtx } from '@vunk/form/components/cascader';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
const props = __spreadValues({}, _VkfCascaderCtx.props);
|
|
20
|
+
const emits = __spreadValues({}, _VkfCascaderCtx.emits);
|
|
21
|
+
|
|
22
|
+
export { emits, props };
|