@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.
Files changed (139) hide show
  1. package/components/api-tables-select/index.cjs +1 -1
  2. package/components/api-tables-select/index.mjs +1 -1
  3. package/components/button/index.cjs +1 -1
  4. package/components/button/index.mjs +1 -1
  5. package/components/card-input-collection/index.cjs +2 -2
  6. package/components/card-input-collection/index.css +11 -11
  7. package/components/card-input-collection/index.mjs +2 -2
  8. package/components/cascader/index.cjs +1 -1
  9. package/components/cascader/index.mjs +1 -1
  10. package/components/checkbox/index.cjs +1 -1
  11. package/components/checkbox/index.mjs +1 -1
  12. package/components/color-picker/index.cjs +1 -1
  13. package/components/color-picker/index.mjs +1 -1
  14. package/components/date-picker/index.cjs +1 -1
  15. package/components/date-picker/index.mjs +1 -1
  16. package/components/date-picker-range/index.cjs +11 -4
  17. package/components/date-picker-range/index.mjs +11 -4
  18. package/components/date-picker-range/src/ctx.d.ts +2 -2
  19. package/components/date-picker-range/src/index.vue.d.ts +8 -5
  20. package/components/dialog/index.cjs +1 -1
  21. package/components/dialog/index.mjs +1 -1
  22. package/components/dialog-input-collection/index.cjs +58 -36
  23. package/components/dialog-input-collection/index.mjs +51 -29
  24. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -0
  25. package/components/dialog-input-collection/src/index.vue.d.ts +2 -0
  26. package/components/download-plus/index.cjs +25 -14
  27. package/components/download-plus/index.mjs +26 -15
  28. package/components/download-plus/src/index.vue.d.ts +1 -0
  29. package/components/editable-text/index.cjs +1 -1
  30. package/components/editable-text/index.mjs +1 -1
  31. package/components/esri-input-geojson/index.cjs +16 -11
  32. package/components/esri-input-geojson/index.mjs +16 -11
  33. package/components/esri-input-geojson/src/ctx.d.ts +1 -1
  34. package/components/esri-input-geojson/src/index.vue.d.ts +4 -3
  35. package/components/fieldset/index.cjs +1 -1
  36. package/components/fieldset/index.mjs +1 -1
  37. package/components/form/index.cjs +1 -1
  38. package/components/form/index.mjs +1 -1
  39. package/components/form-item/index.cjs +19 -16
  40. package/components/form-item/index.css +12 -12
  41. package/components/form-item/index.mjs +20 -17
  42. package/components/form-item-renderer/index.cjs +2 -2
  43. package/components/form-item-renderer/index.mjs +2 -2
  44. package/components/form-item-renderer-template/index.cjs +1 -1
  45. package/components/form-item-renderer-template/index.mjs +1 -1
  46. package/components/forms-provider/index.cjs +3 -3
  47. package/components/forms-provider/index.mjs +3 -3
  48. package/components/information/index.cjs +1 -1
  49. package/components/information/index.mjs +1 -1
  50. package/components/information-collection/index.cjs +1 -1
  51. package/components/information-collection/index.mjs +1 -1
  52. package/components/information-tag/index.cjs +1 -1
  53. package/components/information-tag/index.mjs +1 -1
  54. package/components/information-templates-default/index.cjs +1 -1
  55. package/components/information-templates-default/index.mjs +1 -1
  56. package/components/input/index.cjs +1 -1
  57. package/components/input/index.mjs +1 -1
  58. package/components/input-array/index.cjs +2 -2
  59. package/components/input-array/index.mjs +2 -2
  60. package/components/input-collection/index.cjs +13 -8
  61. package/components/input-collection/index.css +8 -8
  62. package/components/input-collection/index.mjs +8 -3
  63. package/components/input-collection/src/core.vue.d.ts +1 -0
  64. package/components/input-file/index.cjs +2 -2
  65. package/components/input-file/index.mjs +2 -2
  66. package/components/input-link/index.cjs +20 -10
  67. package/components/input-link/index.mjs +17 -7
  68. package/components/input-link/src/ctx.d.ts +3 -3
  69. package/components/input-link/src/index.vue.d.ts +9 -6
  70. package/components/input-number/index.cjs +1 -1
  71. package/components/input-number/index.mjs +1 -1
  72. package/components/input-tag/index.cjs +1 -1
  73. package/components/input-tag/index.mjs +1 -1
  74. package/components/monaco-editor/index.cjs +1 -1
  75. package/components/monaco-editor/index.mjs +1 -1
  76. package/components/radio/index.cjs +3 -3
  77. package/components/radio/index.css +8 -8
  78. package/components/radio/index.mjs +3 -3
  79. package/components/radio/src/index.vue.d.ts +2 -2
  80. package/components/radio/src/option.vue.d.ts +1 -1
  81. package/components/radio/src/wraper.vue.d.ts +1 -1
  82. package/components/renderer-data/index.cjs +1 -1
  83. package/components/renderer-data/index.mjs +1 -1
  84. package/components/select/index.cjs +3 -3
  85. package/components/select/index.css +9 -9
  86. package/components/select/index.mjs +3 -3
  87. package/components/slider/index.cjs +1 -1
  88. package/components/slider/index.mjs +1 -1
  89. package/components/switch/index.cjs +1 -1
  90. package/components/switch/index.mjs +1 -1
  91. package/components/tables-select/index.cjs +7 -4
  92. package/components/tables-select/index.mjs +7 -4
  93. package/components/tables-select/src/index.vue.d.ts +1 -0
  94. package/components/template-instances-provider/index.cjs +1 -1
  95. package/components/template-instances-provider/index.mjs +1 -1
  96. package/components/templates-default/index.cjs +1 -1
  97. package/components/templates-default/index.mjs +1 -1
  98. package/components/templates-element-plus/index.cjs +1 -1
  99. package/components/templates-element-plus/index.mjs +1 -1
  100. package/components/templates-esri/index.cjs +1 -1
  101. package/components/templates-esri/index.mjs +1 -1
  102. package/components/templates-layout/index.cjs +1 -1
  103. package/components/templates-layout/index.mjs +1 -1
  104. package/components/templates-variant/index.cjs +1 -1
  105. package/components/templates-variant/index.mjs +1 -1
  106. package/components/time-picker/index.cjs +1 -1
  107. package/components/time-picker/index.mjs +1 -1
  108. package/components/upload/index.cjs +42 -29
  109. package/components/upload/index.mjs +41 -28
  110. package/components/upload/src/ctx.d.ts +1 -1
  111. package/components/upload/src/file.vue.d.ts +4 -3
  112. package/components/upload/src/index.vue.d.ts +7 -5
  113. package/components/upload/src/wraper.vue.d.ts +2 -2
  114. package/components/upload-plus/index.cjs +57 -38
  115. package/components/upload-plus/index.mjs +58 -39
  116. package/components/upload-plus/src/index.vue.d.ts +1 -0
  117. package/components/van-cascader/index.cjs +1 -1
  118. package/components/van-cascader/index.mjs +1 -1
  119. package/components/var-datetime-picker/index.cjs +19 -16
  120. package/components/var-datetime-picker/index.mjs +19 -16
  121. package/components/var-datetime-picker/src/index.vue.d.ts +1 -0
  122. package/components/vditor/index.cjs +1 -1
  123. package/components/vditor/index.mjs +1 -1
  124. package/composables/element-plus/index.cjs +23 -0
  125. package/composables/element-plus/index.d.ts +1 -0
  126. package/composables/element-plus/index.mjs +21 -0
  127. package/composables/element-plus/useLocale.d.ts +8 -0
  128. package/index.css +48 -48
  129. package/index.d.ts +1 -0
  130. package/index.esm.js +1 -0
  131. package/locale/index.cjs +110 -0
  132. package/locale/index.d.ts +2 -0
  133. package/locale/index.mjs +107 -0
  134. package/locale/lang/en.d.ts +53 -0
  135. package/locale/lang/index.cjs +2 -0
  136. package/locale/lang/index.d.ts +0 -0
  137. package/locale/lang/index.mjs +1 -0
  138. package/locale/lang/zh-cn.d.ts +53 -0
  139. package/package.json +160 -1
