@vunk/form 1.1.65 → 1.1.67
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 +283 -296
- package/components/upload/src/ctx.d.ts +32 -22
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +28 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +63 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +911 -9539
- 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
|
@@ -5,26 +5,9 @@ import { defineComponent, resolveComponent, openBlock, createBlock, normalizePro
|
|
|
5
5
|
import { createInputBindProps, createInputOnEmits } from '@vunk/form/shared/element-plus';
|
|
6
6
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
12
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
-
var __spreadValues = (a, b) => {
|
|
16
|
-
for (var prop in b || (b = {}))
|
|
17
|
-
if (__hasOwnProp.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
if (__getOwnPropSymbols)
|
|
20
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
-
if (__propIsEnum.call(b, prop))
|
|
22
|
-
__defNormalProp(a, prop, b[prop]);
|
|
23
|
-
}
|
|
24
|
-
return a;
|
|
25
|
-
};
|
|
26
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, inputProps), _VkfFormItemCtx.props), {
|
|
8
|
+
const props = {
|
|
9
|
+
...inputProps,
|
|
10
|
+
..._VkfFormItemCtx.props,
|
|
28
11
|
maxlength: {
|
|
29
12
|
type: Number,
|
|
30
13
|
required: false
|
|
@@ -41,28 +24,22 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, inputProps), _VkfF
|
|
|
41
24
|
type: Number,
|
|
42
25
|
default: void 0
|
|
43
26
|
}
|
|
44
|
-
}
|
|
27
|
+
};
|
|
45
28
|
const createBindProps = bindPropsFactory(props);
|
|
46
|
-
const emits =
|
|
29
|
+
const emits = {
|
|
30
|
+
...inputEmits
|
|
31
|
+
};
|
|
47
32
|
const createOnEmits = onEmitsFactory(emits);
|
|
48
33
|
|
|
49
34
|
var ctx = /*#__PURE__*/Object.freeze({
|
|
50
35
|
__proto__: null,
|
|
51
|
-
props: props,
|
|
52
36
|
createBindProps: createBindProps,
|
|
37
|
+
createOnEmits: createOnEmits,
|
|
53
38
|
emits: emits,
|
|
54
|
-
|
|
39
|
+
props: props
|
|
55
40
|
});
|
|
56
41
|
|
|
57
|
-
var
|
|
58
|
-
const target = sfc.__vccOpts || sfc;
|
|
59
|
-
for (const [key, val] of props) {
|
|
60
|
-
target[key] = val;
|
|
61
|
-
}
|
|
62
|
-
return target;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const _sfc_main = defineComponent({
|
|
42
|
+
var script = defineComponent({
|
|
66
43
|
name: "VkfInput",
|
|
67
44
|
components: {
|
|
68
45
|
ElInput,
|
|
@@ -70,7 +47,9 @@ const _sfc_main = defineComponent({
|
|
|
70
47
|
},
|
|
71
48
|
emits,
|
|
72
49
|
props,
|
|
73
|
-
setup(props2, {
|
|
50
|
+
setup(props2, {
|
|
51
|
+
emit
|
|
52
|
+
}) {
|
|
74
53
|
const inputBindProps = createInputBindProps(props2, ["readonly"]);
|
|
75
54
|
const inputOnEmits = createInputOnEmits(emit);
|
|
76
55
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
@@ -83,43 +62,47 @@ const _sfc_main = defineComponent({
|
|
|
83
62
|
};
|
|
84
63
|
}
|
|
85
64
|
});
|
|
86
|
-
|
|
65
|
+
|
|
66
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
87
67
|
const _component_ElInput = resolveComponent("ElInput");
|
|
88
68
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
89
|
-
return openBlock(), createBlock(
|
|
90
|
-
|
|
91
|
-
|
|
69
|
+
return openBlock(), createBlock(
|
|
70
|
+
_component_VkfFormItem,
|
|
71
|
+
normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
|
|
72
|
+
{
|
|
73
|
+
default: withCtx(() => [createVNode(_component_ElInput, mergeProps({
|
|
92
74
|
maxlength: _ctx.maxlength,
|
|
93
75
|
minlength: _ctx.minlength,
|
|
94
76
|
rows: _ctx.rows
|
|
95
|
-
}, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
]),
|
|
77
|
+
}, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
|
|
78
|
+
readonly: _ctx.readonly
|
|
79
|
+
}), createSlots({
|
|
80
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
99
81
|
_: 2
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}, 16);
|
|
82
|
+
/* DYNAMIC */
|
|
83
|
+
}, [renderList(_ctx.inputSlots, (item, key) => {
|
|
84
|
+
return {
|
|
85
|
+
name: key,
|
|
86
|
+
fn: withCtx((e) => [(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))])
|
|
87
|
+
};
|
|
88
|
+
})]), 1040, ["maxlength", "minlength", "rows", "readonly"]), renderSlot(_ctx.$slots, "formItem")]),
|
|
89
|
+
_: 3
|
|
90
|
+
/* FORWARDED */
|
|
91
|
+
},
|
|
92
|
+
16
|
|
93
|
+
/* FULL_PROPS */
|
|
94
|
+
);
|
|
114
95
|
}
|
|
115
|
-
|
|
96
|
+
|
|
97
|
+
script.render = render;
|
|
98
|
+
script.__file = "input/src/index.vue";
|
|
116
99
|
|
|
117
100
|
var types = /*#__PURE__*/Object.freeze({
|
|
118
101
|
__proto__: null
|
|
119
102
|
});
|
|
120
103
|
|
|
121
|
-
|
|
122
|
-
app.component(
|
|
104
|
+
script.install = (app) => {
|
|
105
|
+
app.component(script.name, script);
|
|
123
106
|
};
|
|
124
107
|
|
|
125
|
-
export { VkfInput, ctx as _VkfInputCtx, types as __VkfInput,
|
|
108
|
+
export { script as VkfInput, ctx as _VkfInputCtx, types as __VkfInput, script as default };
|
|
@@ -11,32 +11,32 @@ export declare const props: {
|
|
|
11
11
|
};
|
|
12
12
|
inputSlots: {
|
|
13
13
|
type: PropType<InputSlots>;
|
|
14
|
-
default:
|
|
14
|
+
default: any;
|
|
15
15
|
};
|
|
16
16
|
rows: {
|
|
17
17
|
type: NumberConstructor;
|
|
18
|
-
default:
|
|
18
|
+
default: any;
|
|
19
19
|
};
|
|
20
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
21
20
|
label: StringConstructor;
|
|
22
21
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
23
22
|
prop: {
|
|
24
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
23
|
+
readonly type: 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>>;
|
|
25
24
|
readonly required: false;
|
|
26
|
-
readonly validator: (
|
|
25
|
+
readonly validator: (val: unknown) => boolean;
|
|
27
26
|
__epPropKey: true;
|
|
28
27
|
};
|
|
28
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
29
29
|
rules: {
|
|
30
|
-
readonly type: PropType<
|
|
30
|
+
readonly type: PropType<unknown>;
|
|
31
31
|
readonly required: false;
|
|
32
|
-
readonly validator: (
|
|
32
|
+
readonly validator: (val: unknown) => boolean;
|
|
33
33
|
__epPropKey: true;
|
|
34
34
|
};
|
|
35
35
|
error: StringConstructor;
|
|
36
36
|
validateStatus: {
|
|
37
37
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
38
38
|
readonly required: false;
|
|
39
|
-
readonly validator: (
|
|
39
|
+
readonly validator: (val: unknown) => boolean;
|
|
40
40
|
__epPropKey: true;
|
|
41
41
|
};
|
|
42
42
|
for: StringConstructor;
|
|
@@ -48,7 +48,7 @@ export declare const props: {
|
|
|
48
48
|
};
|
|
49
49
|
formItemSlots: {
|
|
50
50
|
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
51
|
-
default:
|
|
51
|
+
default: any;
|
|
52
52
|
};
|
|
53
53
|
elRef: {
|
|
54
54
|
type: PropType<any>;
|
|
@@ -60,7 +60,7 @@ export declare const props: {
|
|
|
60
60
|
};
|
|
61
61
|
readonly: {
|
|
62
62
|
type: BooleanConstructor;
|
|
63
|
-
default:
|
|
63
|
+
default: any;
|
|
64
64
|
};
|
|
65
65
|
labelPosition: {
|
|
66
66
|
type: PropType<"right">;
|
|
@@ -70,66 +70,72 @@ export declare const props: {
|
|
|
70
70
|
size: {
|
|
71
71
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
72
72
|
readonly required: false;
|
|
73
|
-
readonly validator: (
|
|
73
|
+
readonly validator: (val: unknown) => boolean;
|
|
74
74
|
__epPropKey: true;
|
|
75
75
|
};
|
|
76
76
|
disabled: BooleanConstructor;
|
|
77
|
-
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
77
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
78
78
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
79
79
|
resize: {
|
|
80
80
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical" | "none" | "both", unknown>>;
|
|
81
81
|
readonly required: false;
|
|
82
|
-
readonly validator: (
|
|
82
|
+
readonly validator: (val: unknown) => boolean;
|
|
83
83
|
__epPropKey: true;
|
|
84
84
|
};
|
|
85
|
-
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
85
|
+
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
86
|
+
minRows?: number;
|
|
87
|
+
maxRows?: number;
|
|
88
|
+
}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => boolean | {
|
|
89
|
+
minRows?: number;
|
|
90
|
+
maxRows?: number;
|
|
91
|
+
}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
86
92
|
autocomplete: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
|
87
93
|
formatter: {
|
|
88
94
|
readonly type: PropType<Function>;
|
|
89
95
|
readonly required: false;
|
|
90
|
-
readonly validator: (
|
|
96
|
+
readonly validator: (val: unknown) => boolean;
|
|
91
97
|
__epPropKey: true;
|
|
92
98
|
};
|
|
93
99
|
parser: {
|
|
94
100
|
readonly type: PropType<Function>;
|
|
95
101
|
readonly required: false;
|
|
96
|
-
readonly validator: (
|
|
102
|
+
readonly validator: (val: unknown) => boolean;
|
|
97
103
|
__epPropKey: true;
|
|
98
104
|
};
|
|
99
105
|
placeholder: {
|
|
100
106
|
readonly type: PropType<string>;
|
|
101
107
|
readonly required: false;
|
|
102
|
-
readonly validator: (
|
|
108
|
+
readonly validator: (val: unknown) => boolean;
|
|
103
109
|
__epPropKey: true;
|
|
104
110
|
};
|
|
105
111
|
form: {
|
|
106
112
|
readonly type: PropType<string>;
|
|
107
113
|
readonly required: false;
|
|
108
|
-
readonly validator: (
|
|
114
|
+
readonly validator: (val: unknown) => boolean;
|
|
109
115
|
__epPropKey: true;
|
|
110
116
|
};
|
|
111
117
|
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
112
118
|
showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
113
119
|
showWordLimit: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
114
120
|
suffixIcon: {
|
|
115
|
-
readonly type: PropType<
|
|
121
|
+
readonly type: PropType<unknown>;
|
|
116
122
|
readonly required: false;
|
|
117
|
-
readonly validator: (
|
|
123
|
+
readonly validator: (val: unknown) => boolean;
|
|
118
124
|
__epPropKey: true;
|
|
119
125
|
};
|
|
120
126
|
prefixIcon: {
|
|
121
|
-
readonly type: PropType<
|
|
127
|
+
readonly type: PropType<unknown>;
|
|
122
128
|
readonly required: false;
|
|
123
|
-
readonly validator: (
|
|
129
|
+
readonly validator: (val: unknown) => boolean;
|
|
124
130
|
__epPropKey: true;
|
|
125
131
|
};
|
|
126
132
|
containerRole: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
127
133
|
tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
128
134
|
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
129
|
-
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").
|
|
135
|
+
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
130
136
|
autofocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
131
137
|
};
|
|
132
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
138
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", 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> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"required", 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<"size", keyof T2>, KE> | Exclude<Extract<"type", 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<"labelPosition", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearable", 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> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> : Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", 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> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: { [k in Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", 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<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", 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> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: T2[k]; }[P]; }>;
|
|
133
139
|
export declare const emits: {
|
|
134
140
|
"update:modelValue": (value: string) => boolean;
|
|
135
141
|
input: (value: string) => boolean;
|
|
@@ -144,7 +150,7 @@ export declare const emits: {
|
|
|
144
150
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
145
151
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
146
152
|
};
|
|
147
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
153
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "input" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear", KE> | Exclude<"input", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"keydown", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> : "clear" | "input" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend"]: {
|
|
148
154
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
149
155
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
150
156
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
3
|
-
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
4
|
-
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __defProps = Object.defineProperties;
|
|
7
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
8
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
-
var __spreadValues = (a, b) => {
|
|
13
|
-
for (var prop in b || (b = {}))
|
|
14
|
-
if (__hasOwnProp.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
if (__getOwnPropSymbols)
|
|
17
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
-
if (__propIsEnum.call(b, prop))
|
|
19
|
-
__defNormalProp(a, prop, b[prop]);
|
|
20
|
-
}
|
|
21
|
-
return a;
|
|
22
|
-
};
|
|
23
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, inputProps), _VkfFormItemCtx.props), {
|
|
25
|
-
maxlength: {
|
|
26
|
-
type: Number,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
minlength: {
|
|
30
|
-
type: Number,
|
|
31
|
-
required: false
|
|
32
|
-
},
|
|
33
|
-
inputSlots: {
|
|
34
|
-
type: Object,
|
|
35
|
-
default: void 0
|
|
36
|
-
},
|
|
37
|
-
rows: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: void 0
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
const createBindProps = bindPropsFactory(props);
|
|
43
|
-
const emits = __spreadValues({}, inputEmits);
|
|
44
|
-
const createOnEmits = onEmitsFactory(emits);
|
|
45
|
-
|
|
46
|
-
export { createBindProps, createOnEmits, emits, props };
|
|
1
|
+
import{inputProps as r,inputEmits as o}from"element-plus";import{_VkfFormItemCtx as p}from"@vunk/form/components/form-item";import{bindPropsFactory as i,onEmitsFactory as m}from"@vunk/core/shared/utils-vue";const t={...r,...p.props,maxlength:{type:Number,required:!1},minlength:{type:Number,required:!1},inputSlots:{type:Object,default:void 0},rows:{type:Number,default:void 0}},s=i(t),e={...o},n=m(e);export{s as createBindProps,n as createOnEmits,e as emits,t as props};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|