vxe-table 3.23.3 → 3.23.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/es/style.css +1 -1
- package/es/table/render/index.js +15 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +16 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +14 -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 +15 -6
- /package/es/{iconfont.1788176636871.ttf → iconfont.1788399048088.ttf} +0 -0
- /package/es/{iconfont.1788176636871.woff → iconfont.1788399048088.woff} +0 -0
- /package/es/{iconfont.1788176636871.woff2 → iconfont.1788399048088.woff2} +0 -0
- /package/lib/{iconfont.1788176636871.ttf → iconfont.1788399048088.ttf} +0 -0
- /package/lib/{iconfont.1788176636871.woff → iconfont.1788399048088.woff} +0 -0
- /package/lib/{iconfont.1788176636871.woff2 → iconfont.1788399048088.woff2} +0 -0
package/es/table/render/index.js
CHANGED
|
@@ -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
|
-
|
|
1495
|
-
|
|
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
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
|
+
const tableVersion = `table v${"3.23.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
|
@@ -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.
|
|
3317
|
+
const version = "3.23.4";
|
|
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.
|
|
4115
|
+
const tableVersion = `table v${"3.23.4"}`;
|
|
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}` : '';
|
|
@@ -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
|
-
|
|
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
|
},
|