@vunk/form 2.19.20 → 2.19.21
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/ai-provider/index.cjs +1 -0
- package/components/ai-provider/index.d.ts +7 -0
- package/components/ai-provider/index.mjs +61 -0
- package/components/ai-provider/src/ctx.d.ts +8 -0
- package/components/ai-provider/src/index.vue.d.ts +23 -0
- package/components/ai-provider/src/types.d.ts +56 -0
- package/components/ai-provider/src/use.d.ts +3 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/api-tables-select/src/ctx.d.ts +57 -57
- package/components/api-tables-select/src/index.vue.d.ts +46 -419
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +12 -12
- package/components/button/src/ctx.d.ts +7 -2
- package/components/button/src/index.vue.d.ts +36 -14
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +136 -141
- package/components/card-input-collection/src/core.vue.d.ts +18 -7
- package/components/card-input-collection/src/ctx.d.ts +7 -2
- package/components/card-input-collection/src/index.vue.d.ts +18 -7
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +38 -39
- package/components/cascader/src/ctx.d.ts +8 -3
- package/components/cascader/src/index.vue.d.ts +19 -8
- package/components/checkbox/src/ctx.d.ts +8 -3
- package/components/checkbox/src/index.vue.d.ts +43 -21
- package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
- package/components/cloneDeep-Btpy0oPF.js +1 -0
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.mjs +19 -22
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +21 -21
- package/components/collapse-item/src/index.vue.d.ts +2 -2
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +26 -27
- package/components/color-picker/src/ctx.d.ts +7 -2
- package/components/color-picker/src/index.vue.d.ts +17 -6
- package/components/{style.css → components.css} +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +40 -41
- package/components/date-picker/src/ctx.d.ts +8 -3
- package/components/date-picker/src/index.vue.d.ts +17 -6
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +17 -17
- package/components/date-picker-range/src/ctx.d.ts +14 -9
- package/components/date-picker-range/src/index.vue.d.ts +48 -26
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +41 -52
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog/src/index.vue.d.ts +1 -1
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +124 -122
- package/components/dialog-input-collection/src/ctx.d.ts +7 -2
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +193 -202
- package/components/download-plus/src/ctx.d.ts +7 -2
- package/components/download-plus/src/index.vue.d.ts +32 -10
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +72 -75
- package/components/editable-text/src/ctx.d.ts +7 -2
- package/components/editable-text/src/index.vue.d.ts +18 -7
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +230 -233
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +3 -3
- package/components/esri-input-geojson/index.cjs +1 -5
- package/components/esri-input-geojson/index.mjs +59 -68
- package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +9 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
- package/components/fieldset/src/index.vue.d.ts +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +96 -101
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +4 -4
- package/components/form/src/use.d.ts +2 -2
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +179 -107
- package/components/form-item/src/core.vue.d.ts +7 -3
- package/components/form-item/src/ctx.d.ts +7 -1
- package/components/form-item/src/index.vue.d.ts +13 -2
- package/components/form-item/src/use.d.ts +11 -0
- package/components/form-item-renderer/index.cjs +1 -1
- package/components/form-item-renderer/index.d.ts +1 -0
- package/components/form-item-renderer/index.mjs +85 -78
- package/components/form-item-renderer/src/use.d.ts +3 -0
- package/components/forms-provider/index.cjs +1 -1
- package/components/forms-provider/index.mjs +18 -21
- package/components/index-BIo_4rr_.mjs +18620 -0
- package/components/index-Bc7UifHG.js +1 -0
- package/components/index-D0D9ABpH.js +108 -0
- package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +32 -38
- package/components/information-collection/src/ctx.d.ts +7 -2
- package/components/information-collection/src/index.vue.d.ts +17 -6
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +9 -12
- package/components/information-tag/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +27 -27
- package/components/input/src/ctx.d.ts +9 -4
- package/components/input/src/index.vue.d.ts +35 -13
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +71 -74
- package/components/input-array/src/ctx.d.ts +7 -2
- package/components/input-array/src/index.vue.d.ts +18 -7
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +121 -126
- package/components/input-collection/src/core.vue.d.ts +17 -6
- package/components/input-collection/src/ctx.d.ts +7 -2
- package/components/input-collection/src/index.vue.d.ts +17 -6
- package/components/input-file/src/index.vue.d.ts +19 -8
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +7 -2
- package/components/input-link/src/index.vue.d.ts +54 -21
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +30 -33
- package/components/input-number/src/ctx.d.ts +8 -3
- package/components/input-number/src/index.vue.d.ts +33 -11
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +24 -24
- package/components/input-tag/src/ctx.d.ts +9 -4
- package/components/input-tag/src/index.vue.d.ts +33 -11
- package/components/monaco-editor/src/ctx.d.ts +8 -3
- package/components/monaco-editor/src/index.vue.d.ts +38 -16
- package/components/radio/src/ctx.d.ts +7 -2
- package/components/radio/src/index.vue.d.ts +40 -18
- package/components/radio/src/wraper.vue.d.ts +22 -11
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +14 -17
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +167 -131
- package/components/select/src/core.vue.d.ts +96 -69
- package/components/select/src/ctx.d.ts +9 -4
- package/components/select/src/index.vue.d.ts +53 -42
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +30 -31
- package/components/slider/src/ctx.d.ts +7 -2
- package/components/slider/src/index.vue.d.ts +18 -7
- package/components/switch/src/ctx.d.ts +7 -2
- package/components/switch/src/index.vue.d.ts +18 -7
- package/components/tables-select/index.cjs +1 -1
- package/components/tables-select/index.mjs +4 -4
- package/components/tables-select/src/ctx.d.ts +68 -68
- package/components/tables-select/src/index.vue.d.ts +52 -420
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +11 -17
- package/components/templates-default/src/index.vue.d.ts +404 -185
- package/components/templates-esri/src/index.vue.d.ts +65 -30
- package/components/templates-variant/src/index.vue.d.ts +48 -26
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +38 -39
- package/components/time-picker/src/ctx.d.ts +8 -3
- package/components/time-picker/src/index.vue.d.ts +17 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +244 -253
- package/components/upload/src/ctx.d.ts +8 -3
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +37 -15
- package/components/upload/src/wraper.vue.d.ts +19 -8
- package/components/upload-plus/index.cjs +7 -15
- package/components/upload-plus/index.mjs +1879 -1897
- package/components/upload-plus/src/ctx.d.ts +7 -2
- package/components/upload-plus/src/index.vue.d.ts +18 -7
- package/components/use-watch-C3iIa2DX.js +1 -0
- package/components/use-watch-Dp64x0si.mjs +411 -0
- package/components/van-cascader/src/ctx.d.ts +7 -2
- package/components/van-cascader/src/index.vue.d.ts +19 -8
- package/components/var-datetime-picker/src/ctx.d.ts +7 -2
- package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
- package/components/vditor/src/ctx.d.ts +7 -2
- package/components/vditor/src/index.vue.d.ts +41 -19
- package/composables/element-plus/index.cjs +1 -1
- package/composables/element-plus/index.mjs +10 -10
- package/composables/form-mitt/index.mjs +1 -1
- package/composables/index.cjs +1 -1
- package/composables/index.mjs +53 -53
- package/index.css +1 -1
- package/locale/index.cjs +1 -1
- package/locale/index.mjs +8 -5
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/package.json +9 -1
- package/shared/element-plus/ctx.d.ts +16 -16
- package/shared/types/source/index.d.ts +5 -0
- package/shared/upload/index.cjs +1 -1
- package/shared/upload/index.mjs +166 -165
- package/components/cloneDeep-DaYwfXwD.js +0 -1
- package/components/index-BBriTmQP.js +0 -1
- package/components/use-watch-Bfrz9pv_.js +0 -1
- package/components/use-watch-t49wP7jy.mjs +0 -414
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@vunk/form/components/form-item"),m=require("@vunk/form/components/information-tag"),u=require("@vunk/form/components/information-renderer"),f=require("@vunk/form/components/information-templates-default"),c={...n._VkfFormItemCtx.props,information:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},labelRender:{type:Function,default:void 0},typeRender:{type:Function,default:void 0}},d={},l=e.defineComponent({name:"VkfInformationCollection",props:c,emits:d,setup(t,{emit:p}){const a=n._VkfFormItemCtx.createBindProps(t);return()=>e.createVNode(n.VkfFormItem,e.mergeProps({class:"vk-information-collection"},a.value),{default:()=>[e.createVNode("div",{class:"vk-information-collection-value"},[e.createVNode(u.VkfInformationTemplates,null,{placeholder:()=>e.createVNode(f.VkfInformationTemplatesDefault,null,null),default:()=>t.modelValue.map((o,i)=>e.createVNode(m.VkfInformationTag,{key:i,data:o,type:t.typeRender?.(o),labelRender:t.labelRender,formItems:t.columns.map(r=>({...r,...r.templateProps?.createTemplateProps?.({row:o})}))},null))})])]})}}),s=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfInformationCollection=l;exports.__VkfInformationCollection=s;exports.default=l;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _VkfFormItemCtx as
|
|
3
|
-
import { VkfInformationTag as
|
|
4
|
-
import { VkfInformationTemplates as
|
|
5
|
-
import { VkfInformationTemplatesDefault as
|
|
6
|
-
const
|
|
7
|
-
...
|
|
1
|
+
import { defineComponent as m, createVNode as o, mergeProps as f } from "vue";
|
|
2
|
+
import { _VkfFormItemCtx as n, VkfFormItem as i } from "@vunk/form/components/form-item";
|
|
3
|
+
import { VkfInformationTag as p } from "@vunk/form/components/information-tag";
|
|
4
|
+
import { VkfInformationTemplates as u } from "@vunk/form/components/information-renderer";
|
|
5
|
+
import { VkfInformationTemplatesDefault as c } from "@vunk/form/components/information-templates-default";
|
|
6
|
+
const d = {
|
|
7
|
+
...n.props,
|
|
8
8
|
information: {
|
|
9
9
|
type: Boolean,
|
|
10
10
|
default: !0
|
|
@@ -25,47 +25,41 @@ const k = {
|
|
|
25
25
|
type: Function,
|
|
26
26
|
default: void 0
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, s = {}, b = /* @__PURE__ */ m({
|
|
29
29
|
name: "VkfInformationCollection",
|
|
30
|
-
props:
|
|
31
|
-
emits:
|
|
30
|
+
props: d,
|
|
31
|
+
emits: s,
|
|
32
32
|
setup(e, {
|
|
33
|
-
emit:
|
|
33
|
+
emit: y
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
36
|
-
return () =>
|
|
35
|
+
const a = n.createBindProps(e);
|
|
36
|
+
return () => o(i, f({
|
|
37
37
|
class: "vk-information-collection"
|
|
38
|
-
},
|
|
39
|
-
default: () => [
|
|
38
|
+
}, a.value), {
|
|
39
|
+
default: () => [o("div", {
|
|
40
40
|
class: "vk-information-collection-value"
|
|
41
|
-
}, [
|
|
42
|
-
placeholder: () =>
|
|
43
|
-
default: () => e.modelValue.map((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return {
|
|
53
|
-
...a,
|
|
54
|
-
...(r = (o = a.templateProps) == null ? void 0 : o.createTemplateProps) == null ? void 0 : r.call(o, {
|
|
55
|
-
row: l
|
|
56
|
-
})
|
|
57
|
-
};
|
|
41
|
+
}, [o(u, null, {
|
|
42
|
+
placeholder: () => o(c, null, null),
|
|
43
|
+
default: () => e.modelValue.map((t, r) => o(p, {
|
|
44
|
+
key: r,
|
|
45
|
+
data: t,
|
|
46
|
+
type: e.typeRender?.(t),
|
|
47
|
+
labelRender: e.labelRender,
|
|
48
|
+
formItems: e.columns.map((l) => ({
|
|
49
|
+
...l,
|
|
50
|
+
...l.templateProps?.createTemplateProps?.({
|
|
51
|
+
row: t
|
|
58
52
|
})
|
|
59
|
-
}
|
|
60
|
-
})
|
|
53
|
+
}))
|
|
54
|
+
}, null))
|
|
61
55
|
})])]
|
|
62
56
|
});
|
|
63
57
|
}
|
|
64
|
-
}),
|
|
58
|
+
}), P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
59
|
__proto__: null
|
|
66
60
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
67
61
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
b as VkfInformationCollection,
|
|
63
|
+
P as __VkfInformationCollection,
|
|
64
|
+
b as default
|
|
71
65
|
};
|
|
@@ -54,6 +54,8 @@ export declare const props: {
|
|
|
54
54
|
default: undefined;
|
|
55
55
|
};
|
|
56
56
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
57
|
+
error: StringConstructor;
|
|
58
|
+
prop: null;
|
|
57
59
|
labelPosition: {
|
|
58
60
|
type: PropType<"left" | "right" | "top" | "start" | "end">;
|
|
59
61
|
default: undefined;
|
|
@@ -87,12 +89,16 @@ export declare const props: {
|
|
|
87
89
|
type: StringConstructor;
|
|
88
90
|
default: undefined;
|
|
89
91
|
};
|
|
90
|
-
prop: null;
|
|
91
92
|
defaultModelValue: null;
|
|
92
93
|
labelTipProps: {
|
|
93
94
|
type: PropType<import("element-plus").UseTooltipProps>;
|
|
94
95
|
default: () => {};
|
|
95
96
|
};
|
|
97
|
+
ai: {
|
|
98
|
+
type: PropType<import("../../ai-provider").AiConfig>;
|
|
99
|
+
default: undefined;
|
|
100
|
+
};
|
|
101
|
+
aiOutput: null;
|
|
96
102
|
label: StringConstructor;
|
|
97
103
|
labelWidth: {
|
|
98
104
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -106,7 +112,6 @@ export declare const props: {
|
|
|
106
112
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
113
|
__epPropKey: true;
|
|
108
114
|
};
|
|
109
|
-
error: StringConstructor;
|
|
110
115
|
validateStatus: {
|
|
111
116
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
112
117
|
readonly required: false;
|
|
@@ -52,6 +52,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
52
52
|
default: undefined;
|
|
53
53
|
};
|
|
54
54
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
55
|
+
error: StringConstructor;
|
|
56
|
+
prop: null;
|
|
55
57
|
labelPosition: {
|
|
56
58
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
57
59
|
default: undefined;
|
|
@@ -85,12 +87,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
85
87
|
type: StringConstructor;
|
|
86
88
|
default: undefined;
|
|
87
89
|
};
|
|
88
|
-
prop: null;
|
|
89
90
|
defaultModelValue: null;
|
|
90
91
|
labelTipProps: {
|
|
91
92
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
92
93
|
default: () => {};
|
|
93
94
|
};
|
|
95
|
+
ai: {
|
|
96
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
aiOutput: null;
|
|
94
100
|
label: StringConstructor;
|
|
95
101
|
labelWidth: {
|
|
96
102
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -104,7 +110,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
104
110
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
111
|
__epPropKey: true;
|
|
106
112
|
};
|
|
107
|
-
error: StringConstructor;
|
|
108
113
|
validateStatus: {
|
|
109
114
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
110
115
|
readonly required: false;
|
|
@@ -166,6 +171,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
166
171
|
default: undefined;
|
|
167
172
|
};
|
|
168
173
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
174
|
+
error: StringConstructor;
|
|
175
|
+
prop: null;
|
|
169
176
|
labelPosition: {
|
|
170
177
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
171
178
|
default: undefined;
|
|
@@ -199,12 +206,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
199
206
|
type: StringConstructor;
|
|
200
207
|
default: undefined;
|
|
201
208
|
};
|
|
202
|
-
prop: null;
|
|
203
209
|
defaultModelValue: null;
|
|
204
210
|
labelTipProps: {
|
|
205
211
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
206
212
|
default: () => {};
|
|
207
213
|
};
|
|
214
|
+
ai: {
|
|
215
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
216
|
+
default: undefined;
|
|
217
|
+
};
|
|
218
|
+
aiOutput: null;
|
|
208
219
|
label: StringConstructor;
|
|
209
220
|
labelWidth: {
|
|
210
221
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -218,7 +229,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
218
229
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
219
230
|
__epPropKey: true;
|
|
220
231
|
};
|
|
221
|
-
error: StringConstructor;
|
|
222
232
|
validateStatus: {
|
|
223
233
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
224
234
|
readonly required: false;
|
|
@@ -230,8 +240,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
230
240
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
231
241
|
}>> & Readonly<{}>, {
|
|
232
242
|
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
233
|
-
labelPosition: "
|
|
234
|
-
formItemSize: "
|
|
243
|
+
labelPosition: "start" | "left" | "right" | "top" | "end";
|
|
244
|
+
formItemSize: "small" | "default" | "large";
|
|
235
245
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
236
246
|
inline: boolean;
|
|
237
247
|
readonly: boolean;
|
|
@@ -239,6 +249,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
239
249
|
labelTip: string;
|
|
240
250
|
information: boolean;
|
|
241
251
|
labelTipProps: import("element-plus").UseTooltipProps;
|
|
252
|
+
ai: import("../../ai-provider").AiConfig;
|
|
242
253
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
243
254
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
244
255
|
modelValue: import("@vunk/shared").NormalObject[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),a=require("element-plus"),d=require("@vunk/form"),s=require("@vunk/shared/function"),r=require("@vunk/form/shared/element-plus"),m=require("@vunk/core/shared/utils-vue"),g={...a.tagProps,data:{type:Object,default:()=>({})},labelRender:{type:Function,default:e=>e.label},title:{type:[String,Function],default:""},placement:{type:String,default:"top"},formItems:{type:Array,default:()=>[]},trigger:{type:String,default:"hover"},showAfter:{type:Number,default:500}},_={...a.tagEmits};function b(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const o=t.defineComponent({name:"VkfInformationTag",props:g,emits:_,setup(e,{emit:l,slots:i}){const u=t.computed(()=>s.isCallable(e.title)?e.title(e.data):e.title),c=r.createTagBindProps(e),f=r.createTagOnEmits(l);return()=>t.createVNode(a.ElPopover,{placement:e.placement,title:u.value,width:250,trigger:e.trigger,"show-after":e.showAfter},{reference:()=>{let n;return t.createVNode(a.ElTag,t.mergeProps({class:"vkf-information-tag__tag"},c.value,m.vOn(f)),b(n=e.labelRender(e.data))?n:{default:()=>[n]})},default:()=>t.createVNode(d.VkfInformation,{data:e.data,"form-items":e.formItems},{default:()=>[i.default?.()]})})}}),y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfInformationTag=o;exports.__VkfInformationTag=y;exports.default=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, computed as m, createVNode as a, mergeProps as c, isVNode as u } from "vue";
|
|
2
2
|
import { tagProps as d, tagEmits as g, ElPopover as s, ElTag as y } from "element-plus";
|
|
3
3
|
import { VkfInformation as b } from "@vunk/form";
|
|
4
4
|
import { isCallable as p } from "@vunk/shared/function";
|
|
@@ -40,16 +40,16 @@ const O = {
|
|
|
40
40
|
function h(t) {
|
|
41
41
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !u(t);
|
|
42
42
|
}
|
|
43
|
-
const w = /* @__PURE__ */
|
|
43
|
+
const w = /* @__PURE__ */ f({
|
|
44
44
|
name: "VkfInformationTag",
|
|
45
45
|
props: O,
|
|
46
46
|
emits: S,
|
|
47
47
|
setup(t, {
|
|
48
48
|
emit: o,
|
|
49
|
-
slots:
|
|
49
|
+
slots: r
|
|
50
50
|
}) {
|
|
51
|
-
const n = m(() => p(t.title) ? t.title(t.data) : t.title),
|
|
52
|
-
return () =>
|
|
51
|
+
const n = m(() => p(t.title) ? t.title(t.data) : t.title), l = _(t), i = T(o);
|
|
52
|
+
return () => a(s, {
|
|
53
53
|
placement: t.placement,
|
|
54
54
|
title: n.value,
|
|
55
55
|
width: 250,
|
|
@@ -58,20 +58,17 @@ const w = /* @__PURE__ */ l({
|
|
|
58
58
|
}, {
|
|
59
59
|
reference: () => {
|
|
60
60
|
let e;
|
|
61
|
-
return
|
|
61
|
+
return a(y, c({
|
|
62
62
|
class: "vkf-information-tag__tag"
|
|
63
|
-
},
|
|
63
|
+
}, l.value, v(i)), h(e = t.labelRender(t.data)) ? e : {
|
|
64
64
|
default: () => [e]
|
|
65
65
|
});
|
|
66
66
|
},
|
|
67
|
-
default: () =>
|
|
67
|
+
default: () => a(b, {
|
|
68
68
|
data: t.data,
|
|
69
69
|
"form-items": t.formItems
|
|
70
70
|
}, {
|
|
71
|
-
default: () =>
|
|
72
|
-
var e;
|
|
73
|
-
return [(e = a.default) == null ? void 0 : e.call(a)];
|
|
74
|
-
}
|
|
71
|
+
default: () => [r.default?.()]
|
|
75
72
|
})
|
|
76
73
|
});
|
|
77
74
|
}
|
|
@@ -92,10 +92,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
92
92
|
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
93
93
|
}>, {
|
|
94
94
|
type: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
95
|
+
title: string | ((data: any) => string);
|
|
95
96
|
effect: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "light" | "dark" | "plain", unknown>;
|
|
96
97
|
placement: import("element-plus").Placement;
|
|
97
98
|
data: Record<string, any>;
|
|
98
|
-
title: string | ((data: any) => string);
|
|
99
99
|
showAfter: number;
|
|
100
100
|
trigger: "hover" | "click" | "focus" | "contextmenu";
|
|
101
101
|
round: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("element-plus"),o=require("@vunk/form/components/form-item"),a=require("@vunk/core/shared/utils-vue"),e=require("vue"),c=require("@vunk/form/shared/element-plus"),k=require("@vunk/form/composables"),b=require("../_plugin-vue_export-helper-BHFhmbuH.js"),r={...n.inputProps,formatter:null,parser:null,...o._VkfFormItemCtx.props,maxlength:{type:Number,required:!1},minlength:{type:Number,required:!1},inputSlots:{type:Object,default:void 0},rows:{type:Number,default:void 0}},V=a.bindPropsFactory(r),s={...n.inputEmits},g=a.onEmitsFactory(s),v=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:V,createOnEmits:g,emits:s,props:r},Symbol.toStringTag,{value:"Module"})),B=e.defineComponent({name:"VkfInput",components:{ElInput:n.ElInput,VkfFormItem:o.VkfFormItem},props:r,emits:s,setup(t,{emit:u}){const l=c.createInputBindProps(t,["readonly"]),p=c.createInputOnEmits(u),i=o._VkfFormItemCtx.createBindProps(t),m=k.useComputedReadonly(t);return{inputBindProps:l,formItemBindProps:i,readonly:m,inputOnEmits:p}}});function C(t,u,l,p,i,m){const f=e.resolveComponent("ElInput"),_=e.resolveComponent("VkfFormItem");return e.openBlock(),e.createBlock(_,e.normalizeProps(e.guardReactiveProps(t.formItemBindProps)),{default:e.withCtx(()=>[e.createVNode(f,e.mergeProps(t.inputBindProps,{readonly:t.readonly},e.toHandlers(t.inputOnEmits)),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:2},[e.renderList(t.inputSlots,(I,y)=>({name:y,fn:e.withCtx(P=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I?.(P))))])}))]),1040,["readonly"]),e.renderSlot(t.$slots,"formItem")]),_:3},16)}const d=b._export_sfc(B,[["render",C]]),S=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfInput=d;exports._VkfInputCtx=v;exports.__VkfInput=S;exports.default=d;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { inputProps as b, inputEmits as k, ElInput as B } from "element-plus";
|
|
2
|
-
import { _VkfFormItemCtx as
|
|
2
|
+
import { _VkfFormItemCtx as c, VkfFormItem as E } from "@vunk/form/components/form-item";
|
|
3
3
|
import { bindPropsFactory as O, onEmitsFactory as V } from "@vunk/core/shared/utils-vue";
|
|
4
|
-
import { defineComponent as g, resolveComponent as
|
|
4
|
+
import { defineComponent as g, resolveComponent as a, openBlock as l, createBlock as u, normalizeProps as S, guardReactiveProps as v, withCtx as t, createVNode as C, mergeProps as F, toHandlers as $, createSlots as j, renderSlot as d, renderList as h, resolveDynamicComponent as N } from "vue";
|
|
5
5
|
import { createInputBindProps as z, createInputOnEmits as q } from "@vunk/form/shared/element-plus";
|
|
6
6
|
import { useComputedReadonly as w } from "@vunk/form/composables";
|
|
7
7
|
import { _ as M } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
-
const
|
|
8
|
+
const o = {
|
|
9
9
|
...b,
|
|
10
10
|
formatter: null,
|
|
11
11
|
parser: null,
|
|
12
|
-
...
|
|
12
|
+
...c.props,
|
|
13
13
|
maxlength: {
|
|
14
14
|
type: Number,
|
|
15
15
|
required: !1
|
|
@@ -26,50 +26,50 @@ const r = {
|
|
|
26
26
|
type: Number,
|
|
27
27
|
default: void 0
|
|
28
28
|
}
|
|
29
|
-
}, R = O(
|
|
29
|
+
}, R = O(o), r = {
|
|
30
30
|
...k
|
|
31
|
-
}, T = V(
|
|
31
|
+
}, T = V(r), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
32
|
__proto__: null,
|
|
33
33
|
createBindProps: R,
|
|
34
34
|
createOnEmits: T,
|
|
35
|
-
emits:
|
|
36
|
-
props:
|
|
35
|
+
emits: r,
|
|
36
|
+
props: o
|
|
37
37
|
}, Symbol.toStringTag, { value: "Module" })), x = g({
|
|
38
38
|
name: "VkfInput",
|
|
39
39
|
components: {
|
|
40
40
|
ElInput: B,
|
|
41
41
|
VkfFormItem: E
|
|
42
42
|
},
|
|
43
|
-
props:
|
|
44
|
-
emits:
|
|
45
|
-
setup(e, { emit:
|
|
46
|
-
const
|
|
43
|
+
props: o,
|
|
44
|
+
emits: r,
|
|
45
|
+
setup(e, { emit: n }) {
|
|
46
|
+
const s = z(e, ["readonly"]), p = q(n), m = c.createBindProps(e), i = w(e);
|
|
47
47
|
return {
|
|
48
|
-
inputBindProps:
|
|
49
|
-
formItemBindProps:
|
|
50
|
-
readonly:
|
|
51
|
-
inputOnEmits:
|
|
48
|
+
inputBindProps: s,
|
|
49
|
+
formItemBindProps: m,
|
|
50
|
+
readonly: i,
|
|
51
|
+
inputOnEmits: p
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function D(e, s, p, m,
|
|
56
|
-
const
|
|
57
|
-
return
|
|
58
|
-
default:
|
|
59
|
-
C(
|
|
60
|
-
default:
|
|
61
|
-
|
|
55
|
+
function D(e, n, s, p, m, i) {
|
|
56
|
+
const f = a("ElInput"), _ = a("VkfFormItem");
|
|
57
|
+
return l(), u(_, S(v(e.formItemBindProps)), {
|
|
58
|
+
default: t(() => [
|
|
59
|
+
C(f, F(e.inputBindProps, { readonly: e.readonly }, $(e.inputOnEmits)), j({
|
|
60
|
+
default: t(() => [
|
|
61
|
+
d(e.$slots, "default")
|
|
62
62
|
]),
|
|
63
63
|
_: 2
|
|
64
64
|
}, [
|
|
65
|
-
h(e.inputSlots, (
|
|
65
|
+
h(e.inputSlots, (y, I) => ({
|
|
66
66
|
name: I,
|
|
67
|
-
fn:
|
|
68
|
-
(
|
|
67
|
+
fn: t((P) => [
|
|
68
|
+
(l(), u(N(y?.(P))))
|
|
69
69
|
])
|
|
70
70
|
}))
|
|
71
71
|
]), 1040, ["readonly"]),
|
|
72
|
-
|
|
72
|
+
d(e.$slots, "formItem")
|
|
73
73
|
]),
|
|
74
74
|
_: 3
|
|
75
75
|
}, 16);
|
|
@@ -18,6 +18,8 @@ export declare const props: {
|
|
|
18
18
|
default: undefined;
|
|
19
19
|
};
|
|
20
20
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
21
|
+
error: StringConstructor;
|
|
22
|
+
prop: null;
|
|
21
23
|
labelPosition: {
|
|
22
24
|
type: PropType<"left" | "right" | "top" | "start" | "end">;
|
|
23
25
|
default: undefined;
|
|
@@ -55,12 +57,16 @@ export declare const props: {
|
|
|
55
57
|
type: BooleanConstructor;
|
|
56
58
|
default: boolean;
|
|
57
59
|
};
|
|
58
|
-
prop: null;
|
|
59
60
|
defaultModelValue: null;
|
|
60
61
|
labelTipProps: {
|
|
61
62
|
type: PropType<import("element-plus").UseTooltipProps>;
|
|
62
63
|
default: () => {};
|
|
63
64
|
};
|
|
65
|
+
ai: {
|
|
66
|
+
type: PropType<import("../../ai-provider").AiConfig>;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
aiOutput: null;
|
|
64
70
|
label: StringConstructor;
|
|
65
71
|
labelWidth: {
|
|
66
72
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -74,7 +80,6 @@ export declare const props: {
|
|
|
74
80
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
81
|
__epPropKey: true;
|
|
76
82
|
};
|
|
77
|
-
error: StringConstructor;
|
|
78
83
|
validateStatus: {
|
|
79
84
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
80
85
|
readonly required: false;
|
|
@@ -155,7 +160,7 @@ export declare const props: {
|
|
|
155
160
|
};
|
|
156
161
|
autofocus: BooleanConstructor;
|
|
157
162
|
};
|
|
158
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"
|
|
163
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"name", keyof T2> | Extract<"type", keyof T2> | Extract<"id", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"ai", keyof T2>, KE> | Exclude<Extract<"aiOutput", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"modelModifiers", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"wordLimitPosition", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"countGraphemes", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> : Extract<"name", keyof T2> | Extract<"type", keyof T2> | Extract<"id", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2>]: { [k in Extract<"name", keyof T2> | Extract<"type", keyof T2> | Extract<"id", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
159
164
|
export declare const emits: {
|
|
160
165
|
"update:modelValue": (value: string) => boolean;
|
|
161
166
|
input: (value: string) => boolean;
|
|
@@ -170,7 +175,7 @@ export declare const emits: {
|
|
|
170
175
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
171
176
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
172
177
|
};
|
|
173
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
178
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("input" | "clear" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend")[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"clear", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"keydown", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> : "input" | "clear" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend"]: {
|
|
174
179
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
175
180
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
176
181
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|