提交 8cc39217 编写于 作者: Cano1997's avatar Cano1997

style: 表格列提示支持换行

上级 3125c696
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
GridModel, GridModel,
} from '@ibiz-template/model'; } from '@ibiz-template/model';
import { ControlVO } from '@ibiz-template/service'; import { ControlVO } from '@ibiz-template/service';
import { useNamespace } from '@ibiz-template/vue-util';
import { clone } from 'ramda'; import { clone } from 'ramda';
import { computed, CreateElement, ref } from 'vue'; import { computed, CreateElement, ref } from 'vue';
...@@ -113,9 +114,16 @@ export function useITableColumns(c: GridController) { ...@@ -113,9 +114,16 @@ export function useITableColumns(c: GridController) {
const { column } = args; const { column } = args;
const { tooltip } = column.userParams || {}; const { tooltip } = column.userParams || {};
const ns = useNamespace('grid');
const content = h( const content = h(
'i-tooltip', 'i-tooltip',
{ props: { transfer: true, content: tooltip } }, {
props: {
transfer: true,
content: tooltip,
transferClassName: ns.e('header-tooltip'),
},
},
[h('i', { class: 'ivu-icon ivu-icon-ios-help-circle-outline' })], [h('i', { class: 'ivu-icon ivu-icon-ios-help-circle-outline' })],
); );
return h('span', [column.title, content]); return h('span', [column.title, content]);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册