n20-common-lib 2.8.14 → 2.8.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.8.14",
3
+ "version": "2.8.16",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -64,6 +64,7 @@
64
64
  "v-viewer": "1.6.4",
65
65
  "vue-jsonp": "2.0.0",
66
66
  "vuedraggable": "*",
67
+ "webpack-duplicate-relano-plugin": "^0.1.0",
67
68
  "xe-utils": "^3.5.11"
68
69
  },
69
70
  "devDependencies": {
@@ -52,7 +52,7 @@ export default {
52
52
  methods: {
53
53
  checkChange(keys) {
54
54
  if (keys.length > this.maxLength) {
55
- return this.$message.warning(`最多只能添加${this.maxLength}个筛选条件!`)
55
+ return this.$message.warning(`${$lc('最多只能添加')}${this.maxLength}${$lc('个')}${$lc('筛选条件!')}`)
56
56
  }
57
57
  this.$emit('checked', keys)
58
58
  },
@@ -36,9 +36,9 @@
36
36
  <el-input v-model="keyword" clearable class="input-w m-b-s" :placeholder="$lc('搜索筛选条件')" />
37
37
  <div class="flex-box flex-lr">
38
38
  <el-button type="text" @click="allCheck">{{
39
- checkList.length === filterListS.length ? '取消全选' : '全选'
39
+ checkList.length === filterListS.length ? $lc('取消全选') : $lc('全选')
40
40
  }}</el-button>
41
- <el-button type="text" @click="defaultCheck"> 恢复默认</el-button>
41
+ <el-button type="text" @click="defaultCheck">{{ $lc('恢复默认') }}</el-button>
42
42
  </div>
43
43
  <filterItem
44
44
  :filter-list="filterListS"
@@ -47,8 +47,8 @@
47
47
  @checked="check"
48
48
  />
49
49
  <div class="flex-box flex-c m-t-m">
50
- <el-button size="mini" type="primary" @click="savaCheck">确认</el-button>
51
- <el-button plain type="primary" @click="cancel">取消</el-button>
50
+ <el-button size="mini" type="primary" @click="savaCheck">{{ $lc('确认') }}</el-button>
51
+ <el-button plain type="primary" @click="cancel">{{ $l('取消') }}</el-button>
52
52
  </div>
53
53
  </el-popover>
54
54
  <el-link class="m-l-s color-primary" :underline="false" icon="n20-icon-query" @click="$emit('search')">
@@ -92,7 +92,7 @@
92
92
  </template>
93
93
  <template #empty>
94
94
  <slot name="empty">
95
- <empty type="empty" content="暂无数据" :height="200" :width="200" />
95
+ <empty type="empty" :content="$lc('暂无数据')" :height="200" :width="200" />
96
96
  </slot>
97
97
  </template>
98
98
  </vxe-table>
@@ -271,6 +271,7 @@ export default {
271
271
  // row当前单次勾选的哪一行数据 包含checked字段
272
272
  handleSelectionChange(row = '') {
273
273
  const val = this.$refs.vxeTable.getCheckboxRecords()
274
+ // 支持跨页勾选
274
275
  const val1 = this.$refs.vxeTable.getCheckboxReserveRecords()
275
276
  this.$emit('selection-change-method', [...val, ...val1], row)
276
277
  },
package/src/i18n.json CHANGED
@@ -789,6 +789,21 @@
789
789
  "th": "ล้าง",
790
790
  "vi": "Trống"
791
791
  },
792
+ "最多只能添加": {
793
+ "en": "Can only add up to",
794
+ "th": "สามารถเพิ่มได้สูงสุด",
795
+ "vi": "Chỉ có thể thêm tối đa"
796
+ },
797
+ "个": {
798
+ "en": "a",
799
+ "th": "คน",
800
+ "vi": "cái"
801
+ },
802
+ "筛选条件!": {
803
+ "en": "Filter conditions!",
804
+ "th": "เงื่อนไขการกรอง!",
805
+ "vi": "Điều kiện lọc!"
806
+ },
792
807
  "暂存": {
793
808
  "en": "Temporary storage",
794
809
  "th": "การจัดเก็บชั่วคราว",
@@ -3269,6 +3284,16 @@
3269
3284
  "th": "เลือกแล้ว",
3270
3285
  "vi": "Đã chọn"
3271
3286
  },
3287
+ "全选": {
3288
+ "en": "Select all",
3289
+ "th": "เลือกทั้งหมด",
3290
+ "vi": "Chọn tất cả"
3291
+ },
3292
+ "取消全选": {
3293
+ "en": "Deselect all",
3294
+ "th": "ยกเลิกการเลือกทั้งหมด",
3295
+ "vi": "Bỏ chọn tất cả"
3296
+ },
3272
3297
  "导入进度": {
3273
3298
  "en": "Import progress",
3274
3299
  "th": "ความคืบหน้าการนำเข้า",