@@ -1,20 +1,20 @@
1
- .vkf-input-collection-options{
2
- width: 100%;
3
- display: flex;
1
+ .vkf-input-collection-options{
2
+ width: 100%;
3
+ display: flex;
4
4
  justify-content: flex-end;
5
5
  }
6
- .vkf-input-collection-table{
6
+ .vkf-input-collection-table{
7
7
  margin-top: var(--gap-m, 8px);
8
8
  }
9
- .vkf-input-collection-table .vkf-form-item {
9
+ .vkf-input-collection-table .vkf-form-item {
10
10
  margin-bottom: 0;
11
11
  }
12
- .vk-input-collection__expand-fieldset{
12
+ .vk-input-collection__expand-fieldset{
13
13
  padding: 8px;
14
14
  }
15
- .vk-input-collection__expand-fieldset > .vkf-form-item{
15
+ .vk-input-collection__expand-fieldset > .vkf-form-item{
16
16
  margin-bottom: 18px;
17
17
  }
18
- .vk-input-collection__buttons .cell{
18
+ .vk-input-collection__buttons .cell{
19
19
  padding: 0;
20
20
  }
@@ -8,6 +8,7 @@ import { VkfRendererData } from '@vunk/form/components/renderer-data';
8
8
  import { VkfTemplateInstancesProvider } from '@vunk/form/components/template-instances-provider';
9
9
  import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
10
10
  import { useComputedReadonly } from '@vunk/form/composables';
11
+ import { useLocale } from '@vunk/form/composables/element-plus';
11
12
  import { VkTableColumns } from '@vunk/plus/components/table-columns';
12
13
  import { ElButton, ElTable } from 'element-plus';
13
14
  import { isCallable } from '@vunk/shared/function';
@@ -96,6 +97,9 @@ var _sfc_main$1 = /* @__PURE__ */defineComponent({
96
97
  const ElTable$1 = ElTable;
97
98
  const props = __props;
98
99
  const emit = __emit;
100
+ const {
101
+ tr
102
+ } = useLocale();
99
103
  const formItemBindProps = _VkfFormItemCtx.createBindProps(props);
100
104
  const readonly = useComputedReadonly(props);
101
105
  const formData = computed(() => {
@@ -171,7 +175,7 @@ var _sfc_main$1 = /* @__PURE__ */defineComponent({
171
175
  }
172
176
  };
173
177
  const buttonsColumn = computed(() => ({
174
- label: "\u64CD\u4F5C",
178
+ label: tr("vkf.inputCollection.operations", "\u64CD\u4F5C"),
175
179
  align: "center",
176
180
  width: "85",
177
181
  hidden: readonly.value || !props.splicable,
@@ -266,6 +270,7 @@ var _sfc_main$1 = /* @__PURE__ */defineComponent({
266
270
  ElTable: ElTable$1,
267
271
  props,
268
272
  emit,
273
+ tr,
269
274
  formItemBindProps,
270
275
  readonly,
271
276
  formData,
@@ -403,7 +408,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
403
408
  /* FORWARDED */
404
409
  });
405
410
  }
406
- var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-collection/src/core.vue"]]);
411
+ var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-collection\\src\\core.vue"]]);
407
412
 
408
413
  var _sfc_main = defineComponent({
409
414
  name: "VkfInputCollection",
@@ -420,7 +425,7 @@ var _sfc_main = defineComponent({
420
425
  }
421
426
  });
422
427
 
423
- var VkfInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-collection/src/index.vue"]]);
428
+ var VkfInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-collection\\src\\index.vue"]]);
424
429
 
425
430
  var types = /*#__PURE__*/Object.freeze({
426
431
  __proto__: null
@@ -267,6 +267,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
267
267
  "onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
268
268
  }> & {}>;
269
269
  emit: ((event: "update:modelValue", ...args: unknown[]) => void) & ((event: "update:modelValue", ...args: any) => void) & ((event: "update:modelValue", ...args: any[]) => void);
270
+ tr: import("@vunk/form/composables/element-plus").TranslateWithFallback;
270
271
  formItemBindProps: import("vue").ComputedRef<{}>;
271
272
  readonly: import("vue").ComputedRef<boolean>;
272
273
  formData: import("vue").ComputedRef<NormalObject | NormalObject[]>;
@@ -103,7 +103,7 @@ var _sfc_main$1 = vue.defineComponent({
103
103
  }
104
104
  });
105
105
 
106
- var VkfInputFile = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/index.vue"]]);
106
+ var VkfInputFile = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-file\\src\\index.vue"]]);
107
107
 
108
108
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
109
109
  __name: "template",
@@ -126,7 +126,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
126
126
  /* STABLE */
127
127
  });
128
128
  }
129
- var template = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/template.vue"]]);
129
+ var template = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-file\\src\\template.vue"]]);
130
130
 
131
131
  var types = /*#__PURE__*/Object.freeze({
132
132
  __proto__: null
@@ -99,7 +99,7 @@ var _sfc_main$1 = defineComponent({
99
99
  }
100
100
  });
101
101
 
102
- var VkfInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/index.vue"]]);
102
+ var VkfInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-file\\src\\index.vue"]]);
103
103
 
104
104
  var _sfc_main = /* @__PURE__ */ defineComponent({
105
105
  __name: "template",
@@ -122,7 +122,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
122
122
  /* STABLE */
123
123
  });
124
124
  }
125
- var template = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/template.vue"]]);
125
+ var template = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-file\\src\\template.vue"]]);
126
126
 
127
127
  var types = /*#__PURE__*/Object.freeze({
128
128
  __proto__: null
@@ -4,10 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var input = require('@vunk/form/components/input');
6
6
  var vue = require('vue');
7
- var elementPlus = require('element-plus');
7
+ var elementPlus$1 = require('element-plus');
8
8
  var index = require('../index.cjs');
9
9
  var utilsObject = require('@vunk/core/shared/utils-object');
10
10
  var composables = require('@vunk/form/composables');
11
+ var elementPlus = require('@vunk/form/composables/element-plus');
11
12
  var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
12
13
 
13
14
  const props = {
@@ -22,11 +23,11 @@ const props = {
22
23
  },
23
24
  label: {
24
25
  type: String,
25
- default: "\u56DE\u586B\u5730\u5740"
26
+ default: void 0
26
27
  },
27
28
  placeholder: {
28
29
  type: String,
29
- default: "\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"
30
+ default: void 0
30
31
  },
31
32
  readonly: {
32
33
  type: Boolean,
@@ -58,7 +59,7 @@ const props = {
58
59
  */
59
60
  referenceLabel: {
60
61
  type: String,
61
- default: "\u53C2\u8003\u5730\u5740"
62
+ default: void 0
62
63
  },
63
64
  modelValue: {
64
65
  type: String,
@@ -80,14 +81,18 @@ var _sfc_main = vue.defineComponent({
80
81
  const coreProps = input._VkfInputCtx.createBindProps(props2);
81
82
  const coreEmits = input._VkfInputCtx.createOnEmits(emit);
82
83
  const readonly = composables.useComputedReadonly(props2);
84
+ const { tr } = elementPlus.useLocale();
85
+ const inputLabel = vue.computed(() => props2.label || tr("vkf.inputLink.label", "\u56DE\u586B\u5730\u5740"));
86
+ const inputPlaceholder = vue.computed(() => props2.placeholder || tr("vkf.inputLink.placeholder", "\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"));
87
+ const theReferenceLabel = vue.computed(() => props2.referenceLabel || tr("vkf.inputLink.referenceLabel", "\u53C2\u8003\u5730\u5740"));
83
88
  const createAppendEl = (url) => () => vue.h(
84
- elementPlus.ElButton,
89
+ elementPlus$1.ElButton,
85
90
  {
86
91
  onClick: () => window.open(url),
87
92
  disabled: !url
88
93
  },
89
94
  () => vue.h(
90
- elementPlus.ElIcon,
95
+ elementPlus$1.ElIcon,
91
96
  {
92
97
  class: "vkf-input-link-icon",
93
98
  size: 16
@@ -99,7 +104,7 @@ var _sfc_main = vue.defineComponent({
99
104
  const data = [
100
105
  {
101
106
  pattern: /^(http|https):\/\/([\w.]+\/?)\S*$/,
102
- message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740"
107
+ message: tr("vkf.inputLink.invalidUrl", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740")
103
108
  }
104
109
  ];
105
110
  if (Array.isArray(props2.rules)) {
@@ -114,7 +119,10 @@ var _sfc_main = vue.defineComponent({
114
119
  coreProps,
115
120
  coreEmits,
116
121
  createAppendEl,
122
+ inputLabel,
123
+ inputPlaceholder,
117
124
  rules,
125
+ theReferenceLabel,
118
126
  readonly
119
127
  };
120
128
  }
@@ -125,7 +133,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
133
  const _component_VkfInput = vue.resolveComponent("VkfInput");
126
134
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
127
135
  vue.createVNode(_component_VkfInput, {
128
- label: _ctx.referenceLabel,
136
+ label: _ctx.theReferenceLabel,
129
137
  disabled: true,
130
138
  "model-value": _ctx.referenceUrl ?? _ctx.uploadUrl,
131
139
  "input-slots": {
@@ -133,16 +141,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
133
141
  }
134
142
  }, null, 8, ["label", "model-value", "input-slots"]),
135
143
  !_ctx.referenceOnly ? (vue.openBlock(), vue.createBlock(_component_VkfInput, vue.mergeProps({ key: 0 }, _ctx.coreProps, {
144
+ label: _ctx.inputLabel,
145
+ placeholder: _ctx.inputPlaceholder,
136
146
  rules: _ctx.rules,
137
147
  readonly: _ctx.readonly,
138
148
  type: _ctx.readonly ? "text" : _ctx.type,
139
149
  "input-slots": {
140
150
  append: _ctx.readonly ? _ctx.createAppendEl(_ctx.modelValue) : void 0
141
151
  }
142
- }, vue.toHandlers(_ctx.coreEmits)), null, 16, ["rules", "readonly", "type", "input-slots"])) : vue.createCommentVNode("v-if", true)
152
+ }, vue.toHandlers(_ctx.coreEmits)), null, 16, ["label", "placeholder", "rules", "readonly", "type", "input-slots"])) : vue.createCommentVNode("v-if", true)
143
153
  ]);
144
154
  }
145
- var VkfInputLink = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-link/src/index.vue"]]);
155
+ var VkfInputLink = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-link\\src\\index.vue"]]);
146
156
 
147
157
  var types = /*#__PURE__*/Object.freeze({
148
158
  __proto__: null
@@ -4,6 +4,7 @@ import { ElButton, ElIcon } from 'element-plus';
4
4
  import { r as right_default } from '../index.mjs';
5
5
  import { isPlainObject } from '@vunk/core/shared/utils-object';
6
6
  import { useComputedReadonly } from '@vunk/form/composables';
7
+ import { useLocale } from '@vunk/form/composables/element-plus';
7
8
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
8
9
 
9
10
  const props = {
@@ -18,11 +19,11 @@ const props = {
18
19
  },
19
20
  label: {
20
21
  type: String,
21
- default: "\u56DE\u586B\u5730\u5740"
22
+ default: void 0
22
23
  },
23
24
  placeholder: {
24
25
  type: String,
25
- default: "\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"
26
+ default: void 0
26
27
  },
27
28
  readonly: {
28
29
  type: Boolean,
@@ -54,7 +55,7 @@ const props = {
54
55
  */
55
56
  referenceLabel: {
56
57
  type: String,
57
- default: "\u53C2\u8003\u5730\u5740"
58
+ default: void 0
58
59
  },
59
60
  modelValue: {
60
61
  type: String,
@@ -76,6 +77,10 @@ var _sfc_main = defineComponent({
76
77
  const coreProps = _VkfInputCtx.createBindProps(props2);
77
78
  const coreEmits = _VkfInputCtx.createOnEmits(emit);
78
79
  const readonly = useComputedReadonly(props2);
80
+ const { tr } = useLocale();
81
+ const inputLabel = computed(() => props2.label || tr("vkf.inputLink.label", "\u56DE\u586B\u5730\u5740"));
82
+ const inputPlaceholder = computed(() => props2.placeholder || tr("vkf.inputLink.placeholder", "\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"));
83
+ const theReferenceLabel = computed(() => props2.referenceLabel || tr("vkf.inputLink.referenceLabel", "\u53C2\u8003\u5730\u5740"));
79
84
  const createAppendEl = (url) => () => h(
80
85
  ElButton,
81
86
  {
@@ -95,7 +100,7 @@ var _sfc_main = defineComponent({
95
100
  const data = [
96
101
  {
97
102
  pattern: /^(http|https):\/\/([\w.]+\/?)\S*$/,
98
- message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740"
103
+ message: tr("vkf.inputLink.invalidUrl", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740")
99
104
  }
100
105
  ];
101
106
  if (Array.isArray(props2.rules)) {
@@ -110,7 +115,10 @@ var _sfc_main = defineComponent({
110
115
  coreProps,
111
116
  coreEmits,
112
117
  createAppendEl,
118
+ inputLabel,
119
+ inputPlaceholder,
113
120
  rules,
121
+ theReferenceLabel,
114
122
  readonly
115
123
  };
116
124
  }
@@ -121,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
121
129
  const _component_VkfInput = resolveComponent("VkfInput");
122
130
  return openBlock(), createElementBlock("div", _hoisted_1, [
123
131
  createVNode(_component_VkfInput, {
124
- label: _ctx.referenceLabel,
132
+ label: _ctx.theReferenceLabel,
125
133
  disabled: true,
126
134
  "model-value": _ctx.referenceUrl ?? _ctx.uploadUrl,
127
135
  "input-slots": {
@@ -129,16 +137,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
129
137
  }
130
138
  }, null, 8, ["label", "model-value", "input-slots"]),
131
139
  !_ctx.referenceOnly ? (openBlock(), createBlock(_component_VkfInput, mergeProps({ key: 0 }, _ctx.coreProps, {
140
+ label: _ctx.inputLabel,
141
+ placeholder: _ctx.inputPlaceholder,
132
142
  rules: _ctx.rules,
133
143
  readonly: _ctx.readonly,
134
144
  type: _ctx.readonly ? "text" : _ctx.type,
135
145
  "input-slots": {
136
146
  append: _ctx.readonly ? _ctx.createAppendEl(_ctx.modelValue) : void 0
137
147
  }
138
- }, toHandlers(_ctx.coreEmits)), null, 16, ["rules", "readonly", "type", "input-slots"])) : createCommentVNode("v-if", true)
148
+ }, toHandlers(_ctx.coreEmits)), null, 16, ["label", "placeholder", "rules", "readonly", "type", "input-slots"])) : createCommentVNode("v-if", true)
139
149
  ]);
140
150
  }
141
- var VkfInputLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-link/src/index.vue"]]);
151
+ var VkfInputLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-link\\src\\index.vue"]]);
142
152
 
143
153
  var types = /*#__PURE__*/Object.freeze({
144
154
  __proto__: null
@@ -9,11 +9,11 @@ export declare const props: {
9
9
  };
10
10
  label: {
11
11
  type: StringConstructor;
12
- default: string;
12
+ default: any;
13
13
  };
14
14
  placeholder: {
15
15
  type: StringConstructor;
16
- default: string;
16
+ default: any;
17
17
  };
18
18
  readonly: {
19
19
  type: BooleanConstructor;
@@ -45,7 +45,7 @@ export declare const props: {
45
45
  */
46
46
  referenceLabel: {
47
47
  type: StringConstructor;
48
- default: string;
48
+ default: any;
49
49
  };
50
50
  modelValue: {
51
51
  type: StringConstructor;
@@ -10,11 +10,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
10
10
  };
11
11
  label: {
12
12
  type: StringConstructor;
13
- default: string;
13
+ default: any;
14
14
  };
15
15
  placeholder: {
16
16
  type: StringConstructor;
17
- default: string;
17
+ default: any;
18
18
  };
19
19
  readonly: {
20
20
  type: BooleanConstructor;
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
34
34
  };
35
35
  referenceLabel: {
36
36
  type: StringConstructor;
37
- default: string;
37
+ default: any;
38
38
  };
39
39
  modelValue: {
40
40
  type: StringConstructor;
@@ -262,7 +262,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
262
262
  createAppendEl: (url?: string) => () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
263
263
  [key: string]: any;
264
264
  }>;
265
+ inputLabel: import("vue").ComputedRef<string>;
266
+ inputPlaceholder: import("vue").ComputedRef<string>;
265
267
  rules: import("vue").ComputedRef<FormItemRule[]>;
268
+ theReferenceLabel: import("vue").ComputedRef<string>;
266
269
  readonly: import("vue").ComputedRef<boolean>;
267
270
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
268
271
  "update:modelValue": (value: string) => boolean;
@@ -288,11 +291,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
288
291
  };
289
292
  label: {
290
293
  type: StringConstructor;
291
- default: string;
294
+ default: any;
292
295
  };
293
296
  placeholder: {
294
297
  type: StringConstructor;
295
- default: string;
298
+ default: any;
296
299
  };
297
300
  readonly: {
298
301
  type: BooleanConstructor;
@@ -312,7 +315,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
312
315
  };
313
316
  referenceLabel: {
314
317
  type: StringConstructor;
315
- default: string;
318
+ default: any;
316
319
  };
317
320
  modelValue: {
318
321
  type: StringConstructor;
@@ -104,7 +104,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
104
104
  /* FULL_PROPS */
105
105
  );
106
106
  }
107
- var VkfInputNumber = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-number/src/index.vue"]]);
107
+ var VkfInputNumber = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-number\\src\\index.vue"]]);
108
108
 
109
109
  var types = /*#__PURE__*/Object.freeze({
110
110
  __proto__: null
@@ -100,7 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
100
100
  /* FULL_PROPS */
101
101
  );
102
102
  }
103
- var VkfInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-number/src/index.vue"]]);
103
+ var VkfInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-number\\src\\index.vue"]]);
104
104
 
105
105
  var types = /*#__PURE__*/Object.freeze({
106
106
  __proto__: null
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
84
  /* FULL_PROPS */
85
85
  );
86
86
  }
87
- var VkfInputTag = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-tag/src/index.vue"]]);
87
+ var VkfInputTag = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-tag\\src\\index.vue"]]);
88
88
 
89
89
  var types = /*#__PURE__*/Object.freeze({
90
90
  __proto__: null
@@ -80,7 +80,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
80
80
  /* FULL_PROPS */
81
81
  );
82
82
  }
83
- var VkfInputTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-tag/src/index.vue"]]);
83
+ var VkfInputTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\input-tag\\src\\index.vue"]]);
84
84
 
85
85
  var types = /*#__PURE__*/Object.freeze({
86
86
  __proto__: null
@@ -68,7 +68,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
68
68
  /* FULL_PROPS */
69
69
  );
70
70
  }
71
- var VkfMonacoEditor = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/monaco-editor/src/index.vue"]]);
71
+ var VkfMonacoEditor = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\monaco-editor\\src\\index.vue"]]);
72
72
 
73
73
  var types = /*#__PURE__*/Object.freeze({
74
74
  __proto__: null
@@ -64,7 +64,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
64
64
  /* FULL_PROPS */
65
65
  );
66
66
  }
67
- var VkfMonacoEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/monaco-editor/src/index.vue"]]);
67
+ var VkfMonacoEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\monaco-editor\\src\\index.vue"]]);
68
68
 
69
69
  var types = /*#__PURE__*/Object.freeze({
70
70
  __proto__: null
@@ -144,7 +144,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
144
144
  /* FULL_PROPS */
145
145
  ));
146
146
  }
147
- var OptionView = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/radio/src/option.vue"]]);
147
+ var OptionView = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\radio\\src\\option.vue"]]);
148
148
 
149
149
  var _sfc_main$1 = vue.defineComponent({
150
150
  components: {
@@ -234,7 +234,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
234
234
  /* FULL_PROPS */
235
235
  );
236
236
  }
237
- var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/radio/src/index.vue"]]);
237
+ var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\radio\\src\\index.vue"]]);
238
238
 
239
239
  var _sfc_main = vue.defineComponent({
240
240
  name: "VkfRadio",
@@ -252,7 +252,7 @@ var _sfc_main = vue.defineComponent({
252
252
  }
253
253
  });
254
254
 
255
- var VkfRadio = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/radio/src/wraper.vue"]]);
255
+ var VkfRadio = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\radio\\src\\wraper.vue"]]);
256
256
 
257
257
  var types = /*#__PURE__*/Object.freeze({
258
258
  __proto__: null
@@ -1,17 +1,17 @@
1
- .vkf-radio-option-card.is-checked {
1
+ .vkf-radio-option-card.is-checked {
2
2
  border-color: var(--el-color-primary);
3
3
  }
4
- .vkf-radio-option-card{
5
- font-size: var(--el-font-size-base);
4
+ .vkf-radio-option-card{
5
+ font-size: var(--el-font-size-base);
6
6
  cursor: pointer;
7
7
  }
8
- .vkf-radio-option-card:not(:last-child) {
8
+ .vkf-radio-option-card:not(:last-child) {
9
9
  margin-right: 30px;
10
10
  }
11
- .vkf-radio-option-card > .el-card__body{
12
- display: flex;
13
- justify-content: space-between;
14
- align-items: center;
11
+ .vkf-radio-option-card > .el-card__body{
12
+ display: flex;
13
+ justify-content: space-between;
14
+ align-items: center;
15
15
  width: max-content;
16
16
  }
17
17
  .el-radio-group.is-readonly,
@@ -140,7 +140,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
140
140
  /* FULL_PROPS */
141
141
  ));
142
142
  }
143
- var OptionView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/radio/src/option.vue"]]);
143
+ var OptionView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\radio\\src\\option.vue"]]);
144
144
 
145
145
  var _sfc_main$1 = defineComponent({
146
146
  components: {
@@ -230,7 +230,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
230
230
  /* FULL_PROPS */
231
231
  );
232
232
  }
233
- var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/radio/src/index.vue"]]);
233
+ var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\radio\\src\\index.vue"]]);
234
234
 
235
235
  var _sfc_main = defineComponent({
236
236
  name: "VkfRadio",
@@ -248,7 +248,7 @@ var _sfc_main = defineComponent({
248
248
  }
249
249
  });
250
250
 
251
- var VkfRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/radio/src/wraper.vue"]]);
251
+ var VkfRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\radio\\src\\wraper.vue"]]);
252
252
 
253
253
  var types = /*#__PURE__*/Object.freeze({
254
254
  __proto__: null
@@ -324,7 +324,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
324
324
  "onUpdate:modelValue"?: (val: string | number | boolean) => any;
325
325
  onChange?: (val: string | number | boolean) => any;
326
326
  }>, {
327
- type: "button" | "card" | "radio";
327
+ type: "button" | "radio" | "card";
328
328
  required: boolean;
329
329
  fill: string;
330
330
  formItemSize: "default" | "small" | "large";
@@ -1481,7 +1481,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1481
1481
  }>> & Readonly<{
1482
1482
  "onUpdate:modelValue"?: (...args: any[]) => any;
1483
1483
  }>, {
1484
- type: "button" | "card" | "radio";
1484
+ type: "button" | "radio" | "card";
1485
1485
  modelValue: any;
1486
1486
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1487
1487
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -895,7 +895,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
895
895
  }>> & Readonly<{
896
896
  "onUpdate:modelValue"?: (...args: any[]) => any;
897
897
  }>, {
898
- type: "button" | "card" | "radio";
898
+ type: "button" | "radio" | "card";
899
899
  modelValue: any;
900
900
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
901
901
  export default _default;
@@ -309,7 +309,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
309
309
  "onUpdate:modelValue"?: (val: string | number | boolean) => any;
310
310
  onChange?: (val: string | number | boolean) => any;
311
311
  }>, {
312
- type: "button" | "card" | "radio";
312
+ type: "button" | "radio" | "card";
313
313
  required: boolean;
314
314
  fill: string;
315
315
  formItemSize: "default" | "small" | "large";
@@ -26,7 +26,7 @@ var _sfc_main = vue.defineComponent({
26
26
  }
27
27
  });
28
28
 
29
- var VkfRendererData = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/renderer-data/src/index.vue"]]);
29
+ var VkfRendererData = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\renderer-data\\src\\index.vue"]]);
30
30
 
31
31
  var types = /*#__PURE__*/Object.freeze({
32
32
  __proto__: null
@@ -22,7 +22,7 @@ var _sfc_main = defineComponent({
22
22
  }
23
23
  });
24
24
 
25
- var VkfRendererData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/renderer-data/src/index.vue"]]);
25
+ var VkfRendererData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\renderer-data\\src\\index.vue"]]);
26
26
 
27
27
  var types = /*#__PURE__*/Object.freeze({
28
28
  __proto__: null
@@ -133,7 +133,7 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
133
133
  }
134
134
  });
135
135
 
136
- var Options = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/options.vue"]]);
136
+ var Options = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\select\\src\\options.vue"]]);
137
137
 
138
138
  var _sfc_main$1 = vue.defineComponent({
139
139
  components: {
@@ -277,7 +277,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
277
277
  /* FULL_PROPS */
278
278
  );
279
279
  }
280
- var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/core.vue"]]);
280
+ var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\select\\src\\core.vue"]]);
281
281
 
282
282
  var _sfc_main = vue.defineComponent({
283
283
  name: "VkfSelect",
@@ -295,7 +295,7 @@ var _sfc_main = vue.defineComponent({
295
295
  }
296
296
  });
297
297
 
298
- var VkfSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/index.vue"]]);
298
+ var VkfSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\select\\src\\index.vue"]]);
299
299
 
300
300
  var types = /*#__PURE__*/Object.freeze({
301
301
  __proto__: null