@vunk/form 2.17.2 → 2.18.0

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.
Files changed (57) hide show
  1. package/components/date-picker-range/index.cjs +10 -3
  2. package/components/date-picker-range/index.mjs +10 -3
  3. package/components/date-picker-range/src/ctx.d.ts +2 -2
  4. package/components/date-picker-range/src/index.vue.d.ts +8 -5
  5. package/components/dialog-input-collection/index.cjs +55 -33
  6. package/components/dialog-input-collection/index.mjs +48 -26
  7. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -0
  8. package/components/dialog-input-collection/src/index.vue.d.ts +2 -0
  9. package/components/download-plus/index.cjs +24 -13
  10. package/components/download-plus/index.mjs +25 -14
  11. package/components/download-plus/src/index.vue.d.ts +1 -0
  12. package/components/esri-input-geojson/index.cjs +12 -7
  13. package/components/esri-input-geojson/index.mjs +12 -7
  14. package/components/esri-input-geojson/src/ctx.d.ts +1 -1
  15. package/components/esri-input-geojson/src/index.vue.d.ts +4 -3
  16. package/components/form-item/index.cjs +17 -14
  17. package/components/form-item/index.mjs +18 -15
  18. package/components/input-collection/index.cjs +11 -6
  19. package/components/input-collection/index.mjs +6 -1
  20. package/components/input-collection/src/core.vue.d.ts +1 -0
  21. package/components/input-link/index.cjs +19 -9
  22. package/components/input-link/index.mjs +16 -6
  23. package/components/input-link/src/ctx.d.ts +3 -3
  24. package/components/input-link/src/index.vue.d.ts +9 -6
  25. package/components/radio/src/index.vue.d.ts +2 -2
  26. package/components/radio/src/option.vue.d.ts +1 -1
  27. package/components/radio/src/wraper.vue.d.ts +1 -1
  28. package/components/tables-select/index.cjs +6 -3
  29. package/components/tables-select/index.mjs +6 -3
  30. package/components/tables-select/src/index.vue.d.ts +1 -0
  31. package/components/upload/index.cjs +39 -26
  32. package/components/upload/index.mjs +38 -25
  33. package/components/upload/src/ctx.d.ts +1 -1
  34. package/components/upload/src/file.vue.d.ts +4 -3
  35. package/components/upload/src/index.vue.d.ts +7 -5
  36. package/components/upload/src/wraper.vue.d.ts +2 -2
  37. package/components/upload-plus/index.cjs +56 -37
  38. package/components/upload-plus/index.mjs +57 -38
  39. package/components/upload-plus/src/index.vue.d.ts +1 -0
  40. package/components/var-datetime-picker/index.cjs +18 -15
  41. package/components/var-datetime-picker/index.mjs +18 -15
  42. package/components/var-datetime-picker/src/index.vue.d.ts +1 -0
  43. package/composables/element-plus/index.cjs +23 -0
  44. package/composables/element-plus/index.d.ts +1 -0
  45. package/composables/element-plus/index.mjs +21 -0
  46. package/composables/element-plus/useLocale.d.ts +8 -0
  47. package/index.d.ts +1 -0
  48. package/index.esm.js +1 -0
  49. package/locale/index.cjs +110 -0
  50. package/locale/index.d.ts +2 -0
  51. package/locale/index.mjs +107 -0
  52. package/locale/lang/en.d.ts +53 -0
  53. package/locale/lang/index.cjs +2 -0
  54. package/locale/lang/index.d.ts +0 -0
  55. package/locale/lang/index.mjs +1 -0
  56. package/locale/lang/zh-cn.d.ts +53 -0
  57. package/package.json +16 -1
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var datePicker = require('@vunk/form/components/date-picker');
6
6
  var utilsObject = require('@vunk/core/shared/utils-object');
7
7
  var vue = require('vue');
8
+ var elementPlus = require('@vunk/form/composables/element-plus');
8
9
  var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
9
10
 
