Skip to content

Commit

Permalink
releases 4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Oct 31, 2024
1 parent 865abd3 commit d0d812c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 32 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.8.0-beta.2",
"version": "4.8.0-beta.3",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
4 changes: 2 additions & 2 deletions packages/table/render/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ function isImmediateCell (renderOpts: VxeColumnPropTypes.EditRender, params: any
}

function getCellLabelVNs (renderOpts: any, params: any, cellLabel: any) {
const { name, placeholder } = renderOpts
const { placeholder } = renderOpts
return [
h('span', {
class: ['vxe-cell--label', ['VxeTextarea', 'textarea'].includes(name) ? 'is--textarea' : '']
class: 'vxe-cell--label'
}, placeholder && isEmptyValue(cellLabel)
? [
h('span', {
Expand Down
1 change: 0 additions & 1 deletion packages/table/src/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ export default defineComponent({
'col--tree-node': treeNode,
'col--edit': isEdit,
'col--ellipsis': hasEllipsis,
'col--height': !!rowOpts.height,
'fixed--hidden': fixedHiddenColumn,
'col--dirty': isDirty,
'col--active': editConfig && isEdit && (actived.row === row && (actived.column === column || editOpts.mode === 'row')),
Expand Down
34 changes: 6 additions & 28 deletions styles/components/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,8 @@
}
.vxe-body--column {
&.col--vertical-top {
&.col--active {
& > .vxe-cell {
height: 100%;
}
}
}
.vxe-cell--label {
&.is--textarea {
white-space: pre-line;
& > .vxe-cell {
height: 100%;
}
}
}
Expand Down Expand Up @@ -1248,10 +1241,10 @@
text-overflow: ellipsis;
white-space: nowrap;
}
}
&:not(.col--height) {
& > .vxe-cell {
max-height: var(--vxe-ui-table-row-height-default);
&.col--vertical-top {
& > .vxe-cell {
white-space: pre-line;
}
}
}
}
Expand All @@ -1262,11 +1255,6 @@
.vxe-footer--column {
&.col--ellipsis {
@extend %MediumColumnHeight;
&:not(.col--height) {
& > .vxe-cell {
max-height: var(--vxe-ui-table-row-height-medium);
}
}
}
}
.vxe-cell--checkbox {
Expand All @@ -1282,11 +1270,6 @@
.vxe-footer--column {
&.col--ellipsis {
@extend %SmallColumnHeight;
&:not(.col--height) {
& > .vxe-cell {
max-height: var(--vxe-ui-table-row-height-small);
}
}
}
}
.vxe-cell--checkbox {
Expand All @@ -1302,11 +1285,6 @@
.vxe-footer--column {
&.col--ellipsis {
@extend %MiniColumnHeight;
&:not(.col--height) {
& > .vxe-cell {
max-height: var(--vxe-ui-table-row-height-mini);
}
}
}
}
.vxe-cell--checkbox {
Expand Down

0 comments on commit d0d812c

Please sign in to comment.