vxe-table 3.8.17 → 3.8.19

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 (33) hide show
  1. package/lib/checkbox/src/checkbox.js +1 -1
  2. package/lib/checkbox/src/checkbox.min.js +1 -1
  3. package/lib/icon/style/style.css +1 -1
  4. package/lib/icon/style/style.min.css +1 -1
  5. package/lib/index.css +1 -1
  6. package/lib/index.umd.js +35 -17
  7. package/lib/index.umd.min.js +1 -1
  8. package/lib/radio/src/radio.js +1 -1
  9. package/lib/radio/src/radio.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/style.min.css +1 -1
  12. package/lib/table/src/methods.js +9 -10
  13. package/lib/table/src/methods.min.js +1 -1
  14. package/lib/table/src/table.js +15 -3
  15. package/lib/table/src/table.min.js +1 -1
  16. package/lib/tools/log.js +1 -1
  17. package/lib/tools/log.min.js +1 -1
  18. package/lib/v-x-e-table/index.js +1 -1
  19. package/lib/v-x-e-table/index.min.js +1 -1
  20. package/lib/v-x-e-table/src/conf.js +7 -0
  21. package/lib/v-x-e-table/src/conf.min.js +1 -1
  22. package/package.json +2 -2
  23. package/packages/checkbox/src/checkbox.js +1 -1
  24. package/packages/radio/src/radio.js +1 -1
  25. package/packages/table/src/methods.js +9 -10
  26. package/packages/table/src/table.js +40 -28
  27. package/packages/v-x-e-table/src/conf.js +9 -0
  28. /package/lib/icon/style/{iconfont.1723002262597.ttf → iconfont.1723091290878.ttf} +0 -0
  29. /package/lib/icon/style/{iconfont.1723002262597.woff → iconfont.1723091290878.woff} +0 -0
  30. /package/lib/icon/style/{iconfont.1723002262597.woff2 → iconfont.1723091290878.woff2} +0 -0
  31. /package/lib/{iconfont.1723002262597.ttf → iconfont.1723091290878.ttf} +0 -0
  32. /package/lib/{iconfont.1723002262597.woff → iconfont.1723091290878.woff} +0 -0
  33. /package/lib/{iconfont.1723002262597.woff2 → iconfont.1723091290878.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -11299,6 +11299,13 @@ var iconPrefix = 'vxe-icon-';
11299
11299
  PAGER_PREV_PAGE: iconPrefix + 'arrow-left',
11300
11300
  PAGER_NEXT_PAGE: iconPrefix + 'arrow-right',
11301
11301
  PAGER_JUMP_MORE: iconPrefix + 'ellipsis-h',
11302
+ // radio
11303
+ RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
11304
+ RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
11305
+ // checkbox
11306
+ CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
11307
+ CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
11308
+ CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
11302
11309
  // input
11303
11310
  INPUT_CLEAR: iconPrefix + 'error-circle-fill',
11304
11311
  INPUT_PWD: iconPrefix + 'eye-fill',
@@ -11513,7 +11520,7 @@ var es_array_concat = __webpack_require__(8706);
11513
11520
 
11514
11521
 
11515
11522
  function getLog(message, params) {
11516
- return "[vxe-table v".concat("3.8.17", "] ").concat(conf.i18n(message, params));
11523
+ return "[vxe-table v".concat("3.8.19", "] ").concat(conf.i18n(message, params));
11517
11524
  }
11518
11525
  function outLog(type) {
11519
11526
  return function (message, params) {
@@ -13217,7 +13224,7 @@ function component(comp) {
13217
13224
  components[comp.name] = comp;
13218
13225
  }
13219
13226
  }
13220
- var version = "3.8.17";
13227
+ var version = "3.8.19";
13221
13228
  var tableVersion = version;
13222
13229
  var VxeUI = {
13223
13230
  v: v,
@@ -18622,7 +18629,6 @@ var Methods = {
18622
18629
  return this.refreshColumn(true);
18623
18630
  },
18624
18631
  handleCustomRestore: function handleCustomRestore(storeData) {
18625
- var tableFullColumn = this.tableFullColumn;
18626
18632
  var collectColumn = this.collectColumn;
18627
18633
  var resizableData = storeData.resizableData,
18628
18634
  sortData = storeData.sortData,
@@ -18631,7 +18637,7 @@ var Methods = {
18631
18637
  var hasCustomSort = false;
18632
18638
  // 处理还原
18633
18639
  if (resizableData || sortData || visibleData || fixedData) {
18634
- tableFullColumn.forEach(function (column) {
18640
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column, index, items, path, parent) {
18635
18641
  var colKey = column.getKey();
18636
18642
  // 支持一级
18637
18643
  if (!parent) {
@@ -18663,7 +18669,7 @@ var Methods = {
18663
18669
  */
18664
18670
  restoreCustomStorage: function restoreCustomStorage() {
18665
18671
  var _this21 = this;
18666
- var id = this.id,
18672
+ var tableId = this.tableId,
18667
18673
  customConfig = this.customConfig,
18668
18674
  customOpts = this.customOpts;
18669
18675
  var storage = customOpts.storage,
@@ -18675,14 +18681,14 @@ var Methods = {
18675
18681
  var isCustomFixed = isAllCustom || storageOpts.fixed;
18676
18682
  var isCustomSort = isAllCustom || storageOpts.sort;
18677
18683
  if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
18678
- if (!id) {
18684
+ if (!tableId) {
18679
18685
  errLog('vxe.error.reqProp', ['id']);
18680
18686
  return;
18681
18687
  }
18682
- var storeData = getCustomStorageMap(id);
18688
+ var storeData = getCustomStorageMap(tableId);
18683
18689
  if (restoreStore) {
18684
18690
  return Promise.resolve(restoreStore({
18685
- id: id,
18691
+ id: tableId,
18686
18692
  type: 'restore',
18687
18693
  storeData: storeData
18688
18694
  })).then(function (storeData) {
@@ -18779,7 +18785,7 @@ var Methods = {
18779
18785
  return storeData;
18780
18786
  },
18781
18787
  saveCustomStore: function saveCustomStore(type) {
18782
- var id = this.id,
18788
+ var tableId = this.tableId,
18783
18789
  customOpts = this.customOpts;
18784
18790
  var updateStore = customOpts.updateStore,
18785
18791
  storage = customOpts.storage;
@@ -18790,7 +18796,7 @@ var Methods = {
18790
18796
  var isCustomFixed = isAllCustom || storageOpts.fixed;
18791
18797
  var isCustomSort = isAllCustom || storageOpts.sort;
18792
18798
  if (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort) {
18793
- if (!id) {
18799
+ if (!tableId) {
18794
18800
  errLog('vxe.error.reqProp', ['id']);
18795
18801
  return this.$nextTick();
18796
18802
  }
@@ -18802,12 +18808,12 @@ var Methods = {
18802
18808
  } : this.getCustomStoreData();
18803
18809
  if (updateStore) {
18804
18810
  return updateStore({
18805
- id: id,
18811
+ id: tableId,
18806
18812
  type: type,
18807
18813
  storeData: storeData
18808
18814
  });
18809
18815
  } else {
18810
- setCustomStorageMap(id, type === 'reset' ? null : storeData);
18816
+ setCustomStorageMap(tableId, type === 'reset' ? null : storeData);
18811
18817
  }
18812
18818
  }
18813
18819
  return this.$nextTick();
@@ -23207,7 +23213,7 @@ function handleUupdateResize(_vm) {
23207
23213
  mixins: [size],
23208
23214
  props: {
23209
23215
  /** 基本属性 */
23210
- id: String,
23216
+ id: [String, Function],
23211
23217
  // 数据
23212
23218
  data: Array,
23213
23219
  // 表格的高度
@@ -23723,6 +23729,18 @@ function handleUupdateResize(_vm) {
23723
23729
  };
23724
23730
  },
23725
23731
  computed: {
23732
+ tableId: function tableId() {
23733
+ var id = this.id;
23734
+ if (id) {
23735
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(id)) {
23736
+ return "".concat(id({
23737
+ $table: this
23738
+ }) || '');
23739
+ }
23740
+ return "".concat(id);
23741
+ }
23742
+ return '';
23743
+ },
23726
23744
  validOpts: function validOpts() {
23727
23745
  return Object.assign({
23728
23746
  message: 'default'
@@ -24362,7 +24380,7 @@ function handleUupdateResize(_vm) {
24362
24380
  ctxMenuStore: ctxMenuStore,
24363
24381
  ctxMenuOpts: ctxMenuOpts
24364
24382
  }
24365
- }) : _e(),
24383
+ }) : _e(), h('div', {}, [
24366
24384
  /**
24367
24385
  * 通用提示
24368
24386
  */
@@ -24389,7 +24407,7 @@ function handleUupdateResize(_vm) {
24389
24407
  'old-cell-valid': editRules && conf.cellVaildMode === 'obsolete'
24390
24408
  }, 'vxe-table--valid-error'],
24391
24409
  props: validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : null
24392
- }) : _e()]);
24410
+ }) : _e()])]);
24393
24411
  },
24394
24412
  methods: methods
24395
24413
  });
@@ -30181,7 +30199,7 @@ function renderExtraSuffixIcon(h, _vm) {
30181
30199
  change: this.changeEvent
30182
30200
  }
30183
30201
  }), h('span', {
30184
- class: ['vxe-checkbox--icon', indeterminate ? 'vxe-icon-checkbox-indeterminate' : isChecked ? 'vxe-icon-checkbox-checked-fill' : 'vxe-icon-checkbox-unchecked']
30202
+ class: ['vxe-checkbox--icon', indeterminate ? conf.icon.CHECKBOX_INDETERMINATE : isChecked ? conf.icon.CHECKBOX_CHECKED : conf.icon.CHECKBOX_UNCHECKED]
30185
30203
  }), h('span', {
30186
30204
  class: 'vxe-checkbox--label'
30187
30205
  }, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [getFuncText(content)])]);
@@ -31884,7 +31902,7 @@ Object.keys(props).forEach(function (name) {
31884
31902
  click: this.clickEvent
31885
31903
  }
31886
31904
  }), h('span', {
31887
- class: ['vxe-radio--icon', isChecked ? 'vxe-icon-radio-checked' : 'vxe-icon-radio-unchecked']
31905
+ class: ['vxe-radio--icon', isChecked ? conf.icon.RADIO_CHECKED : conf.icon.RADIO_UNCHECKED]
31888
31906
  }), h('span', {
31889
31907
  class: 'vxe-radio--label'
31890
31908
  }, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [getFuncText(content)])]);