@vunk/form 2.3.3 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/api-tables-select/index.cjs +1 -9
- package/components/api-tables-select/index.mjs +1 -9
- package/components/api-tables-select/src/ctx.d.ts +4 -7
- package/components/api-tables-select/src/index.vue.d.ts +10 -9
- package/components/button/src/ctx.d.ts +4 -0
- package/components/button/src/index.vue.d.ts +9 -0
- package/components/card-input-collection/index.cjs +5 -10
- package/components/card-input-collection/index.mjs +6 -11
- package/components/card-input-collection/src/ctx.d.ts +4 -7
- package/components/card-input-collection/src/index.vue.d.ts +9 -9
- package/components/cascader/src/ctx.d.ts +5 -1
- package/components/cascader/src/index.vue.d.ts +9 -0
- package/components/checkbox/src/ctx.d.ts +5 -1
- package/components/checkbox/src/index.vue.d.ts +9 -0
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +9 -0
- package/components/date-picker/src/ctx.d.ts +5 -1
- package/components/date-picker/src/index.vue.d.ts +9 -0
- package/components/date-picker-range/src/ctx.d.ts +4 -0
- package/components/date-picker-range/src/index.vue.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +4 -0
- package/components/download-plus/src/index.vue.d.ts +9 -0
- package/components/esri-input-geojson/src/ctx.d.ts +5 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +10 -0
- package/components/form/index.cjs +12 -29
- package/components/form/index.mjs +13 -30
- package/components/form/src/ctx.d.ts +1 -8
- package/components/form/src/index.vue.d.ts +0 -20
- package/components/form-item/index.cjs +6 -1
- package/components/form-item/index.css +3 -0
- package/components/form-item/index.mjs +6 -1
- package/components/form-item/src/ctx.d.ts +5 -1
- package/components/form-item/src/index.vue.d.ts +9 -0
- package/components/form-item-renderer/index.cjs +49 -7
- package/components/form-item-renderer/index.mjs +51 -9
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/index.vue.d.ts +67 -12
- package/components/information/index.cjs +76 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/index.mjs +70 -0
- package/components/information/src/ctx.d.ts +13 -0
- package/components/information/src/index.vue.d.ts +391 -0
- package/components/information/src/types.d.ts +2 -0
- package/components/information-templates-default/index.cjs +187 -0
- package/components/information-templates-default/index.css +12 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/index.mjs +181 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +52 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/src/ctx.d.ts +5 -1
- package/components/input/src/index.vue.d.ts +9 -0
- package/components/input-collection/index.cjs +11 -7
- package/components/input-collection/index.mjs +12 -8
- package/components/input-collection/src/ctx.d.ts +8 -4
- package/components/input-collection/src/index.vue.d.ts +16 -7
- package/components/input-link/src/ctx.d.ts +4 -0
- package/components/input-link/src/index.vue.d.ts +9 -0
- package/components/input-number/src/ctx.d.ts +5 -1
- package/components/input-number/src/index.vue.d.ts +9 -0
- package/components/monaco-editor/src/ctx.d.ts +4 -0
- package/components/monaco-editor/src/index.vue.d.ts +9 -0
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +9 -0
- package/components/select/src/ctx.d.ts +5 -1
- package/components/select/src/index.vue.d.ts +9 -0
- package/components/slider/src/ctx.d.ts +4 -0
- package/components/slider/src/index.vue.d.ts +9 -0
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +9 -0
- package/components/tables-select/src/ctx.d.ts +5 -1
- package/components/tables-select/src/index.vue.d.ts +9 -0
- package/components/tag-information/index.cjs +105 -0
- package/components/tag-information/index.css +6 -0
- package/components/tag-information/index.d.ts +4 -0
- package/components/tag-information/index.mjs +99 -0
- package/components/tag-information/src/ctx.d.ts +26 -0
- package/components/tag-information/src/index.vue.d.ts +894 -0
- package/components/tag-information/src/types.d.ts +1 -0
- package/components/template-instances-provider/index.cjs +8 -13
- package/components/template-instances-provider/index.mjs +8 -13
- package/components/template-instances-provider/src/index.vue.d.ts +4 -14
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/index.vue.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +4 -0
- package/components/upload-plus/src/index.vue.d.ts +9 -0
- package/components/van-cascader/src/ctx.d.ts +4 -0
- package/components/van-cascader/src/index.vue.d.ts +9 -0
- package/components/var-datetime-picker/src/ctx.d.ts +4 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +9 -0
- package/components/vditor/src/ctx.d.ts +4 -0
- package/components/vditor/src/index.vue.d.ts +9 -0
- package/composables/index.cjs +31 -5
- package/composables/index.mjs +31 -6
- package/composables/useTemplateInstances.d.ts +6 -1
- package/index.css +23 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/package.json +22 -1
- package/shared/types/index.d.ts +4 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createVNode, normalizeClass, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
|
+
import { VkfFormItem } from '@vunk/form/components/form-item';
|
|
4
|
+
import { VkfSelect } from '@vunk/form/components/select';
|
|
5
|
+
import { VkfTagInformation } from '@vunk/form/components/tag-information';
|
|
6
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
7
|
+
|
|
8
|
+
const props = {};
|
|
9
|
+
const emits = {};
|
|
10
|
+
|
|
11
|
+
var _sfc_main = defineComponent({
|
|
12
|
+
name: "VkfInformationTemplatesDefault",
|
|
13
|
+
components: {
|
|
14
|
+
VkfFormItem,
|
|
15
|
+
VkfFormItemRendererTemplate,
|
|
16
|
+
VkfTagInformation,
|
|
17
|
+
VkfSelect
|
|
18
|
+
},
|
|
19
|
+
props,
|
|
20
|
+
emits,
|
|
21
|
+
setup(props2, { emit }) {
|
|
22
|
+
const prefixCls = "vkf-information-templates-default";
|
|
23
|
+
const simpleStringTemplates = [
|
|
24
|
+
"VkfInput",
|
|
25
|
+
"VkfInputNumber",
|
|
26
|
+
"VkfSlider"
|
|
27
|
+
];
|
|
28
|
+
const simpleSelectTemplates = [
|
|
29
|
+
"VkfSelect",
|
|
30
|
+
"VkfRadio"
|
|
31
|
+
];
|
|
32
|
+
const simpleCollectionTemplates = [
|
|
33
|
+
"VkfInputCollection"
|
|
34
|
+
];
|
|
35
|
+
return {
|
|
36
|
+
prefixCls,
|
|
37
|
+
simpleStringTemplates,
|
|
38
|
+
simpleSelectTemplates,
|
|
39
|
+
simpleCollectionTemplates
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
|
+
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
46
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
47
|
+
const _component_VkfSelect = resolveComponent("VkfSelect");
|
|
48
|
+
const _component_VkfTagInformation = resolveComponent("VkfTagInformation");
|
|
49
|
+
return openBlock(), createElementBlock(
|
|
50
|
+
Fragment,
|
|
51
|
+
null,
|
|
52
|
+
[
|
|
53
|
+
(openBlock(true), createElementBlock(
|
|
54
|
+
Fragment,
|
|
55
|
+
null,
|
|
56
|
+
renderList(_ctx.simpleStringTemplates, (t) => {
|
|
57
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, {
|
|
58
|
+
key: t,
|
|
59
|
+
type: t
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(({ props, value }) => [
|
|
62
|
+
createVNode(_component_VkfFormItem, {
|
|
63
|
+
class: normalizeClass(`${_ctx.prefixCls}-main`),
|
|
64
|
+
label: props.label,
|
|
65
|
+
prop: props.prop,
|
|
66
|
+
information: true
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
createElementVNode(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
class: normalizeClass(`${_ctx.prefixCls}-value`)
|
|
73
|
+
},
|
|
74
|
+
toDisplayString(value),
|
|
75
|
+
3
|
|
76
|
+
/* TEXT, CLASS */
|
|
77
|
+
)
|
|
78
|
+
]),
|
|
79
|
+
_: 2
|
|
80
|
+
/* DYNAMIC */
|
|
81
|
+
}, 1032, ["class", "label", "prop"])
|
|
82
|
+
]),
|
|
83
|
+
_: 2
|
|
84
|
+
/* DYNAMIC */
|
|
85
|
+
}, 1032, ["type"]);
|
|
86
|
+
}),
|
|
87
|
+
128
|
|
88
|
+
/* KEYED_FRAGMENT */
|
|
89
|
+
)),
|
|
90
|
+
(openBlock(true), createElementBlock(
|
|
91
|
+
Fragment,
|
|
92
|
+
null,
|
|
93
|
+
renderList(_ctx.simpleSelectTemplates, (t) => {
|
|
94
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, {
|
|
95
|
+
key: t,
|
|
96
|
+
type: t
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(({ props, value }) => [
|
|
99
|
+
createVNode(_component_VkfSelect, {
|
|
100
|
+
label: props.label,
|
|
101
|
+
information: true,
|
|
102
|
+
class: normalizeClass(`${_ctx.prefixCls}-main`),
|
|
103
|
+
readonly: true,
|
|
104
|
+
"model-value": value
|
|
105
|
+
}, null, 8, ["label", "class", "model-value"])
|
|
106
|
+
]),
|
|
107
|
+
_: 2
|
|
108
|
+
/* DYNAMIC */
|
|
109
|
+
}, 1032, ["type"]);
|
|
110
|
+
}),
|
|
111
|
+
128
|
|
112
|
+
/* KEYED_FRAGMENT */
|
|
113
|
+
)),
|
|
114
|
+
(openBlock(true), createElementBlock(
|
|
115
|
+
Fragment,
|
|
116
|
+
null,
|
|
117
|
+
renderList(_ctx.simpleCollectionTemplates, (t) => {
|
|
118
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, {
|
|
119
|
+
key: t,
|
|
120
|
+
type: t
|
|
121
|
+
}, {
|
|
122
|
+
default: withCtx(({ props, value }) => [
|
|
123
|
+
createVNode(_component_VkfFormItem, {
|
|
124
|
+
class: normalizeClass(`${_ctx.prefixCls}-main`),
|
|
125
|
+
label: props.label,
|
|
126
|
+
prop: props.prop,
|
|
127
|
+
information: true
|
|
128
|
+
}, {
|
|
129
|
+
default: withCtx(() => [
|
|
130
|
+
createElementVNode(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
class: normalizeClass(`${_ctx.prefixCls}-value`)
|
|
134
|
+
},
|
|
135
|
+
[
|
|
136
|
+
(openBlock(true), createElementBlock(
|
|
137
|
+
Fragment,
|
|
138
|
+
null,
|
|
139
|
+
renderList(value, (item, index) => {
|
|
140
|
+
return openBlock(), createBlock(_component_VkfTagInformation, {
|
|
141
|
+
key: index,
|
|
142
|
+
"label-render": props.summaryLabel,
|
|
143
|
+
data: item,
|
|
144
|
+
"form-items": props.columns
|
|
145
|
+
}, null, 8, ["label-render", "data", "form-items"]);
|
|
146
|
+
}),
|
|
147
|
+
128
|
|
148
|
+
/* KEYED_FRAGMENT */
|
|
149
|
+
))
|
|
150
|
+
],
|
|
151
|
+
2
|
|
152
|
+
/* CLASS */
|
|
153
|
+
)
|
|
154
|
+
]),
|
|
155
|
+
_: 2
|
|
156
|
+
/* DYNAMIC */
|
|
157
|
+
}, 1032, ["class", "label", "prop"])
|
|
158
|
+
]),
|
|
159
|
+
_: 2
|
|
160
|
+
/* DYNAMIC */
|
|
161
|
+
}, 1032, ["type"]);
|
|
162
|
+
}),
|
|
163
|
+
128
|
|
164
|
+
/* KEYED_FRAGMENT */
|
|
165
|
+
))
|
|
166
|
+
],
|
|
167
|
+
64
|
|
168
|
+
/* STABLE_FRAGMENT */
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
var VkfInformationTemplatesDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/information-templates-default/src/index.vue"]]);
|
|
172
|
+
|
|
173
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
174
|
+
__proto__: null
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
VkfInformationTemplatesDefault.install = (app) => {
|
|
178
|
+
app.component(VkfInformationTemplatesDefault.name || "VkfInformationTemplatesDefault", VkfInformationTemplatesDefault);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export { VkfInformationTemplatesDefault, types as __VkfInformationTemplatesDefault, VkfInformationTemplatesDefault as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
prefixCls: string;
|
|
3
|
+
simpleStringTemplates: string[];
|
|
4
|
+
simpleSelectTemplates: readonly ["VkfSelect", "VkfRadio"];
|
|
5
|
+
simpleCollectionTemplates: string[];
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
7
|
+
VkfFormItem: {
|
|
8
|
+
new (...args: any[]): any;
|
|
9
|
+
__isFragment?: never;
|
|
10
|
+
__isTeleport?: never;
|
|
11
|
+
__isSuspense?: never;
|
|
12
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
[x: symbol]: any;
|
|
15
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
16
|
+
install(app: import("vue").App): void;
|
|
17
|
+
};
|
|
18
|
+
VkfFormItemRendererTemplate: {
|
|
19
|
+
new (...args: any[]): any;
|
|
20
|
+
__isFragment?: never;
|
|
21
|
+
__isTeleport?: never;
|
|
22
|
+
__isSuspense?: never;
|
|
23
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
[x: symbol]: any;
|
|
26
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
27
|
+
install(app: import("vue").App): void;
|
|
28
|
+
};
|
|
29
|
+
VkfTagInformation: {
|
|
30
|
+
new (...args: any[]): any;
|
|
31
|
+
__isFragment?: never;
|
|
32
|
+
__isTeleport?: never;
|
|
33
|
+
__isSuspense?: never;
|
|
34
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
[x: symbol]: any;
|
|
37
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
38
|
+
install(app: import("vue").App): void;
|
|
39
|
+
};
|
|
40
|
+
VkfSelect: {
|
|
41
|
+
new (...args: any[]): any;
|
|
42
|
+
__isFragment?: never;
|
|
43
|
+
__isTeleport?: never;
|
|
44
|
+
__isSuspense?: never;
|
|
45
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
[x: symbol]: any;
|
|
48
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
49
|
+
install(app: import("vue").App): void;
|
|
50
|
+
};
|
|
51
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,6 +47,10 @@ export declare const props: {
|
|
|
47
47
|
type: StringConstructor;
|
|
48
48
|
default: any;
|
|
49
49
|
};
|
|
50
|
+
information: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
50
54
|
label: StringConstructor;
|
|
51
55
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
52
56
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -142,7 +146,7 @@ export declare const props: {
|
|
|
142
146
|
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
143
147
|
autofocus: BooleanConstructor;
|
|
144
148
|
};
|
|
145
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"required", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"inputSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "placeholder" | "formatter" | "autofocus" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots", keyof T2>, KE> : Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "placeholder" | "formatter" | "autofocus" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots", keyof T2>]: { [k in Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "placeholder" | "formatter" | "autofocus" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
149
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"required", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"inputSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "placeholder" | "formatter" | "autofocus" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots", keyof T2>, KE> : Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "placeholder" | "formatter" | "autofocus" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots", keyof T2>]: { [k in Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "placeholder" | "formatter" | "autofocus" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
146
150
|
export declare const emits: {
|
|
147
151
|
"update:modelValue": (value: string) => boolean;
|
|
148
152
|
input: (value: string) => boolean;
|
|
@@ -45,6 +45,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
45
|
type: StringConstructor;
|
|
46
46
|
default: any;
|
|
47
47
|
};
|
|
48
|
+
information: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
label: StringConstructor;
|
|
49
53
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
50
54
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -231,6 +235,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
231
235
|
type: StringConstructor;
|
|
232
236
|
default: any;
|
|
233
237
|
};
|
|
238
|
+
information: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
234
242
|
label: StringConstructor;
|
|
235
243
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
236
244
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -348,6 +356,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
348
356
|
formItemTip: string;
|
|
349
357
|
formItemTipClass: any;
|
|
350
358
|
labelTip: string;
|
|
359
|
+
information: boolean;
|
|
351
360
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
352
361
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
353
362
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
@@ -39,11 +39,13 @@ const props = {
|
|
|
39
39
|
default: true
|
|
40
40
|
},
|
|
41
41
|
/**
|
|
42
|
-
* @description
|
|
42
|
+
* @description 简述一行的内容, 用于 Infomation
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
type:
|
|
46
|
-
default:
|
|
44
|
+
summaryLabel: {
|
|
45
|
+
type: Function,
|
|
46
|
+
default: (data) => {
|
|
47
|
+
return Object.values(data).join(" ");
|
|
48
|
+
}
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
const emits = {
|
|
@@ -154,9 +156,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
156
|
const _component_VkfFormItem = vue.resolveComponent("VkfFormItem");
|
|
155
157
|
const _component_VkfRendererData = vue.resolveComponent("VkfRendererData");
|
|
156
158
|
const _component_VkfTemplateInstancesProvider = vue.resolveComponent("VkfTemplateInstancesProvider");
|
|
157
|
-
return vue.openBlock(), vue.createBlock(_component_VkfTemplateInstancesProvider,
|
|
159
|
+
return vue.openBlock(), vue.createBlock(_component_VkfTemplateInstancesProvider, null, {
|
|
160
|
+
placeholder: vue.withCtx(() => [
|
|
161
|
+
vue.createVNode(_component_VkfTemplatesDefault)
|
|
162
|
+
]),
|
|
158
163
|
default: vue.withCtx(() => [
|
|
159
|
-
!_ctx.inheritTemplates ? (vue.openBlock(), vue.createBlock(_component_VkfTemplatesDefault, { key: 0 })) : vue.createCommentVNode("v-if", true),
|
|
160
164
|
vue.createVNode(_component_VkfRendererData, {
|
|
161
165
|
data: _ctx.formData,
|
|
162
166
|
onSetData: _ctx.handleFormSetData
|
|
@@ -208,7 +212,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
208
212
|
]),
|
|
209
213
|
_: 1
|
|
210
214
|
/* STABLE */
|
|
211
|
-
}
|
|
215
|
+
});
|
|
212
216
|
}
|
|
213
217
|
var VkfInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-collection/src/index.vue"]]);
|
|
214
218
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createVNode, Fragment, resolveComponent, openBlock, createBlock, withCtx,
|
|
1
|
+
import { defineComponent, computed, createVNode, Fragment, resolveComponent, openBlock, createBlock, withCtx, normalizeProps, guardReactiveProps, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
|
|
2
2
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
3
3
|
import { VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
4
4
|
import { ElTable, ElButton } from 'element-plus';
|
|
@@ -35,11 +35,13 @@ const props = {
|
|
|
35
35
|
default: true
|
|
36
36
|
},
|
|
37
37
|
/**
|
|
38
|
-
* @description
|
|
38
|
+
* @description 简述一行的内容, 用于 Infomation
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
type:
|
|
42
|
-
default:
|
|
40
|
+
summaryLabel: {
|
|
41
|
+
type: Function,
|
|
42
|
+
default: (data) => {
|
|
43
|
+
return Object.values(data).join(" ");
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
const emits = {
|
|
@@ -150,9 +152,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
152
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
151
153
|
const _component_VkfRendererData = resolveComponent("VkfRendererData");
|
|
152
154
|
const _component_VkfTemplateInstancesProvider = resolveComponent("VkfTemplateInstancesProvider");
|
|
153
|
-
return openBlock(), createBlock(_component_VkfTemplateInstancesProvider,
|
|
155
|
+
return openBlock(), createBlock(_component_VkfTemplateInstancesProvider, null, {
|
|
156
|
+
placeholder: withCtx(() => [
|
|
157
|
+
createVNode(_component_VkfTemplatesDefault)
|
|
158
|
+
]),
|
|
154
159
|
default: withCtx(() => [
|
|
155
|
-
!_ctx.inheritTemplates ? (openBlock(), createBlock(_component_VkfTemplatesDefault, { key: 0 })) : createCommentVNode("v-if", true),
|
|
156
160
|
createVNode(_component_VkfRendererData, {
|
|
157
161
|
data: _ctx.formData,
|
|
158
162
|
onSetData: _ctx.handleFormSetData
|
|
@@ -204,7 +208,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
204
208
|
]),
|
|
205
209
|
_: 1
|
|
206
210
|
/* STABLE */
|
|
207
|
-
}
|
|
211
|
+
});
|
|
208
212
|
}
|
|
209
213
|
var VkfInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-collection/src/index.vue"]]);
|
|
210
214
|
|
|
@@ -22,11 +22,11 @@ export declare const props: {
|
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description 简述一行的内容, 用于 Infomation
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
type:
|
|
29
|
-
default:
|
|
27
|
+
summaryLabel: {
|
|
28
|
+
type: PropType<(data: NormalObject) => string>;
|
|
29
|
+
default: (data: any) => string;
|
|
30
30
|
};
|
|
31
31
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
32
32
|
formItemSize: {
|
|
@@ -54,6 +54,10 @@ export declare const props: {
|
|
|
54
54
|
type: StringConstructor;
|
|
55
55
|
default: any;
|
|
56
56
|
};
|
|
57
|
+
information: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
57
61
|
label: StringConstructor;
|
|
58
62
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
59
63
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -18,9 +18,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
type:
|
|
23
|
-
default:
|
|
21
|
+
summaryLabel: {
|
|
22
|
+
type: import("vue").PropType<(data: NormalObject) => string>;
|
|
23
|
+
default: (data: any) => string;
|
|
24
24
|
};
|
|
25
25
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
26
26
|
formItemSize: {
|
|
@@ -48,6 +48,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
48
|
type: StringConstructor;
|
|
49
49
|
default: any;
|
|
50
50
|
};
|
|
51
|
+
information: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
51
55
|
label: StringConstructor;
|
|
52
56
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
53
57
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -100,9 +104,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
104
|
type: BooleanConstructor;
|
|
101
105
|
default: boolean;
|
|
102
106
|
};
|
|
103
|
-
|
|
104
|
-
type:
|
|
105
|
-
default:
|
|
107
|
+
summaryLabel: {
|
|
108
|
+
type: import("vue").PropType<(data: NormalObject) => string>;
|
|
109
|
+
default: (data: any) => string;
|
|
106
110
|
};
|
|
107
111
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
108
112
|
formItemSize: {
|
|
@@ -130,6 +134,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
130
134
|
type: StringConstructor;
|
|
131
135
|
default: any;
|
|
132
136
|
};
|
|
137
|
+
information: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
133
141
|
label: StringConstructor;
|
|
134
142
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
135
143
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -166,14 +174,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
174
|
formItemTip: string;
|
|
167
175
|
formItemTipClass: any;
|
|
168
176
|
labelTip: string;
|
|
177
|
+
information: boolean;
|
|
169
178
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
170
179
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
171
180
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
172
181
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
173
182
|
modelValue: NormalObject[];
|
|
174
183
|
columns: import("./types").Column<any>[];
|
|
175
|
-
inheritTemplates: boolean;
|
|
176
184
|
splicable: boolean;
|
|
185
|
+
summaryLabel: (data: NormalObject) => string;
|
|
177
186
|
}, {}, {
|
|
178
187
|
ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
179
188
|
data: {
|
|
@@ -89,6 +89,10 @@ export declare const props: {
|
|
|
89
89
|
type: StringConstructor;
|
|
90
90
|
default: any;
|
|
91
91
|
};
|
|
92
|
+
information: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
92
96
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
93
97
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
94
98
|
prop: {
|
|
@@ -78,6 +78,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
78
78
|
type: StringConstructor;
|
|
79
79
|
default: any;
|
|
80
80
|
};
|
|
81
|
+
information: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
81
85
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
82
86
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
83
87
|
prop: {
|
|
@@ -263,6 +267,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
263
267
|
type: StringConstructor;
|
|
264
268
|
default: any;
|
|
265
269
|
};
|
|
270
|
+
information: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: boolean;
|
|
273
|
+
};
|
|
266
274
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
267
275
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
268
276
|
prop: {
|
|
@@ -371,6 +379,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
371
379
|
formItemTip: string;
|
|
372
380
|
formItemTipClass: any;
|
|
373
381
|
labelTip: string;
|
|
382
|
+
information: boolean;
|
|
374
383
|
label: string;
|
|
375
384
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
376
385
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
@@ -65,6 +65,10 @@ export declare const props: {
|
|
|
65
65
|
type: StringConstructor;
|
|
66
66
|
default: any;
|
|
67
67
|
};
|
|
68
|
+
information: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
68
72
|
label: StringConstructor;
|
|
69
73
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
70
74
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -91,7 +95,7 @@ export declare const props: {
|
|
|
91
95
|
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
92
96
|
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
93
97
|
};
|
|
94
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"required", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2> | Extract<"inputNumberSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "name" | "modelValue" | "placeholder" | "min" | "max" | "valueOnClear" | "validateEvent" | "step" | "stepStrictly" | "controls" | "controlsPosition" | "precision" | "unit" | "inputNumberSlots", keyof T2>, KE> : Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "name" | "modelValue" | "placeholder" | "min" | "max" | "valueOnClear" | "validateEvent" | "step" | "stepStrictly" | "controls" | "controlsPosition" | "precision" | "unit" | "inputNumberSlots", keyof T2>]: { [k in Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "name" | "modelValue" | "placeholder" | "min" | "max" | "valueOnClear" | "validateEvent" | "step" | "stepStrictly" | "controls" | "controlsPosition" | "precision" | "unit" | "inputNumberSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
98
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"required", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2> | Extract<"inputNumberSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "name" | "modelValue" | "placeholder" | "min" | "max" | "valueOnClear" | "validateEvent" | "step" | "stepStrictly" | "controls" | "controlsPosition" | "precision" | "unit" | "inputNumberSlots", keyof T2>, KE> : Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "name" | "modelValue" | "placeholder" | "min" | "max" | "valueOnClear" | "validateEvent" | "step" | "stepStrictly" | "controls" | "controlsPosition" | "precision" | "unit" | "inputNumberSlots", keyof T2>]: { [k in Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "name" | "modelValue" | "placeholder" | "min" | "max" | "valueOnClear" | "validateEvent" | "step" | "stepStrictly" | "controls" | "controlsPosition" | "precision" | "unit" | "inputNumberSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
95
99
|
export declare const emits: {
|
|
96
100
|
change: (cur: number | undefined, prev: number | undefined) => boolean;
|
|
97
101
|
blur: (e: FocusEvent) => boolean;
|
|
@@ -63,6 +63,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
63
|
type: StringConstructor;
|
|
64
64
|
default: any;
|
|
65
65
|
};
|
|
66
|
+
information: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
66
70
|
label: StringConstructor;
|
|
67
71
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
68
72
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -181,6 +185,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
181
185
|
type: StringConstructor;
|
|
182
186
|
default: any;
|
|
183
187
|
};
|
|
188
|
+
information: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
184
192
|
label: StringConstructor;
|
|
185
193
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
186
194
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -221,6 +229,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
221
229
|
formItemTip: string;
|
|
222
230
|
formItemTipClass: any;
|
|
223
231
|
labelTip: string;
|
|
232
|
+
information: boolean;
|
|
224
233
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
225
234
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
226
235
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
@@ -45,6 +45,10 @@ export declare const props: {
|
|
|
45
45
|
type: StringConstructor;
|
|
46
46
|
default: any;
|
|
47
47
|
};
|
|
48
|
+
information: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
label: StringConstructor;
|
|
49
53
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
50
54
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|