mooho-base-admin-plus 2.10.16 → 2.10.18
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 +332 -343
- package/package/mooho-base-admin-plus.min.js +11 -11
- package/package/style.css +1 -1
- package/package.json +2 -2
- package/src/components/input/dialog-select.vue +0 -2
- package/src/components/view/column-edit.vue +7 -2
- package/src/components/view/mixin.js +58 -0
- package/src/components/view/table-filter.vue +6 -34
- package/src/components/view/view-form-draggable.vue +0 -49
- package/src/components/view/view-form.vue +7 -56
- package/src/components/view/view-table.vue +0 -53
- 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/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mooho-base-admin-plus",
|
|
3
3
|
"description": "MOOHO basic framework for admin by Vue3",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.18",
|
|
5
5
|
"author": "jinyifan <jinyifan@mooho.com.cn>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@vue/compiler-sfc": "^3.0.0",
|
|
45
45
|
"@vue/eslint-config-standard": "^4.0.0",
|
|
46
46
|
"eslint-config-prettier": "^8.3.0",
|
|
47
|
-
"eslint-plugin-prettier": "^
|
|
47
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
48
48
|
"eslint-plugin-vue": "^8.0.3",
|
|
49
49
|
"less": "^2.7.3",
|
|
50
50
|
"less-loader": "^4.1.0",
|
|
@@ -148,7 +148,6 @@
|
|
|
148
148
|
})
|
|
149
149
|
.join(',');
|
|
150
150
|
|
|
151
|
-
console.log('res.data', res.data);
|
|
152
151
|
this.selectedData = res.data;
|
|
153
152
|
|
|
154
153
|
//this.$forceUpdate();
|
|
@@ -174,7 +173,6 @@
|
|
|
174
173
|
})
|
|
175
174
|
.join(',');
|
|
176
175
|
|
|
177
|
-
console.log('res.data', res.data);
|
|
178
176
|
this.selectedData = res.data;
|
|
179
177
|
|
|
180
178
|
//this.$forceUpdate();
|
|
@@ -441,12 +441,17 @@
|
|
|
441
441
|
<Input type="number" style="width: 60px" number v-model="data.maxValue" />
|
|
442
442
|
</FormItem>
|
|
443
443
|
</Col>
|
|
444
|
-
<Col v-bind="grid8">
|
|
444
|
+
<Col v-bind="grid8" v-if="data.controlType == 'Label' || data.controlType == 'NumberInput'">
|
|
445
445
|
<FormItem label="显示保留小数位" key="digit" prop="digit">
|
|
446
446
|
<Input type="number" style="width: 100px" number v-model="data.digit" />
|
|
447
447
|
</FormItem>
|
|
448
448
|
</Col>
|
|
449
|
-
<Col v-bind="grid8">
|
|
449
|
+
<Col v-bind="grid8" v-if="data.controlType == 'Table'">
|
|
450
|
+
<FormItem label="初始行数" key="digit" prop="digit">
|
|
451
|
+
<Input type="number" style="width: 100px" number v-model="data.digit" />
|
|
452
|
+
</FormItem>
|
|
453
|
+
</Col>
|
|
454
|
+
<Col v-bind="grid8" v-if="data.controlType == 'Label' || data.controlType == 'NumberInput'">
|
|
450
455
|
<FormItem label="固定保留小数位" key="fixedDigit" prop="fixedDigit">
|
|
451
456
|
<Switch
|
|
452
457
|
:model-value="!!data.fixedDigit"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import dateFormat from 'date-fns/format';
|
|
2
|
+
|
|
1
3
|
export default {
|
|
2
4
|
data() {
|
|
3
5
|
return {};
|
|
@@ -92,6 +94,62 @@ export default {
|
|
|
92
94
|
});
|
|
93
95
|
|
|
94
96
|
return color;
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* 获取默认值
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
getDefaultData(setData = (data, column, value) => this.setData(data, column.code, value), setArrayData = (data, column, value) => this.setArrayData(data, column.code, value)) {
|
|
104
|
+
let data = {};
|
|
105
|
+
this.columns.forEach(item => {
|
|
106
|
+
if (item.defaultValue) {
|
|
107
|
+
if (item.defaultValue == '{today}') {
|
|
108
|
+
// 当前日期
|
|
109
|
+
let date = new Date();
|
|
110
|
+
let value = date.toISOString().replace(/T.*/, '');
|
|
111
|
+
setData(data, item, new Date(value));
|
|
112
|
+
} else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
|
|
113
|
+
// 当前时间转字符串
|
|
114
|
+
let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
|
|
115
|
+
setData(data, item, dateFormat(new Date(), format));
|
|
116
|
+
} else if (item.defaultValue == '{currentUserID}') {
|
|
117
|
+
// 当前用户编号
|
|
118
|
+
setData(data, item, this.info.id);
|
|
119
|
+
} else if (item.defaultValue == '{currentUser}') {
|
|
120
|
+
// 当前用户姓名
|
|
121
|
+
setData(data, item, this.info.name);
|
|
122
|
+
} else {
|
|
123
|
+
if (item.controlType == 'MultiSelect' || item.controlType == 'MultiTreeSelect' || item.controlType == 'MultiComboSelect') {
|
|
124
|
+
setArrayData(data, item, item.defaultValue.split(','));
|
|
125
|
+
} else if (item.dataType === 'Integer') {
|
|
126
|
+
setData(data, item, parseInt(item.defaultValue));
|
|
127
|
+
} else if (item.dataType === 'Decimal') {
|
|
128
|
+
setData(data, item, parseFloat(item.defaultValue));
|
|
129
|
+
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
|
|
130
|
+
setData(data, item, true);
|
|
131
|
+
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
|
|
132
|
+
setData(data, item, false);
|
|
133
|
+
} else {
|
|
134
|
+
setData(data, item, item.defaultValue);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
if ((item.controlType == 'Check' || item.controlType == 'Switch') && item.dataType === 'Boolean') {
|
|
139
|
+
setData(data, item, false);
|
|
140
|
+
} else {
|
|
141
|
+
setData(data, item, null);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
if (this.defaultData) {
|
|
147
|
+
for (let key in this.defaultData) {
|
|
148
|
+
setData(data, key, this.defaultData[key]);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return data;
|
|
95
153
|
}
|
|
96
154
|
}
|
|
97
155
|
};
|
|
@@ -321,40 +321,12 @@
|
|
|
321
321
|
computed: {},
|
|
322
322
|
methods: {
|
|
323
323
|
init() {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
let date = new Date();
|
|
331
|
-
let value = date.toISOString().replace(/T.*/, '');
|
|
332
|
-
this.setFilterData(data, item, new Date(value));
|
|
333
|
-
} else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
|
|
334
|
-
// 当前时间转字符串
|
|
335
|
-
let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
|
|
336
|
-
this.setFilterData(data, item, dateFormat(new Date(), format));
|
|
337
|
-
} else if (item.defaultValue == '{currentUserID}') {
|
|
338
|
-
// 当前用户编号
|
|
339
|
-
this.setFilterData(data, item, this.info.id);
|
|
340
|
-
} else if (item.defaultValue == '{currentUser}') {
|
|
341
|
-
// 当前用户姓名
|
|
342
|
-
this.setFilterData(data, item, this.info.name);
|
|
343
|
-
} else {
|
|
344
|
-
if (item.dataType === 'Integer') {
|
|
345
|
-
this.setFilterData(data, item, parseInt(item.defaultValue));
|
|
346
|
-
} else if (item.dataType === 'Decimal') {
|
|
347
|
-
this.setFilterData(data, item, parseFloat(item.defaultValue));
|
|
348
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
|
|
349
|
-
this.setFilterData(data, item, true);
|
|
350
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
|
|
351
|
-
this.setFilterData(data, item, false);
|
|
352
|
-
} else {
|
|
353
|
-
this.setFilterData(data, item, item.defaultValue);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
});
|
|
324
|
+
// 设置默认值
|
|
325
|
+
let defaultData = this.getDefaultData(this.setFilterData, this.setArrayFilterData);
|
|
326
|
+
|
|
327
|
+
for (let key in defaultData) {
|
|
328
|
+
this.data[key] = defaultData[key];
|
|
329
|
+
}
|
|
358
330
|
|
|
359
331
|
// 初始化触发规则
|
|
360
332
|
setTimeout(() => {
|
|
@@ -389,7 +389,6 @@
|
|
|
389
389
|
import uploadAttachment from '../upload/upload-attachment.vue';
|
|
390
390
|
import uploadImage from '../upload/upload-image.vue';
|
|
391
391
|
import draggable from 'vuedraggable';
|
|
392
|
-
import dateFormat from 'date-fns/format';
|
|
393
392
|
|
|
394
393
|
export default {
|
|
395
394
|
mixins: [mixin, mixinPage],
|
|
@@ -861,54 +860,6 @@
|
|
|
861
860
|
column.needRefresh = false;
|
|
862
861
|
}
|
|
863
862
|
},
|
|
864
|
-
// 获取默认值
|
|
865
|
-
getDefaultData() {
|
|
866
|
-
let data = {};
|
|
867
|
-
this.columns.forEach(item => {
|
|
868
|
-
if (item.defaultValue) {
|
|
869
|
-
if (item.defaultValue == '{today}') {
|
|
870
|
-
// 当前日期
|
|
871
|
-
let date = new Date();
|
|
872
|
-
let value = date.toISOString().replace(/T.*/, '');
|
|
873
|
-
this.setData(data, item.code, new Date(value));
|
|
874
|
-
} else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
|
|
875
|
-
// 当前时间转字符串
|
|
876
|
-
let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
|
|
877
|
-
this.setData(data, item.code, dateFormat(new Date(), format));
|
|
878
|
-
} else if (item.defaultValue == '{currentUserID}') {
|
|
879
|
-
// 当前用户编号
|
|
880
|
-
this.setData(data, item.code, this.info.id);
|
|
881
|
-
} else if (item.defaultValue == '{currentUser}') {
|
|
882
|
-
// 当前用户姓名
|
|
883
|
-
this.setData(data, item.code, this.info.name);
|
|
884
|
-
} else {
|
|
885
|
-
if (item.dataType === 'Integer') {
|
|
886
|
-
this.setData(data, item.code, parseInt(item.defaultValue));
|
|
887
|
-
} else if (item.dataType === 'Decimal') {
|
|
888
|
-
this.setData(data, item.code, parseFloat(item.defaultValue));
|
|
889
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
|
|
890
|
-
this.setData(data, item.code, true);
|
|
891
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
|
|
892
|
-
this.setData(data, item.code, false);
|
|
893
|
-
} else {
|
|
894
|
-
this.setData(data, item.code, item.defaultValue);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
} else {
|
|
898
|
-
if (item.dataType === 'Boolean') {
|
|
899
|
-
this.setData(data, item.code, false);
|
|
900
|
-
} else {
|
|
901
|
-
this.setData(data, item.code, null);
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
|
|
906
|
-
for (let key in this.defaultData) {
|
|
907
|
-
this.setData(data, key, this.defaultData[key]);
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
return data;
|
|
911
|
-
},
|
|
912
863
|
// 编辑
|
|
913
864
|
edit(column, index) {
|
|
914
865
|
this.$emit('edit', { column, index });
|
|
@@ -507,7 +507,6 @@
|
|
|
507
507
|
import uploadAttachment from '../upload/upload-attachment.vue';
|
|
508
508
|
import uploadImage from '../upload/upload-image.vue';
|
|
509
509
|
import CheckGroup from '../input/check-group.vue';
|
|
510
|
-
import dateFormat from 'date-fns/format';
|
|
511
510
|
// import lodop from '../../libs/lodop';
|
|
512
511
|
|
|
513
512
|
/**
|
|
@@ -727,58 +726,6 @@
|
|
|
727
726
|
this.onDataChange();
|
|
728
727
|
});
|
|
729
728
|
},
|
|
730
|
-
/**
|
|
731
|
-
* 获取默认值
|
|
732
|
-
*
|
|
733
|
-
* @public
|
|
734
|
-
*/
|
|
735
|
-
getDefaultData() {
|
|
736
|
-
let data = {};
|
|
737
|
-
this.columns.forEach(item => {
|
|
738
|
-
if (item.defaultValue) {
|
|
739
|
-
if (item.defaultValue == '{today}') {
|
|
740
|
-
// 当前日期
|
|
741
|
-
let date = new Date();
|
|
742
|
-
let value = date.toISOString().replace(/T.*/, '');
|
|
743
|
-
this.setData(data, item.code, new Date(value));
|
|
744
|
-
} else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
|
|
745
|
-
// 当前时间转字符串
|
|
746
|
-
let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
|
|
747
|
-
this.setData(data, item.code, dateFormat(new Date(), format));
|
|
748
|
-
} else if (item.defaultValue == '{currentUserID}') {
|
|
749
|
-
// 当前用户编号
|
|
750
|
-
this.setData(data, item.code, this.info.id);
|
|
751
|
-
} else if (item.defaultValue == '{currentUser}') {
|
|
752
|
-
// 当前用户姓名
|
|
753
|
-
this.setData(data, item.code, this.info.name);
|
|
754
|
-
} else {
|
|
755
|
-
if (item.dataType === 'Integer') {
|
|
756
|
-
this.setData(data, item.code, parseInt(item.defaultValue));
|
|
757
|
-
} else if (item.dataType === 'Decimal') {
|
|
758
|
-
this.setData(data, item.code, parseFloat(item.defaultValue));
|
|
759
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
|
|
760
|
-
this.setData(data, item.code, true);
|
|
761
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
|
|
762
|
-
this.setData(data, item.code, false);
|
|
763
|
-
} else {
|
|
764
|
-
this.setData(data, item.code, item.defaultValue);
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
} else {
|
|
768
|
-
if ((item.controlType == 'Check' || item.controlType == 'Switch') && item.dataType === 'Boolean') {
|
|
769
|
-
this.setData(data, item.code, false);
|
|
770
|
-
} else {
|
|
771
|
-
this.setData(data, item.code, null);
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
for (let key in this.defaultData) {
|
|
777
|
-
this.setData(data, key, this.defaultData[key]);
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
return data;
|
|
781
|
-
},
|
|
782
729
|
/**
|
|
783
730
|
* 重置
|
|
784
731
|
*
|
|
@@ -842,10 +789,14 @@
|
|
|
842
789
|
}
|
|
843
790
|
}
|
|
844
791
|
|
|
845
|
-
//
|
|
846
|
-
let tables = this.columns.filter(item => item.controlType == 'Table'
|
|
792
|
+
// 表格默认行数
|
|
793
|
+
let tables = this.columns.filter(item => item.controlType == 'Table');
|
|
847
794
|
for (let column of tables) {
|
|
848
|
-
|
|
795
|
+
if (column.digit) {
|
|
796
|
+
for (let i = 0; i < column.digit; i++) {
|
|
797
|
+
this.$refs['table_' + column.code][0].addNew();
|
|
798
|
+
}
|
|
799
|
+
}
|
|
849
800
|
}
|
|
850
801
|
|
|
851
802
|
this.clearValidate();
|
|
@@ -663,7 +663,6 @@
|
|
|
663
663
|
import tableSetting from './table-setting.vue';
|
|
664
664
|
import filterSetting from './filter-setting.vue';
|
|
665
665
|
import tableFilter from './table-filter.vue';
|
|
666
|
-
import dateFormat from 'date-fns/format';
|
|
667
666
|
import { resolveComponent } from 'vue';
|
|
668
667
|
import Setting from '../../setting';
|
|
669
668
|
|
|
@@ -1546,54 +1545,6 @@
|
|
|
1546
1545
|
}
|
|
1547
1546
|
});
|
|
1548
1547
|
},
|
|
1549
|
-
/**
|
|
1550
|
-
* 获取默认值
|
|
1551
|
-
*
|
|
1552
|
-
* @public
|
|
1553
|
-
*/
|
|
1554
|
-
getDefaultData() {
|
|
1555
|
-
let data = {};
|
|
1556
|
-
this.columns.forEach(item => {
|
|
1557
|
-
if (item.defaultValue) {
|
|
1558
|
-
if (item.defaultValue == '{today}') {
|
|
1559
|
-
// 当前日期
|
|
1560
|
-
let date = new Date();
|
|
1561
|
-
let value = date.toISOString().replace(/T.*/, '');
|
|
1562
|
-
this.setData(data, item.code, new Date(value));
|
|
1563
|
-
} else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
|
|
1564
|
-
// 当前时间转字符串
|
|
1565
|
-
let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
|
|
1566
|
-
this.setData(data, item.code, dateFormat(new Date(), format));
|
|
1567
|
-
} else if (item.defaultValue == '{currentUserID}') {
|
|
1568
|
-
// 当前用户编号
|
|
1569
|
-
this.setData(data, item.code, this.info.id);
|
|
1570
|
-
} else if (item.defaultValue == '{currentUser}') {
|
|
1571
|
-
// 当前用户姓名
|
|
1572
|
-
this.setData(data, item.code, this.info.name);
|
|
1573
|
-
} else {
|
|
1574
|
-
if (item.dataType === 'Integer') {
|
|
1575
|
-
this.setData(data, item.code, parseInt(item.defaultValue));
|
|
1576
|
-
} else if (item.dataType === 'Decimal') {
|
|
1577
|
-
this.setData(data, item.code, parseFloat(item.defaultValue));
|
|
1578
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
|
|
1579
|
-
this.setData(data, item.code, true);
|
|
1580
|
-
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
|
|
1581
|
-
this.setData(data, item.code, false);
|
|
1582
|
-
} else {
|
|
1583
|
-
this.setData(data, item.code, item.defaultValue);
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
} else {
|
|
1587
|
-
if (item.dataType === 'Boolean') {
|
|
1588
|
-
this.setData(data, item.code, false);
|
|
1589
|
-
} else {
|
|
1590
|
-
this.setData(data, item.code, null);
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
});
|
|
1594
|
-
|
|
1595
|
-
return data;
|
|
1596
|
-
},
|
|
1597
1548
|
/**
|
|
1598
1549
|
* 添加新行
|
|
1599
1550
|
*
|
|
@@ -1732,8 +1683,6 @@
|
|
|
1732
1683
|
}
|
|
1733
1684
|
});
|
|
1734
1685
|
|
|
1735
|
-
console.log('data', data);
|
|
1736
|
-
|
|
1737
1686
|
// 调整顺序
|
|
1738
1687
|
if (this.tableView.adjustEnable) {
|
|
1739
1688
|
let i = 0;
|
|
@@ -2941,8 +2890,6 @@
|
|
|
2941
2890
|
},
|
|
2942
2891
|
// 打开弹出表单
|
|
2943
2892
|
async openModalForm(control, id) {
|
|
2944
|
-
console.log('control', control);
|
|
2945
|
-
|
|
2946
2893
|
let data;
|
|
2947
2894
|
if (control.formView.isCustom) {
|
|
2948
2895
|
data = await customModelApi.get(control.formView.model, id);
|
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};
|
|
File without changes
|