@vunk/form 2.10.0 → 2.10.3
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 +37 -36
- package/components/api-tables-select/index.mjs +37 -36
- package/components/api-tables-select/src/ctx.d.ts +48 -13
- package/components/api-tables-select/src/index.vue.d.ts +568 -80
- package/components/button/src/ctx.d.ts +101 -17
- package/components/button/src/index.vue.d.ts +437 -101
- package/components/card-input-collection/index.cjs +67 -70
- package/components/card-input-collection/index.mjs +68 -71
- package/components/card-input-collection/src/ctx.d.ts +43 -8
- package/components/card-input-collection/src/index.vue.d.ts +718 -226
- package/components/cascader/src/ctx.d.ts +192 -46
- package/components/cascader/src/index.vue.d.ts +393 -118
- package/components/checkbox/index.cjs +2 -3
- package/components/checkbox/index.mjs +2 -3
- package/components/checkbox/src/ctx.d.ts +65 -13
- package/components/checkbox/src/index.vue.d.ts +339 -115
- package/components/color-picker/src/ctx.d.ts +76 -13
- package/components/color-picker/src/index.vue.d.ts +160 -34
- package/components/date-picker/src/ctx.d.ts +185 -36
- package/components/date-picker/src/index.vue.d.ts +974 -202
- package/components/date-picker-range/src/ctx.d.ts +168 -35
- package/components/date-picker-range/src/index.vue.d.ts +347 -82
- package/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.mjs +4 -4
- package/components/download-plus/src/ctx.d.ts +43 -8
- package/components/download-plus/src/index.vue.d.ts +618 -165
- package/components/editable-text/index.cjs +29 -15
- package/components/editable-text/index.mjs +29 -15
- package/components/editable-text/src/ctx.d.ts +51 -8
- package/components/editable-text/src/index.vue.d.ts +2827 -251
- package/components/esri-input-geojson/src/append.vue.d.ts +769 -418
- package/components/esri-input-geojson/src/ctx.d.ts +133 -32
- package/components/esri-input-geojson/src/index.vue.d.ts +262 -92
- package/components/esri-input-geojson/src/viewer.vue.d.ts +1 -1
- package/components/form/src/ctx.d.ts +59 -11
- package/components/form/src/index.vue.d.ts +3456 -186
- package/components/form-item/src/ctx.d.ts +45 -10
- package/components/form-item/src/index.vue.d.ts +484 -141
- package/components/information-collection/src/ctx.d.ts +45 -10
- package/components/information-collection/src/index.vue.d.ts +96 -26
- package/components/information-tag/src/ctx.d.ts +17 -3
- package/components/information-tag/src/index.vue.d.ts +38 -10
- package/components/input/src/ctx.d.ts +138 -33
- package/components/input/src/index.vue.d.ts +528 -152
- package/components/input-collection/index.cjs +105 -74
- package/components/input-collection/index.mjs +107 -76
- package/components/input-collection/src/ctx.d.ts +43 -8
- package/components/input-collection/src/index.vue.d.ts +756 -793
- package/components/input-link/src/ctx.d.ts +103 -25
- package/components/input-link/src/index.vue.d.ts +219 -63
- package/components/input-number/src/ctx.d.ts +123 -21
- package/components/input-number/src/index.vue.d.ts +468 -93
- package/components/input-tag/src/ctx.d.ts +141 -25
- package/components/input-tag/src/index.vue.d.ts +566 -126
- package/components/monaco-editor/src/ctx.d.ts +43 -8
- package/components/monaco-editor/src/index.vue.d.ts +91 -21
- package/components/radio/index.cjs +2 -3
- package/components/radio/index.mjs +2 -3
- package/components/radio/src/ctx.d.ts +84 -14
- package/components/radio/src/index.vue.d.ts +812 -168
- package/components/select/src/ctx.d.ts +63 -13
- package/components/select/src/index.vue.d.ts +549 -108
- package/components/slider/src/ctx.d.ts +170 -54
- package/components/slider/src/index.vue.d.ts +362 -137
- package/components/switch/src/ctx.d.ts +105 -21
- package/components/switch/src/index.vue.d.ts +453 -117
- package/components/tables-select/src/ctx.d.ts +72 -9
- package/components/tables-select/src/index.vue.d.ts +386 -82
- package/components/templates-element-plus/src/index.vue.d.ts +187 -40
- package/components/templates-layout/src/index.vue.d.ts +337 -64
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/ctx.d.ts +183 -89
- package/components/upload/src/file.vue.d.ts +269 -83
- package/components/upload/src/index.vue.d.ts +1246 -632
- package/components/upload-plus/index.cjs +79 -86
- package/components/upload-plus/index.mjs +79 -86
- package/components/upload-plus/src/ctx.d.ts +43 -8
- package/components/upload-plus/src/index.vue.d.ts +1008 -283
- package/components/van-cascader/src/ctx.d.ts +181 -44
- package/components/van-cascader/src/index.vue.d.ts +1532 -324
- package/components/var-datetime-picker/src/ctx.d.ts +43 -8
- package/components/var-datetime-picker/src/index.vue.d.ts +932 -190
- package/components/vditor/src/ctx.d.ts +43 -8
- package/components/vditor/src/index.vue.d.ts +91 -21
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +111 -30
- package/shared/element-plus/instances.d.ts +140 -28
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var formItem = require('@vunk/form/components/form-item');
|
|
7
|
-
var elementPlus = require('element-plus');
|
|
8
7
|
var form = require('@vunk/form');
|
|
9
8
|
var composables = require('@vunk/core/composables');
|
|
10
9
|
var formItemRenderer = require('@vunk/form/components/form-item-renderer');
|
|
@@ -13,6 +12,7 @@ var rendererData = require('@vunk/form/components/renderer-data');
|
|
|
13
12
|
var core = require('@vunk/core');
|
|
14
13
|
var avatar = require('@vunk/plus/components/avatar');
|
|
15
14
|
var index = require('../index2.cjs');
|
|
15
|
+
var text = require('@vunk/plus/components/text');
|
|
16
16
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
17
17
|
|
|
18
18
|
const props = {
|
|
@@ -44,6 +44,14 @@ const props = {
|
|
|
44
44
|
edit: {
|
|
45
45
|
type: Object,
|
|
46
46
|
default: void 0
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* @description 文本属性
|
|
50
|
+
* @link https://element-plus.org/zh-CN/component/text.html
|
|
51
|
+
*/
|
|
52
|
+
textProps: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: () => ({})
|
|
47
55
|
}
|
|
48
56
|
};
|
|
49
57
|
const emits = {
|
|
@@ -151,9 +159,6 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
151
159
|
get VkfFormItem() {
|
|
152
160
|
return formItem.VkfFormItem;
|
|
153
161
|
},
|
|
154
|
-
get ElText() {
|
|
155
|
-
return elementPlus.ElText;
|
|
156
|
-
},
|
|
157
162
|
get VkfFormItemRenderer() {
|
|
158
163
|
return formItemRenderer.VkfFormItemRenderer;
|
|
159
164
|
},
|
|
@@ -171,6 +176,9 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
171
176
|
},
|
|
172
177
|
get Select() {
|
|
173
178
|
return index.select_default;
|
|
179
|
+
},
|
|
180
|
+
get VkText() {
|
|
181
|
+
return text.VkText;
|
|
174
182
|
}
|
|
175
183
|
};
|
|
176
184
|
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
@@ -189,17 +197,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
197
|
{
|
|
190
198
|
default: vue.withCtx(() => [
|
|
191
199
|
vue.renderSlot(_ctx.$slots, "text", { handleEdit: $setup.handleEdit }, () => [
|
|
192
|
-
vue.createVNode(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
vue.createVNode(
|
|
201
|
+
$setup["VkText"],
|
|
202
|
+
vue.mergeProps(_ctx.textProps, { onDblclick: $setup.handleEdit }),
|
|
203
|
+
{
|
|
204
|
+
default: vue.withCtx(() => [
|
|
205
|
+
vue.createTextVNode(
|
|
206
|
+
vue.toDisplayString(_ctx.modelValue),
|
|
207
|
+
1
|
|
208
|
+
/* TEXT */
|
|
209
|
+
)
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
/* STABLE */
|
|
213
|
+
},
|
|
214
|
+
16
|
|
215
|
+
/* FULL_PROPS */
|
|
216
|
+
)
|
|
203
217
|
])
|
|
204
218
|
]),
|
|
205
219
|
_: 3
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useId, computed, ref, nextTick, openBlock, createBlock, normalizeProps, mergeProps, withCtx, renderSlot, createVNode, createTextVNode, toDisplayString, createElementVNode } from 'vue';
|
|
2
2
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
3
|
-
import { ElText } from 'element-plus';
|
|
4
3
|
import { useComputedReadonly } from '@vunk/form';
|
|
5
4
|
import { useModelComputed } from '@vunk/core/composables';
|
|
6
5
|
import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
|
|
@@ -9,6 +8,7 @@ import { VkfRendererData } from '@vunk/form/components/renderer-data';
|
|
|
9
8
|
import { setData } from '@vunk/core';
|
|
10
9
|
import { VkAvatar } from '@vunk/plus/components/avatar';
|
|
11
10
|
import { a as close_bold_default, s as select_default } from '../index2.mjs';
|
|
11
|
+
import { VkText } from '@vunk/plus/components/text';
|
|
12
12
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
13
13
|
|
|
14
14
|
const props = {
|
|
@@ -40,6 +40,14 @@ const props = {
|
|
|
40
40
|
edit: {
|
|
41
41
|
type: Object,
|
|
42
42
|
default: void 0
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @description 文本属性
|
|
46
|
+
* @link https://element-plus.org/zh-CN/component/text.html
|
|
47
|
+
*/
|
|
48
|
+
textProps: {
|
|
49
|
+
type: Object,
|
|
50
|
+
default: () => ({})
|
|
43
51
|
}
|
|
44
52
|
};
|
|
45
53
|
const emits = {
|
|
@@ -147,9 +155,6 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
147
155
|
get VkfFormItem() {
|
|
148
156
|
return VkfFormItem;
|
|
149
157
|
},
|
|
150
|
-
get ElText() {
|
|
151
|
-
return ElText;
|
|
152
|
-
},
|
|
153
158
|
get VkfFormItemRenderer() {
|
|
154
159
|
return VkfFormItemRenderer;
|
|
155
160
|
},
|
|
@@ -167,6 +172,9 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
167
172
|
},
|
|
168
173
|
get Select() {
|
|
169
174
|
return select_default;
|
|
175
|
+
},
|
|
176
|
+
get VkText() {
|
|
177
|
+
return VkText;
|
|
170
178
|
}
|
|
171
179
|
};
|
|
172
180
|
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
@@ -185,17 +193,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
185
193
|
{
|
|
186
194
|
default: withCtx(() => [
|
|
187
195
|
renderSlot(_ctx.$slots, "text", { handleEdit: $setup.handleEdit }, () => [
|
|
188
|
-
createVNode(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
createVNode(
|
|
197
|
+
$setup["VkText"],
|
|
198
|
+
mergeProps(_ctx.textProps, { onDblclick: $setup.handleEdit }),
|
|
199
|
+
{
|
|
200
|
+
default: withCtx(() => [
|
|
201
|
+
createTextVNode(
|
|
202
|
+
toDisplayString(_ctx.modelValue),
|
|
203
|
+
1
|
|
204
|
+
/* TEXT */
|
|
205
|
+
)
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
/* STABLE */
|
|
209
|
+
},
|
|
210
|
+
16
|
|
211
|
+
/* FULL_PROPS */
|
|
212
|
+
)
|
|
199
213
|
])
|
|
200
214
|
]),
|
|
201
215
|
_: 3
|
|
@@ -27,7 +27,22 @@ export declare const props: {
|
|
|
27
27
|
type: ObjectConstructor;
|
|
28
28
|
default: any;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @description 文本属性
|
|
32
|
+
* @link https://element-plus.org/zh-CN/component/text.html
|
|
33
|
+
*/
|
|
34
|
+
textProps: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
default: () => {};
|
|
37
|
+
};
|
|
38
|
+
required: {
|
|
39
|
+
readonly type: import("vue").PropType<boolean>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
+
__epPropKey: true;
|
|
43
|
+
} & {
|
|
44
|
+
readonly default: undefined;
|
|
45
|
+
};
|
|
31
46
|
formItemSize: {
|
|
32
47
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
33
48
|
default: "default" | "small" | "large";
|
|
@@ -58,30 +73,58 @@ export declare const props: {
|
|
|
58
73
|
default: boolean;
|
|
59
74
|
};
|
|
60
75
|
label: StringConstructor;
|
|
61
|
-
labelWidth:
|
|
62
|
-
|
|
76
|
+
labelWidth: {
|
|
77
|
+
readonly type: import("vue").PropType<string | number>;
|
|
78
|
+
readonly required: false;
|
|
79
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
|
+
__epPropKey: true;
|
|
81
|
+
} & {
|
|
82
|
+
readonly default: "";
|
|
83
|
+
};
|
|
84
|
+
labelPosition: {
|
|
85
|
+
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
} & {
|
|
90
|
+
readonly default: "";
|
|
91
|
+
};
|
|
63
92
|
prop: {
|
|
64
|
-
readonly type: import("vue").PropType<import("element-plus
|
|
93
|
+
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
65
94
|
readonly required: false;
|
|
66
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
96
|
__epPropKey: true;
|
|
68
97
|
};
|
|
69
98
|
rules: {
|
|
70
|
-
readonly type: import("vue").PropType<
|
|
99
|
+
readonly type: import("vue").PropType<unknown>;
|
|
71
100
|
readonly required: false;
|
|
72
101
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
102
|
__epPropKey: true;
|
|
74
103
|
};
|
|
75
104
|
error: StringConstructor;
|
|
76
105
|
validateStatus: {
|
|
77
|
-
readonly type: import("vue").PropType<
|
|
106
|
+
readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
|
|
78
107
|
readonly required: false;
|
|
79
108
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
109
|
__epPropKey: true;
|
|
81
110
|
};
|
|
82
111
|
for: StringConstructor;
|
|
83
|
-
inlineMessage:
|
|
84
|
-
|
|
112
|
+
inlineMessage: {
|
|
113
|
+
readonly type: import("vue").PropType<string | boolean>;
|
|
114
|
+
readonly required: false;
|
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
|
+
__epPropKey: true;
|
|
117
|
+
} & {
|
|
118
|
+
readonly default: "";
|
|
119
|
+
};
|
|
120
|
+
showMessage: {
|
|
121
|
+
readonly type: import("vue").PropType<boolean>;
|
|
122
|
+
readonly required: false;
|
|
123
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
|
+
__epPropKey: true;
|
|
125
|
+
} & {
|
|
126
|
+
readonly default: true;
|
|
127
|
+
};
|
|
85
128
|
};
|
|
86
129
|
export declare const emits: {
|
|
87
130
|
'update:editable': any;
|