vxe-table 3.8.3 → 3.8.4-beta.0

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 (61) hide show
  1. package/README.md +1 -0
  2. package/lib/button/src/button.js +44 -5
  3. package/lib/button/src/button.min.js +1 -1
  4. package/lib/button/src/group.js +10 -1
  5. package/lib/button/src/group.min.js +1 -1
  6. package/lib/grid/src/grid.js +3 -2
  7. package/lib/grid/src/grid.min.js +1 -1
  8. package/lib/icon/style/style.css +1 -1
  9. package/lib/icon/style/style.min.css +1 -1
  10. package/lib/index.css +1 -1
  11. package/lib/index.umd.js +125 -62
  12. package/lib/index.umd.min.js +1 -1
  13. package/lib/locale/lang/en-US.js +73 -73
  14. package/lib/locale/lang/en-US.min.js +1 -1
  15. package/lib/locale/lang/en-US.umd.js +73 -73
  16. package/lib/locale/lang/es-ES.js +9 -1
  17. package/lib/locale/lang/es-ES.min.js +1 -1
  18. package/lib/locale/lang/es-ES.umd.js +9 -1
  19. package/lib/locale/lang/ja-JP.js +156 -156
  20. package/lib/locale/lang/ja-JP.min.js +1 -1
  21. package/lib/locale/lang/ja-JP.umd.js +156 -156
  22. package/lib/locale/lang/pt-BR.js +197 -189
  23. package/lib/locale/lang/pt-BR.min.js +1 -1
  24. package/lib/locale/lang/pt-BR.umd.js +197 -189
  25. package/lib/locale/lang/zh-CN.js +51 -51
  26. package/lib/locale/lang/zh-CN.min.js +1 -1
  27. package/lib/locale/lang/zh-CN.umd.js +51 -51
  28. package/lib/locale/lang/zh-HK.min.js +1 -1
  29. package/lib/locale/lang/zh-HK.umd.js +58 -58
  30. package/lib/locale/lang/zh-MO.min.js +1 -1
  31. package/lib/locale/lang/zh-MO.umd.js +58 -58
  32. package/lib/locale/lang/zh-TC.js +58 -58
  33. package/lib/locale/lang/zh-TC.min.js +1 -1
  34. package/lib/locale/lang/zh-TC.umd.js +58 -58
  35. package/lib/locale/lang/zh-TW.min.js +1 -1
  36. package/lib/locale/lang/zh-TW.umd.js +58 -58
  37. package/lib/style.css +1 -1
  38. package/lib/style.min.css +1 -1
  39. package/lib/table/src/methods.js +13 -1
  40. package/lib/table/src/methods.min.js +1 -1
  41. package/lib/tools/log.js +1 -1
  42. package/lib/tools/log.min.js +1 -1
  43. package/lib/v-x-e-table/index.js +1 -1
  44. package/lib/v-x-e-table/index.min.js +1 -1
  45. package/package.json +1 -1
  46. package/packages/button/src/button.js +42 -9
  47. package/packages/button/src/group.js +8 -2
  48. package/packages/grid/src/grid.js +2 -2
  49. package/packages/locale/lang/en-US.js +73 -73
  50. package/packages/locale/lang/es-ES.js +9 -1
  51. package/packages/locale/lang/ja-JP.js +156 -156
  52. package/packages/locale/lang/pt-BR.js +198 -190
  53. package/packages/locale/lang/zh-CN.js +51 -51
  54. package/packages/locale/lang/zh-TC.js +58 -58
  55. package/packages/table/src/methods.js +13 -1
  56. /package/lib/icon/style/{iconfont.1714353062133.ttf → iconfont.1714444985876.ttf} +0 -0
  57. /package/lib/icon/style/{iconfont.1714353062133.woff → iconfont.1714444985876.woff} +0 -0
  58. /package/lib/icon/style/{iconfont.1714353062133.woff2 → iconfont.1714444985876.woff2} +0 -0
  59. /package/lib/{iconfont.1714353062133.ttf → iconfont.1714444985876.ttf} +0 -0
  60. /package/lib/{iconfont.1714353062133.woff → iconfont.1714444985876.woff} +0 -0
  61. /package/lib/{iconfont.1714353062133.woff2 → iconfont.1714444985876.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -11346,7 +11346,7 @@ var es_array_concat = __webpack_require__(8706);
11346
11346
 
11347
11347
 
11348
11348
  function getLog(message, params) {
11349
- return "[vxe-table v".concat("3.8.3-beta.1", "] ").concat(conf.i18n(message, params));
11349
+ return "[vxe-table v".concat("3.8.4-beta.0", "] ").concat(conf.i18n(message, params));
11350
11350
  }
11351
11351
  function outLog(type) {
11352
11352
  return function (message, params) {
@@ -13067,7 +13067,7 @@ var setup = config;
13067
13067
  var globalStore = {};
13068
13068
  var VXETable = {
13069
13069
  v: v,
13070
- version: "3.8.3-beta.1",
13070
+ version: "3.8.4-beta.0",
13071
13071
  reg: reg,
13072
13072
  use: use,
13073
13073
  setup: setup,
@@ -18339,6 +18339,16 @@ var Methods = {
18339
18339
  return this.handleCustom();
18340
18340
  },
18341
18341
  handleCustom: function handleCustom() {
18342
+ var mouseConfig = this.mouseConfig;
18343
+ if (mouseConfig) {
18344
+ if (this.clearSelected) {
18345
+ this.clearSelected();
18346
+ }
18347
+ if (this.clearCellAreas) {
18348
+ this.clearCellAreas();
18349
+ this.clearCopyCellArea();
18350
+ }
18351
+ }
18342
18352
  this.saveCustomVisible();
18343
18353
  this.analyColumnWidth();
18344
18354
  return this.refreshColumn(true);
@@ -19350,7 +19360,9 @@ var Methods = {
19350
19360
  }
19351
19361
  } else if (mouseConfig) {
19352
19362
  if (!getEventTargetNode(evnt, $el).flag && !($xegrid && getEventTargetNode(evnt, $xegrid.$el).flag) && !(ctxWrapper && getEventTargetNode(evnt, ctxWrapper.$el).flag) && !($toolbar && getEventTargetNode(evnt, $toolbar.$el).flag)) {
19353
- this.clearSelected();
19363
+ if (this.clearSelected) {
19364
+ this.clearSelected();
19365
+ }
19354
19366
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
19355
19367
  this.preventEvent(evnt, 'event.clearAreas', {}, function () {
19356
19368
  _this27.clearCellAreas();
@@ -35301,6 +35313,8 @@ var Colgroup = VxeColgroup;
35301
35313
 
35302
35314
 
35303
35315
 
35316
+
35317
+
35304
35318
 
35305
35319
 
35306
35320
 
@@ -35867,7 +35881,8 @@ Object.keys(packages_table.methods).forEach(function (name) {
35867
35881
  pagerConfig = this.pagerConfig,
35868
35882
  editRules = this.editRules,
35869
35883
  formData = this.formData,
35870
- isMsg = this.isMsg;
35884
+ isMsg = this.isMsg,
35885
+ validConfig = this.validConfig;
35871
35886
  var beforeQuery = proxyOpts.beforeQuery,
35872
35887
  afterQuery = proxyOpts.afterQuery,
35873
35888
  beforeDelete = proxyOpts.beforeDelete,
@@ -36140,7 +36155,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
36140
36155
  var restPromise = Promise.resolve();
36141
36156
  if (editRules) {
36142
36157
  // 只校验新增和修改的数据
36143
- restPromise = this.validate(_body.insertRecords.concat(updateRecords));
36158
+ restPromise = this[validConfig && validConfig.msgMode === 'full' ? 'fullValidate' : 'validate'](_body.insertRecords.concat(updateRecords));
36144
36159
  }
36145
36160
  return restPromise.then(function (errMap) {
36146
36161
  if (errMap) {
@@ -38309,9 +38324,46 @@ var Textarea = VxeTextarea;
38309
38324
  return false;
38310
38325
  },
38311
38326
  btnMode: function btnMode() {
38312
- var mode = this.mode,
38327
+ var $xebuttonggroup = this.$xebuttonggroup,
38328
+ mode = this.mode,
38313
38329
  type = this.type;
38314
- return mode === 'text' || type === 'text' ? 'text' : 'button';
38330
+ if (mode === 'text' || type === 'text' || $xebuttonggroup && $xebuttonggroup.mode === 'text') {
38331
+ return 'text';
38332
+ }
38333
+ return 'button';
38334
+ },
38335
+ btnStatus: function btnStatus() {
38336
+ var $xebuttonggroup = this.$xebuttonggroup,
38337
+ status = this.status;
38338
+ if (status) {
38339
+ return status;
38340
+ }
38341
+ if ($xebuttonggroup) {
38342
+ return $xebuttonggroup.status;
38343
+ }
38344
+ return '';
38345
+ },
38346
+ btnRound: function btnRound() {
38347
+ var $xebuttonggroup = this.$xebuttonggroup,
38348
+ round = this.round;
38349
+ if (round) {
38350
+ return round;
38351
+ }
38352
+ if ($xebuttonggroup) {
38353
+ return $xebuttonggroup.round;
38354
+ }
38355
+ return false;
38356
+ },
38357
+ btnCircle: function btnCircle() {
38358
+ var $xebuttonggroup = this.$xebuttonggroup,
38359
+ circle = this.circle;
38360
+ if (circle) {
38361
+ return circle;
38362
+ }
38363
+ if ($xebuttonggroup) {
38364
+ return $xebuttonggroup.circle;
38365
+ }
38366
+ return false;
38315
38367
  }
38316
38368
  },
38317
38369
  created: function created() {
@@ -38341,8 +38393,10 @@ var Textarea = VxeTextarea;
38341
38393
  type = this.type,
38342
38394
  destroyOnClose = this.destroyOnClose,
38343
38395
  isFormBtn = this.isFormBtn,
38344
- status = this.status,
38345
38396
  btnMode = this.btnMode,
38397
+ btnStatus = this.btnStatus,
38398
+ btnRound = this.btnRound,
38399
+ btnCircle = this.btnCircle,
38346
38400
  vSize = this.vSize,
38347
38401
  name = this.name,
38348
38402
  disabled = this.disabled,
@@ -38357,7 +38411,7 @@ var Textarea = VxeTextarea;
38357
38411
  }) : className : '', _defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--active', showPanel)]
38358
38412
  }, [h('button', {
38359
38413
  ref: 'xBtn',
38360
- class: ['vxe-button', "type--".concat(btnMode), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(status), status), 'is--round', this.round), 'is--circle', this.circle), 'is--disabled', disabled || loading), 'is--loading', loading)],
38414
+ class: ['vxe-button', "type--".concat(btnMode), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(btnStatus), btnStatus), 'is--round', btnRound), 'is--circle', btnCircle), 'is--disabled', disabled || loading), 'is--loading', loading)],
38361
38415
  attrs: {
38362
38416
  name: name,
38363
38417
  title: title,
@@ -38392,7 +38446,7 @@ var Textarea = VxeTextarea;
38392
38446
  ref: 'xBtn',
38393
38447
  class: ['vxe-button', "type--".concat(btnMode), className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
38394
38448
  $button: this
38395
- }) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(status), status), 'is--round', this.round), 'is--circle', this.circle), 'is--disabled', disabled || loading), 'is--loading', loading)],
38449
+ }) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(btnStatus), btnStatus), 'is--round', btnRound), 'is--circle', btnCircle), 'is--disabled', disabled || loading), 'is--loading', loading)],
38396
38450
  attrs: {
38397
38451
  name: name,
38398
38452
  title: title,
@@ -38670,10 +38724,16 @@ var Button = VxeButton;
38670
38724
 
38671
38725
 
38672
38726
 
38727
+
38673
38728
  /* harmony default export */ var button_src_group = ({
38674
38729
  name: 'VxeButtonGroup',
38675
38730
  props: {
38676
38731
  options: Array,
38732
+ mode: String,
38733
+ status: String,
38734
+ round: Boolean,
38735
+ circle: Boolean,
38736
+ className: [String, Function],
38677
38737
  disabled: Boolean,
38678
38738
  size: {
38679
38739
  type: String,
@@ -38694,10 +38754,13 @@ var Button = VxeButton;
38694
38754
  },
38695
38755
  render: function render(h) {
38696
38756
  var $scopedSlots = this.$scopedSlots,
38757
+ className = this.className,
38697
38758
  options = this.options;
38698
38759
  var defaultSlot = $scopedSlots.default;
38699
38760
  return h('div', {
38700
- class: 'vxe-button-group'
38761
+ class: ['vxe-button-group', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
38762
+ $buttonGroup: this
38763
+ }) : className : '']
38701
38764
  }, defaultSlot ? defaultSlot.cell(this, {}) : options ? options.map(function (item) {
38702
38765
  return h('vxe-button', {
38703
38766
  props: item
@@ -41850,11 +41913,11 @@ var Pulldown = VxePulldown;
41850
41913
  },
41851
41914
  filterComplexInput: {
41852
41915
  menus: {
41853
- fixedColumn: '锁定列',
41854
- fixedGroup: '锁定组',
41855
- cancelFixed: '取消锁定',
41856
- fixedLeft: '锁定左侧',
41857
- fixedRight: '锁定右侧'
41916
+ fixedColumn: '冻结列',
41917
+ fixedGroup: '冻结分组',
41918
+ cancelFixed: '取消冻结',
41919
+ fixedLeft: '冻结左侧',
41920
+ fixedRight: '冻结右侧'
41858
41921
  },
41859
41922
  cases: {
41860
41923
  equal: '等于',
@@ -41871,11 +41934,11 @@ var Pulldown = VxePulldown;
41871
41934
  clearSort: '清除排序',
41872
41935
  sortAsc: '升序',
41873
41936
  sortDesc: '降序',
41874
- fixedColumn: '锁定列',
41875
- fixedGroup: '锁定组',
41876
- cancelFixed: '取消锁定',
41877
- fixedLeft: '锁定左侧',
41878
- fixedRight: '锁定右侧',
41937
+ fixedColumn: '冻结列',
41938
+ fixedGroup: '冻结分组',
41939
+ cancelFixed: '取消冻结',
41940
+ fixedLeft: '冻结左侧',
41941
+ fixedRight: '冻结右侧',
41879
41942
  clearFilter: '清除筛选',
41880
41943
  textOption: '文本筛选',
41881
41944
  numberOption: '数值筛选'
@@ -41913,6 +41976,47 @@ var Pulldown = VxePulldown;
41913
41976
  * 以下废弃
41914
41977
  * @deprecated
41915
41978
  */
41979
+ pro: {
41980
+ area: {
41981
+ mergeErr: '无法对合并单元格进行该操作',
41982
+ multiErr: '无法对多重选择区域进行该操作',
41983
+ extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
41984
+ pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作'
41985
+ },
41986
+ fnr: {
41987
+ title: '查找和替换',
41988
+ findLabel: '查找',
41989
+ replaceLabel: '替换',
41990
+ findTitle: '查找内容:',
41991
+ replaceTitle: '替换为:',
41992
+ tabs: {
41993
+ find: '查找',
41994
+ replace: '替换'
41995
+ },
41996
+ filter: {
41997
+ re: '正则表达式',
41998
+ whole: '全词匹配',
41999
+ sensitive: '区分大小写'
42000
+ },
42001
+ btns: {
42002
+ findNext: '查找下一个',
42003
+ findAll: '查找全部',
42004
+ replace: '替换',
42005
+ replaceAll: '替换全部',
42006
+ cancel: '取消'
42007
+ },
42008
+ header: {
42009
+ seq: '#',
42010
+ cell: '单元格',
42011
+ value: '值'
42012
+ },
42013
+ empty: '(空值)',
42014
+ reError: '无效的正则表达式',
42015
+ recordCount: '已找到 {0} 个单元格',
42016
+ notCell: '找不到匹配的单元格',
42017
+ replaceSuccess: '成功替换 {0} 个单元格'
42018
+ }
42019
+ },
41916
42020
  renderer: {
41917
42021
  search: '搜索',
41918
42022
  cases: {
@@ -41957,47 +42061,6 @@ var Pulldown = VxePulldown;
41957
42061
  empty: '(空白)',
41958
42062
  notData: '无匹配项'
41959
42063
  }
41960
- },
41961
- pro: {
41962
- area: {
41963
- mergeErr: '无法对合并单元格进行该操作',
41964
- multiErr: '无法对多重选择区域进行该操作',
41965
- extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
41966
- pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作'
41967
- },
41968
- fnr: {
41969
- title: '查找和替换',
41970
- findLabel: '查找',
41971
- replaceLabel: '替换',
41972
- findTitle: '查找内容:',
41973
- replaceTitle: '替换为:',
41974
- tabs: {
41975
- find: '查找',
41976
- replace: '替换'
41977
- },
41978
- filter: {
41979
- re: '正则表达式',
41980
- whole: '全词匹配',
41981
- sensitive: '区分大小写'
41982
- },
41983
- btns: {
41984
- findNext: '查找下一个',
41985
- findAll: '查找全部',
41986
- replace: '替换',
41987
- replaceAll: '替换全部',
41988
- cancel: '取消'
41989
- },
41990
- header: {
41991
- seq: '#',
41992
- cell: '单元格',
41993
- value: '值'
41994
- },
41995
- empty: '(空值)',
41996
- reError: '无效的正则表达式',
41997
- recordCount: '已找到 {0} 个单元格',
41998
- notCell: '找不到匹配的单元格',
41999
- replaceSuccess: '成功替换 {0} 个单元格'
42000
- }
42001
42064
  }
42002
42065
  }
42003
42066
  });