@vunk/form 2.11.0 → 2.12.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/button/src/ctx.d.ts +1 -1
- package/components/button/src/index.vue.d.ts +15 -15
- package/components/card-input-collection/src/index.vue.d.ts +12 -12
- package/components/cascader/src/ctx.d.ts +4 -11
- package/components/cascader/src/index.vue.d.ts +10 -24
- package/components/checkbox/src/index.vue.d.ts +27 -27
- package/components/cloneDeep.cjs +269 -37
- package/components/cloneDeep.mjs +269 -37
- package/components/color-picker/src/ctx.d.ts +17 -1
- package/components/color-picker/src/index.vue.d.ts +36 -2
- package/components/date-picker/src/ctx.d.ts +2 -1
- package/components/date-picker/src/index.vue.d.ts +10 -0
- package/components/date-picker-range/src/ctx.d.ts +1 -0
- package/components/date-picker-range/src/index.vue.d.ts +3 -0
- package/components/dialog-input-collection/index.cjs +560 -0
- package/components/dialog-input-collection/index.css +21 -0
- package/components/dialog-input-collection/index.d.ts +4 -0
- package/components/dialog-input-collection/index.mjs +554 -0
- package/components/dialog-input-collection/src/ctx.d.ts +142 -0
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +647 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +1972 -0
- package/components/dialog-input-collection/src/layout.vue.d.ts +85 -0
- package/components/dialog-input-collection/src/types.d.ts +28 -0
- package/components/download-plus/index.cjs +2 -2
- package/components/download-plus/index.mjs +2 -2
- package/components/download-plus/src/index.vue.d.ts +48 -18
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +1 -1
- package/components/editable-text/src/index.vue.d.ts +6 -6
- package/components/esri-input-geojson/index.cjs +1 -1
- package/components/esri-input-geojson/index.mjs +1 -1
- package/components/esri-input-geojson/src/append.vue.d.ts +21 -21
- package/components/esri-input-geojson/src/ctx.d.ts +10 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +21 -0
- package/components/form/src/index.vue.d.ts +8 -2853
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +1 -1
- package/components/form-item/src/index.vue.d.ts +15 -15
- package/components/index.cjs +397 -11
- package/components/index.mjs +378 -11
- package/components/index2.cjs +11 -397
- package/components/index2.mjs +11 -378
- package/components/information/index.cjs +3 -4
- package/components/information/index.mjs +3 -4
- package/components/information-collection/index.cjs +2 -2
- package/components/information-collection/index.mjs +2 -2
- package/components/information-collection/src/ctx.d.ts +2 -2
- package/components/information-collection/src/index.vue.d.ts +4 -4
- package/components/information-renderer/index.cjs +16 -0
- package/components/information-renderer/index.d.ts +73 -0
- package/components/information-renderer/index.mjs +10 -0
- package/components/information-tag/src/ctx.d.ts +1 -1
- package/components/information-tag/src/index.vue.d.ts +3 -3
- package/components/information-templates-default/index.cjs +25 -7
- package/components/information-templates-default/index.mjs +25 -7
- package/components/input/src/ctx.d.ts +10 -1
- package/components/input/src/index.vue.d.ts +51 -0
- package/components/input-collection/index.cjs +12 -1
- package/components/input-collection/index.mjs +12 -1
- package/components/input-collection/src/index.vue.d.ts +12 -12
- package/components/input-collection/src/types.d.ts +2 -2
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +9 -0
- package/components/input-link/src/index.vue.d.ts +19 -0
- package/components/input-number/src/ctx.d.ts +9 -1
- package/components/input-number/src/index.vue.d.ts +45 -0
- package/components/input-tag/src/ctx.d.ts +3 -10
- package/components/input-tag/src/index.vue.d.ts +25 -60
- package/components/select/src/ctx.d.ts +1 -1
- package/components/select/src/index.vue.d.ts +4 -4
- package/components/templates-element-plus/src/index.vue.d.ts +6 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/index.vue.d.ts +9 -9
- package/components/upload-plus/index.cjs +2 -2
- package/components/upload-plus/index.mjs +2 -2
- package/components/upload-plus/src/index.vue.d.ts +49 -19
- package/components/van-cascader/src/ctx.d.ts +4 -11
- package/components/van-cascader/src/index.vue.d.ts +27 -41
- package/components/var-datetime-picker/src/index.vue.d.ts +15 -3
- package/components/vditor/src/index.vue.d.ts +1 -1
- package/index.css +22 -0
- package/package.json +14 -1
- package/shared/element-plus/ctx.d.ts +4 -4
- package/shared/element-plus/instances.d.ts +2 -1
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var formItemRendererTemplate = require('@vunk/form/components/form-item-renderer-template');
|
|
7
6
|
var formItem = require('@vunk/form/components/form-item');
|
|
8
7
|
var select = require('@vunk/form/components/select');
|
|
9
8
|
var informationCollection = require('@vunk/form/components/information-collection');
|
|
9
|
+
var informationRenderer = require('@vunk/form/components/information-renderer');
|
|
10
|
+
var form = require('@vunk/form');
|
|
10
11
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
11
12
|
|
|
12
13
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -16,7 +17,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
16
17
|
const simpleStringTemplates = ["VkfInput", "VkfInputNumber", "VkfSlider"];
|
|
17
18
|
const simpleSelectTemplates = ["VkfSelect", "VkfRadio"];
|
|
18
19
|
const simpleCollectionTemplates = ["VkfInputCollection"];
|
|
19
|
-
return () => vue.createVNode(vue.Fragment, null, [simpleStringTemplates.map(t => vue.createVNode(
|
|
20
|
+
return () => vue.createVNode(vue.Fragment, null, [simpleStringTemplates.map(t => vue.createVNode(informationRenderer.VkfInformationTemplate, {
|
|
20
21
|
"key": t,
|
|
21
22
|
"type": t
|
|
22
23
|
}, {
|
|
@@ -33,7 +34,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
34
|
"class": `${prefixCls}-value`
|
|
34
35
|
}, [value])]
|
|
35
36
|
})
|
|
36
|
-
})), simpleSelectTemplates.map(t => vue.createVNode(
|
|
37
|
+
})), simpleSelectTemplates.map(t => vue.createVNode(informationRenderer.VkfInformationTemplate, {
|
|
37
38
|
"key": t,
|
|
38
39
|
"type": t
|
|
39
40
|
}, {
|
|
@@ -48,23 +49,40 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
49
|
"modelValue": value,
|
|
49
50
|
"options": props.options
|
|
50
51
|
}, null)
|
|
51
|
-
})), simpleCollectionTemplates.map(t => vue.createVNode(
|
|
52
|
+
})), simpleCollectionTemplates.map(t => vue.createVNode(informationRenderer.VkfInformationTemplate, {
|
|
52
53
|
"key": t,
|
|
53
54
|
"type": t
|
|
54
55
|
}, {
|
|
55
56
|
default: ({
|
|
56
57
|
props,
|
|
57
58
|
value,
|
|
58
|
-
|
|
59
|
+
raw
|
|
59
60
|
}) => {
|
|
60
61
|
const formItemProps = formItem._VkfFormItemCtx.createBindProps(props);
|
|
61
62
|
return vue.createVNode(informationCollection.VkfInformationCollection, vue.mergeProps({
|
|
62
63
|
"class": `${prefixCls}-main`,
|
|
63
64
|
"modelValue": value,
|
|
64
65
|
"columns": props.columns
|
|
65
|
-
}, formItemProps.value, informationProps), null);
|
|
66
|
+
}, formItemProps.value, raw.informationProps), null);
|
|
66
67
|
}
|
|
67
|
-
}))
|
|
68
|
+
})), vue.createVNode(informationRenderer.VkfInformationTemplate, {
|
|
69
|
+
"type": "VkfSwitch"
|
|
70
|
+
}, {
|
|
71
|
+
default: ({
|
|
72
|
+
props,
|
|
73
|
+
value
|
|
74
|
+
}) => {
|
|
75
|
+
const formItemProps = formItem._VkfFormItemCtx.createBindProps(props);
|
|
76
|
+
return vue.createVNode(form.VkfSwitch, vue.mergeProps({
|
|
77
|
+
"class": `${prefixCls}-main`,
|
|
78
|
+
"size": "small",
|
|
79
|
+
"information": true
|
|
80
|
+
}, formItemProps.value, {
|
|
81
|
+
"modelValue": value,
|
|
82
|
+
"disabled": true
|
|
83
|
+
}), null);
|
|
84
|
+
}
|
|
85
|
+
})]);
|
|
68
86
|
}
|
|
69
87
|
});
|
|
70
88
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, createVNode, Fragment, mergeProps } from 'vue';
|
|
2
|
-
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
2
|
import { VkfFormItem, _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
4
3
|
import { VkfSelect } from '@vunk/form/components/select';
|
|
5
4
|
import { VkfInformationCollection } from '@vunk/form/components/information-collection';
|
|
5
|
+
import { VkfInformationTemplate } from '@vunk/form/components/information-renderer';
|
|
6
|
+
import { VkfSwitch } from '@vunk/form';
|
|
6
7
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
7
8
|
|
|
8
9
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,7 +13,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
const simpleStringTemplates = ["VkfInput", "VkfInputNumber", "VkfSlider"];
|
|
13
14
|
const simpleSelectTemplates = ["VkfSelect", "VkfRadio"];
|
|
14
15
|
const simpleCollectionTemplates = ["VkfInputCollection"];
|
|
15
|
-
return () => createVNode(Fragment, null, [simpleStringTemplates.map(t => createVNode(
|
|
16
|
+
return () => createVNode(Fragment, null, [simpleStringTemplates.map(t => createVNode(VkfInformationTemplate, {
|
|
16
17
|
"key": t,
|
|
17
18
|
"type": t
|
|
18
19
|
}, {
|
|
@@ -29,7 +30,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
"class": `${prefixCls}-value`
|
|
30
31
|
}, [value])]
|
|
31
32
|
})
|
|
32
|
-
})), simpleSelectTemplates.map(t => createVNode(
|
|
33
|
+
})), simpleSelectTemplates.map(t => createVNode(VkfInformationTemplate, {
|
|
33
34
|
"key": t,
|
|
34
35
|
"type": t
|
|
35
36
|
}, {
|
|
@@ -44,23 +45,40 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
45
|
"modelValue": value,
|
|
45
46
|
"options": props.options
|
|
46
47
|
}, null)
|
|
47
|
-
})), simpleCollectionTemplates.map(t => createVNode(
|
|
48
|
+
})), simpleCollectionTemplates.map(t => createVNode(VkfInformationTemplate, {
|
|
48
49
|
"key": t,
|
|
49
50
|
"type": t
|
|
50
51
|
}, {
|
|
51
52
|
default: ({
|
|
52
53
|
props,
|
|
53
54
|
value,
|
|
54
|
-
|
|
55
|
+
raw
|
|
55
56
|
}) => {
|
|
56
57
|
const formItemProps = _VkfFormItemCtx.createBindProps(props);
|
|
57
58
|
return createVNode(VkfInformationCollection, mergeProps({
|
|
58
59
|
"class": `${prefixCls}-main`,
|
|
59
60
|
"modelValue": value,
|
|
60
61
|
"columns": props.columns
|
|
61
|
-
}, formItemProps.value, informationProps), null);
|
|
62
|
+
}, formItemProps.value, raw.informationProps), null);
|
|
62
63
|
}
|
|
63
|
-
}))
|
|
64
|
+
})), createVNode(VkfInformationTemplate, {
|
|
65
|
+
"type": "VkfSwitch"
|
|
66
|
+
}, {
|
|
67
|
+
default: ({
|
|
68
|
+
props,
|
|
69
|
+
value
|
|
70
|
+
}) => {
|
|
71
|
+
const formItemProps = _VkfFormItemCtx.createBindProps(props);
|
|
72
|
+
return createVNode(VkfSwitch, mergeProps({
|
|
73
|
+
"class": `${prefixCls}-main`,
|
|
74
|
+
"size": "small",
|
|
75
|
+
"information": true
|
|
76
|
+
}, formItemProps.value, {
|
|
77
|
+
"modelValue": value,
|
|
78
|
+
"disabled": true
|
|
79
|
+
}), null);
|
|
80
|
+
}
|
|
81
|
+
})]);
|
|
64
82
|
}
|
|
65
83
|
});
|
|
66
84
|
|
|
@@ -111,6 +111,15 @@ export declare const props: {
|
|
|
111
111
|
} & {
|
|
112
112
|
readonly default: true;
|
|
113
113
|
};
|
|
114
|
+
inputmode: {
|
|
115
|
+
readonly type: PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
} & {
|
|
120
|
+
readonly default: undefined;
|
|
121
|
+
};
|
|
122
|
+
name: StringConstructor;
|
|
114
123
|
ariaLabel: StringConstructor;
|
|
115
124
|
id: {
|
|
116
125
|
readonly type: PropType<string>;
|
|
@@ -238,7 +247,7 @@ export declare const props: {
|
|
|
238
247
|
};
|
|
239
248
|
autofocus: BooleanConstructor;
|
|
240
249
|
};
|
|
241
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", 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<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", 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<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", 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> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", 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<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", 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<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: T2[k]; }[P]; }>;
|
|
250
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", 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<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", 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<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", 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<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", 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> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", 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<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", 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<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", 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<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", 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<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: T2[k]; }[P]; }>;
|
|
242
251
|
export declare const emits: {
|
|
243
252
|
"update:modelValue": (value: string) => boolean;
|
|
244
253
|
input: (value: string) => boolean;
|
|
@@ -109,6 +109,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
109
|
} & {
|
|
110
110
|
readonly default: true;
|
|
111
111
|
};
|
|
112
|
+
inputmode: {
|
|
113
|
+
readonly type: import("vue").PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
114
|
+
readonly required: false;
|
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
|
+
__epPropKey: true;
|
|
117
|
+
} & {
|
|
118
|
+
readonly default: undefined;
|
|
119
|
+
};
|
|
120
|
+
name: StringConstructor;
|
|
112
121
|
ariaLabel: StringConstructor;
|
|
113
122
|
id: {
|
|
114
123
|
readonly type: import("vue").PropType<string>;
|
|
@@ -242,6 +251,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
242
251
|
disabled: boolean;
|
|
243
252
|
id: string;
|
|
244
253
|
ariaLabel: string;
|
|
254
|
+
name: string;
|
|
245
255
|
modelValue: string | number;
|
|
246
256
|
clearable: boolean;
|
|
247
257
|
placeholder: string;
|
|
@@ -250,6 +260,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
250
260
|
maxlength: number;
|
|
251
261
|
minlength: number;
|
|
252
262
|
rows: number;
|
|
263
|
+
inputmode: "none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal";
|
|
253
264
|
resize: "none" | "horizontal" | "vertical" | "both";
|
|
254
265
|
autosize: false;
|
|
255
266
|
autocomplete: string;
|
|
@@ -391,6 +402,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
391
402
|
} & {
|
|
392
403
|
readonly default: true;
|
|
393
404
|
};
|
|
405
|
+
inputmode: {
|
|
406
|
+
readonly type: import("vue").PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
407
|
+
readonly required: false;
|
|
408
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
409
|
+
__epPropKey: true;
|
|
410
|
+
} & {
|
|
411
|
+
readonly default: undefined;
|
|
412
|
+
};
|
|
413
|
+
name: StringConstructor;
|
|
394
414
|
ariaLabel: StringConstructor;
|
|
395
415
|
id: {
|
|
396
416
|
readonly type: import("vue").PropType<string>;
|
|
@@ -552,6 +572,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
552
572
|
autofocus: boolean;
|
|
553
573
|
inputSlots: import("./types").InputSlots;
|
|
554
574
|
rows: number;
|
|
575
|
+
inputmode: "none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal";
|
|
555
576
|
autosize: false;
|
|
556
577
|
autocomplete: string;
|
|
557
578
|
showPassword: boolean;
|
|
@@ -563,6 +584,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
563
584
|
}, {}, {
|
|
564
585
|
ElInput: {
|
|
565
586
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
587
|
+
readonly inputmode: {
|
|
588
|
+
readonly type: import("vue").PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
589
|
+
readonly required: false;
|
|
590
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
591
|
+
__epPropKey: true;
|
|
592
|
+
} & {
|
|
593
|
+
readonly default: undefined;
|
|
594
|
+
};
|
|
595
|
+
readonly name: StringConstructor;
|
|
566
596
|
readonly ariaLabel: StringConstructor;
|
|
567
597
|
readonly id: {
|
|
568
598
|
readonly type: import("vue").PropType<string>;
|
|
@@ -761,6 +791,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
761
791
|
readonly validateEvent: boolean;
|
|
762
792
|
readonly inputStyle: import("vue").StyleValue;
|
|
763
793
|
readonly rows: number;
|
|
794
|
+
readonly inputmode: "none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal";
|
|
764
795
|
readonly clearable: boolean;
|
|
765
796
|
readonly showPassword: boolean;
|
|
766
797
|
readonly showWordLimit: boolean;
|
|
@@ -773,6 +804,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
773
804
|
M: {};
|
|
774
805
|
Defaults: {};
|
|
775
806
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
807
|
+
readonly inputmode: {
|
|
808
|
+
readonly type: import("vue").PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
809
|
+
readonly required: false;
|
|
810
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
811
|
+
__epPropKey: true;
|
|
812
|
+
} & {
|
|
813
|
+
readonly default: undefined;
|
|
814
|
+
};
|
|
815
|
+
readonly name: StringConstructor;
|
|
776
816
|
readonly ariaLabel: StringConstructor;
|
|
777
817
|
readonly id: {
|
|
778
818
|
readonly type: import("vue").PropType<string>;
|
|
@@ -958,6 +998,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
958
998
|
readonly validateEvent: boolean;
|
|
959
999
|
readonly inputStyle: import("vue").StyleValue;
|
|
960
1000
|
readonly rows: number;
|
|
1001
|
+
readonly inputmode: "none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal";
|
|
961
1002
|
readonly clearable: boolean;
|
|
962
1003
|
readonly showPassword: boolean;
|
|
963
1004
|
readonly showWordLimit: boolean;
|
|
@@ -967,6 +1008,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
967
1008
|
__isTeleport?: never;
|
|
968
1009
|
__isSuspense?: never;
|
|
969
1010
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1011
|
+
readonly inputmode: {
|
|
1012
|
+
readonly type: import("vue").PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
1013
|
+
readonly required: false;
|
|
1014
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1015
|
+
__epPropKey: true;
|
|
1016
|
+
} & {
|
|
1017
|
+
readonly default: undefined;
|
|
1018
|
+
};
|
|
1019
|
+
readonly name: StringConstructor;
|
|
970
1020
|
readonly ariaLabel: StringConstructor;
|
|
971
1021
|
readonly id: {
|
|
972
1022
|
readonly type: import("vue").PropType<string>;
|
|
@@ -1165,6 +1215,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1165
1215
|
readonly validateEvent: boolean;
|
|
1166
1216
|
readonly inputStyle: import("vue").StyleValue;
|
|
1167
1217
|
readonly rows: number;
|
|
1218
|
+
readonly inputmode: "none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal";
|
|
1168
1219
|
readonly clearable: boolean;
|
|
1169
1220
|
readonly showPassword: boolean;
|
|
1170
1221
|
readonly showWordLimit: boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var index = require('../
|
|
6
|
+
var index = require('../index.cjs');
|
|
7
7
|
var core = require('@vunk/core');
|
|
8
8
|
var fieldset = require('@vunk/form/components/fieldset');
|
|
9
9
|
var formItem = require('@vunk/form/components/form-item');
|
|
@@ -14,6 +14,7 @@ var templatesDefault = require('@vunk/form/components/templates-default');
|
|
|
14
14
|
var composables = require('@vunk/form/composables');
|
|
15
15
|
var tableColumns = require('@vunk/plus/components/table-columns');
|
|
16
16
|
var elementPlus = require('element-plus');
|
|
17
|
+
var _function = require('@vunk/shared/function');
|
|
17
18
|
var cloneDeep = require('../cloneDeep.cjs');
|
|
18
19
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
19
20
|
require('../isObject.cjs');
|
|
@@ -111,6 +112,11 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
111
112
|
templateType: column.templateType,
|
|
112
113
|
templateProps: column.templateProps
|
|
113
114
|
};
|
|
115
|
+
if (_function.isCallable(column.templateProps)) {
|
|
116
|
+
formItemProps.templateProps = () => {
|
|
117
|
+
return column.templateProps(e.row);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
114
120
|
return vue.createVNode(formItemRenderer.VkfFormItemRenderer, {
|
|
115
121
|
"source": [{
|
|
116
122
|
...formItemProps,
|
|
@@ -161,11 +167,15 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
161
167
|
}) => vue.createVNode(vue.Fragment, null, [vue.createVNode(elementPlus.ElButton, {
|
|
162
168
|
"size": "small",
|
|
163
169
|
"icon": index.plus_default,
|
|
170
|
+
"type": "primary",
|
|
171
|
+
"link": true,
|
|
164
172
|
"circle": true,
|
|
165
173
|
"onClick": () => handlePlus($index)
|
|
166
174
|
}, null), vue.createVNode(elementPlus.ElButton, {
|
|
167
175
|
"size": "small",
|
|
168
176
|
"icon": index.minus_default,
|
|
177
|
+
"type": "primary",
|
|
178
|
+
"link": true,
|
|
169
179
|
"circle": true,
|
|
170
180
|
"onClick": () => handleMinus($index)
|
|
171
181
|
}, null)])
|
|
@@ -324,6 +334,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
324
334
|
class: "vkf-input-collection-table",
|
|
325
335
|
"row-key": $setup.ROW_KEY,
|
|
326
336
|
"expand-row-keys": $setup.expandRowKeys,
|
|
337
|
+
"preserve-expanded-content": true,
|
|
327
338
|
onExpandChange: $setup.handleExpandChange
|
|
328
339
|
}, {
|
|
329
340
|
default: vue.withCtx(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createVNode, Fragment, ref, openBlock, createBlock, withCtx, normalizeProps, guardReactiveProps, createSlots, createElementBlock, createTextVNode, createCommentVNode, renderSlot } from 'vue';
|
|
2
|
-
import { p as plus_default,
|
|
2
|
+
import { p as plus_default, g as minus_default } from '../index.mjs';
|
|
3
3
|
import { ensetData, getValue } from '@vunk/core';
|
|
4
4
|
import { VkfFieldset } from '@vunk/form/components/fieldset';
|
|
5
5
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
@@ -10,6 +10,7 @@ import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
|
10
10
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
11
11
|
import { VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
12
12
|
import { ElButton, ElTable } from 'element-plus';
|
|
13
|
+
import { isCallable } from '@vunk/shared/function';
|
|
13
14
|
import { c as cloneDeep } from '../cloneDeep.mjs';
|
|
14
15
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
15
16
|
import '../isObject.mjs';
|
|
@@ -107,6 +108,11 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
107
108
|
templateType: column.templateType,
|
|
108
109
|
templateProps: column.templateProps
|
|
109
110
|
};
|
|
111
|
+
if (isCallable(column.templateProps)) {
|
|
112
|
+
formItemProps.templateProps = () => {
|
|
113
|
+
return column.templateProps(e.row);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
110
116
|
return createVNode(VkfFormItemRenderer, {
|
|
111
117
|
"source": [{
|
|
112
118
|
...formItemProps,
|
|
@@ -157,11 +163,15 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
157
163
|
}) => createVNode(Fragment, null, [createVNode(ElButton, {
|
|
158
164
|
"size": "small",
|
|
159
165
|
"icon": plus_default,
|
|
166
|
+
"type": "primary",
|
|
167
|
+
"link": true,
|
|
160
168
|
"circle": true,
|
|
161
169
|
"onClick": () => handlePlus($index)
|
|
162
170
|
}, null), createVNode(ElButton, {
|
|
163
171
|
"size": "small",
|
|
164
172
|
"icon": minus_default,
|
|
173
|
+
"type": "primary",
|
|
174
|
+
"link": true,
|
|
165
175
|
"circle": true,
|
|
166
176
|
"onClick": () => handleMinus($index)
|
|
167
177
|
}, null)])
|
|
@@ -320,6 +330,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
320
330
|
class: "vkf-input-collection-table",
|
|
321
331
|
"row-key": $setup.ROW_KEY,
|
|
322
332
|
"expand-row-keys": $setup.expandRowKeys,
|
|
333
|
+
"preserve-expanded-content": true,
|
|
323
334
|
onExpandChange: $setup.handleExpandChange
|
|
324
335
|
}, {
|
|
325
336
|
default: withCtx(() => [
|
|
@@ -606,7 +606,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
606
606
|
};
|
|
607
607
|
readonly disabled: BooleanConstructor;
|
|
608
608
|
readonly type: {
|
|
609
|
-
readonly type: import("vue").PropType<"" | "default" | "text" | "
|
|
609
|
+
readonly type: import("vue").PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
610
610
|
readonly required: false;
|
|
611
611
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
612
612
|
__epPropKey: true;
|
|
@@ -692,7 +692,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
692
692
|
readonly disabled: boolean;
|
|
693
693
|
readonly round: boolean;
|
|
694
694
|
readonly dark: boolean;
|
|
695
|
-
readonly type: "" | "default" | "text" | "
|
|
695
|
+
readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
696
696
|
readonly bg: boolean;
|
|
697
697
|
readonly loading: boolean;
|
|
698
698
|
readonly autofocus: boolean;
|
|
@@ -717,7 +717,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
717
717
|
};
|
|
718
718
|
readonly disabled: BooleanConstructor;
|
|
719
719
|
readonly type: {
|
|
720
|
-
readonly type: import("vue").PropType<"" | "default" | "text" | "
|
|
720
|
+
readonly type: import("vue").PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
721
721
|
readonly required: false;
|
|
722
722
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
723
723
|
__epPropKey: true;
|
|
@@ -801,7 +801,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
801
801
|
readonly disabled: boolean;
|
|
802
802
|
readonly round: boolean;
|
|
803
803
|
readonly dark: boolean;
|
|
804
|
-
readonly type: "" | "default" | "text" | "
|
|
804
|
+
readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
805
805
|
readonly bg: boolean;
|
|
806
806
|
readonly loading: boolean;
|
|
807
807
|
readonly autofocus: boolean;
|
|
@@ -823,7 +823,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
823
823
|
};
|
|
824
824
|
readonly disabled: BooleanConstructor;
|
|
825
825
|
readonly type: {
|
|
826
|
-
readonly type: import("vue").PropType<"" | "default" | "text" | "
|
|
826
|
+
readonly type: import("vue").PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
827
827
|
readonly required: false;
|
|
828
828
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
829
829
|
__epPropKey: true;
|
|
@@ -909,7 +909,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
909
909
|
readonly disabled: boolean;
|
|
910
910
|
readonly round: boolean;
|
|
911
911
|
readonly dark: boolean;
|
|
912
|
-
readonly type: "" | "default" | "text" | "
|
|
912
|
+
readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
913
913
|
readonly bg: boolean;
|
|
914
914
|
readonly loading: boolean;
|
|
915
915
|
readonly autofocus: boolean;
|
|
@@ -934,7 +934,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
934
934
|
__epPropKey: true;
|
|
935
935
|
};
|
|
936
936
|
readonly type: {
|
|
937
|
-
readonly type: import("vue").PropType<"" | "default" | "text" | "
|
|
937
|
+
readonly type: import("vue").PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
938
938
|
readonly required: false;
|
|
939
939
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
940
940
|
__epPropKey: true;
|
|
@@ -942,7 +942,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
942
942
|
readonly default: "";
|
|
943
943
|
};
|
|
944
944
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
945
|
-
readonly type: "" | "default" | "text" | "
|
|
945
|
+
readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
946
946
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
947
947
|
P: {};
|
|
948
948
|
B: {};
|
|
@@ -958,7 +958,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
958
958
|
__epPropKey: true;
|
|
959
959
|
};
|
|
960
960
|
readonly type: {
|
|
961
|
-
readonly type: import("vue").PropType<"" | "default" | "text" | "
|
|
961
|
+
readonly type: import("vue").PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
962
962
|
readonly required: false;
|
|
963
963
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
964
964
|
__epPropKey: true;
|
|
@@ -966,7 +966,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
966
966
|
readonly default: "";
|
|
967
967
|
};
|
|
968
968
|
}>>, {}, {}, {}, {}, {
|
|
969
|
-
readonly type: "" | "default" | "text" | "
|
|
969
|
+
readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
970
970
|
}>;
|
|
971
971
|
__isFragment?: never;
|
|
972
972
|
__isTeleport?: never;
|
|
@@ -979,7 +979,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
979
979
|
__epPropKey: true;
|
|
980
980
|
};
|
|
981
981
|
readonly type: {
|
|
982
|
-
readonly type: import("vue").PropType<"" | "default" | "text" | "
|
|
982
|
+
readonly type: import("vue").PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
983
983
|
readonly required: false;
|
|
984
984
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
985
985
|
__epPropKey: true;
|
|
@@ -987,7 +987,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
987
987
|
readonly default: "";
|
|
988
988
|
};
|
|
989
989
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
990
|
-
readonly type: "" | "default" | "text" | "
|
|
990
|
+
readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
991
991
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
992
992
|
$slots: {
|
|
993
993
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
2
2
|
import type { BasicSource } from '@vunk/form/shared';
|
|
3
3
|
import type { __VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
4
|
-
import type { Keyof, NormalObject, VueComponentPropsType } from '@vunk/shared';
|
|
4
|
+
import type { AnyFunc, Keyof, NormalObject, VueComponentPropsType } from '@vunk/shared';
|
|
5
5
|
import type { TableColumnCtx } from 'element-plus';
|
|
6
6
|
import type Core from './index.vue';
|
|
7
7
|
import type { __VkfInformationCollection } from '@vunk/form/components/information-collection';
|
|
@@ -12,7 +12,7 @@ export interface Source<P extends string = string> extends VueComponentPropsType
|
|
|
12
12
|
}
|
|
13
13
|
export type Column<R extends NormalObject = NormalObject, SourceType extends NormalObject = __VkfTemplatesDefault.CoreSource<Keyof<R>>> = Omit<__VkTableColumns.Source<R>, 'slots'> & {
|
|
14
14
|
templateType: SourceType['templateType'];
|
|
15
|
-
templateProps?: Partial<SourceType
|
|
15
|
+
templateProps?: Partial<SourceType> | AnyFunc;
|
|
16
16
|
expandVisible?: boolean;
|
|
17
17
|
createTemplateProps?: (columnSlotEvent: {
|
|
18
18
|
row: R;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var input = require('@vunk/form/components/input');
|
|
6
6
|
var vue = require('vue');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
|
-
var index = require('../
|
|
8
|
+
var index = require('../index.cjs');
|
|
9
9
|
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
10
10
|
var composables = require('@vunk/form/composables');
|
|
11
11
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _VkfInputCtx, VkfInput } from '@vunk/form/components/input';
|
|
2
2
|
import { defineComponent, computed, h, resolveComponent, openBlock, createElementBlock, createVNode, createBlock, mergeProps, toHandlers, createCommentVNode } from 'vue';
|
|
3
3
|
import { ElButton, ElIcon } from 'element-plus';
|
|
4
|
-
import { r as right_default } from '../
|
|
4
|
+
import { r as right_default } from '../index.mjs';
|
|
5
5
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
6
6
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
7
7
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
@@ -152,6 +152,15 @@ export declare const props: {
|
|
|
152
152
|
} & {
|
|
153
153
|
readonly default: true;
|
|
154
154
|
};
|
|
155
|
+
inputmode: {
|
|
156
|
+
readonly type: import("vue").PropType<"none" | "search" | "text" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
157
|
+
readonly required: false;
|
|
158
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
159
|
+
__epPropKey: true;
|
|
160
|
+
} & {
|
|
161
|
+
readonly default: undefined;
|
|
162
|
+
};
|
|
163
|
+
name: StringConstructor;
|
|
155
164
|
ariaLabel: StringConstructor;
|
|
156
165
|
id: {
|
|
157
166
|
readonly type: import("vue").PropType<string>;
|