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

update: 支持表格单元格样式表

上级 a329f357
...@@ -87,6 +87,11 @@ export const GridFieldColumn = defineComponent({ ...@@ -87,6 +87,11 @@ export const GridFieldColumn = defineComponent({
); );
} }
const cellCssName = computed(() => {
const cellSysCss = c.model.source.getCellPSSysCss();
return cellSysCss?.cssName;
});
return { return {
ns, ns,
alignStyle, alignStyle,
...@@ -94,6 +99,7 @@ export const GridFieldColumn = defineComponent({ ...@@ -94,6 +99,7 @@ export const GridFieldColumn = defineComponent({
CustomHtml, CustomHtml,
onCellClick, onCellClick,
enableGridRowBreak, enableGridRowBreak,
cellCssName,
}; };
}, },
render() { render() {
...@@ -134,6 +140,7 @@ export const GridFieldColumn = defineComponent({ ...@@ -134,6 +140,7 @@ export const GridFieldColumn = defineComponent({
this.ns.b(), this.ns.b(),
c.clickable && this.ns.m('clickable'), c.clickable && this.ns.m('clickable'),
this.ns.m(c.model.codeName), this.ns.m(c.model.codeName),
this.cellCssName,
]} ]}
style={this.alignStyle} style={this.alignStyle}
onClick={this.onCellClick} onClick={this.onCellClick}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册