@vunk/form 1.1.77 → 1.1.80
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/_plugin-vue_export-helper.mjs +9 -0
- package/components/button/{index.js → index.mjs} +33 -29
- package/components/button/src/ctx.d.ts +30 -30
- package/components/button/src/index.vue.d.ts +69 -69
- package/components/cascader/index.css +0 -2
- package/components/cascader/{index.js → index.mjs} +22 -22
- package/components/cascader/src/ctx.d.ts +37 -45
- package/components/cascader/src/index.vue.d.ts +92 -92
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.css +0 -9
- package/components/checkbox/{index.js → index.mjs} +45 -42
- package/components/checkbox/src/ctx.d.ts +29 -32
- package/components/checkbox/src/index.vue.d.ts +65 -65
- package/components/color-picker/{index.js → index.mjs} +23 -22
- package/components/color-picker/src/ctx.d.ts +29 -29
- package/components/color-picker/src/index.vue.d.ts +67 -67
- package/components/date-picker/index.d.ts +1 -0
- package/components/date-picker/{index.js → index.mjs} +46 -26
- package/components/date-picker/src/ctx.d.ts +51 -49
- package/components/date-picker/src/index.vue.d.ts +104 -104
- package/components/date-picker-range/index.css +18 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/index.mjs +164 -0
- package/components/date-picker-range/src/ctx.d.ts +177 -0
- package/components/date-picker-range/src/index.vue.d.ts +398 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.css +0 -6
- package/components/download-plus/{index.js → index.mjs} +119 -147
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +27 -26
- package/components/download-plus/src/index.vue.d.ts +59 -59
- package/components/esri-input-geojson/index.css +0 -10
- package/components/esri-input-geojson/index.mjs +1109 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +49 -72
- package/components/esri-input-geojson/src/index.vue.d.ts +138 -158
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +18 -19
- package/components/form/{index.js → index.mjs} +38 -36
- package/components/form/src/ctx.d.ts +13 -297
- package/components/form/src/index.vue.d.ts +97 -659
- package/components/form-item/index.css +0 -8
- package/components/form-item/{index.js → index.mjs} +22 -19
- package/components/form-item/src/ctx.d.ts +13 -11
- package/components/form-item/src/index.vue.d.ts +20 -20
- package/components/form-item-renderer/{index.js → index.mjs} +9 -7
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template/{index.js → index.mjs} +7 -7
- package/components/geoinput/{index.js → index.mjs} +10 -17
- package/components/geoinput/src/ctx.d.ts +48 -60
- package/components/geoinput/src/index.vue.d.ts +114 -132
- package/components/geoinput-read/index.css +0 -2
- package/components/geoinput-read/{index.js → index.mjs} +101 -109
- package/components/geoinput-read/src/core.vue.d.ts +123 -142
- package/components/geoinput-read/src/ctx.d.ts +50 -74
- package/components/geoinput-read/src/index.vue.d.ts +102 -120
- package/components/geoinput-update/index.css +0 -6
- package/components/geoinput-update/index.mjs +399 -0
- package/components/geoinput-update/src/ctx.d.ts +49 -69
- package/components/geoinput-update/src/index.vue.d.ts +126 -141
- package/components/index.mjs +11 -0
- package/components/index2.mjs +306 -0
- package/components/index3.mjs +484 -0
- package/components/input/{index.js → index.mjs} +31 -27
- package/components/input/src/ctx.d.ts +47 -66
- package/components/input/src/index.vue.d.ts +101 -113
- package/components/input-link/index.css +0 -2
- package/components/input-link/index.mjs +151 -0
- package/components/input-link/src/ctx.d.ts +40 -56
- package/components/input-link/src/index.vue.d.ts +89 -101
- package/components/input-number/index.css +0 -2
- package/components/input-number/{index.js → index.mjs} +25 -25
- package/components/input-number/src/ctx.d.ts +31 -37
- package/components/input-number/src/index.vue.d.ts +71 -71
- package/components/radio/index.css +0 -6
- package/components/radio/{index.js → index.mjs} +50 -47
- package/components/radio/src/ctx.d.ts +29 -29
- package/components/radio/src/index.vue.d.ts +64 -64
- package/components/select/index.css +0 -2
- package/components/select/{index.js → index.mjs} +49 -48
- package/components/select/src/ctx.d.ts +31 -85
- package/components/select/src/index.vue.d.ts +121 -230
- package/components/slider/{index.js → index.mjs} +28 -24
- package/components/slider/src/ctx.d.ts +35 -35
- package/components/slider/src/index.vue.d.ts +93 -93
- package/components/switch/index.css +0 -2
- package/components/switch/{index.js → index.mjs} +29 -24
- package/components/switch/src/ctx.d.ts +40 -40
- package/components/switch/src/index.vue.d.ts +91 -91
- package/components/templates-default/index.mjs +302 -0
- package/components/templates-default/src/ctx.d.ts +2 -4
- package/components/templates-default/src/index.vue.d.ts +2 -8
- package/components/templates-element-plus/index.mjs +106 -0
- package/components/templates-esri/index.mjs +59 -0
- package/components/templates-layout/index.css +0 -3
- package/components/templates-layout/index.mjs +131 -0
- package/components/templates-mapbox/index.mjs +59 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/index.mjs +64 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +20 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.css +0 -7
- package/components/upload/index.mjs +501 -0
- package/components/upload/src/ctx.d.ts +36 -38
- package/components/upload/src/file.vue.d.ts +22 -21
- package/components/upload/src/index.vue.d.ts +78 -78
- package/components/upload-plus/index.css +4 -8
- package/components/upload-plus/{index.js → index.mjs} +9497 -926
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +25 -28
- package/components/upload-plus/src/index.vue.d.ts +58 -58
- package/components/van-cascader/index.css +0 -2
- package/components/van-cascader/{index.js → index.mjs} +41 -44
- package/components/van-cascader/src/ctx.d.ts +35 -35
- package/components/van-cascader/src/index.vue.d.ts +82 -82
- package/components/var-datetime-picker/index.css +0 -2
- package/components/var-datetime-picker/index.mjs +324 -0
- package/components/var-datetime-picker/src/ctx.d.ts +27 -26
- package/components/var-datetime-picker/src/index.vue.d.ts +57 -57
- package/components/vditor/{index.js → index.mjs} +9 -14
- package/components/vditor/src/ctx.d.ts +2 -1
- package/components/vditor/src/index.vue.d.ts +2 -3
- package/composables/index.mjs +85 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/defaults.d.ts +1 -1
- package/index.css +22 -168
- package/index.d.ts +1 -1
- package/index.esm.js +44 -1
- package/package.json +257 -2
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +56 -0
- package/shared/element-plus/ctx.d.ts +26 -94
- package/shared/element-plus/index.mjs +285 -0
- package/shared/element-plus/instances.d.ts +29 -28
- package/shared/form/index.mjs +30 -0
- package/shared/helper/index.mjs +9 -0
- package/shared/index.mjs +1 -0
- package/shared/infer-prop/index.mjs +34 -0
- package/shared/progress-it/index.mjs +38 -0
- package/shared/rules/index.mjs +53 -0
- package/shared/types/source/index.d.ts +2 -1
- package/shared/upload/index.mjs +771 -0
- package/components/button/src/ctx.js +0 -1
- package/components/cascader/src/ctx.js +0 -1
- package/components/cascader/src/types.js +0 -1
- package/components/cascader/src/use.js +0 -1
- package/components/checkbox/src/ctx.js +0 -1
- package/components/checkbox/src/index.css +0 -1
- package/components/checkbox/src/types.js +0 -1
- package/components/color-picker/index.css +0 -1
- package/components/color-picker/src/ctx.js +0 -1
- package/components/color-picker/src/index.css +0 -1
- package/components/color-picker/src/types.js +0 -1
- package/components/date-picker/index.css +0 -1
- package/components/date-picker/src/ctx.js +0 -1
- package/components/date-picker/src/index.css +0 -1
- package/components/date-picker/src/types.js +0 -1
- package/components/download-plus/src/api.js +0 -1
- package/components/download-plus/src/const.js +0 -1
- package/components/download-plus/src/ctx.js +0 -1
- package/components/download-plus/src/index.css +0 -1
- package/components/download-plus/src/types.js +0 -1
- package/components/esri-input-geojson/index.js +0 -1563
- package/components/esri-input-geojson/src/const.js +0 -1
- package/components/esri-input-geojson/src/ctx.js +0 -1
- package/components/esri-input-geojson/src/index.css +0 -1
- package/components/esri-input-geojson/src/types.js +0 -1
- package/components/form/index.css +0 -1
- package/components/form/src/ctx.js +0 -1
- package/components/form/src/index.css +0 -1
- package/components/form/src/types.js +0 -1
- package/components/form/src/utils.js +0 -1
- package/components/form-item/src/ctx.js +0 -1
- package/components/form-item/src/index.css +0 -1
- package/components/form-item/src/types.js +0 -1
- package/components/form-item-renderer/index.css +0 -1
- package/components/form-item-renderer/src/ctx.js +0 -1
- package/components/form-item-renderer/src/index.css +0 -1
- package/components/form-item-renderer/src/symbols.js +0 -1
- package/components/form-item-renderer/src/types.js +0 -1
- package/components/form-item-renderer-template/index.css +0 -1
- package/components/form-item-renderer-template/src/ctx.js +0 -1
- package/components/form-item-renderer-template/src/index.css +0 -1
- package/components/form-item-renderer-template/src/types.js +0 -1
- package/components/geoinput/index.css +0 -1
- package/components/geoinput/src/ctx.js +0 -1
- package/components/geoinput/src/index.css +0 -1
- package/components/geoinput/src/types.js +0 -1
- package/components/geoinput-read/src/ctx.js +0 -1
- package/components/geoinput-read/src/index.css +0 -1
- package/components/geoinput-read/src/types.js +0 -1
- package/components/geoinput-update/index.js +0 -930
- package/components/geoinput-update/src/ctx.js +0 -1
- package/components/geoinput-update/src/index.css +0 -1
- package/components/geoinput-update/src/types.js +0 -1
- package/components/input/index.css +0 -1
- package/components/input/src/ctx.js +0 -1
- package/components/input/src/index.css +0 -1
- package/components/input/src/types.js +0 -1
- package/components/input-link/index.js +0 -163
- package/components/input-link/src/ctx.js +0 -1
- package/components/input-link/src/index.css +0 -1
- package/components/input-link/src/types.js +0 -1
- package/components/input-number/src/ctx.js +0 -1
- package/components/input-number/src/index.css +0 -1
- package/components/input-number/src/types.js +0 -1
- package/components/radio/src/ctx.js +0 -1
- package/components/radio/src/index.css +0 -1
- package/components/radio/src/types.js +0 -1
- package/components/select/src/ctx.js +0 -1
- package/components/select/src/index.css +0 -1
- package/components/select/src/types.js +0 -1
- package/components/slider/index.css +0 -1
- package/components/slider/src/ctx.js +0 -1
- package/components/slider/src/index.css +0 -1
- package/components/slider/src/types.js +0 -1
- package/components/switch/src/ctx.js +0 -1
- package/components/switch/src/index.css +0 -1
- package/components/switch/src/types.js +0 -1
- package/components/templates-default/index.css +0 -1
- package/components/templates-default/index.js +0 -347
- package/components/templates-default/src/ctx.js +0 -1
- package/components/templates-default/src/index.css +0 -1
- package/components/templates-default/src/types.js +0 -1
- package/components/templates-element-plus/index.css +0 -1
- package/components/templates-element-plus/index.js +0 -110
- package/components/templates-element-plus/src/ctx.js +0 -1
- package/components/templates-element-plus/src/index.css +0 -1
- package/components/templates-element-plus/src/types.js +0 -1
- package/components/templates-esri/index.css +0 -1
- package/components/templates-esri/index.js +0 -65
- package/components/templates-esri/src/ctx.js +0 -1
- package/components/templates-esri/src/index.css +0 -1
- package/components/templates-esri/src/types.js +0 -1
- package/components/templates-layout/index.js +0 -141
- package/components/templates-layout/src/ctx.js +0 -1
- package/components/templates-layout/src/index.css +0 -1
- package/components/templates-layout/src/types.js +0 -1
- package/components/templates-mapbox/index.css +0 -1
- package/components/templates-mapbox/index.js +0 -65
- package/components/templates-mapbox/src/ctx.js +0 -1
- package/components/templates-mapbox/src/index.css +0 -1
- package/components/templates-mapbox/src/types.js +0 -1
- package/components/upload/index.js +0 -565
- package/components/upload/src/ctx.js +0 -1
- package/components/upload/src/index.css +0 -1
- package/components/upload/src/types.js +0 -1
- package/components/upload-plus/src/api.js +0 -28
- package/components/upload-plus/src/const.js +0 -1
- package/components/upload-plus/src/ctx.js +0 -1
- package/components/upload-plus/src/index.css +0 -1
- package/components/upload-plus/src/types.js +0 -1
- package/components/van-cascader/src/ctx.js +0 -1
- package/components/van-cascader/src/index.css +0 -1
- package/components/van-cascader/src/types.js +0 -1
- package/components/var-datetime-picker/index.js +0 -299
- package/components/var-datetime-picker/src/const.js +0 -1
- package/components/var-datetime-picker/src/ctx.js +0 -1
- package/components/var-datetime-picker/src/index.css +0 -1
- package/components/var-datetime-picker/src/types.js +0 -1
- package/components/vditor/index.css +0 -1
- package/components/vditor/src/ctx.js +0 -1
- package/components/vditor/src/index.css +0 -1
- package/components/vditor/src/types.js +0 -1
- package/composables/index.css +0 -1
- package/composables/index.js +0 -1
- package/shared/const/index.css +0 -1
- package/shared/const/index.js +0 -1
- package/shared/element-plus/index.css +0 -1
- package/shared/element-plus/index.js +0 -1
- package/shared/form/index.css +0 -1
- package/shared/form/index.js +0 -1
- package/shared/helper/index.css +0 -1
- package/shared/helper/index.js +0 -1
- package/shared/index.css +0 -1
- package/shared/index.js +0 -1
- package/shared/infer-prop/index.css +0 -1
- package/shared/infer-prop/index.js +0 -1
- package/shared/progress-it/index.css +0 -1
- package/shared/progress-it/index.js +0 -1
- package/shared/rules/index.css +0 -1
- package/shared/rules/index.js +0 -1
- package/shared/types/form/index.css +0 -1
- package/shared/types/form/index.js +0 -1
- package/shared/types/index.css +0 -1
- package/shared/types/index.js +0 -1
- package/shared/types/source/index.css +0 -1
- package/shared/types/source/index.js +0 -1
- package/shared/types/source-manager/index.css +0 -1
- package/shared/types/source-manager/index.js +0 -1
- package/shared/upload/index.css +0 -1
- package/shared/upload/index.js +0 -1
- /package/{components/button/index.css → shared/types/form/index.mjs} +0 -0
- /package/{components/button/src/index.css → shared/types/index.mjs} +0 -0
- /package/{components/cascader/src/index.css → shared/types/source/index.mjs} +0 -0
- /package/{components/button/src/types.js → shared/types/source-manager/index.mjs} +0 -0
|
@@ -3,6 +3,7 @@ import { buttonProps, buttonEmits, ElButton } from 'element-plus';
|
|
|
3
3
|
import { defineComponent, inject, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createSlots, renderSlot, createTextVNode, toDisplayString, renderList, resolveDynamicComponent } from 'vue';
|
|
4
4
|
import { createButtonBindProps, createButtonOnEmits } from '@vunk/form/shared/element-plus';
|
|
5
5
|
import { validateCatch } from '@vunk/form/shared/form';
|
|
6
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
7
|
|
|
7
8
|
const props = {
|
|
8
9
|
..._VkfFormItemCtx.props,
|
|
@@ -24,7 +25,7 @@ const emits = {
|
|
|
24
25
|
...buttonEmits
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
var
|
|
28
|
+
var _sfc_main = defineComponent({
|
|
28
29
|
name: "VkfButton",
|
|
29
30
|
components: {
|
|
30
31
|
VkfFormItem,
|
|
@@ -32,16 +33,13 @@ var script = defineComponent({
|
|
|
32
33
|
},
|
|
33
34
|
emits,
|
|
34
35
|
props,
|
|
35
|
-
setup(props2, {
|
|
36
|
-
emit
|
|
37
|
-
}) {
|
|
36
|
+
setup(props2, { emit }) {
|
|
38
37
|
const coreBindProps = createButtonBindProps(props2);
|
|
39
38
|
const coreOnEmits = createButtonOnEmits(emit, ["click"]);
|
|
40
39
|
const formBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
41
40
|
const elFormRef = inject("elFormRef", null);
|
|
42
41
|
const handleClick = (e) => {
|
|
43
|
-
if (!elFormRef || !props2.validate)
|
|
44
|
-
return emit("click", e);
|
|
42
|
+
if (!elFormRef || !props2.validate) return emit("click", e);
|
|
45
43
|
elFormRef.value.validate().then((flag) => {
|
|
46
44
|
if (flag) {
|
|
47
45
|
emit("click", e);
|
|
@@ -57,29 +55,37 @@ var script = defineComponent({
|
|
|
57
55
|
}
|
|
58
56
|
});
|
|
59
57
|
|
|
60
|
-
function
|
|
58
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61
59
|
const _component_ElButton = resolveComponent("ElButton");
|
|
62
60
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
63
61
|
return openBlock(), createBlock(
|
|
64
62
|
_component_VkfFormItem,
|
|
65
63
|
normalizeProps(guardReactiveProps(_ctx.formBindProps)),
|
|
66
64
|
{
|
|
67
|
-
default: withCtx(() => [
|
|
68
|
-
onClick: _ctx.handleClick
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
createVNode(_component_ElButton, mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits), { onClick: _ctx.handleClick }), createSlots({
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
69
|
+
createTextVNode(
|
|
70
|
+
toDisplayString(_ctx.buttonLabel),
|
|
71
|
+
1
|
|
72
|
+
/* TEXT */
|
|
73
|
+
)
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
_: 2
|
|
77
|
+
/* DYNAMIC */
|
|
78
|
+
}, [
|
|
79
|
+
renderList(_ctx.buttonSlots, (item, key) => {
|
|
80
|
+
return {
|
|
81
|
+
name: key,
|
|
82
|
+
fn: withCtx((e) => [
|
|
83
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
84
|
+
])
|
|
85
|
+
};
|
|
86
|
+
})
|
|
87
|
+
]), 1040, ["onClick"])
|
|
88
|
+
]),
|
|
83
89
|
_: 3
|
|
84
90
|
/* FORWARDED */
|
|
85
91
|
},
|
|
@@ -87,16 +93,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87
93
|
/* FULL_PROPS */
|
|
88
94
|
);
|
|
89
95
|
}
|
|
90
|
-
|
|
91
|
-
script.render = render;
|
|
92
|
-
script.__file = "button/src/index.vue";
|
|
96
|
+
var VkfButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/button/src/index.vue"]]);
|
|
93
97
|
|
|
94
98
|
var types = /*#__PURE__*/Object.freeze({
|
|
95
99
|
__proto__: null
|
|
96
100
|
});
|
|
97
101
|
|
|
98
|
-
|
|
99
|
-
app.component(
|
|
102
|
+
VkfButton.install = (app) => {
|
|
103
|
+
app.component(VkfButton.name, VkfButton);
|
|
100
104
|
};
|
|
101
105
|
|
|
102
|
-
export {
|
|
106
|
+
export { VkfButton, types as __VkfButton, VkfButton as default };
|
|
@@ -14,17 +14,17 @@ export declare const props: {
|
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
16
|
size: {
|
|
17
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
17
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
18
18
|
readonly required: false;
|
|
19
|
-
readonly validator: (val: unknown) => boolean;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
20
|
__epPropKey: true;
|
|
21
21
|
};
|
|
22
22
|
disabled: BooleanConstructor;
|
|
23
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "
|
|
23
|
+
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
24
24
|
icon: {
|
|
25
|
-
readonly type: PropType<unknown
|
|
25
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
26
26
|
readonly required: false;
|
|
27
|
-
readonly validator: (val: unknown) => boolean;
|
|
27
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
28
|
__epPropKey: true;
|
|
29
29
|
};
|
|
30
30
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
@@ -41,37 +41,13 @@ export declare const props: {
|
|
|
41
41
|
dark: BooleanConstructor;
|
|
42
42
|
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
43
43
|
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
44
|
-
label: StringConstructor;
|
|
45
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
46
|
-
prop: {
|
|
47
|
-
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>>;
|
|
48
|
-
readonly required: false;
|
|
49
|
-
readonly validator: (val: unknown) => boolean;
|
|
50
|
-
__epPropKey: true;
|
|
51
|
-
};
|
|
52
44
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
53
|
-
rules: {
|
|
54
|
-
readonly type: PropType<unknown>;
|
|
55
|
-
readonly required: false;
|
|
56
|
-
readonly validator: (val: unknown) => boolean;
|
|
57
|
-
__epPropKey: true;
|
|
58
|
-
};
|
|
59
|
-
error: StringConstructor;
|
|
60
|
-
validateStatus: {
|
|
61
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
62
|
-
readonly required: false;
|
|
63
|
-
readonly validator: (val: unknown) => boolean;
|
|
64
|
-
__epPropKey: true;
|
|
65
|
-
};
|
|
66
|
-
for: StringConstructor;
|
|
67
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
68
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
69
45
|
formItemSize: {
|
|
70
46
|
type: PropType<"default" | "small" | "large">;
|
|
71
47
|
default: "default" | "small" | "large";
|
|
72
48
|
};
|
|
73
49
|
formItemSlots: {
|
|
74
|
-
type: PropType<import("
|
|
50
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
75
51
|
default: any;
|
|
76
52
|
};
|
|
77
53
|
elRef: {
|
|
@@ -90,6 +66,30 @@ export declare const props: {
|
|
|
90
66
|
type: PropType<"right">;
|
|
91
67
|
default: string;
|
|
92
68
|
};
|
|
69
|
+
label: StringConstructor;
|
|
70
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
71
|
+
prop: {
|
|
72
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
73
|
+
readonly required: false;
|
|
74
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
|
+
__epPropKey: true;
|
|
76
|
+
};
|
|
77
|
+
rules: {
|
|
78
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
|
+
__epPropKey: true;
|
|
82
|
+
};
|
|
83
|
+
error: StringConstructor;
|
|
84
|
+
validateStatus: {
|
|
85
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
};
|
|
90
|
+
for: StringConstructor;
|
|
91
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
92
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
93
93
|
};
|
|
94
94
|
export declare const emits: {
|
|
95
95
|
click: (evt: MouseEvent) => boolean;
|
|
@@ -14,15 +14,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
size: {
|
|
15
15
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
16
16
|
readonly required: false;
|
|
17
|
-
readonly validator: (val: unknown) => boolean;
|
|
17
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
18
|
__epPropKey: true;
|
|
19
19
|
};
|
|
20
20
|
disabled: BooleanConstructor;
|
|
21
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "
|
|
21
|
+
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
22
22
|
icon: {
|
|
23
|
-
readonly type: import("vue").PropType<unknown
|
|
23
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
24
24
|
readonly required: false;
|
|
25
|
-
readonly validator: (val: unknown) => boolean;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
26
|
__epPropKey: true;
|
|
27
27
|
};
|
|
28
28
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
@@ -39,37 +39,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
dark: BooleanConstructor;
|
|
40
40
|
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
41
41
|
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
42
|
-
label: StringConstructor;
|
|
43
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
44
|
-
prop: {
|
|
45
|
-
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>>;
|
|
46
|
-
readonly required: false;
|
|
47
|
-
readonly validator: (val: unknown) => boolean;
|
|
48
|
-
__epPropKey: true;
|
|
49
|
-
};
|
|
50
42
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
51
|
-
rules: {
|
|
52
|
-
readonly type: import("vue").PropType<unknown>;
|
|
53
|
-
readonly required: false;
|
|
54
|
-
readonly validator: (val: unknown) => boolean;
|
|
55
|
-
__epPropKey: true;
|
|
56
|
-
};
|
|
57
|
-
error: StringConstructor;
|
|
58
|
-
validateStatus: {
|
|
59
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
60
|
-
readonly required: false;
|
|
61
|
-
readonly validator: (val: unknown) => boolean;
|
|
62
|
-
__epPropKey: true;
|
|
63
|
-
};
|
|
64
|
-
for: StringConstructor;
|
|
65
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
66
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
67
43
|
formItemSize: {
|
|
68
44
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
69
45
|
default: "default" | "small" | "large";
|
|
70
46
|
};
|
|
71
47
|
formItemSlots: {
|
|
72
|
-
type: import("vue").PropType<import("
|
|
48
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
73
49
|
default: any;
|
|
74
50
|
};
|
|
75
51
|
elRef: {
|
|
@@ -88,6 +64,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
64
|
type: import("vue").PropType<"right">;
|
|
89
65
|
default: string;
|
|
90
66
|
};
|
|
67
|
+
label: StringConstructor;
|
|
68
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
69
|
+
prop: {
|
|
70
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
};
|
|
75
|
+
rules: {
|
|
76
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
+
__epPropKey: true;
|
|
80
|
+
};
|
|
81
|
+
error: StringConstructor;
|
|
82
|
+
validateStatus: {
|
|
83
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
84
|
+
readonly required: false;
|
|
85
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
|
+
__epPropKey: true;
|
|
87
|
+
};
|
|
88
|
+
for: StringConstructor;
|
|
89
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
90
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
91
91
|
}, {
|
|
92
92
|
formBindProps: import("vue").ComputedRef<{}>;
|
|
93
93
|
coreBindProps: import("vue").ComputedRef<{}>;
|
|
@@ -111,15 +111,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
size: {
|
|
112
112
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
113
113
|
readonly required: false;
|
|
114
|
-
readonly validator: (val: unknown) => boolean;
|
|
114
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
115
115
|
__epPropKey: true;
|
|
116
116
|
};
|
|
117
117
|
disabled: BooleanConstructor;
|
|
118
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "
|
|
118
|
+
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
119
119
|
icon: {
|
|
120
|
-
readonly type: import("vue").PropType<unknown
|
|
120
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
121
121
|
readonly required: false;
|
|
122
|
-
readonly validator: (val: unknown) => boolean;
|
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
123
123
|
__epPropKey: true;
|
|
124
124
|
};
|
|
125
125
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
@@ -136,37 +136,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
136
|
dark: BooleanConstructor;
|
|
137
137
|
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
138
138
|
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
139
|
-
label: StringConstructor;
|
|
140
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
141
|
-
prop: {
|
|
142
|
-
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>>;
|
|
143
|
-
readonly required: false;
|
|
144
|
-
readonly validator: (val: unknown) => boolean;
|
|
145
|
-
__epPropKey: true;
|
|
146
|
-
};
|
|
147
139
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
148
|
-
rules: {
|
|
149
|
-
readonly type: import("vue").PropType<unknown>;
|
|
150
|
-
readonly required: false;
|
|
151
|
-
readonly validator: (val: unknown) => boolean;
|
|
152
|
-
__epPropKey: true;
|
|
153
|
-
};
|
|
154
|
-
error: StringConstructor;
|
|
155
|
-
validateStatus: {
|
|
156
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
157
|
-
readonly required: false;
|
|
158
|
-
readonly validator: (val: unknown) => boolean;
|
|
159
|
-
__epPropKey: true;
|
|
160
|
-
};
|
|
161
|
-
for: StringConstructor;
|
|
162
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
163
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
164
140
|
formItemSize: {
|
|
165
141
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
166
142
|
default: "default" | "small" | "large";
|
|
167
143
|
};
|
|
168
144
|
formItemSlots: {
|
|
169
|
-
type: import("vue").PropType<import("
|
|
145
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
170
146
|
default: any;
|
|
171
147
|
};
|
|
172
148
|
elRef: {
|
|
@@ -185,21 +161,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
161
|
type: import("vue").PropType<"right">;
|
|
186
162
|
default: string;
|
|
187
163
|
};
|
|
164
|
+
label: StringConstructor;
|
|
165
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
166
|
+
prop: {
|
|
167
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
168
|
+
readonly required: false;
|
|
169
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
170
|
+
__epPropKey: true;
|
|
171
|
+
};
|
|
172
|
+
rules: {
|
|
173
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
174
|
+
readonly required: false;
|
|
175
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
176
|
+
__epPropKey: true;
|
|
177
|
+
};
|
|
178
|
+
error: StringConstructor;
|
|
179
|
+
validateStatus: {
|
|
180
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
181
|
+
readonly required: false;
|
|
182
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
183
|
+
__epPropKey: true;
|
|
184
|
+
};
|
|
185
|
+
for: StringConstructor;
|
|
186
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
187
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
188
188
|
}>> & {
|
|
189
189
|
onClick?: (evt: MouseEvent) => any;
|
|
190
190
|
}, {
|
|
191
|
-
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
192
|
-
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
193
|
-
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
194
|
-
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
195
|
-
type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "default" | "text" | "warning" | "info" | "primary" | "danger", unknown>;
|
|
196
|
-
validate: boolean;
|
|
197
|
-
formItemSize: "default" | "small" | "large";
|
|
198
|
-
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
199
|
-
inline: boolean;
|
|
200
|
-
readonly: boolean;
|
|
201
|
-
labelPosition: "right";
|
|
202
191
|
disabled: boolean;
|
|
192
|
+
type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>;
|
|
203
193
|
nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
204
194
|
loading: boolean;
|
|
205
195
|
loadingIcon: any;
|
|
@@ -213,7 +203,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
203
|
dark: boolean;
|
|
214
204
|
autoInsertSpace: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
215
205
|
tag: "button";
|
|
206
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
207
|
+
formItemSize: "default" | "small" | "large";
|
|
208
|
+
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
209
|
+
inline: boolean;
|
|
210
|
+
readonly: boolean;
|
|
211
|
+
labelPosition: "right";
|
|
212
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
213
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
214
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
216
215
|
buttonSlots: import("./types").ButtonSlots;
|
|
217
216
|
buttonLabel: string;
|
|
217
|
+
validate: boolean;
|
|
218
218
|
}, {}>;
|
|
219
219
|
export default _default;
|
|
@@ -4,6 +4,7 @@ import { cascaderProps, cascaderEmits, ElCascader } from 'element-plus';
|
|
|
4
4
|
import { ref, watch, computed, defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers } from 'vue';
|
|
5
5
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
6
|
import { createCascaderBindProps, createCascaderOnEmits } from '@vunk/form/shared/element-plus';
|
|
7
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
7
8
|
|
|
8
9
|
const props = {
|
|
9
10
|
...cascaderProps,
|
|
@@ -47,10 +48,11 @@ const useOptions = (props, emit) => {
|
|
|
47
48
|
}
|
|
48
49
|
watch(() => props.optionsUrl, (url) => {
|
|
49
50
|
emit("update:modelValue", void 0);
|
|
50
|
-
if (url)
|
|
51
|
-
rUrlOptions(url);
|
|
51
|
+
if (url) rUrlOptions(url);
|
|
52
52
|
});
|
|
53
|
-
const options = computed(
|
|
53
|
+
const options = computed(
|
|
54
|
+
() => optionsFromUrl.value.length ? optionsFromUrl.value : props.options
|
|
55
|
+
);
|
|
54
56
|
return options;
|
|
55
57
|
};
|
|
56
58
|
|
|
@@ -59,7 +61,7 @@ var use = /*#__PURE__*/Object.freeze({
|
|
|
59
61
|
useOptions: useOptions
|
|
60
62
|
});
|
|
61
63
|
|
|
62
|
-
var
|
|
64
|
+
var _sfc_main = defineComponent({
|
|
63
65
|
name: "VkfCascader",
|
|
64
66
|
components: {
|
|
65
67
|
ElCascader,
|
|
@@ -67,9 +69,7 @@ var script = defineComponent({
|
|
|
67
69
|
},
|
|
68
70
|
emits,
|
|
69
71
|
props,
|
|
70
|
-
setup(props2, {
|
|
71
|
-
emit
|
|
72
|
-
}) {
|
|
72
|
+
setup(props2, { emit }) {
|
|
73
73
|
const coreBindProps = createCascaderBindProps(props2, ["options"]);
|
|
74
74
|
const coreOnEmits = createCascaderOnEmits(emit);
|
|
75
75
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
@@ -85,21 +85,23 @@ var script = defineComponent({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
function
|
|
88
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
89
89
|
const _component_ElCascader = resolveComponent("ElCascader");
|
|
90
90
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
91
91
|
return openBlock(), createBlock(
|
|
92
92
|
_component_VkfFormItem,
|
|
93
93
|
normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
|
|
94
94
|
{
|
|
95
|
-
default: withCtx(() => [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
createVNode(_component_ElCascader, mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits), {
|
|
97
|
+
readonly: _ctx.readonly,
|
|
98
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
99
|
+
options: _ctx.options,
|
|
100
|
+
class: {
|
|
101
|
+
"is-readonly": _ctx.readonly
|
|
102
|
+
}
|
|
103
|
+
}), null, 16, ["readonly", "disabled", "options", "class"])
|
|
104
|
+
]),
|
|
103
105
|
_: 1
|
|
104
106
|
/* STABLE */
|
|
105
107
|
},
|
|
@@ -107,16 +109,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
109
|
/* FULL_PROPS */
|
|
108
110
|
);
|
|
109
111
|
}
|
|
110
|
-
|
|
111
|
-
script.render = render;
|
|
112
|
-
script.__file = "cascader/src/index.vue";
|
|
112
|
+
var VkfCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/cascader/src/index.vue"]]);
|
|
113
113
|
|
|
114
114
|
var types = /*#__PURE__*/Object.freeze({
|
|
115
115
|
__proto__: null
|
|
116
116
|
});
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
app.component(
|
|
118
|
+
VkfCascader.install = (app) => {
|
|
119
|
+
app.component(VkfCascader.name, VkfCascader);
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
export {
|
|
122
|
+
export { VkfCascader, ctx as _VkfCascaderCtx, use as _VkfCascaderUse, types as __VkfCascader, VkfCascader as default };
|