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

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

上级 acb9d875
......@@ -70,14 +70,30 @@ export const GridFieldColumn = defineComponent({
return ns.cssVarBlock({ 'justify-content': justContent });
});
return { ns, alignStyle, codeList, onCellClick, enableGridRowBreak };
const cellCssName = computed(() => {
const cellSysCss = c.model.source.getCellPSSysCss();
return cellSysCss?.cssName;
});
return {
ns,
alignStyle,
cellCssName,
codeList,
onCellClick,
enableGridRowBreak,
};
},
render() {
const c = this.controller;
const fieldValue = this.row.data[this.controller.model.codeName];
return (
<div
class={[this.ns.b(), c.clickable && this.ns.m('clickable')]}
class={[
this.ns.b(),
c.clickable && this.ns.m('clickable'),
this.cellCssName,
]}
style={this.alignStyle}
onClick={this.onCellClick}
>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册