@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
|
@@ -4,26 +4,8 @@ import { ElButton, ElIcon } from 'element-plus';
|
|
|
4
4
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
5
5
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
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({}, _VkfInputCtx.props), {
|
|
7
|
+
const props = {
|
|
8
|
+
..._VkfInputCtx.props,
|
|
27
9
|
type: {
|
|
28
10
|
type: String,
|
|
29
11
|
default: "textarea"
|
|
@@ -44,18 +26,30 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
|
|
|
44
26
|
type: Boolean,
|
|
45
27
|
default: void 0
|
|
46
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated 请使用 referenceUrl
|
|
31
|
+
*/
|
|
47
32
|
uploadUrl: {
|
|
48
33
|
type: String,
|
|
49
34
|
default: "https://pan.baidu.com/disk/main#/index?category=all"
|
|
50
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* 参考地址
|
|
38
|
+
*/
|
|
51
39
|
referenceUrl: {
|
|
52
40
|
type: String,
|
|
53
41
|
default: "https://pan.baidu.com/disk/main#/index?category=all"
|
|
54
42
|
},
|
|
43
|
+
/**
|
|
44
|
+
* 仅展示参考地址
|
|
45
|
+
*/
|
|
55
46
|
referenceOnly: {
|
|
56
47
|
type: Boolean,
|
|
57
48
|
default: false
|
|
58
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* @description 参考地址的 label
|
|
52
|
+
*/
|
|
59
53
|
referenceLabel: {
|
|
60
54
|
type: String,
|
|
61
55
|
default: "\u53C2\u8003\u5730\u5740"
|
|
@@ -64,16 +58,18 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
|
|
|
64
58
|
type: String,
|
|
65
59
|
default: ""
|
|
66
60
|
}
|
|
67
|
-
}
|
|
68
|
-
const emits =
|
|
61
|
+
};
|
|
62
|
+
const emits = {
|
|
63
|
+
..._VkfInputCtx.emits
|
|
64
|
+
};
|
|
69
65
|
|
|
70
66
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
71
67
|
|
|
68
|
+
|
|
72
69
|
// unplugin-vue:/plugin-vue/export-helper
|
|
73
70
|
var export_helper_default = (sfc, props) => {
|
|
74
71
|
let target = sfc.__vccOpts || sfc;
|
|
75
|
-
for (let [key, val] of props)
|
|
76
|
-
target[key] = val;
|
|
72
|
+
for (let [key, val] of props) target[key] = val;
|
|
77
73
|
return target;
|
|
78
74
|
};
|
|
79
75
|
|
|
@@ -82,66 +78,45 @@ var right_vue_vue_type_script_lang_default = {
|
|
|
82
78
|
name: "Right"
|
|
83
79
|
};
|
|
84
80
|
var _hoisted_1221 = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
"path",
|
|
89
|
-
{
|
|
81
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
82
|
+
viewBox: "0 0 1024 1024"
|
|
83
|
+
},
|
|
84
|
+
_hoisted_2221 = /* @__PURE__ */createElementVNode("path", {
|
|
90
85
|
fill: "currentColor",
|
|
91
86
|
d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/* HOISTED */
|
|
96
|
-
), _hoisted_3220 = [
|
|
97
|
-
_hoisted_2221
|
|
98
|
-
];
|
|
87
|
+
}, null, -1
|
|
88
|
+
/* HOISTED */),
|
|
89
|
+
_hoisted_3220 = [_hoisted_2221];
|
|
99
90
|
function _sfc_render221(_ctx, _cache, $props, $setup, $data, $options) {
|
|
100
91
|
return openBlock(), createElementBlock("svg", _hoisted_1221, _hoisted_3220);
|
|
101
92
|
}
|
|
102
|
-
var right_default = /* @__PURE__ */
|
|
93
|
+
var right_default = /* @__PURE__ */export_helper_default(right_vue_vue_type_script_lang_default, [["render", _sfc_render221], ["__file", "right.vue"]]);
|
|
103
94
|
|
|
104
|
-
var
|
|
105
|
-
const target = sfc.__vccOpts || sfc;
|
|
106
|
-
for (const [key, val] of props) {
|
|
107
|
-
target[key] = val;
|
|
108
|
-
}
|
|
109
|
-
return target;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
const _sfc_main = defineComponent({
|
|
95
|
+
var script = defineComponent({
|
|
113
96
|
name: "VkfInputLink",
|
|
114
97
|
components: {
|
|
115
98
|
VkfInput
|
|
116
99
|
},
|
|
117
100
|
emits,
|
|
118
101
|
props,
|
|
119
|
-
setup(props2, {
|
|
102
|
+
setup(props2, {
|
|
103
|
+
emit
|
|
104
|
+
}) {
|
|
120
105
|
const coreProps = _VkfInputCtx.createBindProps(props2);
|
|
121
106
|
const coreEmits = _VkfInputCtx.createOnEmits(emit);
|
|
122
107
|
const readonly = useComputedReadonly(props2);
|
|
123
|
-
const createAppendEl = (url) => () => h(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
ElIcon,
|
|
131
|
-
{
|
|
132
|
-
class: "vkf-input-link-icon",
|
|
133
|
-
size: 16
|
|
134
|
-
},
|
|
135
|
-
() => h(right_default)
|
|
136
|
-
)
|
|
137
|
-
);
|
|
108
|
+
const createAppendEl = (url) => () => h(ElButton, {
|
|
109
|
+
onClick: () => window.open(url),
|
|
110
|
+
disabled: !url
|
|
111
|
+
}, () => h(ElIcon, {
|
|
112
|
+
class: "vkf-input-link-icon",
|
|
113
|
+
size: 16
|
|
114
|
+
}, () => h(right_default)));
|
|
138
115
|
const rules = computed(() => {
|
|
139
|
-
const data = [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
];
|
|
116
|
+
const data = [{
|
|
117
|
+
pattern: /^(http|https):\/\/([\w.]+\/?)\S*$/,
|
|
118
|
+
message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740"
|
|
119
|
+
}];
|
|
145
120
|
if (Array.isArray(props2.rules)) {
|
|
146
121
|
data.push(...props2.rules);
|
|
147
122
|
}
|
|
@@ -159,36 +134,40 @@ const _sfc_main = defineComponent({
|
|
|
159
134
|
};
|
|
160
135
|
}
|
|
161
136
|
});
|
|
162
|
-
|
|
163
|
-
|
|
137
|
+
|
|
138
|
+
const _hoisted_1 = {
|
|
139
|
+
class: "vkf-form-item vkf-input-link"
|
|
140
|
+
};
|
|
141
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
164
142
|
const _component_VkfInput = resolveComponent("VkfInput");
|
|
165
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
]);
|
|
143
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_VkfInput, {
|
|
144
|
+
label: _ctx.referenceLabel,
|
|
145
|
+
disabled: true,
|
|
146
|
+
modelValue: _ctx.referenceUrl ?? _ctx.uploadUrl,
|
|
147
|
+
inputSlots: {
|
|
148
|
+
append: _ctx.createAppendEl(_ctx.referenceUrl ?? _ctx.uploadUrl)
|
|
149
|
+
}
|
|
150
|
+
}, null, 8, ["label", "modelValue", "inputSlots"]), !_ctx.referenceOnly ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
|
|
151
|
+
key: 0
|
|
152
|
+
}, _ctx.coreProps, toHandlers(_ctx.coreEmits), {
|
|
153
|
+
rules: _ctx.rules,
|
|
154
|
+
readonly: _ctx.readonly,
|
|
155
|
+
type: _ctx.readonly ? "text" : _ctx.type,
|
|
156
|
+
inputSlots: {
|
|
157
|
+
append: _ctx.readonly ? _ctx.createAppendEl(_ctx.modelValue) : void 0
|
|
158
|
+
}
|
|
159
|
+
}), null, 16, ["rules", "readonly", "type", "inputSlots"])) : createCommentVNode("v-if", true)]);
|
|
183
160
|
}
|
|
184
|
-
|
|
161
|
+
|
|
162
|
+
script.render = render;
|
|
163
|
+
script.__file = "input-link/src/index.vue";
|
|
185
164
|
|
|
186
165
|
var types = /*#__PURE__*/Object.freeze({
|
|
187
166
|
__proto__: null
|
|
188
167
|
});
|
|
189
168
|
|
|
190
|
-
|
|
191
|
-
app.component(
|
|
169
|
+
script.install = (app) => {
|
|
170
|
+
app.component(script.name, script);
|
|
192
171
|
};
|
|
193
172
|
|
|
194
|
-
export { VkfInputLink, types as __VkfInputLink,
|
|
173
|
+
export { script as VkfInputLink, types as __VkfInputLink, script as default };
|
|
@@ -17,7 +17,7 @@ export declare const props: {
|
|
|
17
17
|
};
|
|
18
18
|
readonly: {
|
|
19
19
|
type: BooleanConstructor;
|
|
20
|
-
default:
|
|
20
|
+
default: any;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* @deprecated 请使用 referenceUrl
|
|
@@ -64,27 +64,27 @@ export declare const props: {
|
|
|
64
64
|
};
|
|
65
65
|
inputSlots: {
|
|
66
66
|
type: import("vue").PropType<import("../../input/src/types").InputSlots>;
|
|
67
|
-
default:
|
|
67
|
+
default: any;
|
|
68
68
|
};
|
|
69
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
70
69
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
71
70
|
prop: {
|
|
72
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
71
|
+
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>>;
|
|
73
72
|
readonly required: false;
|
|
74
|
-
readonly validator: (
|
|
73
|
+
readonly validator: (val: unknown) => boolean;
|
|
75
74
|
__epPropKey: true;
|
|
76
75
|
};
|
|
76
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
77
77
|
rules: {
|
|
78
|
-
readonly type: import("vue").PropType<
|
|
78
|
+
readonly type: import("vue").PropType<unknown>;
|
|
79
79
|
readonly required: false;
|
|
80
|
-
readonly validator: (
|
|
80
|
+
readonly validator: (val: unknown) => boolean;
|
|
81
81
|
__epPropKey: true;
|
|
82
82
|
};
|
|
83
83
|
error: StringConstructor;
|
|
84
84
|
validateStatus: {
|
|
85
85
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
86
86
|
readonly required: false;
|
|
87
|
-
readonly validator: (
|
|
87
|
+
readonly validator: (val: unknown) => boolean;
|
|
88
88
|
__epPropKey: true;
|
|
89
89
|
};
|
|
90
90
|
for: StringConstructor;
|
|
@@ -96,7 +96,7 @@ export declare const props: {
|
|
|
96
96
|
};
|
|
97
97
|
formItemSlots: {
|
|
98
98
|
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
99
|
-
default:
|
|
99
|
+
default: any;
|
|
100
100
|
};
|
|
101
101
|
elRef: {
|
|
102
102
|
type: import("vue").PropType<any>;
|
|
@@ -117,55 +117,61 @@ export declare const props: {
|
|
|
117
117
|
size: {
|
|
118
118
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
119
119
|
readonly required: false;
|
|
120
|
-
readonly validator: (
|
|
120
|
+
readonly validator: (val: unknown) => boolean;
|
|
121
121
|
__epPropKey: true;
|
|
122
122
|
};
|
|
123
123
|
disabled: BooleanConstructor;
|
|
124
124
|
resize: {
|
|
125
125
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical" | "none" | "both", unknown>>;
|
|
126
126
|
readonly required: false;
|
|
127
|
-
readonly validator: (
|
|
127
|
+
readonly validator: (val: unknown) => boolean;
|
|
128
128
|
__epPropKey: true;
|
|
129
129
|
};
|
|
130
|
-
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
130
|
+
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
131
|
+
minRows?: number;
|
|
132
|
+
maxRows?: number;
|
|
133
|
+
}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => boolean | {
|
|
134
|
+
minRows?: number;
|
|
135
|
+
maxRows?: number;
|
|
136
|
+
}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
131
137
|
autocomplete: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
|
132
138
|
formatter: {
|
|
133
139
|
readonly type: import("vue").PropType<Function>;
|
|
134
140
|
readonly required: false;
|
|
135
|
-
readonly validator: (
|
|
141
|
+
readonly validator: (val: unknown) => boolean;
|
|
136
142
|
__epPropKey: true;
|
|
137
143
|
};
|
|
138
144
|
parser: {
|
|
139
145
|
readonly type: import("vue").PropType<Function>;
|
|
140
146
|
readonly required: false;
|
|
141
|
-
readonly validator: (
|
|
147
|
+
readonly validator: (val: unknown) => boolean;
|
|
142
148
|
__epPropKey: true;
|
|
143
149
|
};
|
|
144
150
|
form: {
|
|
145
151
|
readonly type: import("vue").PropType<string>;
|
|
146
152
|
readonly required: false;
|
|
147
|
-
readonly validator: (
|
|
153
|
+
readonly validator: (val: unknown) => boolean;
|
|
148
154
|
__epPropKey: true;
|
|
149
155
|
};
|
|
150
156
|
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
151
157
|
showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
152
158
|
showWordLimit: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
153
159
|
suffixIcon: {
|
|
154
|
-
readonly type: import("vue").PropType<
|
|
160
|
+
readonly type: import("vue").PropType<unknown>;
|
|
155
161
|
readonly required: false;
|
|
156
|
-
readonly validator: (
|
|
162
|
+
readonly validator: (val: unknown) => boolean;
|
|
157
163
|
__epPropKey: true;
|
|
158
164
|
};
|
|
159
165
|
prefixIcon: {
|
|
160
|
-
readonly type: import("vue").PropType<
|
|
166
|
+
readonly type: import("vue").PropType<unknown>;
|
|
161
167
|
readonly required: false;
|
|
162
|
-
readonly validator: (
|
|
168
|
+
readonly validator: (val: unknown) => boolean;
|
|
163
169
|
__epPropKey: true;
|
|
164
170
|
};
|
|
165
171
|
containerRole: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
166
172
|
tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
167
173
|
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
168
|
-
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").
|
|
174
|
+
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>;
|
|
169
175
|
autofocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
170
176
|
};
|
|
171
177
|
export declare const emits: {
|
|
@@ -1,66 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
|
|
23
|
-
type: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "textarea"
|
|
26
|
-
},
|
|
27
|
-
rows: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 4
|
|
30
|
-
},
|
|
31
|
-
label: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "\u56DE\u586B\u5730\u5740"
|
|
34
|
-
},
|
|
35
|
-
placeholder: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"
|
|
38
|
-
},
|
|
39
|
-
readonly: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: void 0
|
|
42
|
-
},
|
|
43
|
-
uploadUrl: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "https://pan.baidu.com/disk/main#/index?category=all"
|
|
46
|
-
},
|
|
47
|
-
referenceUrl: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "https://pan.baidu.com/disk/main#/index?category=all"
|
|
50
|
-
},
|
|
51
|
-
referenceOnly: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: false
|
|
54
|
-
},
|
|
55
|
-
referenceLabel: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: "\u53C2\u8003\u5730\u5740"
|
|
58
|
-
},
|
|
59
|
-
modelValue: {
|
|
60
|
-
type: String,
|
|
61
|
-
default: ""
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
const emits = __spreadValues({}, _VkfInputCtx.emits);
|
|
65
|
-
|
|
66
|
-
export { emits, props };
|
|
1
|
+
import{_VkfInputCtx as e}from"@vunk/form/components/input";const t={...e.props,type:{type:String,default:"textarea"},rows:{type:Number,default:4},label:{type:String,default:"\u56DE\u586B\u5730\u5740"},placeholder:{type:String,default:"\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"},readonly:{type:Boolean,default:void 0},uploadUrl:{type:String,default:"https://pan.baidu.com/disk/main#/index?category=all"},referenceUrl:{type:String,default:"https://pan.baidu.com/disk/main#/index?category=all"},referenceOnly:{type:Boolean,default:!1},referenceLabel:{type:String,default:"\u53C2\u8003\u5730\u5740"},modelValue:{type:String,default:""}},u={...e.emits};export{u as emits,t as props};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|