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/es/table/render/index.js
CHANGED
|
@@ -1377,16 +1377,26 @@ renderer.mixin({
|
|
|
1377
1377
|
];
|
|
1378
1378
|
},
|
|
1379
1379
|
renderTableCell(renderOpts, params) {
|
|
1380
|
-
const { row, column } = params;
|
|
1380
|
+
const { $table, row, column } = params;
|
|
1381
|
+
const { props } = renderOpts;
|
|
1382
|
+
const { computeSize } = $table.getComputeMaps();
|
|
1383
|
+
const customSize = props ? props.size : null;
|
|
1384
|
+
const vSize = customSize || computeSize.value;
|
|
1381
1385
|
const cellValue = XEUtils.get(row, column.field);
|
|
1382
1386
|
return h('span', {
|
|
1383
|
-
class: 'vxe-color-picker--readonly'
|
|
1387
|
+
class: ['vxe-color-picker--readonly', {
|
|
1388
|
+
[`size--${vSize}`]: vSize
|
|
1389
|
+
}]
|
|
1384
1390
|
}, [
|
|
1385
1391
|
h('div', {
|
|
1386
|
-
class: 'vxe-color-picker--readonly-color',
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1392
|
+
class: ['vxe-color-picker--readonly-color', {
|
|
1393
|
+
'is--empty': !cellValue
|
|
1394
|
+
}],
|
|
1395
|
+
style: cellValue
|
|
1396
|
+
? {
|
|
1397
|
+
backgroundColor: cellValue
|
|
1398
|
+
}
|
|
1399
|
+
: undefined
|
|
1390
1400
|
})
|
|
1391
1401
|
]);
|
|
1392
1402
|
}
|
package/es/ui/index.js
CHANGED
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${"4.21.
|
|
3
|
+
const tableVersion = `table v${"4.21.4"}`;
|
|
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
|
@@ -3313,7 +3313,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
3313
3313
|
/* unused harmony import specifier */ var VxeUI;
|
|
3314
3314
|
|
|
3315
3315
|
|
|
3316
|
-
const version = "4.21.
|
|
3316
|
+
const version = "4.21.4";
|
|
3317
3317
|
core_.VxeUI.version = version;
|
|
3318
3318
|
core_.VxeUI.tableVersion = version;
|
|
3319
3319
|
core_.VxeUI.setConfig({
|
|
@@ -4135,7 +4135,7 @@ function getPopupAppendElement(appendTo) {
|
|
|
4135
4135
|
const {
|
|
4136
4136
|
log: log_log
|
|
4137
4137
|
} = core_.VxeUI;
|
|
4138
|
-
const tableVersion = `table v${"4.21.
|
|
4138
|
+
const tableVersion = `table v${"4.21.4"}`;
|
|
4139
4139
|
function createComponentLog(name) {
|
|
4140
4140
|
const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
|
|
4141
4141
|
const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
|
|
@@ -21453,17 +21453,30 @@ render_renderer.mixin({
|
|
|
21453
21453
|
},
|
|
21454
21454
|
renderTableCell(renderOpts, params) {
|
|
21455
21455
|
const {
|
|
21456
|
+
$table,
|
|
21456
21457
|
row,
|
|
21457
21458
|
column
|
|
21458
21459
|
} = params;
|
|
21460
|
+
const {
|
|
21461
|
+
props
|
|
21462
|
+
} = renderOpts;
|
|
21463
|
+
const {
|
|
21464
|
+
computeSize
|
|
21465
|
+
} = $table.getComputeMaps();
|
|
21466
|
+
const customSize = props ? props.size : null;
|
|
21467
|
+
const vSize = customSize || computeSize.value;
|
|
21459
21468
|
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21460
21469
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
21461
|
-
class: 'vxe-color-picker--readonly'
|
|
21470
|
+
class: ['vxe-color-picker--readonly', {
|
|
21471
|
+
[`size--${vSize}`]: vSize
|
|
21472
|
+
}]
|
|
21462
21473
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
21463
|
-
class: 'vxe-color-picker--readonly-color',
|
|
21464
|
-
|
|
21474
|
+
class: ['vxe-color-picker--readonly-color', {
|
|
21475
|
+
'is--empty': !cellValue
|
|
21476
|
+
}],
|
|
21477
|
+
style: cellValue ? {
|
|
21465
21478
|
backgroundColor: cellValue
|
|
21466
|
-
}
|
|
21479
|
+
} : undefined
|
|
21467
21480
|
})]);
|
|
21468
21481
|
}
|
|
21469
21482
|
},
|