vxe-table 4.21.3 → 4.21.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.
package/dist/all.esm.js CHANGED
@@ -47,7 +47,7 @@ function getDefaultConfig(val1, def1) {
47
47
  return XEUtils.eqNull(val1) ? def1 : val1;
48
48
  }
49
49
 
50
- const version = "4.21.3";
50
+ const version = "4.21.5";
51
51
  VxeUI.version = version;
52
52
  VxeUI.tableVersion = version;
53
53
  VxeUI.setConfig({
@@ -769,7 +769,7 @@ function wheelScrollTopTo(diffNum, cb) {
769
769
  }
770
770
 
771
771
  const { log } = VxeUI;
772
- const tableVersion = `table v${"4.21.3"}`;
772
+ const tableVersion = `table v${"4.21.5"}`;
773
773
  function createComponentLog(name) {
774
774
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
775
775
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -15535,16 +15535,26 @@ renderer$2.mixin({
15535
15535
  ];
15536
15536
  },
15537
15537
  renderTableCell(renderOpts, params) {
15538
- const { row, column } = params;
15538
+ const { $table, row, column } = params;
15539
+ const { props } = renderOpts;
15540
+ const { computeSize } = $table.getComputeMaps();
15541
+ const customSize = props ? props.size : null;
15542
+ const vSize = customSize || computeSize.value;
15539
15543
  const cellValue = XEUtils.get(row, column.field);
15540
15544
  return h('span', {
15541
- class: 'vxe-color-picker--readonly'
15545
+ class: ['vxe-color-picker--readonly', {
15546
+ [`size--${vSize}`]: vSize
15547
+ }]
15542
15548
  }, [
15543
15549
  h('div', {
15544
- class: 'vxe-color-picker--readonly-color',
15545
- style: {
15546
- backgroundColor: cellValue
15547
- }
15550
+ class: ['vxe-color-picker--readonly-color', {
15551
+ 'is--empty': !cellValue
15552
+ }],
15553
+ style: cellValue
15554
+ ? {
15555
+ backgroundColor: cellValue
15556
+ }
15557
+ : undefined
15548
15558
  })
15549
15559
  ]);
15550
15560
  }