mooho-base-admin-plus 2.10.49 → 2.10.51
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/history.md +3 -1
- package/package/mooho-base-admin-plus.min.esm.js +12563 -12053
- package/package/mooho-base-admin-plus.min.js +107 -108
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/modal-form.vue +19 -1
- package/src/components/view/modal-table.vue +31 -0
- package/src/components/view/view-form.vue +1 -0
- package/src/components/view/view-table-excel.vue +139 -70
- package/src/components/view/view-table.vue +15 -0
- package/src/i18n/locale/en-US.js +1 -1
- package/src/i18n/locale/lang.js +1 -1
- package/src/i18n/locale/zh-CN.js +1 -1
package/package.json
CHANGED
|
@@ -31,7 +31,16 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
<div class="ivu-ml-8 ivu-mr-8">
|
|
34
|
-
<view-form
|
|
34
|
+
<view-form
|
|
35
|
+
ref="form"
|
|
36
|
+
:view-code="viewCode"
|
|
37
|
+
:readonly="!canSave()"
|
|
38
|
+
:defaultData="defaultData"
|
|
39
|
+
:setting-enable="settingEnable"
|
|
40
|
+
@on-change="onChange"
|
|
41
|
+
@on-ready="onReady"
|
|
42
|
+
@on-blur="onBlur"
|
|
43
|
+
>
|
|
35
44
|
<template #top="{ form }">
|
|
36
45
|
<!--
|
|
37
46
|
@slot 顶部
|
|
@@ -130,6 +139,7 @@
|
|
|
130
139
|
export default {
|
|
131
140
|
mixins: [mixinPage],
|
|
132
141
|
components: { formSetting, formSettingLayout },
|
|
142
|
+
emits: ['on-after-save', 'on-before-save', 'on-blur', 'on-change', 'on-close'],
|
|
133
143
|
data() {
|
|
134
144
|
return {
|
|
135
145
|
opened: false,
|
|
@@ -382,6 +392,14 @@
|
|
|
382
392
|
onReady(formView) {
|
|
383
393
|
this.formView = formView;
|
|
384
394
|
},
|
|
395
|
+
// 输入框失去焦点事件
|
|
396
|
+
onBlur(sender) {
|
|
397
|
+
/**
|
|
398
|
+
* 数据变化事件
|
|
399
|
+
* @property {object} sender 触发的列对象
|
|
400
|
+
*/
|
|
401
|
+
this.$emit('on-blur', sender);
|
|
402
|
+
},
|
|
385
403
|
onVisibleChange(show) {
|
|
386
404
|
// 关闭时清空数据
|
|
387
405
|
if (!show) {
|
|
@@ -63,7 +63,10 @@
|
|
|
63
63
|
@create="create"
|
|
64
64
|
@edit="edit"
|
|
65
65
|
@show="show"
|
|
66
|
+
@on-blur="onBlur"
|
|
67
|
+
@on-change="onChange"
|
|
66
68
|
@on-ready="onReady"
|
|
69
|
+
@on-remove="onRemove"
|
|
67
70
|
@on-load-data="onLoadData"
|
|
68
71
|
@after-init="afterInit"
|
|
69
72
|
@on-drag-drop="(index1, index2) => this.$emit('on-drag-drop', index1, index2)"
|
|
@@ -71,6 +74,7 @@
|
|
|
71
74
|
@on-row-click="onRowClick"
|
|
72
75
|
@on-row-dblclick="onRowDblclick"
|
|
73
76
|
@on-cell-click="onCellClick"
|
|
77
|
+
@on-select-change="onSelectChange"
|
|
74
78
|
>
|
|
75
79
|
<template #top>
|
|
76
80
|
<!--
|
|
@@ -154,6 +158,7 @@
|
|
|
154
158
|
export default {
|
|
155
159
|
mixins: [mixinPage],
|
|
156
160
|
components: {},
|
|
161
|
+
emits: ['after-init', 'create', 'on-close', 'edit', 'on-blur', 'on-cell-click', 'on-change', 'on-load-data', 'on-row-click', 'on-row-dblclick', 'on-select-change', 'show'],
|
|
157
162
|
data() {
|
|
158
163
|
return {
|
|
159
164
|
opened: false,
|
|
@@ -621,6 +626,32 @@
|
|
|
621
626
|
this.$refs.table.isMaxHight = isFullscreen;
|
|
622
627
|
|
|
623
628
|
this.isFullscreen = isFullscreen;
|
|
629
|
+
},
|
|
630
|
+
// 失去焦点事件
|
|
631
|
+
onBlur(data, sender) {
|
|
632
|
+
/**
|
|
633
|
+
* 失去焦点事件
|
|
634
|
+
* @property {object} data 行对象
|
|
635
|
+
* @property {object} sender 触发的列对象
|
|
636
|
+
*/
|
|
637
|
+
this.$emit('on-blur', data, sender);
|
|
638
|
+
},
|
|
639
|
+
// 变更事件
|
|
640
|
+
onChange(data, sender, selected) {
|
|
641
|
+
/**
|
|
642
|
+
* 数据变化事件
|
|
643
|
+
* @property {object} data 行对象
|
|
644
|
+
* @property {object} sender 触发的列对象
|
|
645
|
+
* @property {object} selected 选中对象(弹出选择框等有效)
|
|
646
|
+
*/
|
|
647
|
+
this.$emit('on-change', data, sender, selected);
|
|
648
|
+
},
|
|
649
|
+
// 选中项变化事件
|
|
650
|
+
onSelectChange() {
|
|
651
|
+
/**
|
|
652
|
+
* 数据变化事件
|
|
653
|
+
*/
|
|
654
|
+
this.$emit('on-select-change');
|
|
624
655
|
}
|
|
625
656
|
}
|
|
626
657
|
};
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
import { mapActions } from 'vuex';
|
|
26
26
|
import dateFormat from 'date-fns/format';
|
|
27
27
|
|
|
28
|
+
import Handsontable from 'handsontable';
|
|
28
29
|
import { HotTable } from '@handsontable/vue3';
|
|
29
30
|
import { ContextMenu } from 'handsontable/plugins/contextMenu';
|
|
30
31
|
import { registerAllModules } from 'handsontable/registry';
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
export default {
|
|
47
48
|
mixins: [mixin, mixinPage],
|
|
48
49
|
components: { HotTable, tableSetting },
|
|
49
|
-
emits: ['
|
|
50
|
+
emits: ['after-init', 'on-change', 'on-load-data'],
|
|
50
51
|
data() {
|
|
51
52
|
return {
|
|
52
53
|
inited: false,
|
|
@@ -74,7 +75,6 @@
|
|
|
74
75
|
licenseKey: 'non-commercial-and-evaluation'
|
|
75
76
|
},
|
|
76
77
|
coords: {},
|
|
77
|
-
data: [],
|
|
78
78
|
staticData: [],
|
|
79
79
|
setting: false,
|
|
80
80
|
tableSettingActive: false,
|
|
@@ -160,7 +160,11 @@
|
|
|
160
160
|
default: null
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
computed: {
|
|
163
|
+
computed: {
|
|
164
|
+
data() {
|
|
165
|
+
return this.staticData;
|
|
166
|
+
}
|
|
167
|
+
},
|
|
164
168
|
watch: {
|
|
165
169
|
// value() {
|
|
166
170
|
// if (this.embedded) {
|
|
@@ -208,6 +212,42 @@
|
|
|
208
212
|
this.tableView = view.dataView;
|
|
209
213
|
this.tableView.columns = view.viewColumns;
|
|
210
214
|
|
|
215
|
+
// 文本必填
|
|
216
|
+
Handsontable.validators.registerValidator('text-required', (value, callback) => {
|
|
217
|
+
if (!(value || '').trim()) {
|
|
218
|
+
callback(false);
|
|
219
|
+
} else {
|
|
220
|
+
callback(true);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// 数字必填
|
|
225
|
+
Handsontable.validators.registerValidator('numeric-required', (value, callback) => {
|
|
226
|
+
if (value === null || value === void 0) {
|
|
227
|
+
callback(false);
|
|
228
|
+
} else {
|
|
229
|
+
Handsontable.validators.NumericValidator(value, callback);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// 日期必填
|
|
234
|
+
Handsontable.validators.registerValidator('date-required', (value, callback) => {
|
|
235
|
+
if (!(value || '').trim()) {
|
|
236
|
+
callback(false);
|
|
237
|
+
} else {
|
|
238
|
+
Handsontable.validators.DateValidator.apply({ instance: this.$refs.table.hotInstance }, [value, callback]);
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// 选择必填
|
|
243
|
+
Handsontable.validators.registerValidator('select-required', (value, callback) => {
|
|
244
|
+
if (!(value || '').trim()) {
|
|
245
|
+
callback(false);
|
|
246
|
+
} else {
|
|
247
|
+
Handsontable.validators.AutocompleteValidator(value, callback);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
|
|
211
251
|
// 初始化数据源
|
|
212
252
|
// this.initDataSource();
|
|
213
253
|
|
|
@@ -225,13 +265,25 @@
|
|
|
225
265
|
if (!this.readonly) {
|
|
226
266
|
if (item.controlType === 'Label' || item.isReadonly == true) {
|
|
227
267
|
column.readOnly = true;
|
|
268
|
+
} else if (item.controlType === 'TextInput') {
|
|
269
|
+
column.type = 'text';
|
|
270
|
+
|
|
271
|
+
if (column.isRequired) {
|
|
272
|
+
column.validator = 'text-required';
|
|
273
|
+
}
|
|
228
274
|
} else if (item.controlType === 'NumberInput') {
|
|
229
275
|
column.type = 'numeric';
|
|
276
|
+
if (column.isRequired) {
|
|
277
|
+
column.validator = 'numeric-required';
|
|
278
|
+
}
|
|
230
279
|
// column.validator = 'numeric';
|
|
231
280
|
} else if (item.controlType === 'Check') {
|
|
232
281
|
column.type = 'checkbox';
|
|
233
282
|
} else if (item.controlType === 'Select') {
|
|
234
283
|
column.editor = 'select';
|
|
284
|
+
if (column.isRequired) {
|
|
285
|
+
column.validator = 'select-required';
|
|
286
|
+
}
|
|
235
287
|
|
|
236
288
|
let dataSource = [];
|
|
237
289
|
|
|
@@ -321,6 +373,9 @@
|
|
|
321
373
|
});
|
|
322
374
|
} else if (item.controlType === 'Date') {
|
|
323
375
|
column.type = 'date';
|
|
376
|
+
if (column.isRequired) {
|
|
377
|
+
column.validator = 'date-required';
|
|
378
|
+
}
|
|
324
379
|
column.dateFormat = 'YYYY-MM-DD';
|
|
325
380
|
column.correctFormat = true;
|
|
326
381
|
// column.renderer = function (instance, td, row, col, prop, value, cellProperties) {
|
|
@@ -450,7 +505,7 @@
|
|
|
450
505
|
let data = this.$refs.table.hotInstance.getSourceData();
|
|
451
506
|
let delRows = data.splice(index, 1);
|
|
452
507
|
data.splice(index - 1, 0, delRows[0]);
|
|
453
|
-
this.$refs.table.hotInstance.
|
|
508
|
+
this.$refs.table.hotInstance.updateData(data);
|
|
454
509
|
}
|
|
455
510
|
}
|
|
456
511
|
};
|
|
@@ -462,7 +517,7 @@
|
|
|
462
517
|
if (index < data.length - 1) {
|
|
463
518
|
let delRows = data.splice(index, 1);
|
|
464
519
|
data.splice(index + 1, 0, delRows[0]);
|
|
465
|
-
this.$refs.table.hotInstance.
|
|
520
|
+
this.$refs.table.hotInstance.updateData(data);
|
|
466
521
|
}
|
|
467
522
|
}
|
|
468
523
|
};
|
|
@@ -497,18 +552,7 @@
|
|
|
497
552
|
}
|
|
498
553
|
|
|
499
554
|
this.confirm('确定要删除该行吗?', async () => {
|
|
500
|
-
|
|
501
|
-
// await modelApi.delete(this.viewCode, ids);
|
|
502
|
-
// }
|
|
503
|
-
let b = true;
|
|
504
|
-
|
|
505
|
-
this.$emit('on-remove', rows, val => {
|
|
506
|
-
b = val;
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
if (b) {
|
|
510
|
-
this.$refs.table.hotInstance.alter('remove_row', delArr);
|
|
511
|
-
}
|
|
555
|
+
this.$refs.table.hotInstance.alter('remove_row', delArr);
|
|
512
556
|
});
|
|
513
557
|
}
|
|
514
558
|
};
|
|
@@ -520,26 +564,26 @@
|
|
|
520
564
|
//console.log('afterChange', changes);
|
|
521
565
|
if (changes) {
|
|
522
566
|
changes.forEach(([row, property, oldValue, newValue]) => {
|
|
523
|
-
if (!this.readonly && this.tableView.createEnable && row == this.
|
|
524
|
-
this.
|
|
567
|
+
if (!this.readonly && this.tableView.createEnable && row == this.staticData.length - 1 && (oldValue ?? '') != (newValue ?? '')) {
|
|
568
|
+
this.staticData.push(this.getDefaultData());
|
|
525
569
|
}
|
|
526
570
|
|
|
527
571
|
let column = this.columns.find(item => item.code == property);
|
|
528
572
|
|
|
529
573
|
if (column.controlType != 'DialogSelect') {
|
|
530
574
|
// 弹出框控件不触发数据变更事件,此处手动触发
|
|
531
|
-
this.onDataChange(this.
|
|
575
|
+
this.onDataChange(this.staticData[row], column);
|
|
532
576
|
}
|
|
533
577
|
|
|
534
578
|
if (column.controlType == 'Select') {
|
|
535
579
|
// 校验下拉框选项是否在列表中
|
|
536
580
|
if (!column.selectOptions.some(item => item == newValue)) {
|
|
537
|
-
this.
|
|
581
|
+
this.staticData[row][column.code] = null;
|
|
538
582
|
}
|
|
539
583
|
}
|
|
540
584
|
|
|
541
|
-
this.calc(this.
|
|
542
|
-
this.$refs.table.hotInstance.updateData(this.
|
|
585
|
+
this.calc(this.staticData[row]);
|
|
586
|
+
this.$refs.table.hotInstance.updateData(this.staticData);
|
|
543
587
|
});
|
|
544
588
|
}
|
|
545
589
|
});
|
|
@@ -612,10 +656,10 @@
|
|
|
612
656
|
});
|
|
613
657
|
}
|
|
614
658
|
|
|
615
|
-
this.data = this.staticData;
|
|
659
|
+
//this.data = this.staticData;
|
|
616
660
|
|
|
617
661
|
if (!this.readonly && staticData && this.tableView.createEnable) {
|
|
618
|
-
this.
|
|
662
|
+
this.staticData.push(this.getDefaultData());
|
|
619
663
|
}
|
|
620
664
|
|
|
621
665
|
//this.hotSetting.data = this.data;
|
|
@@ -632,11 +676,11 @@
|
|
|
632
676
|
//this.initDataSource();
|
|
633
677
|
|
|
634
678
|
// 重新计算公式
|
|
635
|
-
for (let i = 0; i < this.
|
|
636
|
-
this.calc(this.
|
|
679
|
+
for (let i = 0; i < this.staticData.length; i++) {
|
|
680
|
+
this.calc(this.staticData[i]);
|
|
637
681
|
}
|
|
638
682
|
|
|
639
|
-
this.$refs.table.hotInstance.loadData(this.
|
|
683
|
+
this.$refs.table.hotInstance.loadData(this.staticData);
|
|
640
684
|
|
|
641
685
|
setTimeout(() => {
|
|
642
686
|
this.$refs.table.hotInstance.render();
|
|
@@ -663,55 +707,80 @@
|
|
|
663
707
|
// }
|
|
664
708
|
},
|
|
665
709
|
/**
|
|
666
|
-
*
|
|
710
|
+
* 刷新
|
|
711
|
+
*
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
refresh() {
|
|
715
|
+
this.$refs.table.hotInstance.updateData(this.staticData);
|
|
716
|
+
},
|
|
717
|
+
/**
|
|
718
|
+
* 验证
|
|
667
719
|
*
|
|
668
720
|
* @public
|
|
669
721
|
*/
|
|
670
722
|
validate() {
|
|
671
|
-
|
|
672
|
-
let row = this.staticData[i];
|
|
673
|
-
|
|
674
|
-
for (let j = 0; j < this.columns.length; j++) {
|
|
675
|
-
let column = this.columns[j];
|
|
676
|
-
let value = this.parseData(row, column.code);
|
|
677
|
-
|
|
678
|
-
// 不显示的不验证
|
|
679
|
-
if (column.isShow == false) {
|
|
680
|
-
continue;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
//let name = column.name.replaceAll('<font style="color: red">*</font>', '');
|
|
684
|
-
|
|
685
|
-
if (column.isRequired) {
|
|
686
|
-
if (value == null || !(String(value) || '').trim()) {
|
|
687
|
-
this.error('Front_Msg_Row_Column_Required|' + (i + 1) + '|' + column.name);
|
|
688
|
-
return false;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
// if (column.maxLength != null && value != null && String(value).length > column.maxLength) {
|
|
693
|
-
// this.error('Front_Msg_Row_Validation_Max_Length|' + (i + 1) + '|' + column.name + '|' + column.maxLength.toString());
|
|
694
|
-
// return false;
|
|
695
|
-
// }
|
|
723
|
+
let rows = [];
|
|
696
724
|
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}
|
|
725
|
+
for (let i = 0; i < this.staticData.length - 1; i++) {
|
|
726
|
+
rows.push(i);
|
|
727
|
+
}
|
|
701
728
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
729
|
+
let valid = this.$refs.table.hotInstance.validateRows(rows, valid => {
|
|
730
|
+
// console.log('valid', valid);
|
|
731
|
+
});
|
|
706
732
|
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
733
|
+
if (!valid) {
|
|
734
|
+
this.error('Front_Msg_Form_Validate_Fail');
|
|
735
|
+
return false;
|
|
736
|
+
} else {
|
|
737
|
+
return true;
|
|
712
738
|
}
|
|
713
739
|
|
|
714
|
-
|
|
740
|
+
// for (let i = 0; i < this.staticData.length - 1; i++) {
|
|
741
|
+
// let row = this.staticData[i];
|
|
742
|
+
|
|
743
|
+
// for (let j = 0; j < this.columns.length; j++) {
|
|
744
|
+
// let column = this.columns[j];
|
|
745
|
+
// let value = this.parseData(row, column.code);
|
|
746
|
+
|
|
747
|
+
// // 不显示的不验证
|
|
748
|
+
// if (column.isShow == false) {
|
|
749
|
+
// continue;
|
|
750
|
+
// }
|
|
751
|
+
|
|
752
|
+
// //let name = column.name.replaceAll('<font style="color: red">*</font>', '');
|
|
753
|
+
|
|
754
|
+
// if (column.isRequired) {
|
|
755
|
+
// if (value == null || !(String(value) || '').trim()) {
|
|
756
|
+
// this.error('Front_Msg_Row_Column_Required|' + (i + 1) + '|' + column.name);
|
|
757
|
+
// return false;
|
|
758
|
+
// }
|
|
759
|
+
// }
|
|
760
|
+
|
|
761
|
+
// // if (column.maxLength != null && value != null && String(value).length > column.maxLength) {
|
|
762
|
+
// // this.error('Front_Msg_Row_Validation_Max_Length|' + (i + 1) + '|' + column.name + '|' + column.maxLength.toString());
|
|
763
|
+
// // return false;
|
|
764
|
+
// // }
|
|
765
|
+
|
|
766
|
+
// if (column.maxValue != null && !isNaN(value) && value > column.maxValue) {
|
|
767
|
+
// this.error('Front_Msg_Row_Validation_Max_Value|' + (i + 1) + '|' + column.name + '|' + column.maxValue.toString());
|
|
768
|
+
// return false;
|
|
769
|
+
// }
|
|
770
|
+
|
|
771
|
+
// if (column.minValue != null && !isNaN(value) && value < column.minValue) {
|
|
772
|
+
// this.error('Front_Msg_Row_Validation_Min_Value|' + (i + 1) + '|' + column.name + '|' + column.minValue.toString());
|
|
773
|
+
// return false;
|
|
774
|
+
// }
|
|
775
|
+
|
|
776
|
+
// if (!!(column.pattern || '').trim() && value != null && new RegExp(column.pattern).test(value) == false) {
|
|
777
|
+
// this.error('Front_Msg_Row_Validation_Pattern|' + (i + 1) + '|' + column.name + '|' + column.pattern);
|
|
778
|
+
// return false;
|
|
779
|
+
// }
|
|
780
|
+
// }
|
|
781
|
+
// }
|
|
782
|
+
|
|
783
|
+
//return true;
|
|
715
784
|
},
|
|
716
785
|
/**
|
|
717
786
|
* 获取数据
|
|
@@ -791,7 +860,7 @@
|
|
|
791
860
|
},
|
|
792
861
|
// 行数据
|
|
793
862
|
rowData(row, index) {
|
|
794
|
-
return this.
|
|
863
|
+
return this.staticData[index];
|
|
795
864
|
},
|
|
796
865
|
// 获取多语言名称
|
|
797
866
|
getNameI18n(column) {
|
|
@@ -814,7 +883,7 @@
|
|
|
814
883
|
// 清空数据
|
|
815
884
|
clear() {
|
|
816
885
|
this.staticData = [];
|
|
817
|
-
this.data = [];
|
|
886
|
+
//this.data = [];
|
|
818
887
|
},
|
|
819
888
|
// 弹出选择框选中
|
|
820
889
|
|
|
@@ -726,6 +726,21 @@
|
|
|
726
726
|
export default {
|
|
727
727
|
mixins: [mixin, mixinPage],
|
|
728
728
|
components: { tableFilter, tableSetting, filterSetting },
|
|
729
|
+
emits: [
|
|
730
|
+
'after-init',
|
|
731
|
+
'create',
|
|
732
|
+
'edit',
|
|
733
|
+
'on-blur',
|
|
734
|
+
'on-cell-click',
|
|
735
|
+
'on-change',
|
|
736
|
+
'on-load-data',
|
|
737
|
+
'on-ready',
|
|
738
|
+
'on-remove',
|
|
739
|
+
'on-row-click',
|
|
740
|
+
'on-row-dblclick',
|
|
741
|
+
'on-select-change',
|
|
742
|
+
'show'
|
|
743
|
+
],
|
|
729
744
|
data() {
|
|
730
745
|
return {
|
|
731
746
|
inited: false,
|
package/src/i18n/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./lang.js";const t={i:{locale:"en-US",select:{placeholder:"Select",noMatch:"No matching data",loading:"Loading"},table:{noDataText:"No Data",noFilteredDataText:"No filter data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},datepicker:{selectDate:"Select date",selectTime:"Select time",startTime:"Start Time",endTime:"End Time",clear:"Clear",ok:"OK",datePanelLabel:"[mmmm] [yyyy]",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",weekStartDay:"0",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{m1:"Jan",m2:"Feb",m3:"Mar",m4:"Apr",m5:"May",m6:"Jun",m7:"Jul",m8:"Aug",m9:"Sep",m10:"Oct",m11:"Nov",m12:"Dec"}},transfer:{titles:{source:"Source",target:"Target"},filterPlaceholder:"Search here",notFoundText:"Not Found"},modal:{okText:"OK",cancelText:"Cancel"},poptip:{okText:"OK",cancelText:"Cancel"},page:{prev:"Previous Page",next:"Next Page",total:"Total",item:"item",items:"items",prev5:"Previous 5 Pages",next5:"Next 5 Pages",page:"/page",goto:"Goto",p:""},rate:{star:"Star",stars:"Stars"},time:{before:" ago",after:" after",just:"just now",seconds:" seconds",minutes:" minutes",hours:" hours",days:" days"},tree:{emptyText:"No Data"}}};e(t);export{t as default};
|
|
1
|
+
import{s as e}from"./lang.js";const t={i:{locale:"en-US",select:{placeholder:"Select",noMatch:"No matching data",loading:"Loading"},table:{noDataText:"No Data",noFilteredDataText:"No filter data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},datepicker:{selectDate:"Select date",selectTime:"Select time",startTime:"Start Time",endTime:"End Time",clear:"Clear",ok:"OK",datePanelLabel:"[mmmm] [yyyy]",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",weekStartDay:"0",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{m1:"Jan",m2:"Feb",m3:"Mar",m4:"Apr",m5:"May",m6:"Jun",m7:"Jul",m8:"Aug",m9:"Sep",m10:"Oct",m11:"Nov",m12:"Dec"}},transfer:{titles:{source:"Source",target:"Target"},filterPlaceholder:"Search here",notFoundText:"Not Found"},modal:{okText:"OK",cancelText:"Cancel"},poptip:{okText:"OK",cancelText:"Cancel"},page:{prev:"Previous Page",next:"Next Page",total:"Total",item:"item",items:"items",prev5:"Previous 5 Pages",next5:"Next 5 Pages",page:"/page",goto:"Goto",p:""},rate:{star:"Star",stars:"Stars"},time:{before:" ago",after:" after",just:"just now",seconds:" seconds",minutes:" minutes",hours:" hours",days:" days"},tree:{emptyText:"No Data"}}};e(t);export{t as default};
|
package/src/i18n/locale/lang.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=typeof window!="undefined";function n(i){e&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[i.i.locale]=i)}export{n as s};
|
|
1
|
+
const e=typeof window!="undefined";function n(i){e&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[i.i.locale]=i)}export{n as s};
|
package/src/i18n/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./lang.js";const t={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"}}};e(t);export{t as default};
|
|
1
|
+
import{s as e}from"./lang.js";const t={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"}}};e(t);export{t as default};
|