@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,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent, watch, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, mergeProps, computed, Fragment, reactive, createElementBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createElementVNode
|
|
1
|
+
import { defineComponent, watch, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, toDisplayString, mergeProps, computed, Fragment, reactive, createElementBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createElementVNode } from 'vue';
|
|
2
2
|
import { p as plus_default, e as edit_default, d as delete_default } from '../index.mjs';
|
|
3
3
|
import { setData, ensetData, getValue } from '@vunk/core';
|
|
4
4
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
5
5
|
import { VkfInformationData, VkfInformationTemplates, VkfInformationRenderer } from '@vunk/form/components/information-renderer';
|
|
6
6
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
7
|
+
import { useLocale } from '@vunk/form/composables/element-plus';
|
|
7
8
|
import { VkAvatar } from '@vunk/plus/components/avatar';
|
|
8
9
|
import { VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
9
10
|
import { CRUD } from '@vunk/shared/enum';
|
|
@@ -120,6 +121,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
120
121
|
__expose();
|
|
121
122
|
const props = __props;
|
|
122
123
|
const emit = __emit;
|
|
124
|
+
const { tr } = useLocale();
|
|
123
125
|
const formData = useModelComputed({
|
|
124
126
|
key: "formdata",
|
|
125
127
|
default: {}
|
|
@@ -143,7 +145,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
143
145
|
emit("update:visible", false);
|
|
144
146
|
}).catch(props.validateCatch);
|
|
145
147
|
}
|
|
146
|
-
const __returned__ = { props, emit, formData, formDef, handleSubmit, get setData() {
|
|
148
|
+
const __returned__ = { props, emit, tr, formData, formDef, handleSubmit, get setData() {
|
|
147
149
|
return setData;
|
|
148
150
|
}, get VkfForm() {
|
|
149
151
|
return VkfForm;
|
|
@@ -169,21 +171,29 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
171
|
createVNode(_component_ElButton, {
|
|
170
172
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:visible", false))
|
|
171
173
|
}, {
|
|
172
|
-
default: withCtx(() =>
|
|
173
|
-
createTextVNode(
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
default: withCtx(() => [
|
|
175
|
+
createTextVNode(
|
|
176
|
+
toDisplayString($setup.tr("el.messagebox.cancel", "\u53D6\u6D88")),
|
|
177
|
+
1
|
|
178
|
+
/* TEXT */
|
|
179
|
+
)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
/* STABLE */
|
|
177
183
|
}),
|
|
178
184
|
createVNode(_component_ElButton, {
|
|
179
185
|
type: "primary",
|
|
180
186
|
onClick: $setup.handleSubmit
|
|
181
187
|
}, {
|
|
182
|
-
default: withCtx(() =>
|
|
183
|
-
createTextVNode(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createTextVNode(
|
|
190
|
+
toDisplayString($setup.tr("el.messagebox.confirm", "\u786E\u5B9A")),
|
|
191
|
+
1
|
|
192
|
+
/* TEXT */
|
|
193
|
+
)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
/* STABLE */
|
|
187
197
|
})
|
|
188
198
|
]),
|
|
189
199
|
default: withCtx(() => [
|
|
@@ -198,7 +208,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
208
|
/* FORWARDED */
|
|
199
209
|
}, 8, ["model-value"]);
|
|
200
210
|
}
|
|
201
|
-
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "
|
|
211
|
+
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\dialog-form.vue"]]);
|
|
202
212
|
|
|
203
213
|
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
204
214
|
__name: "layout",
|
|
@@ -268,7 +278,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
268
278
|
/* FORWARDED */
|
|
269
279
|
});
|
|
270
280
|
}
|
|
271
|
-
var TemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "
|
|
281
|
+
var TemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\layout.vue"]]);
|
|
272
282
|
|
|
273
283
|
var _sfc_main = /* @__PURE__ */defineComponent({
|
|
274
284
|
...{
|
|
@@ -285,6 +295,9 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
285
295
|
__expose();
|
|
286
296
|
const props = __props;
|
|
287
297
|
const emit = __emit;
|
|
298
|
+
const {
|
|
299
|
+
tr
|
|
300
|
+
} = useLocale();
|
|
288
301
|
const ElTable$1 = ElTable;
|
|
289
302
|
const hasColAdd = computed(() => {
|
|
290
303
|
return props.modules.includes("operations:add");
|
|
@@ -332,7 +345,7 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
332
345
|
});
|
|
333
346
|
});
|
|
334
347
|
const buttonsColumn = computed(() => ({
|
|
335
|
-
label: "\u64CD\u4F5C",
|
|
348
|
+
label: tr("vkf.dialogInputCollection.operations", "\u64CD\u4F5C"),
|
|
336
349
|
align: "center",
|
|
337
350
|
width: "85",
|
|
338
351
|
hidden: readonly.value || !props.splicable,
|
|
@@ -352,10 +365,10 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
352
365
|
"link": true,
|
|
353
366
|
"onClick": () => handleEdit($index)
|
|
354
367
|
}, null), createVNode(ElPopconfirm, {
|
|
355
|
-
"title": "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
|
|
368
|
+
"title": tr("vkf.dialogInputCollection.deleteConfirm", "\u786E\u5B9A\u5220\u9664\u5417\uFF1F"),
|
|
356
369
|
"onConfirm": () => handleMinus($index),
|
|
357
|
-
"confirmButtonText": "\u5220\u9664",
|
|
358
|
-
"cancelButtonText": "\u53D6\u6D88"
|
|
370
|
+
"confirmButtonText": tr("el.upload.delete", "\u5220\u9664"),
|
|
371
|
+
"cancelButtonText": tr("el.popconfirm.cancelButtonText", "\u53D6\u6D88")
|
|
359
372
|
}, {
|
|
360
373
|
reference: () => createVNode(ElButton, {
|
|
361
374
|
"size": "small",
|
|
@@ -424,6 +437,7 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
424
437
|
const __returned__ = {
|
|
425
438
|
props,
|
|
426
439
|
emit,
|
|
440
|
+
tr,
|
|
427
441
|
ElTable: ElTable$1,
|
|
428
442
|
hasColAdd,
|
|
429
443
|
formItemBindProps,
|
|
@@ -500,11 +514,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
500
514
|
type: "primary",
|
|
501
515
|
onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
|
|
502
516
|
}, {
|
|
503
|
-
default: withCtx(() =>
|
|
504
|
-
createTextVNode(
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
517
|
+
default: withCtx(() => [
|
|
518
|
+
createTextVNode(
|
|
519
|
+
toDisplayString($setup.tr("vkf.dialogInputCollection.add", "\u6DFB\u52A0")),
|
|
520
|
+
1
|
|
521
|
+
/* TEXT */
|
|
522
|
+
)
|
|
523
|
+
]),
|
|
524
|
+
_: 1
|
|
525
|
+
/* STABLE */
|
|
508
526
|
})
|
|
509
527
|
])) : createCommentVNode("v-if", true),
|
|
510
528
|
createVNode($setup["ElTable"], {
|
|
@@ -531,11 +549,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
531
549
|
icon: $setup.Plus,
|
|
532
550
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
|
|
533
551
|
}, {
|
|
534
|
-
default: withCtx(() =>
|
|
535
|
-
createTextVNode(
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
552
|
+
default: withCtx(() => [
|
|
553
|
+
createTextVNode(
|
|
554
|
+
toDisplayString($setup.tr("vkf.dialogInputCollection.add", "\u6DFB\u52A0")),
|
|
555
|
+
1
|
|
556
|
+
/* TEXT */
|
|
557
|
+
)
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
/* STABLE */
|
|
539
561
|
}, 8, ["icon"])) : createCommentVNode("v-if", true)
|
|
540
562
|
]),
|
|
541
563
|
key: "0"
|
|
@@ -583,7 +605,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
583
605
|
/* STABLE_FRAGMENT */
|
|
584
606
|
);
|
|
585
607
|
}
|
|
586
|
-
var VkfDialogInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
608
|
+
var VkfDialogInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\index.vue"]]);
|
|
587
609
|
|
|
588
610
|
var types = /*#__PURE__*/Object.freeze({
|
|
589
611
|
__proto__: null
|
|
@@ -74,6 +74,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
74
74
|
"onUpdate:formdata"?: (...args: any[]) => any;
|
|
75
75
|
}> & {}>;
|
|
76
76
|
emit: (event: "update:modelValue" | "change" | "update:formdata" | "update:visible", ...args: any[]) => void;
|
|
77
|
+
tr: import("@vunk/form/composables/element-plus").TranslateWithFallback;
|
|
77
78
|
formData: import("vue").WritableComputedRef<{}, {}>;
|
|
78
79
|
formDef: {
|
|
79
80
|
_ref: import("vue").ShallowRef<{
|
|
@@ -260,6 +260,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
260
260
|
"onUpdate:formdata"?: (...args: any[] | unknown[]) => any;
|
|
261
261
|
}> & {}>;
|
|
262
262
|
emit: ((event: "update:modelValue", ...args: unknown[]) => void) & ((event: "update:modelValue", ...args: any) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "update:formdata", ...args: unknown[]) => void) & ((event: "update:formdata", ...args: any) => void) & ((event: "update:formdata", ...args: any[]) => void);
|
|
263
|
+
tr: import("@vunk/form/composables/element-plus").TranslateWithFallback;
|
|
263
264
|
ElTable: never;
|
|
264
265
|
hasColAdd: import("vue").ComputedRef<boolean>;
|
|
265
266
|
formItemBindProps: import("vue").ComputedRef<{}>;
|
|
@@ -1192,6 +1193,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1192
1193
|
"onUpdate:formdata"?: (...args: any[]) => any;
|
|
1193
1194
|
}> & {}>;
|
|
1194
1195
|
emit: (event: "update:modelValue" | "change" | "update:formdata" | "update:visible", ...args: any[]) => void;
|
|
1196
|
+
tr: import("@vunk/form/composables/element-plus").TranslateWithFallback;
|
|
1195
1197
|
formData: import("vue").WritableComputedRef<{}, {}>;
|
|
1196
1198
|
formDef: {
|
|
1197
1199
|
_ref: import("vue").ShallowRef<{
|
|
@@ -12,6 +12,7 @@ var index = require('../index2.cjs');
|
|
|
12
12
|
var composables = require('@vunk/core/composables');
|
|
13
13
|
var index$1 = require('../index.cjs');
|
|
14
14
|
var utilsClass = require('@vunk/core/shared/utils-class');
|
|
15
|
+
var elementPlus$1 = require('@vunk/form/composables/element-plus');
|
|
15
16
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
16
17
|
|
|
17
18
|
const props = {
|
|
@@ -128,6 +129,7 @@ var _sfc_main = vue.defineComponent({
|
|
|
128
129
|
emits,
|
|
129
130
|
setup(props2, { emit }) {
|
|
130
131
|
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
|
|
132
|
+
const { tr } = elementPlus$1.useLocale();
|
|
131
133
|
vue.watchEffect(() => {
|
|
132
134
|
restFetch.baseURL = props2.url || platform.restFetch.baseURL;
|
|
133
135
|
});
|
|
@@ -200,14 +202,14 @@ var _sfc_main = vue.defineComponent({
|
|
|
200
202
|
const url = URL.createObjectURL(blob);
|
|
201
203
|
const a = document.createElement("a");
|
|
202
204
|
a.href = url;
|
|
203
|
-
a.download = fileInfo.value?.realName || "\u672A\u77E5\u6587\u4EF6";
|
|
205
|
+
a.download = fileInfo.value?.realName || tr("vkf.downloadPlus.unknownFile", "\u672A\u77E5\u6587\u4EF6");
|
|
204
206
|
a.click();
|
|
205
207
|
URL.revokeObjectURL(url);
|
|
206
208
|
}).then(() => {
|
|
207
209
|
fileStatus.value = Status.done;
|
|
208
210
|
}).catch(() => {
|
|
209
211
|
fileStatus.value = Status.error;
|
|
210
|
-
elementPlus.ElMessage.error("\u4E0B\u8F7D\u5931\u8D25");
|
|
212
|
+
elementPlus.ElMessage.error(tr("vkf.downloadPlus.downloadFailed", "\u4E0B\u8F7D\u5931\u8D25"));
|
|
211
213
|
});
|
|
212
214
|
};
|
|
213
215
|
vue.watch(() => fileStatus.value, (newVal) => {
|
|
@@ -318,7 +320,8 @@ var _sfc_main = vue.defineComponent({
|
|
|
318
320
|
Status,
|
|
319
321
|
chunks,
|
|
320
322
|
fileStatus,
|
|
321
|
-
filePrefixIcon
|
|
323
|
+
filePrefixIcon,
|
|
324
|
+
tr
|
|
322
325
|
};
|
|
323
326
|
}
|
|
324
327
|
});
|
|
@@ -398,21 +401,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
398
401
|
type: "danger",
|
|
399
402
|
onClick: _ctx.handlePause
|
|
400
403
|
}, {
|
|
401
|
-
default: vue.withCtx(() =>
|
|
402
|
-
vue.createTextVNode(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
default: vue.withCtx(() => [
|
|
405
|
+
vue.createTextVNode(
|
|
406
|
+
vue.toDisplayString(_ctx.tr("vkf.common.pause", "\u6682\u505C")),
|
|
407
|
+
1
|
|
408
|
+
/* TEXT */
|
|
409
|
+
)
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
/* STABLE */
|
|
406
413
|
}, 8, ["onClick"])) : (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
407
414
|
key: 1,
|
|
408
415
|
type: "primary",
|
|
409
416
|
onClick: _ctx.handleDownload
|
|
410
417
|
}, {
|
|
411
|
-
default: vue.withCtx(() =>
|
|
412
|
-
vue.createTextVNode(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
418
|
+
default: vue.withCtx(() => [
|
|
419
|
+
vue.createTextVNode(
|
|
420
|
+
vue.toDisplayString(_ctx.tr("vkf.common.download", "\u4E0B\u8F7D")),
|
|
421
|
+
1
|
|
422
|
+
/* TEXT */
|
|
423
|
+
)
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
/* STABLE */
|
|
416
427
|
}, 8, ["onClick"]))
|
|
417
428
|
]),
|
|
418
429
|
_: 1
|
|
@@ -427,7 +438,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
427
438
|
/* FULL_PROPS */
|
|
428
439
|
);
|
|
429
440
|
}
|
|
430
|
-
var VkfDownloadPlus = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
441
|
+
var VkfDownloadPlus = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\download-plus\\src\\index.vue"]]);
|
|
431
442
|
|
|
432
443
|
var types = /*#__PURE__*/Object.freeze({
|
|
433
444
|
__proto__: null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
-
import { defineComponent, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { defineComponent, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
3
3
|
import { rFile } from '@skzz/platform/api/basic';
|
|
4
4
|
import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
|
|
5
5
|
import { ElButtonGroup, ElButton, ElInput, ElMessage } from 'element-plus';
|
|
@@ -8,6 +8,7 @@ import { g as getToken } from '../index2.mjs';
|
|
|
8
8
|
import { useModelComputed } from '@vunk/core/composables';
|
|
9
9
|
import { c as circle_close_filled_default, a as download_default } from '../index.mjs';
|
|
10
10
|
import { ToggleHandler } from '@vunk/core/shared/utils-class';
|
|
11
|
+
import { useLocale } from '@vunk/form/composables/element-plus';
|
|
11
12
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
12
13
|
|
|
13
14
|
const props = {
|
|
@@ -124,6 +125,7 @@ var _sfc_main = defineComponent({
|
|
|
124
125
|
emits,
|
|
125
126
|
setup(props2, { emit }) {
|
|
126
127
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
128
|
+
const { tr } = useLocale();
|
|
127
129
|
watchEffect(() => {
|
|
128
130
|
restFetch.baseURL = props2.url || restFetch$1.baseURL;
|
|
129
131
|
});
|
|
@@ -196,14 +198,14 @@ var _sfc_main = defineComponent({
|
|
|
196
198
|
const url = URL.createObjectURL(blob);
|
|
197
199
|
const a = document.createElement("a");
|
|
198
200
|
a.href = url;
|
|
199
|
-
a.download = fileInfo.value?.realName || "\u672A\u77E5\u6587\u4EF6";
|
|
201
|
+
a.download = fileInfo.value?.realName || tr("vkf.downloadPlus.unknownFile", "\u672A\u77E5\u6587\u4EF6");
|
|
200
202
|
a.click();
|
|
201
203
|
URL.revokeObjectURL(url);
|
|
202
204
|
}).then(() => {
|
|
203
205
|
fileStatus.value = Status.done;
|
|
204
206
|
}).catch(() => {
|
|
205
207
|
fileStatus.value = Status.error;
|
|
206
|
-
ElMessage.error("\u4E0B\u8F7D\u5931\u8D25");
|
|
208
|
+
ElMessage.error(tr("vkf.downloadPlus.downloadFailed", "\u4E0B\u8F7D\u5931\u8D25"));
|
|
207
209
|
});
|
|
208
210
|
};
|
|
209
211
|
watch(() => fileStatus.value, (newVal) => {
|
|
@@ -314,7 +316,8 @@ var _sfc_main = defineComponent({
|
|
|
314
316
|
Status,
|
|
315
317
|
chunks,
|
|
316
318
|
fileStatus,
|
|
317
|
-
filePrefixIcon
|
|
319
|
+
filePrefixIcon,
|
|
320
|
+
tr
|
|
318
321
|
};
|
|
319
322
|
}
|
|
320
323
|
});
|
|
@@ -394,21 +397,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
394
397
|
type: "danger",
|
|
395
398
|
onClick: _ctx.handlePause
|
|
396
399
|
}, {
|
|
397
|
-
default: withCtx(() =>
|
|
398
|
-
createTextVNode(
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
default: withCtx(() => [
|
|
401
|
+
createTextVNode(
|
|
402
|
+
toDisplayString(_ctx.tr("vkf.common.pause", "\u6682\u505C")),
|
|
403
|
+
1
|
|
404
|
+
/* TEXT */
|
|
405
|
+
)
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
/* STABLE */
|
|
402
409
|
}, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
|
|
403
410
|
key: 1,
|
|
404
411
|
type: "primary",
|
|
405
412
|
onClick: _ctx.handleDownload
|
|
406
413
|
}, {
|
|
407
|
-
default: withCtx(() =>
|
|
408
|
-
createTextVNode(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
414
|
+
default: withCtx(() => [
|
|
415
|
+
createTextVNode(
|
|
416
|
+
toDisplayString(_ctx.tr("vkf.common.download", "\u4E0B\u8F7D")),
|
|
417
|
+
1
|
|
418
|
+
/* TEXT */
|
|
419
|
+
)
|
|
420
|
+
]),
|
|
421
|
+
_: 1
|
|
422
|
+
/* STABLE */
|
|
412
423
|
}, 8, ["onClick"]))
|
|
413
424
|
]),
|
|
414
425
|
_: 1
|
|
@@ -423,7 +434,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
423
434
|
/* FULL_PROPS */
|
|
424
435
|
);
|
|
425
436
|
}
|
|
426
|
-
var VkfDownloadPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
437
|
+
var VkfDownloadPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\download-plus\\src\\index.vue"]]);
|
|
427
438
|
|
|
428
439
|
var types = /*#__PURE__*/Object.freeze({
|
|
429
440
|
__proto__: null
|
|
@@ -192,6 +192,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
192
192
|
}[]>;
|
|
193
193
|
fileStatus: import("vue").WritableComputedRef<Status, Status>;
|
|
194
194
|
filePrefixIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
195
|
+
tr: import("@vunk/form/composables/element-plus").TranslateWithFallback;
|
|
195
196
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
196
197
|
'update:fileStatus': any;
|
|
197
198
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -280,7 +280,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
280
280
|
/* STABLE */
|
|
281
281
|
}, 8, ["data"]));
|
|
282
282
|
}
|
|
283
|
-
var VkfEditableText = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
283
|
+
var VkfEditableText = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\editable-text\\src\\index.vue"]]);
|
|
284
284
|
|
|
285
285
|
var types = /*#__PURE__*/Object.freeze({
|
|
286
286
|
__proto__: null
|
|
@@ -276,7 +276,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
276
276
|
/* STABLE */
|
|
277
277
|
}, 8, ["data"]));
|
|
278
278
|
}
|
|
279
|
-
var VkfEditableText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
279
|
+
var VkfEditableText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\editable-text\\src\\index.vue"]]);
|
|
280
280
|
|
|
281
281
|
var types = /*#__PURE__*/Object.freeze({
|
|
282
282
|
__proto__: null
|
|
@@ -14,6 +14,7 @@ var SceneView = require('@arcgis/core/views/SceneView');
|
|
|
14
14
|
var core$1 = require('@vunk/core');
|
|
15
15
|
var Graphic = require('@arcgis/core/Graphic');
|
|
16
16
|
var composables = require('@vunk/form/composables');
|
|
17
|
+
var elementPlus$1 = require('@vunk/form/composables/element-plus');
|
|
17
18
|
var utilsPromise = require('@vunk/core/shared/utils-promise');
|
|
18
19
|
|
|
19
20
|
var EDIT_TYPE = /* @__PURE__ */ ((EDIT_TYPE2) => {
|
|
@@ -105,7 +106,7 @@ const props = {
|
|
|
105
106
|
},
|
|
106
107
|
dialogEditTitle: {
|
|
107
108
|
type: String,
|
|
108
|
-
default:
|
|
109
|
+
default: void 0
|
|
109
110
|
},
|
|
110
111
|
flying: {
|
|
111
112
|
type: Boolean,
|
|
@@ -247,7 +248,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
247
248
|
/* STABLE */
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
|
-
var AppendVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "
|
|
251
|
+
var AppendVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\append.vue"]]);
|
|
251
252
|
|
|
252
253
|
var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
253
254
|
__name: "default-view",
|
|
@@ -273,7 +274,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
273
274
|
/* FORWARDED */
|
|
274
275
|
});
|
|
275
276
|
}
|
|
276
|
-
var DefaultView = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "
|
|
277
|
+
var DefaultView = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\default-view.vue"]]);
|
|
277
278
|
|
|
278
279
|
var _sfc_main$1 = vue.defineComponent({
|
|
279
280
|
components: {
|
|
@@ -323,7 +324,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
323
324
|
/* FULL_PROPS */
|
|
324
325
|
)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 });
|
|
325
326
|
}
|
|
326
|
-
var ViewerVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "
|
|
327
|
+
var ViewerVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\viewer.vue"]]);
|
|
327
328
|
|
|
328
329
|
function array_cancel() {
|
|
329
330
|
this._array = null;
|
|
@@ -1269,8 +1270,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1269
1270
|
}) {
|
|
1270
1271
|
const inputBindProps = input._VkfInputCtx.createBindProps(props2, ["inputSlots", "readonly", "modelValue"]);
|
|
1271
1272
|
const inputOnEmits = input._VkfInputCtx.createOnEmits(emit, ["update:modelValue"]);
|
|
1273
|
+
const {
|
|
1274
|
+
tr
|
|
1275
|
+
} = elementPlus$1.useLocale();
|
|
1272
1276
|
const getInputModelValue = v => {
|
|
1273
|
-
const emptyStr = "\u6682\u65E0\u6570\u636E";
|
|
1277
|
+
const emptyStr = tr("el.table.emptyText", "\u6682\u65E0\u6570\u636E");
|
|
1274
1278
|
if (!v) return emptyStr;
|
|
1275
1279
|
if (!v.features.length) return emptyStr;
|
|
1276
1280
|
return JSON.stringify(v);
|
|
@@ -1317,7 +1321,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1317
1321
|
immediate: true
|
|
1318
1322
|
});
|
|
1319
1323
|
const handleUpdateSketchValue = e => {
|
|
1320
|
-
sketchValue.value = e;
|
|
1324
|
+
sketchValue.value = Array.isArray(e) ? e : e.toArray();
|
|
1321
1325
|
if (props2.skipSave) {
|
|
1322
1326
|
u();
|
|
1323
1327
|
}
|
|
@@ -1341,7 +1345,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1341
1345
|
const doSave = () => {
|
|
1342
1346
|
u();
|
|
1343
1347
|
elementPlus.ElMessage({
|
|
1344
|
-
message: "\u4FDD\u5B58\u6210\u529F",
|
|
1348
|
+
message: tr("vkf.esriInputGeojson.saveSuccess", "\u4FDD\u5B58\u6210\u529F"),
|
|
1345
1349
|
type: "success"
|
|
1346
1350
|
});
|
|
1347
1351
|
dialogShow.value = false;
|
|
@@ -1368,7 +1372,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1368
1372
|
toGeojson(e.raw).then(res => {
|
|
1369
1373
|
emit("update:modelValue", res);
|
|
1370
1374
|
}).then(() => {
|
|
1371
|
-
elementPlus.ElMessage.success("\u4E0A\u4F20\u6210\u529F");
|
|
1375
|
+
elementPlus.ElMessage.success(tr("vkf.esriInputGeojson.uploadSuccess", "\u4E0A\u4F20\u6210\u529F"));
|
|
1372
1376
|
}).then(fly);
|
|
1373
1377
|
}
|
|
1374
1378
|
function onEdit() {
|
|
@@ -1445,7 +1449,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1445
1449
|
sketchIf,
|
|
1446
1450
|
fly,
|
|
1447
1451
|
layerRef,
|
|
1448
|
-
getInputModelValue
|
|
1452
|
+
getInputModelValue,
|
|
1453
|
+
tr
|
|
1449
1454
|
};
|
|
1450
1455
|
}
|
|
1451
1456
|
});
|
|
@@ -1559,7 +1564,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1559
1564
|
vue.createVNode(_component_ElDialog, {
|
|
1560
1565
|
modelValue: _ctx.dialogShow,
|
|
1561
1566
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.dialogShow = $event),
|
|
1562
|
-
title: _ctx.dialogEditTitle,
|
|
1567
|
+
title: _ctx.dialogEditTitle || _ctx.tr("vkf.esriInputGeojson.dialogEditTitle", "\u7ED8\u5236\u56FE\u6591"),
|
|
1563
1568
|
fullscreen: _ctx.dialogEditFullscreen,
|
|
1564
1569
|
"modal-class": "vkf-esri-input-geojson-dialog",
|
|
1565
1570
|
"append-to-body": true,
|
|
@@ -1582,7 +1587,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1582
1587
|
}, 8, ["modelValue", "title", "fullscreen", "onOpen", "onClose"])
|
|
1583
1588
|
]);
|
|
1584
1589
|
}
|
|
1585
|
-
var VkfEsriInputGeojson = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
1590
|
+
var VkfEsriInputGeojson = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\index.vue"]]);
|
|
1586
1591
|
|
|
1587
1592
|
var types = /*#__PURE__*/Object.freeze({
|
|
1588
1593
|
__proto__: null
|
|
@@ -10,6 +10,7 @@ import SceneView from '@arcgis/core/views/SceneView';
|
|
|
10
10
|
import { VkAsyncTeleport } from '@vunk/core';
|
|
11
11
|
import Graphic from '@arcgis/core/Graphic';
|
|
12
12
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
13
|
+
import { useLocale } from '@vunk/form/composables/element-plus';
|
|
13
14
|
import { Deferred } from '@vunk/core/shared/utils-promise';
|
|
14
15
|
|
|
15
16
|
var EDIT_TYPE = /* @__PURE__ */ ((EDIT_TYPE2) => {
|
|
@@ -101,7 +102,7 @@ const props = {
|
|
|
101
102
|
},
|
|
102
103
|
dialogEditTitle: {
|
|
103
104
|
type: String,
|
|
104
|
-
default:
|
|
105
|
+
default: void 0
|
|
105
106
|
},
|
|
106
107
|
flying: {
|
|
107
108
|
type: Boolean,
|
|
@@ -243,7 +244,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
243
244
|
/* STABLE */
|
|
244
245
|
});
|
|
245
246
|
}
|
|
246
|
-
var AppendVue = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "
|
|
247
|
+
var AppendVue = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\append.vue"]]);
|
|
247
248
|
|
|
248
249
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
249
250
|
__name: "default-view",
|
|
@@ -269,7 +270,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
270
|
/* FORWARDED */
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
|
-
var DefaultView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "
|
|
273
|
+
var DefaultView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\default-view.vue"]]);
|
|
273
274
|
|
|
274
275
|
var _sfc_main$1 = defineComponent({
|
|
275
276
|
components: {
|
|
@@ -319,7 +320,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
319
320
|
/* FULL_PROPS */
|
|
320
321
|
)) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
|
321
322
|
}
|
|
322
|
-
var ViewerVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "
|
|
323
|
+
var ViewerVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\viewer.vue"]]);
|
|
323
324
|
|
|
324
325
|
function array_cancel() {
|
|
325
326
|
this._array = null;
|
|
@@ -1265,8 +1266,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1265
1266
|
}) {
|
|
1266
1267
|
const inputBindProps = _VkfInputCtx.createBindProps(props2, ["inputSlots", "readonly", "modelValue"]);
|
|
1267
1268
|
const inputOnEmits = _VkfInputCtx.createOnEmits(emit, ["update:modelValue"]);
|
|
1269
|
+
const {
|
|
1270
|
+
tr
|
|
1271
|
+
} = useLocale();
|
|
1268
1272
|
const getInputModelValue = v => {
|
|
1269
|
-
const emptyStr = "\u6682\u65E0\u6570\u636E";
|
|
1273
|
+
const emptyStr = tr("el.table.emptyText", "\u6682\u65E0\u6570\u636E");
|
|
1270
1274
|
if (!v) return emptyStr;
|
|
1271
1275
|
if (!v.features.length) return emptyStr;
|
|
1272
1276
|
return JSON.stringify(v);
|
|
@@ -1313,7 +1317,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1313
1317
|
immediate: true
|
|
1314
1318
|
});
|
|
1315
1319
|
const handleUpdateSketchValue = e => {
|
|
1316
|
-
sketchValue.value = e;
|
|
1320
|
+
sketchValue.value = Array.isArray(e) ? e : e.toArray();
|
|
1317
1321
|
if (props2.skipSave) {
|
|
1318
1322
|
u();
|
|
1319
1323
|
}
|
|
@@ -1337,7 +1341,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1337
1341
|
const doSave = () => {
|
|
1338
1342
|
u();
|
|
1339
1343
|
ElMessage({
|
|
1340
|
-
message: "\u4FDD\u5B58\u6210\u529F",
|
|
1344
|
+
message: tr("vkf.esriInputGeojson.saveSuccess", "\u4FDD\u5B58\u6210\u529F"),
|
|
1341
1345
|
type: "success"
|
|
1342
1346
|
});
|
|
1343
1347
|
dialogShow.value = false;
|
|
@@ -1364,7 +1368,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1364
1368
|
toGeojson(e.raw).then(res => {
|
|
1365
1369
|
emit("update:modelValue", res);
|
|
1366
1370
|
}).then(() => {
|
|
1367
|
-
ElMessage.success("\u4E0A\u4F20\u6210\u529F");
|
|
1371
|
+
ElMessage.success(tr("vkf.esriInputGeojson.uploadSuccess", "\u4E0A\u4F20\u6210\u529F"));
|
|
1368
1372
|
}).then(fly);
|
|
1369
1373
|
}
|
|
1370
1374
|
function onEdit() {
|
|
@@ -1441,7 +1445,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1441
1445
|
sketchIf,
|
|
1442
1446
|
fly,
|
|
1443
1447
|
layerRef,
|
|
1444
|
-
getInputModelValue
|
|
1448
|
+
getInputModelValue,
|
|
1449
|
+
tr
|
|
1445
1450
|
};
|
|
1446
1451
|
}
|
|
1447
1452
|
});
|
|
@@ -1555,7 +1560,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1555
1560
|
createVNode(_component_ElDialog, {
|
|
1556
1561
|
modelValue: _ctx.dialogShow,
|
|
1557
1562
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.dialogShow = $event),
|
|
1558
|
-
title: _ctx.dialogEditTitle,
|
|
1563
|
+
title: _ctx.dialogEditTitle || _ctx.tr("vkf.esriInputGeojson.dialogEditTitle", "\u7ED8\u5236\u56FE\u6591"),
|
|
1559
1564
|
fullscreen: _ctx.dialogEditFullscreen,
|
|
1560
1565
|
"modal-class": "vkf-esri-input-geojson-dialog",
|
|
1561
1566
|
"append-to-body": true,
|
|
@@ -1578,7 +1583,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1578
1583
|
}, 8, ["modelValue", "title", "fullscreen", "onOpen", "onClose"])
|
|
1579
1584
|
]);
|
|
1580
1585
|
}
|
|
1581
|
-
var VkfEsriInputGeojson = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
1586
|
+
var VkfEsriInputGeojson = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\esri-input-geojson\\src\\index.vue"]]);
|
|
1582
1587
|
|
|
1583
1588
|
var types = /*#__PURE__*/Object.freeze({
|
|
1584
1589
|
__proto__: null
|