@vunk/form 1.1.65 → 1.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component.d.ts +1 -1
- package/components/button/index.css +1 -0
- package/components/button/index.d.ts +1 -1
- package/components/button/index.js +43 -57
- package/components/button/src/ctx.d.ts +13 -13
- package/components/button/src/ctx.js +1 -39
- package/components/button/src/index.css +1 -0
- package/components/button/src/index.vue.d.ts +37 -73
- package/components/button/src/types.d.ts +1 -1
- package/components/cascader/index.css +1 -0
- package/components/cascader/index.d.ts +1 -1
- package/components/cascader/index.js +34 -49
- package/components/cascader/src/ctx.d.ts +15 -15
- package/components/cascader/src/ctx.js +1 -38
- package/components/cascader/src/index.css +1 -0
- package/components/cascader/src/index.vue.d.ts +45 -70
- package/components/cascader/src/use.d.ts +1 -1
- package/components/cascader/src/use.js +1 -28
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/checkbox/index.js +48 -53
- package/components/checkbox/src/ctx.d.ts +14 -14
- package/components/checkbox/src/ctx.js +1 -46
- package/components/checkbox/src/index.css +1 -0
- package/components/checkbox/src/index.vue.d.ts +43 -63
- package/components/color-picker/index.css +1 -0
- package/components/color-picker/index.d.ts +1 -1
- package/components/color-picker/index.js +38 -42
- package/components/color-picker/src/ctx.d.ts +15 -13
- package/components/color-picker/src/ctx.js +1 -23
- package/components/color-picker/src/index.css +1 -0
- package/components/color-picker/src/index.vue.d.ts +36 -65
- package/components/date-picker/index.css +1 -0
- package/components/date-picker/index.d.ts +1 -1
- package/components/date-picker/index.js +42 -55
- package/components/date-picker/src/ctx.d.ts +41 -34
- package/components/date-picker/src/ctx.js +1 -31
- package/components/date-picker/src/index.css +1 -0
- package/components/date-picker/src/index.vue.d.ts +122 -133
- package/components/date-picker/src/types.d.ts +9 -9
- package/components/date-picker/src/types.js +1 -11
- package/components/esri-input-geojson/index.css +8 -6
- package/components/esri-input-geojson/index.d.ts +1 -1
- package/components/esri-input-geojson/index.js +417 -535
- package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/const.js +1 -33
- package/components/esri-input-geojson/src/ctx.d.ts +44 -35
- package/components/esri-input-geojson/src/ctx.js +1 -128
- package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
- package/components/esri-input-geojson/src/index.css +1 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
- package/components/form/index.css +1 -0
- package/components/form/index.d.ts +1 -1
- package/components/form/index.js +57 -87
- package/components/form/src/ctx.d.ts +176 -204
- package/components/form/src/ctx.js +1 -61
- package/components/form/src/index.css +1 -0
- package/components/form/src/index.vue.d.ts +515 -601
- package/components/form/src/types.d.ts +3 -3
- package/components/form/src/utils.d.ts +1 -1
- package/components/form/src/utils.js +1 -55
- package/components/form-item/index.css +1 -0
- package/components/form-item/index.d.ts +1 -1
- package/components/form-item/index.js +22 -50
- package/components/form-item/src/ctx.d.ts +9 -9
- package/components/form-item/src/ctx.js +1 -53
- package/components/form-item/src/index.css +1 -0
- package/components/form-item/src/index.vue.d.ts +26 -26
- package/components/form-item/src/types.d.ts +1 -1
- package/components/form-item-renderer/index.css +1 -0
- package/components/form-item-renderer/index.d.ts +1 -1
- package/components/form-item-renderer/index.js +10 -18
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/ctx.js +1 -16
- package/components/form-item-renderer/src/index.css +1 -0
- package/components/form-item-renderer/src/index.vue.d.ts +9 -9
- package/components/form-item-renderer/src/symbols.js +1 -3
- package/components/form-item-renderer-template/index.css +1 -0
- package/components/form-item-renderer-template/index.d.ts +1 -1
- package/components/form-item-renderer-template/index.js +6 -13
- package/components/form-item-renderer-template/src/ctx.js +1 -9
- package/components/form-item-renderer-template/src/index.css +1 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
- package/components/geoinput/index.css +1 -0
- package/components/geoinput/index.d.ts +1 -1
- package/components/geoinput/index.js +45 -43
- package/components/geoinput/src/ctx.d.ts +42 -28
- package/components/geoinput/src/ctx.js +1 -39
- package/components/geoinput/src/index.css +1 -0
- package/components/geoinput/src/index.vue.d.ts +111 -223
- package/components/geoinput/src/types.d.ts +3 -3
- package/components/geoinput-read/index.css +1 -0
- package/components/geoinput-read/index.d.ts +1 -1
- package/components/geoinput-read/index.js +120 -160
- package/components/geoinput-read/src/append.vue.d.ts +4 -4
- package/components/geoinput-read/src/core.vue.d.ts +130 -104
- package/components/geoinput-read/src/ctx.d.ts +42 -30
- package/components/geoinput-read/src/ctx.js +1 -66
- package/components/geoinput-read/src/index.css +1 -0
- package/components/geoinput-read/src/index.vue.d.ts +108 -151
- package/components/geoinput-read/src/types.d.ts +1 -1
- package/components/geoinput-update/index.css +9 -7
- package/components/geoinput-update/index.d.ts +1 -1
- package/components/geoinput-update/index.js +335 -366
- package/components/geoinput-update/src/append.vue.d.ts +5 -5
- package/components/geoinput-update/src/ctx.d.ts +38 -28
- package/components/geoinput-update/src/ctx.js +1 -85
- package/components/geoinput-update/src/index.css +1 -0
- package/components/geoinput-update/src/index.vue.d.ts +120 -98
- package/components/geoinput-update/src/types.d.ts +2 -2
- package/components/input/index.css +1 -0
- package/components/input/index.d.ts +1 -1
- package/components/input/index.js +43 -60
- package/components/input/src/ctx.d.ts +31 -25
- package/components/input/src/ctx.js +1 -46
- package/components/input/src/index.css +1 -0
- package/components/input/src/index.vue.d.ts +94 -110
- package/components/input/src/types.d.ts +2 -2
- package/components/input-link/index.css +1 -0
- package/components/input-link/index.d.ts +1 -1
- package/components/input-link/index.js +71 -92
- package/components/input-link/src/ctx.d.ts +26 -20
- package/components/input-link/src/ctx.js +1 -66
- package/components/input-link/src/index.css +1 -0
- package/components/input-link/src/index.vue.d.ts +72 -116
- package/components/input-number/index.css +1 -0
- package/components/input-number/index.d.ts +1 -1
- package/components/input-number/index.js +37 -45
- package/components/input-number/src/ctx.d.ts +15 -15
- package/components/input-number/src/ctx.js +1 -38
- package/components/input-number/src/index.css +1 -0
- package/components/input-number/src/index.vue.d.ts +42 -65
- package/components/input-number/src/types.d.ts +1 -1
- package/components/radio/index.css +1 -0
- package/components/radio/index.d.ts +1 -1
- package/components/radio/index.js +45 -50
- package/components/radio/src/ctx.d.ts +11 -11
- package/components/radio/src/ctx.js +1 -39
- package/components/radio/src/index.css +1 -0
- package/components/radio/src/index.vue.d.ts +41 -60
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/index.css +1 -0
- package/components/select/index.d.ts +1 -1
- package/components/select/index.js +59 -64
- package/components/select/src/ctx.d.ts +39 -41
- package/components/select/src/ctx.js +1 -40
- package/components/select/src/index.css +1 -0
- package/components/select/src/index.vue.d.ts +130 -162
- package/components/select/src/types.d.ts +2 -2
- package/components/slider/index.css +1 -0
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +33 -50
- package/components/slider/src/ctx.d.ts +18 -18
- package/components/slider/src/ctx.js +1 -29
- package/components/slider/src/index.css +1 -0
- package/components/slider/src/index.vue.d.ts +62 -81
- package/components/switch/index.css +1 -0
- package/components/switch/index.d.ts +1 -1
- package/components/switch/index.js +33 -50
- package/components/switch/src/ctx.d.ts +22 -22
- package/components/switch/src/ctx.js +1 -31
- package/components/switch/src/index.css +1 -0
- package/components/switch/src/index.vue.d.ts +65 -83
- package/components/switch/src/types.d.ts +1 -1
- package/components/templates-default/index.css +1 -0
- package/components/templates-default/index.d.ts +1 -1
- package/components/templates-default/index.js +243 -172
- package/components/templates-default/src/ctx.d.ts +1 -1
- package/components/templates-default/src/ctx.js +1 -18
- package/components/templates-default/src/index.css +1 -0
- package/components/templates-default/src/index.vue.d.ts +9 -9
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-element-plus/index.css +1 -0
- package/components/templates-element-plus/index.d.ts +1 -1
- package/components/templates-element-plus/index.js +66 -36
- package/components/templates-element-plus/src/ctx.js +1 -9
- package/components/templates-element-plus/src/index.css +1 -0
- package/components/templates-element-plus/src/index.vue.d.ts +7 -7
- package/components/templates-element-plus/src/types.d.ts +1 -1
- package/components/templates-esri/index.css +1 -0
- package/components/templates-esri/index.d.ts +1 -1
- package/components/templates-esri/index.js +25 -24
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/ctx.js +1 -11
- package/components/templates-esri/src/index.css +1 -0
- package/components/templates-esri/src/index.vue.d.ts +6 -6
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-layout/index.css +1 -0
- package/components/templates-layout/index.d.ts +1 -1
- package/components/templates-layout/index.js +96 -63
- package/components/templates-layout/src/ctx.js +1 -9
- package/components/templates-layout/src/index.css +1 -0
- package/components/templates-layout/src/index.vue.d.ts +7 -7
- package/components/templates-layout/src/types.d.ts +3 -3
- package/components/templates-mapbox/index.css +1 -0
- package/components/templates-mapbox/index.d.ts +1 -1
- package/components/templates-mapbox/index.js +25 -24
- package/components/templates-mapbox/src/ctx.d.ts +1 -1
- package/components/templates-mapbox/src/ctx.js +1 -11
- package/components/templates-mapbox/src/index.css +1 -0
- package/components/templates-mapbox/src/index.vue.d.ts +6 -6
- package/components/templates-mapbox/src/types.d.ts +1 -1
- package/components/upload/index.css +11 -9
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.js +264 -289
- package/components/upload/src/ctx.d.ts +21 -16
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +19 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +54 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +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
|
@@ -9,26 +9,9 @@ import { RestFetch } from '@vunk/core/shared/utils-fetch';
|
|
|
9
9
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
10
10
|
import progress from '@vunk/form/shared/progress-it';
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
16
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
18
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
19
|
-
var __spreadValues = (a, b) => {
|
|
20
|
-
for (var prop in b || (b = {}))
|
|
21
|
-
if (__hasOwnProp.call(b, prop))
|
|
22
|
-
__defNormalProp(a, prop, b[prop]);
|
|
23
|
-
if (__getOwnPropSymbols)
|
|
24
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
25
|
-
if (__propIsEnum.call(b, prop))
|
|
26
|
-
__defNormalProp(a, prop, b[prop]);
|
|
27
|
-
}
|
|
28
|
-
return a;
|
|
29
|
-
};
|
|
30
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
31
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), uploadProps), {
|
|
12
|
+
const props = {
|
|
13
|
+
..._VkfFormItemCtx.props,
|
|
14
|
+
...uploadProps,
|
|
32
15
|
tip: {
|
|
33
16
|
type: String,
|
|
34
17
|
default: ""
|
|
@@ -41,7 +24,7 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
41
24
|
type: Function,
|
|
42
25
|
default: void 0
|
|
43
26
|
}
|
|
44
|
-
}
|
|
27
|
+
};
|
|
45
28
|
const createBindProps = bindPropsFactory(props);
|
|
46
29
|
const emits = {
|
|
47
30
|
"update:fileList": null,
|
|
@@ -51,19 +34,19 @@ const createOnEmits = onEmitsFactory(emits);
|
|
|
51
34
|
|
|
52
35
|
var ctx = /*#__PURE__*/Object.freeze({
|
|
53
36
|
__proto__: null,
|
|
54
|
-
props: props,
|
|
55
37
|
createBindProps: createBindProps,
|
|
38
|
+
createOnEmits: createOnEmits,
|
|
56
39
|
emits: emits,
|
|
57
|
-
|
|
40
|
+
props: props
|
|
58
41
|
});
|
|
59
42
|
|
|
60
43
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
61
44
|
|
|
45
|
+
|
|
62
46
|
// unplugin-vue:/plugin-vue/export-helper
|
|
63
47
|
var export_helper_default = (sfc, props) => {
|
|
64
48
|
let target = sfc.__vccOpts || sfc;
|
|
65
|
-
for (let [key, val] of props)
|
|
66
|
-
target[key] = val;
|
|
49
|
+
for (let [key, val] of props) target[key] = val;
|
|
67
50
|
return target;
|
|
68
51
|
};
|
|
69
52
|
|
|
@@ -72,191 +55,143 @@ var check_vue_vue_type_script_lang_default = {
|
|
|
72
55
|
name: "Check"
|
|
73
56
|
};
|
|
74
57
|
var _hoisted_143 = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
"path",
|
|
79
|
-
{
|
|
58
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
+
viewBox: "0 0 1024 1024"
|
|
60
|
+
},
|
|
61
|
+
_hoisted_243 = /* @__PURE__ */createElementVNode("path", {
|
|
80
62
|
fill: "currentColor",
|
|
81
63
|
d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/* HOISTED */
|
|
86
|
-
), _hoisted_342 = [
|
|
87
|
-
_hoisted_243
|
|
88
|
-
];
|
|
64
|
+
}, null, -1
|
|
65
|
+
/* HOISTED */),
|
|
66
|
+
_hoisted_342 = [_hoisted_243];
|
|
89
67
|
function _sfc_render43(_ctx, _cache, $props, $setup, $data, $options) {
|
|
90
68
|
return openBlock(), createElementBlock("svg", _hoisted_143, _hoisted_342);
|
|
91
69
|
}
|
|
92
|
-
var check_default = /* @__PURE__ */
|
|
70
|
+
var check_default = /* @__PURE__ */export_helper_default(check_vue_vue_type_script_lang_default, [["render", _sfc_render43], ["__file", "check.vue"]]);
|
|
93
71
|
|
|
94
72
|
// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-check.vue?vue&type=script&lang.ts
|
|
95
73
|
var circle_check_vue_vue_type_script_lang_default = {
|
|
96
74
|
name: "CircleCheck"
|
|
97
75
|
};
|
|
98
76
|
var _hoisted_149 = {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
"path",
|
|
103
|
-
{
|
|
77
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
78
|
+
viewBox: "0 0 1024 1024"
|
|
79
|
+
},
|
|
80
|
+
_hoisted_249 = /* @__PURE__ */createElementVNode("path", {
|
|
104
81
|
fill: "currentColor",
|
|
105
82
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/* HOISTED */
|
|
110
|
-
), _hoisted_348 = /* @__PURE__ */ createElementVNode(
|
|
111
|
-
"path",
|
|
112
|
-
{
|
|
83
|
+
}, null, -1
|
|
84
|
+
/* HOISTED */),
|
|
85
|
+
_hoisted_348 = /* @__PURE__ */createElementVNode("path", {
|
|
113
86
|
fill: "currentColor",
|
|
114
87
|
d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
/* HOISTED */
|
|
119
|
-
), _hoisted_415 = [
|
|
120
|
-
_hoisted_249,
|
|
121
|
-
_hoisted_348
|
|
122
|
-
];
|
|
88
|
+
}, null, -1
|
|
89
|
+
/* HOISTED */),
|
|
90
|
+
_hoisted_415 = [_hoisted_249, _hoisted_348];
|
|
123
91
|
function _sfc_render49(_ctx, _cache, $props, $setup, $data, $options) {
|
|
124
92
|
return openBlock(), createElementBlock("svg", _hoisted_149, _hoisted_415);
|
|
125
93
|
}
|
|
126
|
-
var circle_check_default = /* @__PURE__ */
|
|
94
|
+
var circle_check_default = /* @__PURE__ */export_helper_default(circle_check_vue_vue_type_script_lang_default, [["render", _sfc_render49], ["__file", "circle-check.vue"]]);
|
|
127
95
|
|
|
128
96
|
// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/close.vue?vue&type=script&lang.ts
|
|
129
97
|
var close_vue_vue_type_script_lang_default = {
|
|
130
98
|
name: "Close"
|
|
131
99
|
};
|
|
132
100
|
var _hoisted_156 = {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
"path",
|
|
137
|
-
{
|
|
101
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
102
|
+
viewBox: "0 0 1024 1024"
|
|
103
|
+
},
|
|
104
|
+
_hoisted_256 = /* @__PURE__ */createElementVNode("path", {
|
|
138
105
|
fill: "currentColor",
|
|
139
106
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/* HOISTED */
|
|
144
|
-
), _hoisted_355 = [
|
|
145
|
-
_hoisted_256
|
|
146
|
-
];
|
|
107
|
+
}, null, -1
|
|
108
|
+
/* HOISTED */),
|
|
109
|
+
_hoisted_355 = [_hoisted_256];
|
|
147
110
|
function _sfc_render56(_ctx, _cache, $props, $setup, $data, $options) {
|
|
148
111
|
return openBlock(), createElementBlock("svg", _hoisted_156, _hoisted_355);
|
|
149
112
|
}
|
|
150
|
-
var close_default = /* @__PURE__ */
|
|
113
|
+
var close_default = /* @__PURE__ */export_helper_default(close_vue_vue_type_script_lang_default, [["render", _sfc_render56], ["__file", "close.vue"]]);
|
|
151
114
|
|
|
152
115
|
// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete.vue?vue&type=script&lang.ts
|
|
153
116
|
var delete_vue_vue_type_script_lang_default = {
|
|
154
117
|
name: "Delete"
|
|
155
118
|
};
|
|
156
119
|
var _hoisted_180 = {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
"path",
|
|
161
|
-
{
|
|
120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
+
viewBox: "0 0 1024 1024"
|
|
122
|
+
},
|
|
123
|
+
_hoisted_280 = /* @__PURE__ */createElementVNode("path", {
|
|
162
124
|
fill: "currentColor",
|
|
163
125
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/* HOISTED */
|
|
168
|
-
), _hoisted_379 = [
|
|
169
|
-
_hoisted_280
|
|
170
|
-
];
|
|
126
|
+
}, null, -1
|
|
127
|
+
/* HOISTED */),
|
|
128
|
+
_hoisted_379 = [_hoisted_280];
|
|
171
129
|
function _sfc_render80(_ctx, _cache, $props, $setup, $data, $options) {
|
|
172
130
|
return openBlock(), createElementBlock("svg", _hoisted_180, _hoisted_379);
|
|
173
131
|
}
|
|
174
|
-
var delete_default = /* @__PURE__ */
|
|
132
|
+
var delete_default = /* @__PURE__ */export_helper_default(delete_vue_vue_type_script_lang_default, [["render", _sfc_render80], ["__file", "delete.vue"]]);
|
|
175
133
|
|
|
176
134
|
// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document.vue?vue&type=script&lang.ts
|
|
177
135
|
var document_vue_vue_type_script_lang_default = {
|
|
178
136
|
name: "Document"
|
|
179
137
|
};
|
|
180
138
|
var _hoisted_190 = {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
"path",
|
|
185
|
-
{
|
|
139
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
140
|
+
viewBox: "0 0 1024 1024"
|
|
141
|
+
},
|
|
142
|
+
_hoisted_290 = /* @__PURE__ */createElementVNode("path", {
|
|
186
143
|
fill: "currentColor",
|
|
187
144
|
d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
/* HOISTED */
|
|
192
|
-
), _hoisted_389 = [
|
|
193
|
-
_hoisted_290
|
|
194
|
-
];
|
|
145
|
+
}, null, -1
|
|
146
|
+
/* HOISTED */),
|
|
147
|
+
_hoisted_389 = [_hoisted_290];
|
|
195
148
|
function _sfc_render90(_ctx, _cache, $props, $setup, $data, $options) {
|
|
196
149
|
return openBlock(), createElementBlock("svg", _hoisted_190, _hoisted_389);
|
|
197
150
|
}
|
|
198
|
-
var document_default = /* @__PURE__ */
|
|
151
|
+
var document_default = /* @__PURE__ */export_helper_default(document_vue_vue_type_script_lang_default, [["render", _sfc_render90], ["__file", "document.vue"]]);
|
|
199
152
|
|
|
200
153
|
// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/download.vue?vue&type=script&lang.ts
|
|
201
154
|
var download_vue_vue_type_script_lang_default = {
|
|
202
155
|
name: "Download"
|
|
203
156
|
};
|
|
204
157
|
var _hoisted_191 = {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
"path",
|
|
209
|
-
{
|
|
158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
+
viewBox: "0 0 1024 1024"
|
|
160
|
+
},
|
|
161
|
+
_hoisted_291 = /* @__PURE__ */createElementVNode("path", {
|
|
210
162
|
fill: "currentColor",
|
|
211
163
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
/* HOISTED */
|
|
216
|
-
), _hoisted_390 = [
|
|
217
|
-
_hoisted_291
|
|
218
|
-
];
|
|
164
|
+
}, null, -1
|
|
165
|
+
/* HOISTED */),
|
|
166
|
+
_hoisted_390 = [_hoisted_291];
|
|
219
167
|
function _sfc_render91(_ctx, _cache, $props, $setup, $data, $options) {
|
|
220
168
|
return openBlock(), createElementBlock("svg", _hoisted_191, _hoisted_390);
|
|
221
169
|
}
|
|
222
|
-
var download_default = /* @__PURE__ */
|
|
170
|
+
var download_default = /* @__PURE__ */export_helper_default(download_vue_vue_type_script_lang_default, [["render", _sfc_render91], ["__file", "download.vue"]]);
|
|
223
171
|
|
|
224
172
|
// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/zoom-in.vue?vue&type=script&lang.ts
|
|
225
173
|
var zoom_in_vue_vue_type_script_lang_default = {
|
|
226
174
|
name: "ZoomIn"
|
|
227
175
|
};
|
|
228
176
|
var _hoisted_1292 = {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
"path",
|
|
233
|
-
{
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
viewBox: "0 0 1024 1024"
|
|
179
|
+
},
|
|
180
|
+
_hoisted_2292 = /* @__PURE__ */createElementVNode("path", {
|
|
234
181
|
fill: "currentColor",
|
|
235
182
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
/* HOISTED */
|
|
240
|
-
), _hoisted_3291 = [
|
|
241
|
-
_hoisted_2292
|
|
242
|
-
];
|
|
183
|
+
}, null, -1
|
|
184
|
+
/* HOISTED */),
|
|
185
|
+
_hoisted_3291 = [_hoisted_2292];
|
|
243
186
|
function _sfc_render292(_ctx, _cache, $props, $setup, $data, $options) {
|
|
244
187
|
return openBlock(), createElementBlock("svg", _hoisted_1292, _hoisted_3291);
|
|
245
188
|
}
|
|
246
|
-
var zoom_in_default = /* @__PURE__ */
|
|
247
|
-
|
|
248
|
-
var _export_sfc = (sfc, props) => {
|
|
249
|
-
const target = sfc.__vccOpts || sfc;
|
|
250
|
-
for (const [key, val] of props) {
|
|
251
|
-
target[key] = val;
|
|
252
|
-
}
|
|
253
|
-
return target;
|
|
254
|
-
};
|
|
189
|
+
var zoom_in_default = /* @__PURE__ */export_helper_default(zoom_in_vue_vue_type_script_lang_default, [["render", _sfc_render292], ["__file", "zoom-in.vue"]]);
|
|
255
190
|
|
|
256
191
|
const restFetch = new RestFetch({
|
|
257
192
|
baseURL: ""
|
|
258
193
|
});
|
|
259
|
-
|
|
194
|
+
var script$1 = defineComponent({
|
|
260
195
|
components: {
|
|
261
196
|
ElProgress,
|
|
262
197
|
ElIcon,
|
|
@@ -293,10 +228,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
293
228
|
emits: {
|
|
294
229
|
"remove": (e) => e
|
|
295
230
|
},
|
|
296
|
-
setup(props, {
|
|
231
|
+
setup(props, {
|
|
232
|
+
emit
|
|
233
|
+
}) {
|
|
297
234
|
const nsUpload = useNamespace("upload");
|
|
298
235
|
const nsIcon = useNamespace("icon");
|
|
299
|
-
const {
|
|
236
|
+
const {
|
|
237
|
+
t
|
|
238
|
+
} = useLocale();
|
|
300
239
|
const handleRemove = (file = props.file) => {
|
|
301
240
|
emit("remove", file);
|
|
302
241
|
};
|
|
@@ -323,8 +262,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
323
262
|
};
|
|
324
263
|
}
|
|
325
264
|
});
|
|
265
|
+
|
|
326
266
|
const _hoisted_1$1 = ["src"];
|
|
327
|
-
function
|
|
267
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
328
268
|
const _component_Document = resolveComponent("Document");
|
|
329
269
|
const _component_el_icon = resolveComponent("el-icon");
|
|
330
270
|
const _component_Download = resolveComponent("Download");
|
|
@@ -334,160 +274,179 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
334
274
|
const _component_Close = resolveComponent("Close");
|
|
335
275
|
const _component_zoom_in = resolveComponent("zoom-in");
|
|
336
276
|
const _component_Delete = resolveComponent("Delete");
|
|
337
|
-
return openBlock(), createElementBlock(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
277
|
+
return openBlock(), createElementBlock(
|
|
278
|
+
Fragment,
|
|
279
|
+
null,
|
|
280
|
+
[createCommentVNode(" picture "), _ctx.listType === "picture" || _ctx.file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock(
|
|
281
|
+
Fragment,
|
|
282
|
+
{
|
|
283
|
+
key: 0
|
|
284
|
+
},
|
|
285
|
+
[/\.(svg|png|jpg|jpeg)$/.test(_ctx.file.name) ? (openBlock(), createElementBlock("img", {
|
|
341
286
|
key: 0,
|
|
342
287
|
class: normalizeClass(_ctx.nsUpload.be("list", "item-thumbnail")),
|
|
343
288
|
src: _ctx.file.url,
|
|
344
289
|
alt: ""
|
|
345
|
-
}, null, 10, _hoisted_1$1)) : (openBlock(), createBlock(_component_Document, {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
},
|
|
356
|
-
|
|
290
|
+
}, null, 10, _hoisted_1$1)) : (openBlock(), createBlock(_component_Document, {
|
|
291
|
+
key: 1
|
|
292
|
+
}))],
|
|
293
|
+
64
|
|
294
|
+
/* STABLE_FRAGMENT */
|
|
295
|
+
)) : createCommentVNode("v-if", true), createCommentVNode(" text "), _ctx.listType !== "picture" && (_ctx.file.status === "uploading" || _ctx.listType !== "picture-card") ? (openBlock(), createElementBlock(
|
|
296
|
+
"div",
|
|
297
|
+
{
|
|
298
|
+
key: 1,
|
|
299
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-info"))
|
|
300
|
+
},
|
|
301
|
+
[createElementVNode(
|
|
302
|
+
"a",
|
|
303
|
+
{
|
|
304
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-name")),
|
|
305
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.onPreview(_ctx.file), ["prevent"]))
|
|
306
|
+
},
|
|
307
|
+
[createVNode(_component_el_icon, {
|
|
357
308
|
class: normalizeClass(_ctx.nsIcon.m("document"))
|
|
358
309
|
}, {
|
|
359
|
-
default: withCtx(() => [
|
|
360
|
-
createVNode(_component_Document)
|
|
361
|
-
]),
|
|
310
|
+
default: withCtx(() => [createVNode(_component_Document)]),
|
|
362
311
|
_: 1
|
|
363
|
-
|
|
364
|
-
createVNode(_component_el_icon, {
|
|
365
|
-
class: normalizeClass([
|
|
366
|
-
_ctx.nsIcon.m("download"),
|
|
367
|
-
_ctx.nsIcon.m("download-primary")
|
|
368
|
-
]),
|
|
312
|
+
/* STABLE */
|
|
313
|
+
}, 8, ["class"]), createVNode(_component_el_icon, {
|
|
314
|
+
class: normalizeClass([_ctx.nsIcon.m("download"), _ctx.nsIcon.m("download-primary")]),
|
|
369
315
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleDownload(_ctx.file))
|
|
370
316
|
}, {
|
|
371
|
-
default: withCtx(() => [
|
|
372
|
-
createVNode(_component_Download)
|
|
373
|
-
]),
|
|
317
|
+
default: withCtx(() => [createVNode(_component_Download)]),
|
|
374
318
|
_: 1
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
319
|
+
/* STABLE */
|
|
320
|
+
}, 8, ["class"]), createElementVNode(
|
|
321
|
+
"span",
|
|
322
|
+
{
|
|
323
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-file-name"))
|
|
324
|
+
},
|
|
325
|
+
toDisplayString(_ctx.file.name),
|
|
326
|
+
3
|
|
327
|
+
/* TEXT, CLASS */
|
|
328
|
+
)],
|
|
329
|
+
2
|
|
330
|
+
/* CLASS */
|
|
331
|
+
), _ctx.file.status === "uploading" ? (openBlock(), createBlock(_component_el_progress, {
|
|
381
332
|
key: 0,
|
|
382
333
|
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
383
334
|
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
384
335
|
percentage: Number(_ctx.file.percentage),
|
|
385
336
|
style: normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
386
|
-
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
337
|
+
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)],
|
|
338
|
+
2
|
|
339
|
+
/* CLASS */
|
|
340
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
341
|
+
"label",
|
|
342
|
+
{
|
|
343
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-status-label"))
|
|
344
|
+
},
|
|
345
|
+
[_ctx.listType === "text" ? (openBlock(), createBlock(_component_el_icon, {
|
|
392
346
|
key: 0,
|
|
393
|
-
class: normalizeClass([
|
|
394
|
-
_ctx.nsIcon.m("upload-success"),
|
|
395
|
-
_ctx.nsIcon.m("circle-check")
|
|
396
|
-
])
|
|
347
|
+
class: normalizeClass([_ctx.nsIcon.m("upload-success"), _ctx.nsIcon.m("circle-check")])
|
|
397
348
|
}, {
|
|
398
|
-
default: withCtx(() => [
|
|
399
|
-
createVNode(_component_circle_check)
|
|
400
|
-
]),
|
|
349
|
+
default: withCtx(() => [createVNode(_component_circle_check)]),
|
|
401
350
|
_: 1
|
|
351
|
+
/* STABLE */
|
|
402
352
|
}, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (openBlock(), createBlock(_component_el_icon, {
|
|
403
353
|
key: 1,
|
|
404
354
|
class: normalizeClass([_ctx.nsIcon.m("upload-success"), _ctx.nsIcon.m("check")])
|
|
405
355
|
}, {
|
|
406
|
-
default: withCtx(() => [
|
|
407
|
-
createVNode(_component_Check)
|
|
408
|
-
]),
|
|
356
|
+
default: withCtx(() => [createVNode(_component_Check)]),
|
|
409
357
|
_: 1
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
358
|
+
/* STABLE */
|
|
359
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)],
|
|
360
|
+
2
|
|
361
|
+
/* CLASS */
|
|
362
|
+
), !_ctx.disabled ? (openBlock(), createBlock(_component_el_icon, {
|
|
413
363
|
key: 2,
|
|
414
364
|
class: normalizeClass(_ctx.nsIcon.m("close")),
|
|
415
365
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handleRemove(_ctx.file))
|
|
416
366
|
}, {
|
|
417
|
-
default: withCtx(() => [
|
|
418
|
-
createVNode(_component_Close)
|
|
419
|
-
]),
|
|
367
|
+
default: withCtx(() => [createVNode(_component_Close)]),
|
|
420
368
|
_: 1
|
|
421
|
-
|
|
422
|
-
createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
423
|
-
createCommentVNode(" This is a bug which needs to be fixed "),
|
|
424
|
-
createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
425
|
-
createCommentVNode(` <i v-if="!disabled" :class="nsIcon.m('close-tip')">{{
|
|
369
|
+
/* STABLE */
|
|
370
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true), createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"), createCommentVNode(" This is a bug which needs to be fixed "), createCommentVNode(" TODO: Fix the incorrect navigation interaction "), createCommentVNode(` <i v-if="!disabled" :class="nsIcon.m('close-tip')">{{
|
|
426
371
|
t('el.upload.deleteTip')
|
|
427
|
-
}}</i> `),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
_ctx.preview ? (openBlock(), createElementBlock(
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
372
|
+
}}</i> `), createCommentVNode(" picture-card "), _ctx.listType === "picture-card" ? (openBlock(), createElementBlock(
|
|
373
|
+
"span",
|
|
374
|
+
{
|
|
375
|
+
key: 3,
|
|
376
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-actions"))
|
|
377
|
+
},
|
|
378
|
+
[_ctx.preview ? (openBlock(), createElementBlock(
|
|
379
|
+
"span",
|
|
380
|
+
{
|
|
381
|
+
key: 0,
|
|
382
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-preview")),
|
|
383
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.onPreview(_ctx.file))
|
|
384
|
+
},
|
|
385
|
+
[createVNode(_component_el_icon, {
|
|
439
386
|
class: normalizeClass(_ctx.nsIcon.m("zoom-in"))
|
|
440
387
|
}, {
|
|
441
|
-
default: withCtx(() => [
|
|
442
|
-
createVNode(_component_zoom_in)
|
|
443
|
-
]),
|
|
388
|
+
default: withCtx(() => [createVNode(_component_zoom_in)]),
|
|
444
389
|
_: 1
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
390
|
+
/* STABLE */
|
|
391
|
+
}, 8, ["class"])],
|
|
392
|
+
2
|
|
393
|
+
/* CLASS */
|
|
394
|
+
)) : createCommentVNode("v-if", true), createCommentVNode(" \u4E0B\u8F7D "), createElementVNode(
|
|
395
|
+
"span",
|
|
396
|
+
{
|
|
397
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-download")),
|
|
398
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.handleDownload(_ctx.file))
|
|
399
|
+
},
|
|
400
|
+
[createVNode(_component_el_icon, {
|
|
453
401
|
class: normalizeClass(_ctx.nsIcon.m("download"))
|
|
454
402
|
}, {
|
|
455
|
-
default: withCtx(() => [
|
|
456
|
-
createVNode(_component_Download)
|
|
457
|
-
]),
|
|
403
|
+
default: withCtx(() => [createVNode(_component_Download)]),
|
|
458
404
|
_: 1
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
405
|
+
/* STABLE */
|
|
406
|
+
}, 8, ["class"])],
|
|
407
|
+
2
|
|
408
|
+
/* CLASS */
|
|
409
|
+
), !_ctx.disabled ? (openBlock(), createElementBlock(
|
|
410
|
+
"span",
|
|
411
|
+
{
|
|
412
|
+
key: 1,
|
|
413
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-delete")),
|
|
414
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleRemove(_ctx.file))
|
|
415
|
+
},
|
|
416
|
+
[createVNode(_component_el_icon, {
|
|
467
417
|
class: normalizeClass(_ctx.nsIcon.m("delete"))
|
|
468
418
|
}, {
|
|
469
|
-
default: withCtx(() => [
|
|
470
|
-
createVNode(_component_Delete)
|
|
471
|
-
]),
|
|
419
|
+
default: withCtx(() => [createVNode(_component_Delete)]),
|
|
472
420
|
_: 1
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
421
|
+
/* STABLE */
|
|
422
|
+
}, 8, ["class"])],
|
|
423
|
+
2
|
|
424
|
+
/* CLASS */
|
|
425
|
+
)) : createCommentVNode("v-if", true)],
|
|
426
|
+
2
|
|
427
|
+
/* CLASS */
|
|
428
|
+
)) : createCommentVNode("v-if", true)],
|
|
429
|
+
64
|
|
430
|
+
/* STABLE_FRAGMENT */
|
|
431
|
+
);
|
|
477
432
|
}
|
|
478
|
-
var FileVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "file.vue"]]);
|
|
479
433
|
|
|
480
|
-
|
|
434
|
+
script$1.render = render$1;
|
|
435
|
+
script$1.__file = "upload/src/file.vue";
|
|
436
|
+
|
|
437
|
+
var script = defineComponent({
|
|
481
438
|
name: "VkfUpload",
|
|
482
439
|
components: {
|
|
483
440
|
VkfFormItem,
|
|
484
441
|
ElUpload,
|
|
485
|
-
FileVue,
|
|
442
|
+
FileVue: script$1,
|
|
486
443
|
ElLink
|
|
487
444
|
},
|
|
488
445
|
emits,
|
|
489
446
|
props,
|
|
490
|
-
setup(props2, {
|
|
447
|
+
setup(props2, {
|
|
448
|
+
emit
|
|
449
|
+
}) {
|
|
491
450
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
492
451
|
const coreBindProps = createUploadBindProps(props2, ["disabled", "fileList", "beforeUpload", "onSuccess"]);
|
|
493
452
|
const uploadRef = shallowRef();
|
|
@@ -529,19 +488,25 @@ const _sfc_main = defineComponent({
|
|
|
529
488
|
handleRemove,
|
|
530
489
|
readonly,
|
|
531
490
|
onSuccess,
|
|
491
|
+
// onProgress,
|
|
532
492
|
beforeUpload
|
|
533
493
|
};
|
|
534
494
|
}
|
|
535
495
|
});
|
|
536
|
-
|
|
537
|
-
|
|
496
|
+
|
|
497
|
+
const _hoisted_1 = {
|
|
498
|
+
class: "el-upload__tip"
|
|
499
|
+
};
|
|
500
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
538
501
|
const _component_ElLink = resolveComponent("ElLink");
|
|
539
502
|
const _component_FileVue = resolveComponent("FileVue");
|
|
540
503
|
const _component_ElUpload = resolveComponent("ElUpload");
|
|
541
504
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
542
|
-
return openBlock(), createBlock(
|
|
543
|
-
|
|
544
|
-
|
|
505
|
+
return openBlock(), createBlock(
|
|
506
|
+
_component_VkfFormItem,
|
|
507
|
+
normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
|
|
508
|
+
{
|
|
509
|
+
default: withCtx(() => [createVNode(_component_ElUpload, mergeProps({
|
|
545
510
|
class: ["vkf-upload", {
|
|
546
511
|
"is-readonly": _ctx.readonly,
|
|
547
512
|
"is-empty": _ctx.fileList?.length === 0,
|
|
@@ -555,54 +520,64 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
555
520
|
"before-upload": _ctx.beforeUpload,
|
|
556
521
|
disabled: _ctx.readonly || _ctx.disabled
|
|
557
522
|
}), createSlots({
|
|
558
|
-
file: withCtx(({
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
]),
|
|
568
|
-
default: withCtx(() => [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
})
|
|
576
|
-
])
|
|
577
|
-
]),
|
|
523
|
+
file: withCtx(({
|
|
524
|
+
file
|
|
525
|
+
}) => [createVNode(_component_FileVue, {
|
|
526
|
+
file,
|
|
527
|
+
listType: _ctx.listType,
|
|
528
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
529
|
+
onPreview: _ctx.onPreview,
|
|
530
|
+
preview: _ctx.preview,
|
|
531
|
+
onRemove: _ctx.handleRemove
|
|
532
|
+
}, null, 8, ["file", "listType", "disabled", "onPreview", "preview", "onRemove"])]),
|
|
533
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_component_ElLink, {
|
|
534
|
+
type: "primary"
|
|
535
|
+
}, {
|
|
536
|
+
default: withCtx(() => [createTextVNode("+ \u9009\u62E9\u6587\u4EF6")]),
|
|
537
|
+
_: 1
|
|
538
|
+
/* STABLE */
|
|
539
|
+
})])]),
|
|
578
540
|
_: 2
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
541
|
+
/* DYNAMIC */
|
|
542
|
+
}, [_ctx.tip ? {
|
|
543
|
+
name: "tip",
|
|
544
|
+
fn: withCtx(() => [createElementVNode(
|
|
545
|
+
"div",
|
|
546
|
+
_hoisted_1,
|
|
547
|
+
toDisplayString(_ctx.tip),
|
|
548
|
+
1
|
|
549
|
+
/* TEXT */
|
|
550
|
+
)]),
|
|
551
|
+
key: "0"
|
|
552
|
+
} : void 0]), 1040, ["class", "fileList", "on-success", "before-upload", "disabled"]), createElementVNode(
|
|
553
|
+
"span",
|
|
554
|
+
{
|
|
555
|
+
class: normalizeClass(["vkf-upload-empty-tip", {
|
|
556
|
+
"is-readonly": _ctx.readonly,
|
|
557
|
+
"is-empty": _ctx.fileList?.length === 0
|
|
558
|
+
}])
|
|
559
|
+
},
|
|
560
|
+
"\u6682\u65E0",
|
|
561
|
+
2
|
|
562
|
+
/* CLASS */
|
|
563
|
+
)]),
|
|
564
|
+
_: 3
|
|
565
|
+
/* FORWARDED */
|
|
566
|
+
},
|
|
567
|
+
16
|
|
568
|
+
/* FULL_PROPS */
|
|
569
|
+
);
|
|
597
570
|
}
|
|
598
|
-
|
|
571
|
+
|
|
572
|
+
script.render = render;
|
|
573
|
+
script.__file = "upload/src/index.vue";
|
|
599
574
|
|
|
600
575
|
var types = /*#__PURE__*/Object.freeze({
|
|
601
576
|
__proto__: null
|
|
602
577
|
});
|
|
603
578
|
|
|
604
|
-
|
|
605
|
-
app.component(
|
|
579
|
+
script.install = (app) => {
|
|
580
|
+
app.component(script.name, script);
|
|
606
581
|
};
|
|
607
582
|
|
|
608
|
-
export { VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload,
|
|
583
|
+
export { script as VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload, script as default };
|