@vunk/form 2.17.2 → 2.18.1
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/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/card-input-collection/index.cjs +2 -2
- package/components/card-input-collection/index.css +11 -11
- package/components/card-input-collection/index.mjs +2 -2
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.mjs +1 -1
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker-range/index.cjs +11 -4
- package/components/date-picker-range/index.mjs +11 -4
- package/components/date-picker-range/src/ctx.d.ts +2 -2
- package/components/date-picker-range/src/index.vue.d.ts +8 -5
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog-input-collection/index.cjs +58 -36
- package/components/dialog-input-collection/index.mjs +51 -29
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +2 -0
- package/components/download-plus/index.cjs +25 -14
- package/components/download-plus/index.mjs +26 -15
- package/components/download-plus/src/index.vue.d.ts +1 -0
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +1 -1
- package/components/esri-input-geojson/index.cjs +16 -11
- package/components/esri-input-geojson/index.mjs +16 -11
- package/components/esri-input-geojson/src/ctx.d.ts +1 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +4 -3
- package/components/fieldset/index.cjs +1 -1
- package/components/fieldset/index.mjs +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form-item/index.cjs +19 -16
- package/components/form-item/index.css +12 -12
- package/components/form-item/index.mjs +20 -17
- package/components/form-item-renderer/index.cjs +2 -2
- package/components/form-item-renderer/index.mjs +2 -2
- package/components/form-item-renderer-template/index.cjs +1 -1
- package/components/form-item-renderer-template/index.mjs +1 -1
- package/components/forms-provider/index.cjs +3 -3
- package/components/forms-provider/index.mjs +3 -3
- package/components/information/index.cjs +1 -1
- package/components/information/index.mjs +1 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +1 -1
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +1 -1
- package/components/information-templates-default/index.cjs +1 -1
- package/components/information-templates-default/index.mjs +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +1 -1
- package/components/input-array/index.cjs +2 -2
- package/components/input-array/index.mjs +2 -2
- package/components/input-collection/index.cjs +13 -8
- package/components/input-collection/index.css +8 -8
- package/components/input-collection/index.mjs +8 -3
- package/components/input-collection/src/core.vue.d.ts +1 -0
- package/components/input-file/index.cjs +2 -2
- package/components/input-file/index.mjs +2 -2
- package/components/input-link/index.cjs +20 -10
- package/components/input-link/index.mjs +17 -7
- package/components/input-link/src/ctx.d.ts +3 -3
- package/components/input-link/src/index.vue.d.ts +9 -6
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +1 -1
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +1 -1
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +1 -1
- package/components/radio/index.cjs +3 -3
- package/components/radio/index.css +8 -8
- package/components/radio/index.mjs +3 -3
- package/components/radio/src/index.vue.d.ts +2 -2
- package/components/radio/src/option.vue.d.ts +1 -1
- package/components/radio/src/wraper.vue.d.ts +1 -1
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +1 -1
- package/components/select/index.cjs +3 -3
- package/components/select/index.css +9 -9
- package/components/select/index.mjs +3 -3
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +1 -1
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.mjs +1 -1
- package/components/tables-select/index.cjs +7 -4
- package/components/tables-select/index.mjs +7 -4
- package/components/tables-select/src/index.vue.d.ts +1 -0
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +1 -1
- package/components/templates-default/index.cjs +1 -1
- package/components/templates-default/index.mjs +1 -1
- package/components/templates-element-plus/index.cjs +1 -1
- package/components/templates-element-plus/index.mjs +1 -1
- package/components/templates-esri/index.cjs +1 -1
- package/components/templates-esri/index.mjs +1 -1
- package/components/templates-layout/index.cjs +1 -1
- package/components/templates-layout/index.mjs +1 -1
- package/components/templates-variant/index.cjs +1 -1
- package/components/templates-variant/index.mjs +1 -1
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +1 -1
- package/components/upload/index.cjs +42 -29
- package/components/upload/index.mjs +41 -28
- package/components/upload/src/ctx.d.ts +1 -1
- package/components/upload/src/file.vue.d.ts +4 -3
- package/components/upload/src/index.vue.d.ts +7 -5
- package/components/upload/src/wraper.vue.d.ts +2 -2
- package/components/upload-plus/index.cjs +57 -38
- package/components/upload-plus/index.mjs +58 -39
- package/components/upload-plus/src/index.vue.d.ts +1 -0
- package/components/van-cascader/index.cjs +1 -1
- package/components/van-cascader/index.mjs +1 -1
- package/components/var-datetime-picker/index.cjs +19 -16
- package/components/var-datetime-picker/index.mjs +19 -16
- package/components/var-datetime-picker/src/index.vue.d.ts +1 -0
- package/components/vditor/index.cjs +1 -1
- package/components/vditor/index.mjs +1 -1
- package/composables/element-plus/index.cjs +23 -0
- package/composables/element-plus/index.d.ts +1 -0
- package/composables/element-plus/index.mjs +21 -0
- package/composables/element-plus/useLocale.d.ts +8 -0
- package/index.css +48 -48
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/locale/index.cjs +110 -0
- package/locale/index.d.ts +2 -0
- package/locale/index.mjs +107 -0
- package/locale/lang/en.d.ts +53 -0
- package/locale/lang/index.cjs +2 -0
- package/locale/lang/index.d.ts +0 -0
- package/locale/lang/index.mjs +1 -0
- package/locale/lang/zh-cn.d.ts +53 -0
- package/package.json +160 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.el-select.is-readonly{
|
|
2
|
-
--el-readonly-cursor: text;
|
|
3
|
-
--el-disabled-bg-color: initial;
|
|
1
|
+
.el-select.is-readonly{
|
|
2
|
+
--el-readonly-cursor: text;
|
|
3
|
+
--el-disabled-bg-color: initial;
|
|
4
4
|
--el-disabled-text-color: var(--el-input-text-color);
|
|
5
5
|
}
|
|
6
|
-
.el-select.is-readonly .el-select__wrapper.is-disabled {
|
|
7
|
-
background-color: initial;
|
|
8
|
-
color: var(--el-input-text-color);
|
|
6
|
+
.el-select.is-readonly .el-select__wrapper.is-disabled {
|
|
7
|
+
background-color: initial;
|
|
8
|
+
color: var(--el-input-text-color);
|
|
9
9
|
cursor: var(--el-readonly-cursor);
|
|
10
10
|
}
|
|
11
|
-
.el-select.is-readonly .el-input.is-disabled .el-input__inner,
|
|
12
|
-
.el-select.is-readonly .el-input.is-disabled .el-select__caret,
|
|
13
|
-
.el-select.is-readonly .el-input.is-disabled .el-input__wrapper{
|
|
11
|
+
.el-select.is-readonly .el-input.is-disabled .el-input__inner,
|
|
12
|
+
.el-select.is-readonly .el-input.is-disabled .el-select__caret,
|
|
13
|
+
.el-select.is-readonly .el-input.is-disabled .el-input__wrapper{
|
|
14
14
|
cursor: var(--el-readonly-cursor);
|
|
15
15
|
}
|
|
@@ -129,7 +129,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
var Options = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "
|
|
132
|
+
var Options = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\select\\src\\options.vue"]]);
|
|
133
133
|
|
|
134
134
|
var _sfc_main$1 = defineComponent({
|
|
135
135
|
components: {
|
|
@@ -273,7 +273,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
273
273
|
/* FULL_PROPS */
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
|
-
var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "
|
|
276
|
+
var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\select\\src\\core.vue"]]);
|
|
277
277
|
|
|
278
278
|
var _sfc_main = defineComponent({
|
|
279
279
|
name: "VkfSelect",
|
|
@@ -291,7 +291,7 @@ var _sfc_main = defineComponent({
|
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
var VkfSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
294
|
+
var VkfSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\select\\src\\index.vue"]]);
|
|
295
295
|
|
|
296
296
|
var types = /*#__PURE__*/Object.freeze({
|
|
297
297
|
__proto__: null
|
|
@@ -73,7 +73,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73
73
|
/* FULL_PROPS */
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
var VkfSlider = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
76
|
+
var VkfSlider = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\slider\\src\\index.vue"]]);
|
|
77
77
|
|
|
78
78
|
var types = /*#__PURE__*/Object.freeze({
|
|
79
79
|
__proto__: null
|
|
@@ -69,7 +69,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
69
|
/* FULL_PROPS */
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
var VkfSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
72
|
+
var VkfSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\slider\\src\\index.vue"]]);
|
|
73
73
|
|
|
74
74
|
var types = /*#__PURE__*/Object.freeze({
|
|
75
75
|
__proto__: null
|
|
@@ -73,7 +73,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73
73
|
/* FULL_PROPS */
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
var VkfSwitch = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
76
|
+
var VkfSwitch = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\switch\\src\\index.vue"]]);
|
|
77
77
|
|
|
78
78
|
var types = /*#__PURE__*/Object.freeze({
|
|
79
79
|
__proto__: null
|
|
@@ -69,7 +69,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
69
|
/* FULL_PROPS */
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
var VkfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
72
|
+
var VkfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\switch\\src\\index.vue"]]);
|
|
73
73
|
|
|
74
74
|
var types = /*#__PURE__*/Object.freeze({
|
|
75
75
|
__proto__: null
|
|
@@ -11,6 +11,7 @@ var elementPlus = require('element-plus');
|
|
|
11
11
|
var array = require('@vunk/shared/array');
|
|
12
12
|
var object = require('@vunk/shared/object');
|
|
13
13
|
var composables = require('@vunk/form/composables');
|
|
14
|
+
var elementPlus$1 = require('@vunk/form/composables/element-plus');
|
|
14
15
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
15
16
|
|
|
16
17
|
const props = {
|
|
@@ -97,12 +98,12 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
97
98
|
|
|
98
99
|
var _sfc_main = vue.defineComponent({
|
|
99
100
|
name: "VkfTablesSelect",
|
|
100
|
-
inheritAttrs: false,
|
|
101
101
|
components: {
|
|
102
102
|
VkfSelect: select.VkfSelect,
|
|
103
103
|
VkTablesV1Checkbox: tablesV1Checkbox.VkTablesV1Checkbox,
|
|
104
104
|
ElDialog: elementPlus.ElDialog
|
|
105
105
|
},
|
|
106
|
+
inheritAttrs: false,
|
|
106
107
|
props,
|
|
107
108
|
emits,
|
|
108
109
|
setup(props2, { emit }) {
|
|
@@ -110,6 +111,7 @@ var _sfc_main = vue.defineComponent({
|
|
|
110
111
|
const tablesProps = tablesV1Checkbox._VkTablesV1CheckboxCtx.createBindProps(props2, ["modelValue"]);
|
|
111
112
|
const tablesEmits = tablesV1Checkbox._VkTablesV1CheckboxCtx.createOnEmits(emit, ["update:modelValue"]);
|
|
112
113
|
const readonly = composables.useComputedReadonly(props2);
|
|
114
|
+
const { tr } = elementPlus$1.useLocale();
|
|
113
115
|
const dialogVisible = vue.ref(false);
|
|
114
116
|
const backupRowMap = vue.ref(/* @__PURE__ */ new Map());
|
|
115
117
|
const theModelValue = vue.computed({
|
|
@@ -193,7 +195,8 @@ var _sfc_main = vue.defineComponent({
|
|
|
193
195
|
dialogVisible,
|
|
194
196
|
selectValue,
|
|
195
197
|
theModelValue,
|
|
196
|
-
readonly
|
|
198
|
+
readonly,
|
|
199
|
+
tr
|
|
197
200
|
};
|
|
198
201
|
}
|
|
199
202
|
});
|
|
@@ -224,7 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
224
227
|
vue.createVNode(_component_ElDialog, {
|
|
225
228
|
modelValue: _ctx.dialogVisible,
|
|
226
229
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.dialogVisible = $event),
|
|
227
|
-
title: _ctx.placeholder || _ctx.label || "\u8BF7\u9009\u62E9",
|
|
230
|
+
title: _ctx.placeholder || _ctx.label || _ctx.tr("el.select.placeholder", "\u8BF7\u9009\u62E9"),
|
|
228
231
|
"append-to-body": "",
|
|
229
232
|
"model-class": "vkf-tables-select__model",
|
|
230
233
|
class: vue.normalizeClass(["vkf-tables-select__dialog", _ctx.dialogClass])
|
|
@@ -244,7 +247,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
244
247
|
/* STABLE_FRAGMENT */
|
|
245
248
|
);
|
|
246
249
|
}
|
|
247
|
-
var VkfTablesSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
250
|
+
var VkfTablesSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\tables-select\\src\\index.vue"]]);
|
|
248
251
|
|
|
249
252
|
var types = /*#__PURE__*/Object.freeze({
|
|
250
253
|
__proto__: null
|
|
@@ -7,6 +7,7 @@ import { ElDialog } from 'element-plus';
|
|
|
7
7
|
import { compareArray } from '@vunk/shared/array';
|
|
8
8
|
import { isNotEmptyObject } from '@vunk/shared/object';
|
|
9
9
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
10
|
+
import { useLocale } from '@vunk/form/composables/element-plus';
|
|
10
11
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
11
12
|
|
|
12
13
|
const props = {
|
|
@@ -93,12 +94,12 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
93
94
|
|
|
94
95
|
var _sfc_main = defineComponent({
|
|
95
96
|
name: "VkfTablesSelect",
|
|
96
|
-
inheritAttrs: false,
|
|
97
97
|
components: {
|
|
98
98
|
VkfSelect,
|
|
99
99
|
VkTablesV1Checkbox,
|
|
100
100
|
ElDialog
|
|
101
101
|
},
|
|
102
|
+
inheritAttrs: false,
|
|
102
103
|
props,
|
|
103
104
|
emits,
|
|
104
105
|
setup(props2, { emit }) {
|
|
@@ -106,6 +107,7 @@ var _sfc_main = defineComponent({
|
|
|
106
107
|
const tablesProps = _VkTablesV1CheckboxCtx.createBindProps(props2, ["modelValue"]);
|
|
107
108
|
const tablesEmits = _VkTablesV1CheckboxCtx.createOnEmits(emit, ["update:modelValue"]);
|
|
108
109
|
const readonly = useComputedReadonly(props2);
|
|
110
|
+
const { tr } = useLocale();
|
|
109
111
|
const dialogVisible = ref(false);
|
|
110
112
|
const backupRowMap = ref(/* @__PURE__ */ new Map());
|
|
111
113
|
const theModelValue = computed({
|
|
@@ -189,7 +191,8 @@ var _sfc_main = defineComponent({
|
|
|
189
191
|
dialogVisible,
|
|
190
192
|
selectValue,
|
|
191
193
|
theModelValue,
|
|
192
|
-
readonly
|
|
194
|
+
readonly,
|
|
195
|
+
tr
|
|
193
196
|
};
|
|
194
197
|
}
|
|
195
198
|
});
|
|
@@ -220,7 +223,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
223
|
createVNode(_component_ElDialog, {
|
|
221
224
|
modelValue: _ctx.dialogVisible,
|
|
222
225
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.dialogVisible = $event),
|
|
223
|
-
title: _ctx.placeholder || _ctx.label || "\u8BF7\u9009\u62E9",
|
|
226
|
+
title: _ctx.placeholder || _ctx.label || _ctx.tr("el.select.placeholder", "\u8BF7\u9009\u62E9"),
|
|
224
227
|
"append-to-body": "",
|
|
225
228
|
"model-class": "vkf-tables-select__model",
|
|
226
229
|
class: normalizeClass(["vkf-tables-select__dialog", _ctx.dialogClass])
|
|
@@ -240,7 +243,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
240
243
|
/* STABLE_FRAGMENT */
|
|
241
244
|
);
|
|
242
245
|
}
|
|
243
|
-
var VkfTablesSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
246
|
+
var VkfTablesSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\tables-select\\src\\index.vue"]]);
|
|
244
247
|
|
|
245
248
|
var types = /*#__PURE__*/Object.freeze({
|
|
246
249
|
__proto__: null
|
|
@@ -493,6 +493,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
493
493
|
selectValue: import("vue").ComputedRef<NormalObject | NormalObject[]>;
|
|
494
494
|
theModelValue: import("vue").WritableComputedRef<NormalObject[], NormalObject | NormalObject[]>;
|
|
495
495
|
readonly: import("vue").ComputedRef<boolean>;
|
|
496
|
+
tr: import("@vunk/form/composables/element-plus").TranslateWithFallback;
|
|
496
497
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
497
498
|
'update:modelValue': any;
|
|
498
499
|
'update:start': (val: number) => boolean;
|
|
@@ -21,7 +21,7 @@ var _sfc_main = vue.defineComponent({
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
var VkfTemplateInstancesProvider = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "
|
|
24
|
+
var VkfTemplateInstancesProvider = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\template-instances-provider\\src\\index.vue"]]);
|
|
25
25
|
|
|
26
26
|
VkfTemplateInstancesProvider.install = (app) => {
|
|
27
27
|
app.component(VkfTemplateInstancesProvider.name || "VkfTemplateInstancesProvider", VkfTemplateInstancesProvider);
|
|
@@ -17,7 +17,7 @@ var _sfc_main = defineComponent({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
var VkfTemplateInstancesProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
20
|
+
var VkfTemplateInstancesProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\template-instances-provider\\src\\index.vue"]]);
|
|
21
21
|
|
|
22
22
|
VkfTemplateInstancesProvider.install = (app) => {
|
|
23
23
|
app.component(VkfTemplateInstancesProvider.name || "VkfTemplateInstancesProvider", VkfTemplateInstancesProvider);
|
|
@@ -217,7 +217,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
217
217
|
/* STABLE_FRAGMENT */
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
|
-
var VkfTemplatesDefault = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
220
|
+
var VkfTemplatesDefault = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-default\\src\\index.vue"]]);
|
|
221
221
|
|
|
222
222
|
var types = /*#__PURE__*/Object.freeze({
|
|
223
223
|
__proto__: null
|
|
@@ -213,7 +213,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
213
213
|
/* STABLE_FRAGMENT */
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
|
-
var VkfTemplatesDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
216
|
+
var VkfTemplatesDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-default\\src\\index.vue"]]);
|
|
217
217
|
|
|
218
218
|
var types = /*#__PURE__*/Object.freeze({
|
|
219
219
|
__proto__: null
|
|
@@ -97,7 +97,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
/* STABLE_FRAGMENT */
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
-
var VkfTemplatesElementPlus = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
100
|
+
var VkfTemplatesElementPlus = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-element-plus\\src\\index.vue"]]);
|
|
101
101
|
|
|
102
102
|
var types = /*#__PURE__*/Object.freeze({
|
|
103
103
|
__proto__: null
|
|
@@ -93,7 +93,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
93
|
/* STABLE_FRAGMENT */
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
var VkfTemplatesElementPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
96
|
+
var VkfTemplatesElementPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-element-plus\\src\\index.vue"]]);
|
|
97
97
|
|
|
98
98
|
var types = /*#__PURE__*/Object.freeze({
|
|
99
99
|
__proto__: null
|
|
@@ -50,7 +50,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50
50
|
/* STABLE */
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
var VkfTemplatesEsri = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
53
|
+
var VkfTemplatesEsri = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-esri\\src\\index.vue"]]);
|
|
54
54
|
|
|
55
55
|
var types = /*#__PURE__*/Object.freeze({
|
|
56
56
|
__proto__: null
|
|
@@ -46,7 +46,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46
46
|
/* STABLE */
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
var VkfTemplatesEsri = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
49
|
+
var VkfTemplatesEsri = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-esri\\src\\index.vue"]]);
|
|
50
50
|
|
|
51
51
|
var types = /*#__PURE__*/Object.freeze({
|
|
52
52
|
__proto__: null
|
|
@@ -122,7 +122,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122
122
|
/* STABLE_FRAGMENT */
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
var VkfTemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
125
|
+
var VkfTemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-layout\\src\\index.vue"]]);
|
|
126
126
|
|
|
127
127
|
var types = /*#__PURE__*/Object.freeze({
|
|
128
128
|
__proto__: null
|
|
@@ -118,7 +118,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
118
118
|
/* STABLE_FRAGMENT */
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
|
-
var VkfTemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
121
|
+
var VkfTemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-layout\\src\\index.vue"]]);
|
|
122
122
|
|
|
123
123
|
var types = /*#__PURE__*/Object.freeze({
|
|
124
124
|
__proto__: null
|
|
@@ -55,7 +55,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55
55
|
/* STABLE */
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
var VkfTemplatesVariant = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
58
|
+
var VkfTemplatesVariant = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-variant\\src\\index.vue"]]);
|
|
59
59
|
|
|
60
60
|
var types = /*#__PURE__*/Object.freeze({
|
|
61
61
|
__proto__: null
|
|
@@ -51,7 +51,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51
51
|
/* STABLE */
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
var VkfTemplatesVariant = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
54
|
+
var VkfTemplatesVariant = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-variant\\src\\index.vue"]]);
|
|
55
55
|
|
|
56
56
|
var types = /*#__PURE__*/Object.freeze({
|
|
57
57
|
__proto__: null
|
|
@@ -85,7 +85,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
85
85
|
/* FULL_PROPS */
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
var VkfTimePicker = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
88
|
+
var VkfTimePicker = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\time-picker\\src\\index.vue"]]);
|
|
89
89
|
|
|
90
90
|
var types = /*#__PURE__*/Object.freeze({
|
|
91
91
|
__proto__: null
|
|
@@ -81,7 +81,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81
81
|
/* FULL_PROPS */
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
var VkfTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
84
|
+
var VkfTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\time-picker\\src\\index.vue"]]);
|
|
85
85
|
|
|
86
86
|
var types = /*#__PURE__*/Object.freeze({
|
|
87
87
|
__proto__: null
|
|
@@ -7,11 +7,12 @@ var formItem = require('@vunk/form/components/form-item');
|
|
|
7
7
|
var utilsVue = require('@vunk/core/shared/utils-vue');
|
|
8
8
|
var elementPlus = require('element-plus');
|
|
9
9
|
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
10
|
-
var elementPlus$
|
|
10
|
+
var elementPlus$2 = require('@vunk/form/shared/element-plus');
|
|
11
11
|
var index = require('../index.cjs');
|
|
12
12
|
var utilsFetch = require('@vunk/core/shared/utils-fetch');
|
|
13
13
|
var utilsFunction = require('@vunk/core/shared/utils-function');
|
|
14
14
|
var _function = require('@vunk/shared/function');
|
|
15
|
+
var elementPlus$1 = require('@vunk/form/composables/element-plus');
|
|
15
16
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
16
17
|
var composables = require('@vunk/form/composables');
|
|
17
18
|
var progress = require('@vunk/form/shared/progress-it');
|
|
@@ -26,7 +27,7 @@ const props = {
|
|
|
26
27
|
preview: null,
|
|
27
28
|
previewLabel: {
|
|
28
29
|
type: String,
|
|
29
|
-
default:
|
|
30
|
+
default: void 0
|
|
30
31
|
},
|
|
31
32
|
beforeUpload: {
|
|
32
33
|
type: Function,
|
|
@@ -117,7 +118,7 @@ var _sfc_main$2 = vue.defineComponent({
|
|
|
117
118
|
},
|
|
118
119
|
previewLabel: {
|
|
119
120
|
type: String,
|
|
120
|
-
default:
|
|
121
|
+
default: void 0
|
|
121
122
|
}
|
|
122
123
|
},
|
|
123
124
|
emits: {
|
|
@@ -126,7 +127,7 @@ var _sfc_main$2 = vue.defineComponent({
|
|
|
126
127
|
setup(props, { emit }) {
|
|
127
128
|
const nsUpload = elementPlus.useNamespace("upload");
|
|
128
129
|
const nsIcon = elementPlus.useNamespace("icon");
|
|
129
|
-
const {
|
|
130
|
+
const { tr } = elementPlus$1.useLocale();
|
|
130
131
|
const handleRemove = (file = props.file) => {
|
|
131
132
|
emit("remove", file);
|
|
132
133
|
};
|
|
@@ -154,17 +155,19 @@ var _sfc_main$2 = vue.defineComponent({
|
|
|
154
155
|
}
|
|
155
156
|
return props.preview;
|
|
156
157
|
});
|
|
158
|
+
const previewText = vue.computed(() => props.previewLabel || tr("el.upload.preview", "\u9884\u89C8"));
|
|
157
159
|
const handlePreview = (file = props.file) => {
|
|
158
160
|
previewable.value && props.onPreview(file);
|
|
159
161
|
};
|
|
160
162
|
return {
|
|
161
163
|
handleRemove,
|
|
162
|
-
t,
|
|
163
164
|
nsIcon,
|
|
164
165
|
nsUpload,
|
|
165
166
|
handleDownload,
|
|
166
167
|
handlePreview,
|
|
167
|
-
|
|
168
|
+
previewText,
|
|
169
|
+
previewable,
|
|
170
|
+
tr
|
|
168
171
|
};
|
|
169
172
|
}
|
|
170
173
|
});
|
|
@@ -273,7 +276,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
273
276
|
}, {
|
|
274
277
|
default: vue.withCtx(() => [
|
|
275
278
|
vue.createTextVNode(
|
|
276
|
-
vue.toDisplayString(_ctx.
|
|
279
|
+
vue.toDisplayString(_ctx.previewText),
|
|
277
280
|
1
|
|
278
281
|
/* TEXT */
|
|
279
282
|
)
|
|
@@ -289,11 +292,15 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
289
292
|
type: "primary",
|
|
290
293
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleDownload(_ctx.file))
|
|
291
294
|
}, {
|
|
292
|
-
default: vue.withCtx(() =>
|
|
293
|
-
vue.createTextVNode(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
default: vue.withCtx(() => [
|
|
296
|
+
vue.createTextVNode(
|
|
297
|
+
vue.toDisplayString(_ctx.tr("vkf.upload.download", "\u4E0B\u8F7D")),
|
|
298
|
+
1
|
|
299
|
+
/* TEXT */
|
|
300
|
+
)
|
|
301
|
+
]),
|
|
302
|
+
_: 1
|
|
303
|
+
/* STABLE */
|
|
297
304
|
})
|
|
298
305
|
],
|
|
299
306
|
2
|
|
@@ -441,7 +448,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
441
448
|
/* STABLE_FRAGMENT */
|
|
442
449
|
);
|
|
443
450
|
}
|
|
444
|
-
var FileVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "
|
|
451
|
+
var FileVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\upload\\src\\file.vue"]]);
|
|
445
452
|
|
|
446
453
|
var _sfc_main$1 = vue.defineComponent({
|
|
447
454
|
components: {
|
|
@@ -454,7 +461,8 @@ var _sfc_main$1 = vue.defineComponent({
|
|
|
454
461
|
emits,
|
|
455
462
|
setup(props2, { emit }) {
|
|
456
463
|
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
|
|
457
|
-
const
|
|
464
|
+
const { tr } = elementPlus$1.useLocale();
|
|
465
|
+
const coreBindProps = elementPlus$2.createUploadBindProps(props2, ["disabled", "fileList", "beforeUpload", "onSuccess"]);
|
|
458
466
|
const uploadRef = vue.shallowRef();
|
|
459
467
|
const handleRemove = (file) => {
|
|
460
468
|
uploadRef.value?.handleRemove(file);
|
|
@@ -477,11 +485,11 @@ var _sfc_main$1 = vue.defineComponent({
|
|
|
477
485
|
};
|
|
478
486
|
if (props2.confirmExceed) {
|
|
479
487
|
elementPlus.ElMessageBox.confirm(
|
|
480
|
-
|
|
481
|
-
"\u63D0\u793A",
|
|
488
|
+
tr("vkf.upload.exceedConfirm", "\u5DF2\u8D85\u8FC7\u6700\u5927\u4E0A\u4F20\u6570\u91CF\u9650\u5236\uFF0C\u662F\u5426\u4F7F\u7528\u65B0\u6587\u4EF6\u91CD\u65B0\u4E0A\u4F20\uFF1F"),
|
|
489
|
+
tr("el.messagebox.title", "\u63D0\u793A"),
|
|
482
490
|
{
|
|
483
|
-
confirmButtonText: "\u7EE7\u7EED",
|
|
484
|
-
cancelButtonText: "\u53D6\u6D88",
|
|
491
|
+
confirmButtonText: tr("el.upload.continue", "\u7EE7\u7EED"),
|
|
492
|
+
cancelButtonText: tr("el.messagebox.cancel", "\u53D6\u6D88"),
|
|
485
493
|
type: "warning"
|
|
486
494
|
}
|
|
487
495
|
).then(doUpload);
|
|
@@ -525,7 +533,8 @@ var _sfc_main$1 = vue.defineComponent({
|
|
|
525
533
|
onSuccess,
|
|
526
534
|
// onProgress,
|
|
527
535
|
beforeUpload,
|
|
528
|
-
handleExceed
|
|
536
|
+
handleExceed,
|
|
537
|
+
tr
|
|
529
538
|
};
|
|
530
539
|
}
|
|
531
540
|
});
|
|
@@ -571,11 +580,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
571
580
|
default: vue.withCtx(() => [
|
|
572
581
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
573
582
|
vue.createVNode(_component_ElLink, { type: "primary" }, {
|
|
574
|
-
default: vue.withCtx(() =>
|
|
575
|
-
vue.createTextVNode(
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
583
|
+
default: vue.withCtx(() => [
|
|
584
|
+
vue.createTextVNode(
|
|
585
|
+
" + " + vue.toDisplayString(_ctx.tr("vkf.upload.selectFile", "\u9009\u62E9\u6587\u4EF6")),
|
|
586
|
+
1
|
|
587
|
+
/* TEXT */
|
|
588
|
+
)
|
|
589
|
+
]),
|
|
590
|
+
_: 1
|
|
591
|
+
/* STABLE */
|
|
579
592
|
})
|
|
580
593
|
])
|
|
581
594
|
]),
|
|
@@ -604,9 +617,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
604
617
|
"is-empty": _ctx.fileList?.length === 0
|
|
605
618
|
}])
|
|
606
619
|
},
|
|
607
|
-
"\u6682\u65E0",
|
|
608
|
-
|
|
609
|
-
/* CLASS */
|
|
620
|
+
vue.toDisplayString(_ctx.tr("vkf.upload.empty", "\u6682\u65E0")),
|
|
621
|
+
3
|
|
622
|
+
/* TEXT, CLASS */
|
|
610
623
|
)
|
|
611
624
|
]),
|
|
612
625
|
_: 3
|
|
@@ -616,7 +629,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
616
629
|
/* FULL_PROPS */
|
|
617
630
|
);
|
|
618
631
|
}
|
|
619
|
-
var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "
|
|
632
|
+
var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\upload\\src\\index.vue"]]);
|
|
620
633
|
|
|
621
634
|
var _sfc_main = vue.defineComponent({
|
|
622
635
|
name: "VkfUpload",
|
|
@@ -634,7 +647,7 @@ var _sfc_main = vue.defineComponent({
|
|
|
634
647
|
}
|
|
635
648
|
});
|
|
636
649
|
|
|
637
|
-
var VkfUpload = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "
|
|
650
|
+
var VkfUpload = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\upload\\src\\wraper.vue"]]);
|
|
638
651
|
|
|
639
652
|
var types = /*#__PURE__*/Object.freeze({
|
|
640
653
|
__proto__: null
|