@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
|
@@ -452,7 +452,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
452
452
|
/* FORWARDED */
|
|
453
453
|
}, 16, ["start", "page-size", "data", "total", "get-rows"]);
|
|
454
454
|
}
|
|
455
|
-
var VkfApiTablesSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
455
|
+
var VkfApiTablesSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\api-tables-select\\src\\index.vue"]]);
|
|
456
456
|
|
|
457
457
|
var types = /*#__PURE__*/Object.freeze({
|
|
458
458
|
__proto__: null
|
|
@@ -448,7 +448,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
448
448
|
/* FORWARDED */
|
|
449
449
|
}, 16, ["start", "page-size", "data", "total", "get-rows"]);
|
|
450
450
|
}
|
|
451
|
-
var VkfApiTablesSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
451
|
+
var VkfApiTablesSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\api-tables-select\\src\\index.vue"]]);
|
|
452
452
|
|
|
453
453
|
var types = /*#__PURE__*/Object.freeze({
|
|
454
454
|
__proto__: null
|
|
@@ -97,7 +97,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
/* FULL_PROPS */
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
-
var VkfButton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
100
|
+
var VkfButton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\button\\src\\index.vue"]]);
|
|
101
101
|
|
|
102
102
|
var types = /*#__PURE__*/Object.freeze({
|
|
103
103
|
__proto__: null
|
|
@@ -93,7 +93,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
93
|
/* FULL_PROPS */
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
var VkfButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
96
|
+
var VkfButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\button\\src\\index.vue"]]);
|
|
97
97
|
|
|
98
98
|
var types = /*#__PURE__*/Object.freeze({
|
|
99
99
|
__proto__: null
|
|
@@ -320,7 +320,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
320
320
|
/* FORWARDED */
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "
|
|
323
|
+
var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\card-input-collection\\src\\core.vue"]]);
|
|
324
324
|
|
|
325
325
|
var _sfc_main = vue.defineComponent({
|
|
326
326
|
name: "VkfCardInputCollection",
|
|
@@ -337,7 +337,7 @@ var _sfc_main = vue.defineComponent({
|
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
|
|
340
|
-
var VkfCardInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "
|
|
340
|
+
var VkfCardInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\card-input-collection\\src\\index.vue"]]);
|
|
341
341
|
|
|
342
342
|
var types = /*#__PURE__*/Object.freeze({
|
|
343
343
|
__proto__: null
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.vkf-card-input-collection-options{
|
|
2
|
-
width: 100%;
|
|
3
|
-
display: flex;
|
|
1
|
+
.vkf-card-input-collection-options{
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
}
|
|
6
|
-
.vkf-card-input-collection-card {
|
|
7
|
-
width: 100%;
|
|
6
|
+
.vkf-card-input-collection-card {
|
|
7
|
+
width: 100%;
|
|
8
8
|
margin-top: var(--gap-m, 8px);
|
|
9
9
|
}
|
|
10
|
-
.vkf-card-input-collection-card__footer{
|
|
11
|
-
display: flex;
|
|
10
|
+
.vkf-card-input-collection-card__footer{
|
|
11
|
+
display: flex;
|
|
12
12
|
justify-content: flex-end;
|
|
13
13
|
}
|
|
14
|
-
.vkf-card-input-collection-card .vkf-form-item:not(:last-child) {
|
|
14
|
+
.vkf-card-input-collection-card .vkf-form-item:not(:last-child) {
|
|
15
15
|
margin-bottom: 18px;
|
|
16
16
|
}
|
|
17
|
-
.vkf-card-input-collection-empty{
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
17
|
+
.vkf-card-input-collection-empty{
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
20
|
width: 100%;
|
|
21
21
|
}
|
|
@@ -316,7 +316,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
316
316
|
/* FORWARDED */
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "
|
|
319
|
+
var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\card-input-collection\\src\\core.vue"]]);
|
|
320
320
|
|
|
321
321
|
var _sfc_main = defineComponent({
|
|
322
322
|
name: "VkfCardInputCollection",
|
|
@@ -333,7 +333,7 @@ var _sfc_main = defineComponent({
|
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
|
|
336
|
-
var VkfCardInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
336
|
+
var VkfCardInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\labCode\\vunk-form2\\packages\\components\\card-input-collection\\src\\index.vue"]]);
|
|
337
337
|
|
|
338
338
|
var types = /*#__PURE__*/Object.freeze({
|
|
339
339
|
__proto__: null
|
|
@@ -133,7 +133,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
133
133
|
/* FULL_PROPS */
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
|
-
var VkfCascader = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
136
|
+
var VkfCascader = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\cascader\\src\\index.vue"]]);
|
|
137
137
|
|
|
138
138
|
var types = /*#__PURE__*/Object.freeze({
|
|
139
139
|
__proto__: null
|
|
@@ -129,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
129
|
/* FULL_PROPS */
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
|
-
var VkfCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
132
|
+
var VkfCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\cascader\\src\\index.vue"]]);
|
|
133
133
|
|
|
134
134
|
var types = /*#__PURE__*/Object.freeze({
|
|
135
135
|
__proto__: null
|
|
@@ -136,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
136
136
|
/* FULL_PROPS */
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
var VkfCheckbox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
139
|
+
var VkfCheckbox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\checkbox\\src\\index.vue"]]);
|
|
140
140
|
|
|
141
141
|
var types = /*#__PURE__*/Object.freeze({
|
|
142
142
|
__proto__: null
|
|
@@ -132,7 +132,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
132
|
/* FULL_PROPS */
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
var VkfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
135
|
+
var VkfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\checkbox\\src\\index.vue"]]);
|
|
136
136
|
|
|
137
137
|
var types = /*#__PURE__*/Object.freeze({
|
|
138
138
|
__proto__: null
|
|
@@ -65,7 +65,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65
65
|
/* FULL_PROPS */
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
var VkfColorPicker = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
68
|
+
var VkfColorPicker = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\color-picker\\src\\index.vue"]]);
|
|
69
69
|
|
|
70
70
|
var types = /*#__PURE__*/Object.freeze({
|
|
71
71
|
__proto__: null
|
|
@@ -61,7 +61,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61
61
|
/* FULL_PROPS */
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
|
-
var VkfColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
64
|
+
var VkfColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\color-picker\\src\\index.vue"]]);
|
|
65
65
|
|
|
66
66
|
var types = /*#__PURE__*/Object.freeze({
|
|
67
67
|
__proto__: null
|
|
@@ -89,7 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
89
|
/* FULL_PROPS */
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
var VkfDatePicker = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
92
|
+
var VkfDatePicker = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\date-picker\\src\\index.vue"]]);
|
|
93
93
|
|
|
94
94
|
const datePickerEmits = {
|
|
95
95
|
"update:modelValue": null,
|
|
@@ -85,7 +85,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
85
85
|
/* FULL_PROPS */
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
var VkfDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
88
|
+
var VkfDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\date-picker\\src\\index.vue"]]);
|
|
89
89
|
|
|
90
90
|
const datePickerEmits = {
|
|
91
91
|
"update:modelValue": null,
|
|
@@ -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:
|
|
27
|
+
default: void 0
|
|
27
28
|
},
|
|
28
29
|
startPlaceholder: {
|
|
29
30
|
type: String,
|
|
30
|
-
default:
|
|
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
|
|
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) => {
|
|
@@ -155,7 +162,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
155
162
|
/* STABLE_FRAGMENT */
|
|
156
163
|
);
|
|
157
164
|
}
|
|
158
|
-
var VkfDatePickerRange = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
165
|
+
var VkfDatePickerRange = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\date-picker-range\\src\\index.vue"]]);
|
|
159
166
|
|
|
160
167
|
var types = /*#__PURE__*/Object.freeze({
|
|
161
168
|
__proto__: null
|
|
@@ -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:
|
|
23
|
+
default: void 0
|
|
23
24
|
},
|
|
24
25
|
startPlaceholder: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
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
|
|
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) => {
|
|
@@ -151,7 +158,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151
158
|
/* STABLE_FRAGMENT */
|
|
152
159
|
);
|
|
153
160
|
}
|
|
154
|
-
var VkfDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
161
|
+
var VkfDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\date-picker-range\\src\\index.vue"]]);
|
|
155
162
|
|
|
156
163
|
var types = /*#__PURE__*/Object.freeze({
|
|
157
164
|
__proto__: null
|
|
@@ -7,11 +7,11 @@ export declare const props: {
|
|
|
7
7
|
};
|
|
8
8
|
endPlaceholder: {
|
|
9
9
|
type: StringConstructor;
|
|
10
|
-
default:
|
|
10
|
+
default: any;
|
|
11
11
|
};
|
|
12
12
|
startPlaceholder: {
|
|
13
13
|
type: StringConstructor;
|
|
14
|
-
default:
|
|
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:
|
|
9
|
+
default: any;
|
|
10
10
|
};
|
|
11
11
|
startPlaceholder: {
|
|
12
12
|
type: StringConstructor;
|
|
13
|
-
default:
|
|
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:
|
|
394
|
+
default: any;
|
|
392
395
|
};
|
|
393
396
|
startPlaceholder: {
|
|
394
397
|
type: StringConstructor;
|
|
395
|
-
default:
|
|
398
|
+
default: any;
|
|
396
399
|
};
|
|
397
400
|
startValue: {
|
|
398
401
|
type: StringConstructor;
|
|
@@ -111,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
111
111
|
/* FORWARDED */
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
var VkfDialog = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
114
|
+
var VkfDialog = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog\\src\\index.vue"]]);
|
|
115
115
|
|
|
116
116
|
var types = /*#__PURE__*/Object.freeze({
|
|
117
117
|
__proto__: null
|
|
@@ -107,7 +107,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
107
|
/* FORWARDED */
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
var VkfDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
110
|
+
var VkfDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog\\src\\index.vue"]]);
|
|
111
111
|
|
|
112
112
|
var types = /*#__PURE__*/Object.freeze({
|
|
113
113
|
__proto__: null
|
|
@@ -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(() =>
|
|
177
|
-
vue.createTextVNode(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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(() =>
|
|
187
|
-
vue.createTextVNode(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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(() => [
|
|
@@ -202,7 +212,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
202
212
|
/* FORWARDED */
|
|
203
213
|
}, 8, ["model-value"]);
|
|
204
214
|
}
|
|
205
|
-
var DialogForm = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "
|
|
215
|
+
var DialogForm = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\dialog-form.vue"]]);
|
|
206
216
|
|
|
207
217
|
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
208
218
|
__name: "layout",
|
|
@@ -272,7 +282,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
272
282
|
/* FORWARDED */
|
|
273
283
|
});
|
|
274
284
|
}
|
|
275
|
-
var TemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "
|
|
285
|
+
var TemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\layout.vue"]]);
|
|
276
286
|
|
|
277
287
|
var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
278
288
|
...{
|
|
@@ -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
|
|
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(() =>
|
|
508
|
-
vue.createTextVNode(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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(() =>
|
|
539
|
-
vue.createTextVNode(
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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"
|
|
@@ -587,7 +609,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
587
609
|
/* STABLE_FRAGMENT */
|
|
588
610
|
);
|
|
589
611
|
}
|
|
590
|
-
var VkfDialogInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
612
|
+
var VkfDialogInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\index.vue"]]);
|
|
591
613
|
|
|
592
614
|
var types = /*#__PURE__*/Object.freeze({
|
|
593
615
|
__proto__: null
|