vxe-table 4.21.3 → 4.21.4
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 +18 -8
- package/dist/style.css +1 -1
- package/es/style.css +1 -1
- package/es/table/render/index.js +16 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +19 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +17 -4
- package/lib/table/render/index.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/render/index.ts +16 -6
- /package/es/{iconfont.1788176649939.ttf → iconfont.1788399047071.ttf} +0 -0
- /package/es/{iconfont.1788176649939.woff → iconfont.1788399047071.woff} +0 -0
- /package/es/{iconfont.1788176649939.woff2 → iconfont.1788399047071.woff2} +0 -0
- /package/lib/{iconfont.1788176649939.ttf → iconfont.1788399047071.ttf} +0 -0
- /package/lib/{iconfont.1788176649939.woff → iconfont.1788399047071.woff} +0 -0
- /package/lib/{iconfont.1788176649939.woff2 → iconfont.1788399047071.woff2} +0 -0
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.
|
|
50
|
+
const version = "4.21.4";
|
|
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.
|
|
772
|
+
const tableVersion = `table v${"4.21.4"}`;
|
|
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
|
-
|
|
15546
|
-
|
|
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
|
}
|