@vunk/form 1.1.64 → 1.1.66
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/component.d.ts +1 -1
- package/components/button/index.css +1 -0
- package/components/button/index.d.ts +1 -1
- package/components/button/index.js +43 -57
- package/components/button/src/ctx.d.ts +13 -13
- package/components/button/src/ctx.js +1 -39
- package/components/button/src/index.css +1 -0
- package/components/button/src/index.vue.d.ts +37 -73
- package/components/button/src/types.d.ts +1 -1
- package/components/cascader/index.css +1 -0
- package/components/cascader/index.d.ts +1 -1
- package/components/cascader/index.js +34 -49
- package/components/cascader/src/ctx.d.ts +15 -15
- package/components/cascader/src/ctx.js +1 -38
- package/components/cascader/src/index.css +1 -0
- package/components/cascader/src/index.vue.d.ts +45 -70
- package/components/cascader/src/use.d.ts +1 -1
- package/components/cascader/src/use.js +1 -28
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/checkbox/index.js +48 -53
- package/components/checkbox/src/ctx.d.ts +14 -14
- package/components/checkbox/src/ctx.js +1 -46
- package/components/checkbox/src/index.css +1 -0
- package/components/checkbox/src/index.vue.d.ts +43 -63
- package/components/color-picker/index.css +1 -0
- package/components/color-picker/index.d.ts +1 -1
- package/components/color-picker/index.js +38 -42
- package/components/color-picker/src/ctx.d.ts +15 -13
- package/components/color-picker/src/ctx.js +1 -23
- package/components/color-picker/src/index.css +1 -0
- package/components/color-picker/src/index.vue.d.ts +36 -65
- package/components/date-picker/index.css +1 -0
- package/components/date-picker/index.d.ts +1 -1
- package/components/date-picker/index.js +42 -55
- package/components/date-picker/src/ctx.d.ts +41 -34
- package/components/date-picker/src/ctx.js +1 -31
- package/components/date-picker/src/index.css +1 -0
- package/components/date-picker/src/index.vue.d.ts +122 -133
- package/components/date-picker/src/types.d.ts +9 -9
- package/components/date-picker/src/types.js +1 -11
- package/components/esri-input-geojson/index.css +8 -6
- package/components/esri-input-geojson/index.d.ts +1 -1
- package/components/esri-input-geojson/index.js +417 -535
- package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/const.js +1 -33
- package/components/esri-input-geojson/src/ctx.d.ts +44 -35
- package/components/esri-input-geojson/src/ctx.js +1 -128
- package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
- package/components/esri-input-geojson/src/index.css +1 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
- package/components/form/index.css +1 -0
- package/components/form/index.d.ts +1 -1
- package/components/form/index.js +57 -87
- package/components/form/src/ctx.d.ts +176 -204
- package/components/form/src/ctx.js +1 -61
- package/components/form/src/index.css +1 -0
- package/components/form/src/index.vue.d.ts +515 -601
- package/components/form/src/types.d.ts +3 -3
- package/components/form/src/utils.d.ts +1 -1
- package/components/form/src/utils.js +1 -55
- package/components/form-item/index.css +1 -0
- package/components/form-item/index.d.ts +1 -1
- package/components/form-item/index.js +22 -50
- package/components/form-item/src/ctx.d.ts +9 -9
- package/components/form-item/src/ctx.js +1 -53
- package/components/form-item/src/index.css +1 -0
- package/components/form-item/src/index.vue.d.ts +26 -26
- package/components/form-item/src/types.d.ts +1 -1
- package/components/form-item-renderer/index.css +1 -0
- package/components/form-item-renderer/index.d.ts +1 -1
- package/components/form-item-renderer/index.js +10 -18
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/ctx.js +1 -16
- package/components/form-item-renderer/src/index.css +1 -0
- package/components/form-item-renderer/src/index.vue.d.ts +9 -9
- package/components/form-item-renderer/src/symbols.js +1 -3
- package/components/form-item-renderer-template/index.css +1 -0
- package/components/form-item-renderer-template/index.d.ts +1 -1
- package/components/form-item-renderer-template/index.js +6 -13
- package/components/form-item-renderer-template/src/ctx.js +1 -9
- package/components/form-item-renderer-template/src/index.css +1 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
- package/components/geoinput/index.css +1 -0
- package/components/geoinput/index.d.ts +1 -1
- package/components/geoinput/index.js +45 -43
- package/components/geoinput/src/ctx.d.ts +42 -28
- package/components/geoinput/src/ctx.js +1 -39
- package/components/geoinput/src/index.css +1 -0
- package/components/geoinput/src/index.vue.d.ts +111 -223
- package/components/geoinput/src/types.d.ts +3 -3
- package/components/geoinput-read/index.css +1 -0
- package/components/geoinput-read/index.d.ts +1 -1
- package/components/geoinput-read/index.js +120 -160
- package/components/geoinput-read/src/append.vue.d.ts +4 -4
- package/components/geoinput-read/src/core.vue.d.ts +130 -104
- package/components/geoinput-read/src/ctx.d.ts +42 -30
- package/components/geoinput-read/src/ctx.js +1 -66
- package/components/geoinput-read/src/index.css +1 -0
- package/components/geoinput-read/src/index.vue.d.ts +108 -151
- package/components/geoinput-read/src/types.d.ts +1 -1
- package/components/geoinput-update/index.css +9 -7
- package/components/geoinput-update/index.d.ts +1 -1
- package/components/geoinput-update/index.js +335 -366
- package/components/geoinput-update/src/append.vue.d.ts +5 -5
- package/components/geoinput-update/src/ctx.d.ts +38 -28
- package/components/geoinput-update/src/ctx.js +1 -85
- package/components/geoinput-update/src/index.css +1 -0
- package/components/geoinput-update/src/index.vue.d.ts +120 -98
- package/components/geoinput-update/src/types.d.ts +2 -2
- package/components/input/index.css +1 -0
- package/components/input/index.d.ts +1 -1
- package/components/input/index.js +43 -60
- package/components/input/src/ctx.d.ts +31 -25
- package/components/input/src/ctx.js +1 -46
- package/components/input/src/index.css +1 -0
- package/components/input/src/index.vue.d.ts +94 -110
- package/components/input/src/types.d.ts +2 -2
- package/components/input-link/index.css +1 -0
- package/components/input-link/index.d.ts +1 -1
- package/components/input-link/index.js +71 -92
- package/components/input-link/src/ctx.d.ts +26 -20
- package/components/input-link/src/ctx.js +1 -66
- package/components/input-link/src/index.css +1 -0
- package/components/input-link/src/index.vue.d.ts +72 -116
- package/components/input-number/index.css +1 -0
- package/components/input-number/index.d.ts +1 -1
- package/components/input-number/index.js +37 -45
- package/components/input-number/src/ctx.d.ts +15 -15
- package/components/input-number/src/ctx.js +1 -38
- package/components/input-number/src/index.css +1 -0
- package/components/input-number/src/index.vue.d.ts +42 -65
- package/components/input-number/src/types.d.ts +1 -1
- package/components/radio/index.css +1 -0
- package/components/radio/index.d.ts +1 -1
- package/components/radio/index.js +45 -50
- package/components/radio/src/ctx.d.ts +11 -11
- package/components/radio/src/ctx.js +1 -39
- package/components/radio/src/index.css +1 -0
- package/components/radio/src/index.vue.d.ts +41 -60
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/index.css +1 -0
- package/components/select/index.d.ts +1 -1
- package/components/select/index.js +59 -64
- package/components/select/src/ctx.d.ts +39 -41
- package/components/select/src/ctx.js +1 -40
- package/components/select/src/index.css +1 -0
- package/components/select/src/index.vue.d.ts +130 -162
- package/components/select/src/types.d.ts +2 -2
- package/components/slider/index.css +1 -0
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +33 -50
- package/components/slider/src/ctx.d.ts +18 -18
- package/components/slider/src/ctx.js +1 -29
- package/components/slider/src/index.css +1 -0
- package/components/slider/src/index.vue.d.ts +62 -81
- package/components/switch/index.css +1 -0
- package/components/switch/index.d.ts +1 -1
- package/components/switch/index.js +33 -50
- package/components/switch/src/ctx.d.ts +22 -22
- package/components/switch/src/ctx.js +1 -31
- package/components/switch/src/index.css +1 -0
- package/components/switch/src/index.vue.d.ts +65 -83
- package/components/switch/src/types.d.ts +1 -1
- package/components/templates-default/index.css +1 -0
- package/components/templates-default/index.d.ts +1 -1
- package/components/templates-default/index.js +243 -172
- package/components/templates-default/src/ctx.d.ts +1 -1
- package/components/templates-default/src/ctx.js +1 -18
- package/components/templates-default/src/index.css +1 -0
- package/components/templates-default/src/index.vue.d.ts +9 -9
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-element-plus/index.css +1 -0
- package/components/templates-element-plus/index.d.ts +1 -1
- package/components/templates-element-plus/index.js +66 -36
- package/components/templates-element-plus/src/ctx.js +1 -9
- package/components/templates-element-plus/src/index.css +1 -0
- package/components/templates-element-plus/src/index.vue.d.ts +7 -7
- package/components/templates-element-plus/src/types.d.ts +1 -1
- package/components/templates-esri/index.css +1 -0
- package/components/templates-esri/index.d.ts +1 -1
- package/components/templates-esri/index.js +25 -24
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/ctx.js +1 -11
- package/components/templates-esri/src/index.css +1 -0
- package/components/templates-esri/src/index.vue.d.ts +6 -6
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-layout/index.css +1 -0
- package/components/templates-layout/index.d.ts +1 -1
- package/components/templates-layout/index.js +96 -63
- package/components/templates-layout/src/ctx.js +1 -9
- package/components/templates-layout/src/index.css +1 -0
- package/components/templates-layout/src/index.vue.d.ts +7 -7
- package/components/templates-layout/src/types.d.ts +3 -3
- package/components/templates-mapbox/index.css +1 -0
- package/components/templates-mapbox/index.d.ts +1 -1
- package/components/templates-mapbox/index.js +25 -24
- package/components/templates-mapbox/src/ctx.d.ts +1 -1
- package/components/templates-mapbox/src/ctx.js +1 -11
- package/components/templates-mapbox/src/index.css +1 -0
- package/components/templates-mapbox/src/index.vue.d.ts +6 -6
- package/components/templates-mapbox/src/types.d.ts +1 -1
- package/components/upload/index.css +11 -9
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.js +264 -289
- package/components/upload/src/ctx.d.ts +21 -16
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +19 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +54 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +912 -9540
- package/components/upload-plus/src/api.d.ts +3 -3
- package/components/upload-plus/src/api.js +21 -18114
- package/components/upload-plus/src/const.js +1 -12
- package/components/upload-plus/src/ctx.d.ts +13 -13
- package/components/upload-plus/src/ctx.js +1 -58
- package/components/upload-plus/src/index.css +1 -0
- package/components/upload-plus/src/index.vue.d.ts +31 -48
- package/components/upload-plus/src/types.d.ts +1 -1
- package/components/van-cascader/index.css +1 -0
- package/components/van-cascader/index.d.ts +1 -1
- package/components/van-cascader/index.js +47 -55
- package/components/van-cascader/src/ctx.d.ts +13 -13
- package/components/van-cascader/src/ctx.js +1 -22
- package/components/van-cascader/src/index.css +1 -0
- package/components/van-cascader/src/index.vue.d.ts +40 -57
- package/components/var-datetime-picker/index.css +1 -0
- package/components/var-datetime-picker/index.d.ts +1 -1
- package/components/var-datetime-picker/index.js +137 -168
- package/components/var-datetime-picker/src/const.js +1 -91
- package/components/var-datetime-picker/src/ctx.d.ts +10 -10
- package/components/var-datetime-picker/src/ctx.js +1 -43
- package/components/var-datetime-picker/src/index.css +1 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
- package/components/var-datetime-picker/src/types.d.ts +1 -1
- package/components/vditor/index.css +1 -0
- package/components/vditor/index.d.ts +1 -1
- package/components/vditor/index.js +22 -17
- package/components/vditor/src/ctx.js +1 -15
- package/components/vditor/src/index.css +1 -0
- package/components/vditor/src/index.vue.d.ts +4 -3
- package/components/vditor/src/types.d.ts +1 -1
- package/composables/index.css +1 -0
- package/composables/index.js +1 -104
- package/composables/useForm.d.ts +2 -2
- package/composables/useSourceManager.d.ts +1 -1
- package/index.css +127 -20
- package/index.esm.js +1 -44
- package/package.json +1 -1
- package/shared/const/index.css +1 -0
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.js +1 -56
- package/shared/element-plus/ctx.d.ts +28 -26
- package/shared/element-plus/index.css +1 -0
- package/shared/element-plus/index.js +1 -220
- package/shared/element-plus/instances.d.ts +45 -38
- package/shared/form/index.css +1 -0
- package/shared/form/index.js +1 -30
- package/shared/helper/index.css +1 -0
- package/shared/helper/index.js +1 -9
- package/shared/index.css +1 -0
- package/shared/index.js +1 -56
- package/shared/infer-prop/index.css +1 -0
- package/shared/infer-prop/index.d.ts +1 -1
- package/shared/infer-prop/index.js +1 -34
- package/shared/progress-it/index.css +1 -0
- package/shared/progress-it/index.d.ts +4 -4
- package/shared/progress-it/index.js +1 -57
- package/shared/rules/index.css +1 -0
- package/shared/rules/index.js +1 -32
- package/shared/types/form/index.css +1 -0
- package/shared/types/index.css +1 -0
- package/shared/types/source/index.css +1 -0
- package/shared/types/source/index.d.ts +2 -2
- package/shared/types/source-manager/index.css +1 -0
- package/shared/upload/index.css +1 -0
- package/shared/upload/index.js +1 -767
|
@@ -4,42 +4,19 @@ import { defineComponent, resolveComponent, openBlock, createBlock, normalizePro
|
|
|
4
4
|
import { createSwitchBindProps, createSwitchOnEmits } from '@vunk/form/shared/element-plus';
|
|
5
5
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
-
var __spreadValues = (a, b) => {
|
|
15
|
-
for (var prop in b || (b = {}))
|
|
16
|
-
if (__hasOwnProp.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
if (__getOwnPropSymbols)
|
|
19
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
20
|
-
if (__propIsEnum.call(b, prop))
|
|
21
|
-
__defNormalProp(a, prop, b[prop]);
|
|
22
|
-
}
|
|
23
|
-
return a;
|
|
24
|
-
};
|
|
25
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), switchProps), {
|
|
7
|
+
const props = {
|
|
8
|
+
..._VkfFormItemCtx.props,
|
|
9
|
+
...switchProps,
|
|
27
10
|
modelValue: null,
|
|
28
11
|
defaultModelValue: {
|
|
29
12
|
default: false
|
|
30
13
|
}
|
|
31
|
-
}
|
|
32
|
-
const emits =
|
|
33
|
-
|
|
34
|
-
var _export_sfc = (sfc, props) => {
|
|
35
|
-
const target = sfc.__vccOpts || sfc;
|
|
36
|
-
for (const [key, val] of props) {
|
|
37
|
-
target[key] = val;
|
|
38
|
-
}
|
|
39
|
-
return target;
|
|
14
|
+
};
|
|
15
|
+
const emits = {
|
|
16
|
+
...switchEmits
|
|
40
17
|
};
|
|
41
18
|
|
|
42
|
-
|
|
19
|
+
var script = defineComponent({
|
|
43
20
|
name: "VkfSwitch",
|
|
44
21
|
components: {
|
|
45
22
|
ElSwitch,
|
|
@@ -47,12 +24,11 @@ const _sfc_main = defineComponent({
|
|
|
47
24
|
},
|
|
48
25
|
emits,
|
|
49
26
|
props,
|
|
50
|
-
setup(props2, {
|
|
27
|
+
setup(props2, {
|
|
28
|
+
emit
|
|
29
|
+
}) {
|
|
51
30
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
52
|
-
const switchBindProps = createSwitchBindProps(props2, [
|
|
53
|
-
"modelValue",
|
|
54
|
-
"disabled"
|
|
55
|
-
]);
|
|
31
|
+
const switchBindProps = createSwitchBindProps(props2, ["modelValue", "disabled"]);
|
|
56
32
|
const switchOnEmits = createSwitchOnEmits(emit);
|
|
57
33
|
const readonly = useComputedReadonly(props2);
|
|
58
34
|
return {
|
|
@@ -63,12 +39,15 @@ const _sfc_main = defineComponent({
|
|
|
63
39
|
};
|
|
64
40
|
}
|
|
65
41
|
});
|
|
66
|
-
|
|
42
|
+
|
|
43
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
67
44
|
const _component_ElSwitch = resolveComponent("ElSwitch");
|
|
68
45
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
69
|
-
return openBlock(), createBlock(
|
|
70
|
-
|
|
71
|
-
|
|
46
|
+
return openBlock(), createBlock(
|
|
47
|
+
_component_VkfFormItem,
|
|
48
|
+
normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
|
|
49
|
+
{
|
|
50
|
+
default: withCtx(() => [createVNode(_component_ElSwitch, mergeProps({
|
|
72
51
|
class: {
|
|
73
52
|
"is-readonly": _ctx.readonly
|
|
74
53
|
},
|
|
@@ -76,23 +55,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
55
|
}, _ctx.switchBindProps, toHandlers(_ctx.switchOnEmits), {
|
|
77
56
|
disabled: _ctx.readonly || _ctx.disabled
|
|
78
57
|
}), {
|
|
79
|
-
default: withCtx(() => [
|
|
80
|
-
renderSlot(_ctx.$slots, "default")
|
|
81
|
-
]),
|
|
58
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
82
59
|
_: 3
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
/* FORWARDED */
|
|
61
|
+
}, 16, ["class", "modelValue", "disabled"])]),
|
|
62
|
+
_: 3
|
|
63
|
+
/* FORWARDED */
|
|
64
|
+
},
|
|
65
|
+
16
|
|
66
|
+
/* FULL_PROPS */
|
|
67
|
+
);
|
|
87
68
|
}
|
|
88
|
-
|
|
69
|
+
|
|
70
|
+
script.render = render;
|
|
71
|
+
script.__file = "switch/src/index.vue";
|
|
89
72
|
|
|
90
73
|
var types = /*#__PURE__*/Object.freeze({
|
|
91
74
|
__proto__: null
|
|
92
75
|
});
|
|
93
76
|
|
|
94
|
-
|
|
95
|
-
app.component(
|
|
77
|
+
script.install = (app) => {
|
|
78
|
+
app.component(script.name, script);
|
|
96
79
|
};
|
|
97
80
|
|
|
98
|
-
export { VkfSwitch, types as __VkfSwitch,
|
|
81
|
+
export { script as VkfSwitch, types as __VkfSwitch, script as default };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
export declare const props: {
|
|
2
|
-
modelValue:
|
|
2
|
+
modelValue: any;
|
|
3
3
|
defaultModelValue: {
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
6
|
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
7
7
|
loading: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
8
8
|
size: {
|
|
9
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
9
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => "" | "default" | "small" | "large") | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
|
|
10
10
|
readonly required: false;
|
|
11
|
-
readonly validator: (
|
|
11
|
+
readonly validator: (val: unknown) => boolean;
|
|
12
12
|
__epPropKey: true;
|
|
13
13
|
};
|
|
14
14
|
width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
15
15
|
inlinePrompt: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
16
16
|
inactiveActionIcon: {
|
|
17
|
-
readonly type: import("vue").PropType<
|
|
17
|
+
readonly type: import("vue").PropType<unknown>;
|
|
18
18
|
readonly required: false;
|
|
19
|
-
readonly validator: (
|
|
19
|
+
readonly validator: (val: unknown) => boolean;
|
|
20
20
|
__epPropKey: true;
|
|
21
21
|
};
|
|
22
22
|
activeActionIcon: {
|
|
23
|
-
readonly type: import("vue").PropType<
|
|
23
|
+
readonly type: import("vue").PropType<unknown>;
|
|
24
24
|
readonly required: false;
|
|
25
|
-
readonly validator: (
|
|
25
|
+
readonly validator: (val: unknown) => boolean;
|
|
26
26
|
__epPropKey: true;
|
|
27
27
|
};
|
|
28
28
|
activeIcon: {
|
|
29
|
-
readonly type: import("vue").PropType<
|
|
29
|
+
readonly type: import("vue").PropType<unknown>;
|
|
30
30
|
readonly required: false;
|
|
31
|
-
readonly validator: (
|
|
31
|
+
readonly validator: (val: unknown) => boolean;
|
|
32
32
|
__epPropKey: true;
|
|
33
33
|
};
|
|
34
34
|
inactiveIcon: {
|
|
35
|
-
readonly type: import("vue").PropType<
|
|
35
|
+
readonly type: import("vue").PropType<unknown>;
|
|
36
36
|
readonly required: false;
|
|
37
|
-
readonly validator: (
|
|
37
|
+
readonly validator: (val: unknown) => boolean;
|
|
38
38
|
__epPropKey: true;
|
|
39
39
|
};
|
|
40
40
|
activeText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -49,37 +49,37 @@ export declare const props: {
|
|
|
49
49
|
beforeChange: {
|
|
50
50
|
readonly type: import("vue").PropType<() => boolean | Promise<boolean>>;
|
|
51
51
|
readonly required: false;
|
|
52
|
-
readonly validator: (
|
|
52
|
+
readonly validator: (val: unknown) => boolean;
|
|
53
53
|
__epPropKey: true;
|
|
54
54
|
};
|
|
55
55
|
id: StringConstructor;
|
|
56
56
|
tabindex: {
|
|
57
57
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
58
58
|
readonly required: false;
|
|
59
|
-
readonly validator: (
|
|
59
|
+
readonly validator: (val: unknown) => boolean;
|
|
60
60
|
__epPropKey: true;
|
|
61
61
|
};
|
|
62
62
|
value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
63
|
-
|
|
64
|
-
label: StringConstructor;
|
|
63
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
65
64
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
66
65
|
prop: {
|
|
67
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
66
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
68
67
|
readonly required: false;
|
|
69
|
-
readonly validator: (
|
|
68
|
+
readonly validator: (val: unknown) => boolean;
|
|
70
69
|
__epPropKey: true;
|
|
71
70
|
};
|
|
71
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
72
72
|
rules: {
|
|
73
|
-
readonly type: import("vue").PropType<
|
|
73
|
+
readonly type: import("vue").PropType<unknown>;
|
|
74
74
|
readonly required: false;
|
|
75
|
-
readonly validator: (
|
|
75
|
+
readonly validator: (val: unknown) => boolean;
|
|
76
76
|
__epPropKey: true;
|
|
77
77
|
};
|
|
78
78
|
error: StringConstructor;
|
|
79
79
|
validateStatus: {
|
|
80
80
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
81
81
|
readonly required: false;
|
|
82
|
-
readonly validator: (
|
|
82
|
+
readonly validator: (val: unknown) => boolean;
|
|
83
83
|
__epPropKey: true;
|
|
84
84
|
};
|
|
85
85
|
for: StringConstructor;
|
|
@@ -91,7 +91,7 @@ export declare const props: {
|
|
|
91
91
|
};
|
|
92
92
|
formItemSlots: {
|
|
93
93
|
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
94
|
-
default:
|
|
94
|
+
default: any;
|
|
95
95
|
};
|
|
96
96
|
elRef: {
|
|
97
97
|
type: import("vue").PropType<any>;
|
|
@@ -103,7 +103,7 @@ export declare const props: {
|
|
|
103
103
|
};
|
|
104
104
|
readonly: {
|
|
105
105
|
type: BooleanConstructor;
|
|
106
|
-
default:
|
|
106
|
+
default: any;
|
|
107
107
|
};
|
|
108
108
|
labelPosition: {
|
|
109
109
|
type: import("vue").PropType<"right">;
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
3
|
-
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __defProps = Object.defineProperties;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __spreadValues = (a, b) => {
|
|
12
|
-
for (var prop in b || (b = {}))
|
|
13
|
-
if (__hasOwnProp.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
if (__getOwnPropSymbols)
|
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
-
if (__propIsEnum.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
}
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), switchProps), {
|
|
24
|
-
modelValue: null,
|
|
25
|
-
defaultModelValue: {
|
|
26
|
-
default: false
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const emits = __spreadValues({}, switchEmits);
|
|
30
|
-
|
|
31
|
-
export { emits, props };
|
|
1
|
+
import{switchProps as o,switchEmits as t}from"element-plus";import{_VkfFormItemCtx as e}from"@vunk/form/components/form-item";const s={...e.props,...o,modelValue:null,defaultModelValue:{default:!1}},l={...t};export{l as emits,s as props};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|