@vunk/form 2.2.0 → 2.2.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/card-input-collection/src/types.d.ts +7 -1
- package/components/form/index.cjs +3 -3
- package/components/form/index.mjs +3 -3
- package/components/tables-select/index.cjs +10 -5
- package/components/tables-select/index.mjs +11 -6
- package/components/tables-select/src/ctx.d.ts +4 -0
- package/components/tables-select/src/index.vue.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { VueComponentPropsType } from '@vunk/shared';
|
|
2
|
+
import Core from './index.vue';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
+
export interface Source<P extends string = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
5
|
+
prop?: P | P[];
|
|
6
|
+
templateType: 'VkfCardInputCollection';
|
|
7
|
+
}
|
|
@@ -221,12 +221,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
221
221
|
]),
|
|
222
222
|
_: 1
|
|
223
223
|
/* STABLE */
|
|
224
|
-
}, 8, ["data"])
|
|
224
|
+
}, 8, ["data"]),
|
|
225
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
225
226
|
]),
|
|
226
227
|
_: 3
|
|
227
228
|
/* FORWARDED */
|
|
228
|
-
}, 8, ["inherit-templates"])
|
|
229
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
229
|
+
}, 8, ["inherit-templates"])
|
|
230
230
|
]),
|
|
231
231
|
_: 3
|
|
232
232
|
/* FORWARDED */
|
|
@@ -217,12 +217,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
219
219
|
/* STABLE */
|
|
220
|
-
}, 8, ["data"])
|
|
220
|
+
}, 8, ["data"]),
|
|
221
|
+
renderSlot(_ctx.$slots, "default")
|
|
221
222
|
]),
|
|
222
223
|
_: 3
|
|
223
224
|
/* FORWARDED */
|
|
224
|
-
}, 8, ["inherit-templates"])
|
|
225
|
-
renderSlot(_ctx.$slots, "default")
|
|
225
|
+
}, 8, ["inherit-templates"])
|
|
226
226
|
]),
|
|
227
227
|
_: 3
|
|
228
228
|
/* FORWARDED */
|
|
@@ -61,7 +61,11 @@ const props = {
|
|
|
61
61
|
readonly: {
|
|
62
62
|
type: Boolean,
|
|
63
63
|
default: void 0
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* @description dialog 样式
|
|
67
|
+
*/
|
|
68
|
+
dialogClass: null
|
|
65
69
|
};
|
|
66
70
|
const emits = {
|
|
67
71
|
...tablesV1Checkbox._VkTablesV1CheckboxCtx.emits
|
|
@@ -194,17 +198,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
194
198
|
title: _ctx.label ?? "\u8BF7\u9009\u62E9",
|
|
195
199
|
"append-to-body": "",
|
|
196
200
|
"model-class": "vkf-tables-select__model",
|
|
197
|
-
class: "vkf-tables-select__dialog"
|
|
201
|
+
class: vue.normalizeClass(["vkf-tables-select__dialog", _ctx.dialogClass])
|
|
198
202
|
}, {
|
|
199
203
|
default: vue.withCtx(() => [
|
|
204
|
+
vue.renderSlot(_ctx.$slots, "dialog"),
|
|
200
205
|
vue.createVNode(_component_VkTablesV1Checkbox, vue.mergeProps(_ctx.tablesProps, {
|
|
201
206
|
modelValue: _ctx.theModelValue,
|
|
202
207
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.theModelValue = $event)
|
|
203
208
|
}, vue.toHandlers(_ctx.tablesEmits)), null, 16, ["modelValue"])
|
|
204
209
|
]),
|
|
205
|
-
_:
|
|
206
|
-
/*
|
|
207
|
-
}, 8, ["modelValue", "title"])
|
|
210
|
+
_: 3
|
|
211
|
+
/* FORWARDED */
|
|
212
|
+
}, 8, ["modelValue", "title", "class"])
|
|
208
213
|
],
|
|
209
214
|
64
|
|
210
215
|
/* STABLE_FRAGMENT */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _VkTablesV1CheckboxCtx, VkTablesV1Checkbox } from '@vunk/plus/components/tables-v1-checkbox';
|
|
2
2
|
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
3
|
-
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, mergeProps, withCtx, toHandlers } from 'vue';
|
|
3
|
+
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, mergeProps, normalizeClass, withCtx, renderSlot, toHandlers } from 'vue';
|
|
4
4
|
import { VkfSelect } from '@vunk/form/components/select';
|
|
5
5
|
import { ElDialog } from 'element-plus';
|
|
6
6
|
import { compareArray } from '@vunk/shared/array';
|
|
@@ -57,7 +57,11 @@ const props = {
|
|
|
57
57
|
readonly: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: void 0
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @description dialog 样式
|
|
63
|
+
*/
|
|
64
|
+
dialogClass: null
|
|
61
65
|
};
|
|
62
66
|
const emits = {
|
|
63
67
|
..._VkTablesV1CheckboxCtx.emits
|
|
@@ -190,17 +194,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
194
|
title: _ctx.label ?? "\u8BF7\u9009\u62E9",
|
|
191
195
|
"append-to-body": "",
|
|
192
196
|
"model-class": "vkf-tables-select__model",
|
|
193
|
-
class: "vkf-tables-select__dialog"
|
|
197
|
+
class: normalizeClass(["vkf-tables-select__dialog", _ctx.dialogClass])
|
|
194
198
|
}, {
|
|
195
199
|
default: withCtx(() => [
|
|
200
|
+
renderSlot(_ctx.$slots, "dialog"),
|
|
196
201
|
createVNode(_component_VkTablesV1Checkbox, mergeProps(_ctx.tablesProps, {
|
|
197
202
|
modelValue: _ctx.theModelValue,
|
|
198
203
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.theModelValue = $event)
|
|
199
204
|
}, toHandlers(_ctx.tablesEmits)), null, 16, ["modelValue"])
|
|
200
205
|
]),
|
|
201
|
-
_:
|
|
202
|
-
/*
|
|
203
|
-
}, 8, ["modelValue", "title"])
|
|
206
|
+
_: 3
|
|
207
|
+
/* FORWARDED */
|
|
208
|
+
}, 8, ["modelValue", "title", "class"])
|
|
204
209
|
],
|
|
205
210
|
64
|
|
206
211
|
/* STABLE_FRAGMENT */
|
|
@@ -32,6 +32,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
32
|
type: BooleanConstructor;
|
|
33
33
|
default: any;
|
|
34
34
|
};
|
|
35
|
+
dialogClass: any;
|
|
35
36
|
oidField: {
|
|
36
37
|
type: StringConstructor;
|
|
37
38
|
default: string;
|
|
@@ -508,6 +509,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
508
509
|
type: BooleanConstructor;
|
|
509
510
|
default: any;
|
|
510
511
|
};
|
|
512
|
+
dialogClass: any;
|
|
511
513
|
oidField: {
|
|
512
514
|
type: StringConstructor;
|
|
513
515
|
default: string;
|
|
@@ -868,6 +870,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
868
870
|
labelField: string;
|
|
869
871
|
getRows: (ids: any[]) => Promise<NormalObject[]>;
|
|
870
872
|
updateWhenCompleted: boolean;
|
|
873
|
+
dialogClass: any;
|
|
871
874
|
}, {}, {
|
|
872
875
|
VkfSelect: {
|
|
873
876
|
new (...args: any[]): any;
|