10
11
  const props = {
@@ -23,11 +24,11 @@ const props = {
23
24
  },
24
25
  endPlaceholder: {
25
26
  type: String,
26
- default: "\u7ED3\u675F\u65F6\u95F4"
27
+ default: void 0
27
28
  },
28
29
  startPlaceholder: {
29
30
  type: String,
30
- default: "\u5F00\u59CB\u65F6\u95F4"
31
+ default: void 0
31
32
  },
32
33
  startValue: {
33
34
  type: String,
@@ -71,8 +72,14 @@ var _sfc_main = vue.defineComponent({
71
72
  props,
72
73
  emits,
73
74
  setup(props2, { emit }) {
74
- const coreProps = datePicker._VkfDatePickerCtx.createBindProps(props2);
75
+ const rawCoreProps = datePicker._VkfDatePickerCtx.createBindProps(props2);
75
76
  const coreEmits = datePicker._VkfDatePickerCtx.createOnEmits(emit, ["update:modelValue"]);
77
+ const { tr } = elementPlus.useLocale();
78
+ const coreProps = vue.computed(() => ({
79
+ ...rawCoreProps.value,
80
+ startPlaceholder: props2.startPlaceholder || tr("el.datepicker.startTime", "\u5F00\u59CB\u65F6\u95F4"),
81
+ endPlaceholder: props2.endPlaceholder || tr("el.datepicker.endTime", "\u7ED3\u675F\u65F6\u95F4")
82
+ }));
76
83
  const modelValue = vue.computed({
77
84
  get: () => [props2.startValue, props2.endValue],
78
85
  set: (val) => {
@@ -1,6 +1,7 @@
1
1
  import { _VkfDatePickerCtx, VkfDatePicker } from '@vunk/form/components/date-picker';
2
2
  import { pickObject } from '@vunk/core/shared/utils-object';
3
3
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, withDirectives, createElementVNode, renderList, toDisplayString, vShow, createVNode, mergeProps, toHandlers } from 'vue';
4
+ import { useLocale } from '@vunk/form/composables/element-plus';
4
5
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
5
6
 
6
7
  const props = {
@@ -19,11 +20,11 @@ const props = {
19
20
  },
20
21
  endPlaceholder: {
21
22
  type: String,
22
- default: "\u7ED3\u675F\u65F6\u95F4"
23
+ default: void 0
23
24
  },
24
25
  startPlaceholder: {
25
26
  type: String,
26
- default: "\u5F00\u59CB\u65F6\u95F4"
27
+ default: void 0
27
28
  },
28
29
  startValue: {
29
30
  type: String,
@@ -67,8 +68,14 @@ var _sfc_main = defineComponent({
67
68
  props,
68
69
  emits,
69
70
  setup(props2, { emit }) {
70
- const coreProps = _VkfDatePickerCtx.createBindProps(props2);
71
+ const rawCoreProps = _VkfDatePickerCtx.createBindProps(props2);
71
72
  const coreEmits = _VkfDatePickerCtx.createOnEmits(emit, ["update:modelValue"]);
73
+ const { tr } = useLocale();
74
+ const coreProps = computed(() => ({
75
+ ...rawCoreProps.value,
76
+ startPlaceholder: props2.startPlaceholder || tr("el.datepicker.startTime", "\u5F00\u59CB\u65F6\u95F4"),
77
+ endPlaceholder: props2.endPlaceholder || tr("el.datepicker.endTime", "\u7ED3\u675F\u65F6\u95F4")
78
+ }));
72
79
  const modelValue = computed({
73
80
  get: () => [props2.startValue, props2.endValue],
74
81
  set: (val) => {
@@ -7,11 +7,11 @@ export declare const props: {
7
7
  };
8
8
  endPlaceholder: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: any;
11
11
  };
12
12
  startPlaceholder: {
13
13
  type: StringConstructor;
14
- default: string;
14
+ default: any;
15
15
  };
16
16
  startValue: {
17
17
  type: StringConstructor;
@@ -6,11 +6,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6
6
  };
7
7
  endPlaceholder: {
8
8
  type: StringConstructor;
9
- default: string;
9
+ default: any;
10
10
  };
11
11
  startPlaceholder: {
12
12
  type: StringConstructor;
13
- default: string;
13
+ default: any;
14
14
  };
15
15
  startValue: {
16
16
  type: StringConstructor;
@@ -358,7 +358,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
358
358
  default: any;
359
359
  };
360
360
  }>, {
361
- coreProps: import("vue").ComputedRef<{}>;
361
+ coreProps: import("vue").ComputedRef<{
362
+ startPlaceholder: string;
363
+ endPlaceholder: string;
364
+ }>;
362
365
  coreEmits: {
363
366
  focus: (...e: any[]) => void;
364
367
  change: (...e: any[]) => void;
@@ -388,11 +391,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
388
391
  };
389
392
  endPlaceholder: {
390
393
  type: StringConstructor;
391
- default: string;
394
+ default: any;
392
395
  };
393
396
  startPlaceholder: {
394
397
  type: StringConstructor;
395
- default: string;
398
+ default: any;
396
399
  };
397
400
  startValue: {
398
401
  type: StringConstructor;
@@ -8,11 +8,12 @@ var core = require('@vunk/core');
8
8
  var formItem = require('@vunk/form/components/form-item');
9
9
  var informationRenderer = require('@vunk/form/components/information-renderer');
10
10
  var composables$1 = require('@vunk/form/composables');
11
+ var elementPlus = require('@vunk/form/composables/element-plus');
11
12
  var avatar = require('@vunk/plus/components/avatar');
12
13
  var tableColumns = require('@vunk/plus/components/table-columns');
13
14
  var _enum = require('@vunk/shared/enum');
14
15
  var _function = require('@vunk/shared/function');
15
- var elementPlus = require('element-plus');
16
+ var elementPlus$1 = require('element-plus');
16
17
  var composables = require('@vunk/core/composables');
17
18
  var form$1 = require('@vunk/form/components/form');
18
19
  var form = require('@vunk/form/shared/form');
@@ -124,6 +125,7 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
124
125
  __expose();
125
126
  const props = __props;
126
127
  const emit = __emit;
128
+ const { tr } = elementPlus.useLocale();
127
129
  const formData = composables.useModelComputed({
128
130
  key: "formdata",
129
131
  default: {}
@@ -147,12 +149,12 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
147
149
  emit("update:visible", false);
148
150
  }).catch(props.validateCatch);
149
151
  }
150
- const __returned__ = { props, emit, formData, formDef, handleSubmit, get setData() {
152
+ const __returned__ = { props, emit, tr, formData, formDef, handleSubmit, get setData() {
151
153
  return core.setData;
152
154
  }, get VkfForm() {
153
155
  return form$1.VkfForm;
154
156
  }, get ElDialog() {
155
- return elementPlus.ElDialog;
157
+ return elementPlus$1.ElDialog;
156
158
  } };
157
159
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
158
160
  return __returned__;
@@ -173,21 +175,29 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
173
175
  vue.createVNode(_component_ElButton, {
174
176
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:visible", false))
175
177
  }, {
176
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
177
- vue.createTextVNode(" \u53D6\u6D88 ")
178
- ])),
179
- _: 1,
180
- __: [3]
178
+ default: vue.withCtx(() => [
179
+ vue.createTextVNode(
180
+ vue.toDisplayString($setup.tr("el.messagebox.cancel", "\u53D6\u6D88")),
181
+ 1
182
+ /* TEXT */
183
+ )
184
+ ]),
185
+ _: 1
186
+ /* STABLE */
181
187
  }),
182
188
  vue.createVNode(_component_ElButton, {
183
189
  type: "primary",
184
190
  onClick: $setup.handleSubmit
185
191
  }, {
186
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
187
- vue.createTextVNode(" \u786E\u5B9A ")
188
- ])),
189
- _: 1,
190
- __: [4]
192
+ default: vue.withCtx(() => [
193
+ vue.createTextVNode(
194
+ vue.toDisplayString($setup.tr("el.messagebox.confirm", "\u786E\u5B9A")),
195
+ 1
196
+ /* TEXT */
197
+ )
198
+ ]),
199
+ _: 1
200
+ /* STABLE */
191
201
  })
192
202
  ]),
193
203
  default: vue.withCtx(() => [
@@ -289,7 +299,10 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
289
299
  __expose();
290
300
  const props = __props;
291
301
  const emit = __emit;
292
- const ElTable = elementPlus.ElTable;
302
+ const {
303
+ tr
304
+ } = elementPlus.useLocale();
305
+ const ElTable = elementPlus$1.ElTable;
293
306
  const hasColAdd = vue.computed(() => {
294
307
  return props.modules.includes("operations:add");
295
308
  });
@@ -336,32 +349,32 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
336
349
  });
337
350
  });
338
351
  const buttonsColumn = vue.computed(() => ({
339
- label: "\u64CD\u4F5C",
352
+ label: tr("vkf.dialogInputCollection.operations", "\u64CD\u4F5C"),
340
353
  align: "center",
341
354
  width: "85",
342
355
  hidden: readonly.value || !props.splicable,
343
356
  className: "vk-input-collection__buttons",
344
357
  slots: ({
345
358
  $index
346
- }) => vue.createVNode(vue.Fragment, null, [hasColAdd.value && vue.createVNode(elementPlus.ElButton, {
359
+ }) => vue.createVNode(vue.Fragment, null, [hasColAdd.value && vue.createVNode(elementPlus$1.ElButton, {
347
360
  "size": "small",
348
361
  "icon": index.plus_default,
349
362
  "type": "primary",
350
363
  "link": true,
351
364
  "onClick": () => handlePlus($index)
352
- }, null), vue.createVNode(elementPlus.ElButton, {
365
+ }, null), vue.createVNode(elementPlus$1.ElButton, {
353
366
  "size": "small",
354
367
  "icon": index.edit_default,
355
368
  "type": "primary",
356
369
  "link": true,
357
370
  "onClick": () => handleEdit($index)
358
- }, null), vue.createVNode(elementPlus.ElPopconfirm, {
359
- "title": "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
371
+ }, null), vue.createVNode(elementPlus$1.ElPopconfirm, {
372
+ "title": tr("vkf.dialogInputCollection.deleteConfirm", "\u786E\u5B9A\u5220\u9664\u5417\uFF1F"),
360
373
  "onConfirm": () => handleMinus($index),
361
- "confirmButtonText": "\u5220\u9664",
362
- "cancelButtonText": "\u53D6\u6D88"
374
+ "confirmButtonText": tr("el.upload.delete", "\u5220\u9664"),
375
+ "cancelButtonText": tr("el.popconfirm.cancelButtonText", "\u53D6\u6D88")
363
376
  }, {
364
- reference: () => vue.createVNode(elementPlus.ElButton, {
377
+ reference: () => vue.createVNode(elementPlus$1.ElButton, {
365
378
  "size": "small",
366
379
  "icon": index.delete_default,
367
380
  "type": "danger",
@@ -428,6 +441,7 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
428
441
  const __returned__ = {
429
442
  props,
430
443
  emit,
444
+ tr,
431
445
  ElTable,
432
446
  hasColAdd,
433
447
  formItemBindProps,
@@ -462,7 +476,7 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
462
476
  return _enum.CRUD;
463
477
  },
464
478
  get ElButton() {
465
- return elementPlus.ElButton;
479
+ return elementPlus$1.ElButton;
466
480
  },
467
481
  DialogForm,
468
482
  TemplatesLayout
@@ -504,11 +518,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
504
518
  type: "primary",
505
519
  onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
506
520
  }, {
507
- default: vue.withCtx(() => _cache[6] || (_cache[6] = [
508
- vue.createTextVNode(" \u6DFB\u52A0 ")
509
- ])),
510
- _: 1,
511
- __: [6]
521
+ default: vue.withCtx(() => [
522
+ vue.createTextVNode(
523
+ vue.toDisplayString($setup.tr("vkf.dialogInputCollection.add", "\u6DFB\u52A0")),
524
+ 1
525
+ /* TEXT */
526
+ )
527
+ ]),
528
+ _: 1
529
+ /* STABLE */
512
530
  })
513
531
  ])) : vue.createCommentVNode("v-if", true),
514
532
  vue.createVNode($setup["ElTable"], {
@@ -535,11 +553,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
535
553
  icon: $setup.Plus,
536
554
  onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
537
555
  }, {
538
- default: vue.withCtx(() => _cache[5] || (_cache[5] = [
539
- vue.createTextVNode(" \u6DFB\u52A0 ")
540
- ])),
541
- _: 1,
542
- __: [5]
556
+ default: vue.withCtx(() => [
557
+ vue.createTextVNode(
558
+ vue.toDisplayString($setup.tr("vkf.dialogInputCollection.add", "\u6DFB\u52A0")),
559
+ 1
560
+ /* TEXT */
561
+ )
562
+ ]),
563
+ _: 1
564
+ /* STABLE */
543
565
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
544
566
  ]),
545
567
  key: "0"
@@ -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, toDisplayString } from 'vue';
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(() => _cache[3] || (_cache[3] = [
173
- createTextVNode(" \u53D6\u6D88 ")
174
- ])),
175
- _: 1,
176
- __: [3]
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(() => _cache[4] || (_cache[4] = [
183
- createTextVNode(" \u786E\u5B9A ")
184
- ])),
185
- _: 1,
186
- __: [4]
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(() => [
@@ -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(() => _cache[6] || (_cache[6] = [
504
- createTextVNode(" \u6DFB\u52A0 ")
505
- ])),
506
- _: 1,
507
- __: [6]
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(() => _cache[5] || (_cache[5] = [
535
- createTextVNode(" \u6DFB\u52A0 ")
536
- ])),
537
- _: 1,
538
- __: [5]
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"
@@ -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(() => _cache[0] || (_cache[0] = [
402
- vue.createTextVNode(" \u6682\u505C ")
403
- ])),
404
- _: 1,
405
- __: [0]
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(() => _cache[1] || (_cache[1] = [
412
- vue.createTextVNode(" \u4E0B\u8F7D ")
413
- ])),
414
- _: 1,
415
- __: [1]
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
@@ -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(() => _cache[0] || (_cache[0] = [
398
- createTextVNode(" \u6682\u505C ")
399
- ])),
400
- _: 1,
401
- __: [0]
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(() => _cache[1] || (_cache[1] = [
408
- createTextVNode(" \u4E0B\u8F7D ")
409
- ])),
410
- _: 1,
411
- __: [1]
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