diff --git a/CHANGELOG.md b/CHANGELOG.md index cb1cf16659827dd46f9516fad792c3a8b5e5e895..6517819e5fb2aef3fc38081cfdf1f75995455de8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ - 新增电子签名编辑器样式,基于文本框编辑器进行扩展,编辑器样式代码名称为:SIGNATURE +### Changed + +- 调整属性列自定义参数(columntype)为小写,此参数的作用是允许在表格列中预览文件数据,配置示例:columntype=attachment + ## [0.7.41-alpha.20] - 2025-08-24 ### Added diff --git a/src/control/grid/grid-column/grid-field-column/grid-field-column.tsx b/src/control/grid/grid-column/grid-field-column/grid-field-column.tsx index 39e1a9be9222332ec7c0ddb8769e32845709da36..f42ef98712e79e267f7b62685d363375a5f4c615 100644 --- a/src/control/grid/grid-column/grid-field-column/grid-field-column.tsx +++ b/src/control/grid/grid-column/grid-field-column/grid-field-column.tsx @@ -32,7 +32,7 @@ export const GridFieldColumn = defineComponent({ const zIndex = props.controller.grid.state.zIndex; - const columnType = props.controller.model.userParam?.columnType; + const columnType = props.controller.model.userParam?.columntype; /** * 单元格点击事件 diff --git a/src/control/grid/grid/grid.tsx b/src/control/grid/grid/grid.tsx index aacdb04f98db26464654efb7a6a1273e647e49a4..b158561c61465263db461d5c0d753f117353f197 100644 --- a/src/control/grid/grid/grid.tsx +++ b/src/control/grid/grid/grid.tsx @@ -103,7 +103,7 @@ export function renderFieldColumn( const panel = controlRenders.find( renderItem => renderItem.renderType === 'LAYOUTPANEL', )?.layoutPanel; - const columnType = c.model.userParam?.columnType; + const columnType = c.model.userParam?.columntype; if (panel) { content = (