vxe-table 3.23.3 → 3.23.5

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.
@@ -497,7 +497,7 @@ export default {
497
497
  },
498
498
  handleCustomStyle() {
499
499
  const $xeTable = this;
500
- const reactData = $xeTable.reactData;
500
+ const reactData = $xeTable;
501
501
  const { customStore } = reactData;
502
502
  if (!customStore.visible) {
503
503
  return $xeTable.$nextTick();
@@ -1484,16 +1484,25 @@ renderer.mixin({
1484
1484
  ];
1485
1485
  },
1486
1486
  renderTableCell(h, renderOpts, params) {
1487
- const { row, column } = params;
1487
+ const { $table, row, column } = params;
1488
+ const { props } = renderOpts;
1489
+ const customSize = props ? props.size : null;
1490
+ const vSize = customSize || $table.computeSize;
1488
1491
  const cellValue = XEUtils.get(row, column.field);
1489
1492
  return h('span', {
1490
- class: 'vxe-color-picker--readonly'
1493
+ class: ['vxe-color-picker--readonly', {
1494
+ [`size--${vSize}`]: vSize
1495
+ }]
1491
1496
  }, [
1492
1497
  h('div', {
1493
- class: 'vxe-color-picker--readonly-color',
1494
- style: {
1495
- backgroundColor: cellValue
1496
- }
1498
+ class: ['vxe-color-picker--readonly-color', {
1499
+ 'is--empty': !cellValue
1500
+ }],
1501
+ style: cellValue
1502
+ ? {
1503
+ backgroundColor: cellValue
1504
+ }
1505
+ : undefined
1497
1506
  })
1498
1507
  ]);
1499
1508
  }
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.23.3";
3
+ export const version = "3.23.5";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const tableVersion = `table v${"3.23.3"}`;
3
+ const tableVersion = `table v${"3.23.5"}`;
4
4
  export function createComponentLog(name) {
5
5
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
6
6
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
package/lib/index.umd.js CHANGED
@@ -3314,7 +3314,7 @@ function getDefaultConfig(val1, def1) {
3314
3314
  /* unused harmony import specifier */ var VxeUI;
3315
3315
 
3316
3316
 
3317
- const version = "3.23.3";
3317
+ const version = "3.23.5";
3318
3318
  core_.VxeUI.version = version;
3319
3319
  core_.VxeUI.tableVersion = version;
3320
3320
  core_.VxeUI.setConfig({
@@ -4112,7 +4112,7 @@ function getPopupAppendElement(appendTo) {
4112
4112
  const {
4113
4113
  log: log_log
4114
4114
  } = core_.VxeUI;
4115
- const tableVersion = `table v${"3.23.3"}`;
4115
+ const tableVersion = `table v${"3.23.5"}`;
4116
4116
  function createComponentLog(name) {
4117
4117
  const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
4118
4118
  const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
@@ -20904,7 +20904,7 @@ function emitCustomEvent($xeTable, type, evnt) {
20904
20904
  },
20905
20905
  handleCustomStyle() {
20906
20906
  const $xeTable = this;
20907
- const reactData = $xeTable.reactData;
20907
+ const reactData = $xeTable;
20908
20908
  const {
20909
20909
  customStore
20910
20910
  } = reactData;
@@ -28594,17 +28594,27 @@ render_renderer.mixin({
28594
28594
  },
28595
28595
  renderTableCell(h, renderOpts, params) {
28596
28596
  const {
28597
+ $table,
28597
28598
  row,
28598
28599
  column
28599
28600
  } = params;
28601
+ const {
28602
+ props
28603
+ } = renderOpts;
28604
+ const customSize = props ? props.size : null;
28605
+ const vSize = customSize || $table.computeSize;
28600
28606
  const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
28601
28607
  return h('span', {
28602
- class: 'vxe-color-picker--readonly'
28608
+ class: ['vxe-color-picker--readonly', {
28609
+ [`size--${vSize}`]: vSize
28610
+ }]
28603
28611
  }, [h('div', {
28604
- class: 'vxe-color-picker--readonly-color',
28605
- style: {
28612
+ class: ['vxe-color-picker--readonly-color', {
28613
+ 'is--empty': !cellValue
28614
+ }],
28615
+ style: cellValue ? {
28606
28616
  backgroundColor: cellValue
28607
- }
28617
+ } : undefined
28608
28618
  })]);
28609
28619
  }
28610
28620
  },