vxe-table 4.16.12 → 4.16.14

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/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.16.11";
3141
+ const version = "4.16.14";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3644,7 +3644,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3644
3644
  const {
3645
3645
  log: log_log
3646
3646
  } = core_.VxeUI;
3647
- const log_version = `table v${"4.16.11"}`;
3647
+ const log_version = `table v${"4.16.14"}`;
3648
3648
  const warnLog = log_log.create('warn', log_version);
3649
3649
  const errLog = log_log.create('error', log_version);
3650
3650
  ;// ./packages/table/src/columnInfo.ts
@@ -18211,6 +18211,46 @@ render_renderer.mixin({
18211
18211
  tableFilterDefaultMethod: handleFilterMethod,
18212
18212
  tableExportMethod: handleExportSelectMethod
18213
18213
  },
18214
+ VxeText: {
18215
+ renderTableDefault(renderOpts, params) {
18216
+ const {
18217
+ $table,
18218
+ row,
18219
+ column
18220
+ } = params;
18221
+ const {
18222
+ props
18223
+ } = renderOpts;
18224
+ const cellLabel = $table.getCellLabel(row, column);
18225
+ return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(getDefaultComponent(renderOpts), {
18226
+ ...(props || {}),
18227
+ content: cellLabel,
18228
+ ...getComponentOns(renderOpts, params)
18229
+ })];
18230
+ }
18231
+ },
18232
+ VxeLink: {
18233
+ renderTableDefault(renderOpts, params) {
18234
+ const {
18235
+ $table,
18236
+ row,
18237
+ column
18238
+ } = params;
18239
+ const {
18240
+ props
18241
+ } = renderOpts;
18242
+ const {
18243
+ href
18244
+ } = props || {};
18245
+ const cellLabel = $table.getCellLabel(row, column);
18246
+ return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(getDefaultComponent(renderOpts), {
18247
+ ...(props || {}),
18248
+ content: cellLabel,
18249
+ href: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(href, params),
18250
+ ...getComponentOns(renderOpts, params)
18251
+ })];
18252
+ }
18253
+ },
18214
18254
  /**
18215
18255
  * 已废弃,被 FormatSelect 替换
18216
18256
  * @deprecated
@@ -19608,7 +19648,7 @@ function toolbar_createInternalData() {
19608
19648
  if ($xeGGWrapper) {
19609
19649
  $xeGGWrapper.triggerZoomEvent($event);
19610
19650
  } else {
19611
- warnLog('vxe.error.notProp', ['zoom']);
19651
+ warnLog('vxe.error.notProp', ['[toolbar] zoom']);
19612
19652
  }
19613
19653
  };
19614
19654
  const importEvent = () => {
@@ -19741,7 +19781,7 @@ function toolbar_createInternalData() {
19741
19781
  if (tCommandMethod) {
19742
19782
  tCommandMethod(params);
19743
19783
  } else {
19744
- errLog('vxe.error.notCommands', [code]);
19784
+ errLog('vxe.error.notCommands', [`[toolbar] ${code}`]);
19745
19785
  }
19746
19786
  }
19747
19787
  $xeToolbar.dispatchEvent('button-click', params, $event);
@@ -19780,7 +19820,7 @@ function toolbar_createInternalData() {
19780
19820
  if (tCommandMethod) {
19781
19821
  tCommandMethod(params);
19782
19822
  } else {
19783
- errLog('vxe.error.notCommands', [code]);
19823
+ errLog('vxe.error.notCommands', [`[toolbar] ${code}`]);
19784
19824
  }
19785
19825
  }
19786
19826
  $xeToolbar.dispatchEvent('tool-click', params, $event);
@@ -19814,20 +19854,10 @@ function toolbar_createInternalData() {
19814
19854
  }
19815
19855
  return VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
19816
19856
  key: index,
19817
- disabled: child.disabled,
19818
- loading: child.loading,
19819
- type: child.type,
19820
- mode: child.mode,
19821
- icon: child.icon,
19822
- circle: child.circle,
19823
- round: child.round,
19824
- status: child.status,
19825
- content: child.name,
19826
- title: child.title,
19827
- routerLink: child.routerLink,
19828
- permissionCode: child.permissionCode,
19829
- prefixTooltip: child.prefixTooltip,
19830
- suffixTooltip: child.suffixTooltip,
19857
+ ...Object.assign({}, child, {
19858
+ content: child.name,
19859
+ options: undefined
19860
+ }),
19831
19861
  onClick: eventParams => isBtn ? btnEvent(eventParams, child) : tolEvent(eventParams, child)
19832
19862
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
19833
19863
  });
@@ -19880,23 +19910,10 @@ function toolbar_createInternalData() {
19880
19910
  if (VxeUIButtonComponent) {
19881
19911
  btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
19882
19912
  key: `bd${item.code || index}`,
19883
- disabled: item.disabled,
19884
- loading: item.loading,
19885
- type: item.type,
19886
- mode: item.mode,
19887
- icon: item.icon,
19888
- circle: item.circle,
19889
- round: item.round,
19890
- status: item.status,
19891
- content: item.name,
19892
- title: item.title,
19893
- routerLink: item.routerLink,
19894
- permissionCode: item.permissionCode,
19895
- prefixTooltip: item.prefixTooltip,
19896
- suffixTooltip: item.suffixTooltip,
19897
- destroyOnClose: item.destroyOnClose,
19898
- placement: item.placement,
19899
- transfer: item.transfer,
19913
+ ...Object.assign({}, item, {
19914
+ content: item.name,
19915
+ options: undefined
19916
+ }),
19900
19917
  onClick: eventParams => btnEvent(eventParams, item)
19901
19918
  }, dropdowns && dropdowns.length ? {
19902
19919
  dropdowns: () => renderDropdowns(item, true)
@@ -19963,23 +19980,10 @@ function toolbar_createInternalData() {
19963
19980
  if (VxeUIButtonComponent) {
19964
19981
  btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
19965
19982
  key: tIndex,
19966
- disabled: item.disabled,
19967
- loading: item.loading,
19968
- type: item.type,
19969
- mode: item.mode,
19970
- icon: item.icon,
19971
- circle: item.circle,
19972
- round: item.round,
19973
- status: item.status,
19974
- content: item.name,
19975
- title: item.title,
19976
- routerLink: item.routerLink,
19977
- permissionCode: item.permissionCode,
19978
- prefixTooltip: item.prefixTooltip,
19979
- suffixTooltip: item.suffixTooltip,
19980
- destroyOnClose: item.destroyOnClose,
19981
- placement: item.placement,
19982
- transfer: item.transfer,
19983
+ ...Object.assign({}, item, {
19984
+ content: item.name,
19985
+ options: undefined
19986
+ }),
19983
19987
  onClick: eventParams => tolEvent(eventParams, item)
19984
19988
  }, dropdowns && dropdowns.length ? {
19985
19989
  dropdowns: () => renderDropdowns(item, false)
@@ -20118,38 +20122,38 @@ function toolbar_createInternalData() {
20118
20122
  const refreshOpts = computeRefreshOpts.value;
20119
20123
  const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
20120
20124
  if (props.refresh && !$xeGGWrapper && !queryMethod) {
20121
- warnLog('vxe.error.notFunc', ['queryMethod']);
20125
+ warnLog('vxe.error.notFunc', ['[toolbar] queryMethod']);
20122
20126
  }
20123
20127
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.custom)) {
20124
- warnLog('vxe.error.delProp', ['custom={...}', 'custom=boolean & custom-options={...}']);
20128
+ warnLog('vxe.error.delProp', ['[toolbar] custom={...}', 'custom=boolean & custom-options={...}']);
20125
20129
  }
20126
20130
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.print)) {
20127
- warnLog('vxe.error.delProp', ['print={...}', 'print=boolean & print-options={...}']);
20131
+ warnLog('vxe.error.delProp', ['[toolbar] print={...}', 'print=boolean & print-options={...}']);
20128
20132
  }
20129
20133
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.export)) {
20130
- warnLog('vxe.error.delProp', ['export={...}', 'export=boolean & export-options={...}']);
20134
+ warnLog('vxe.error.delProp', ['[toolbar] export={...}', 'export=boolean & export-options={...}']);
20131
20135
  }
20132
20136
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.import)) {
20133
- warnLog('vxe.error.delProp', ['import={...}', 'import=boolean & import-options={...}']);
20137
+ warnLog('vxe.error.delProp', ['[toolbar] import={...}', 'import=boolean & import-options={...}']);
20134
20138
  }
20135
20139
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
20136
- warnLog('vxe.error.delProp', ['refresh={...}', 'refresh=boolean & refresh-options={...}']);
20140
+ warnLog('vxe.error.delProp', ['[toolbar] refresh={...}', 'refresh=boolean & refresh-options={...}']);
20137
20141
  }
20138
20142
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
20139
- warnLog('vxe.error.delProp', ['zoom={...}', 'zoom=boolean & zoom-options={...}']);
20143
+ warnLog('vxe.error.delProp', ['[toolbar] zoom={...}', 'zoom=boolean & zoom-options={...}']);
20140
20144
  }
20141
20145
  const customOpts = computeCustomOpts.value;
20142
20146
  if (customOpts.isFooter) {
20143
- warnLog('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
20147
+ warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.isFooter', 'table.custom-config.showFooter']);
20144
20148
  }
20145
20149
  if (customOpts.showFooter) {
20146
- warnLog('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
20150
+ warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.showFooter', 'table.custom-config.showFooter']);
20147
20151
  }
20148
20152
  if (customOpts.immediate) {
20149
- warnLog('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
20153
+ warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.immediate', 'table.custom-config.immediate']);
20150
20154
  }
20151
20155
  if (customOpts.trigger) {
20152
- warnLog('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
20156
+ warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.trigger', 'table.custom-config.trigger']);
20153
20157
  }
20154
20158
  if (props.refresh || props.import || props.export || props.print || props.zoom) {
20155
20159
  if (!VxeUIButtonComponent) {
@@ -20718,7 +20722,7 @@ function grid_createInternalData() {
20718
20722
  if (slots[funcSlot]) {
20719
20723
  return slots[funcSlot];
20720
20724
  } else {
20721
- errLog('vxe.error.notSlot', [funcSlot]);
20725
+ errLog('vxe.error.notSlot', [`[grid] ${funcSlot}`]);
20722
20726
  }
20723
20727
  } else {
20724
20728
  return funcSlot;
@@ -20734,7 +20738,7 @@ function grid_createInternalData() {
20734
20738
  if (slots[slotFunc]) {
20735
20739
  slotConf[slotKey] = slots[slotFunc];
20736
20740
  } else {
20737
- errLog('vxe.error.notSlot', [slotFunc]);
20741
+ errLog('vxe.error.notSlot', [`[grid] ${slotFunc}`]);
20738
20742
  }
20739
20743
  } else {
20740
20744
  slotConf[slotKey] = slotFunc;
@@ -21038,7 +21042,7 @@ function grid_createInternalData() {
21038
21042
  childVNs.push(renderPager());
21039
21043
  break;
21040
21044
  default:
21041
- errLog('vxe.error.notProp', [`layouts -> ${key}`]);
21045
+ errLog('vxe.error.notProp', [`[grid] layouts -> ${key}`]);
21042
21046
  break;
21043
21047
  }
21044
21048
  });
@@ -21406,7 +21410,7 @@ function grid_createInternalData() {
21406
21410
  };
21407
21411
  });
21408
21412
  } else {
21409
- errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
21413
+ errLog('vxe.error.notFunc', ['[grid] proxy-config.ajax.query']);
21410
21414
  }
21411
21415
  break;
21412
21416
  }
@@ -21496,7 +21500,7 @@ function grid_createInternalData() {
21496
21500
  }
21497
21501
  }
21498
21502
  } else {
21499
- errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
21503
+ errLog('vxe.error.notFunc', ['[grid] proxy-config.ajax.delete']);
21500
21504
  }
21501
21505
  break;
21502
21506
  }
@@ -21602,7 +21606,7 @@ function grid_createInternalData() {
21602
21606
  }
21603
21607
  });
21604
21608
  } else {
21605
- errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
21609
+ errLog('vxe.error.notFunc', ['[grid] proxy-config.ajax.save']);
21606
21610
  }
21607
21611
  break;
21608
21612
  }
@@ -21620,7 +21624,7 @@ function grid_createInternalData() {
21620
21624
  $gantt: null
21621
21625
  }, ...args);
21622
21626
  } else {
21623
- errLog('vxe.error.notCommands', [code]);
21627
+ errLog('vxe.error.notCommands', [`[grid] ${code}`]);
21624
21628
  }
21625
21629
  }
21626
21630
  }
@@ -21865,7 +21869,7 @@ function grid_createInternalData() {
21865
21869
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, func => {
21866
21870
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
21867
21871
  if (!slots[func]) {
21868
- errLog('vxe.error.notSlot', [func]);
21872
+ errLog('vxe.error.notSlot', [`[grid] ${func}`]);
21869
21873
  }
21870
21874
  }
21871
21875
  });
@@ -21953,10 +21957,10 @@ function grid_createInternalData() {
21953
21957
  // const { data, columns, proxyConfig } = props
21954
21958
  // const formOpts = computeFormOpts.value
21955
21959
  // if (isEnableConf(proxyConfig) && (data || (proxyOpts.form && formOpts.data))) {
21956
- // errLog('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config'])
21960
+ // errLog('vxe.error.errConflicts', ['[grid] data', 'proxy-config'])
21957
21961
  // }
21958
21962
  if (proxyOpts.props) {
21959
- warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response']);
21963
+ warnLog('vxe.error.delProp', ['[grid] proxy-config.props', 'proxy-config.response']);
21960
21964
  }
21961
21965
  if (columns && columns.length) {
21962
21966
  $xeGrid.loadColumn(columns);