Commit 91b3461b authored by wangailin's avatar wangailin
Browse files

feat: 列表文本添加URL开关

parent ea4050a8
Showing with 10 additions and 1 deletion
+10 -1
......@@ -3,10 +3,13 @@ import Column, { ColumnConfig } from '../common'
export interface TextColumnConfig extends ColumnConfig {
type: 'text'
// 临时方案 后续优化
linkUrl: boolean
}
export interface ITextColumn {
value: string
linkUrl: boolean
}
export default class TextColumn extends Column<TextColumnConfig, ITextColumn> {
......@@ -31,11 +34,17 @@ export default class TextColumn extends Column<TextColumnConfig, ITextColumn> {
}
render = () => {
const {
config: {
linkUrl
}
} = this.props
const value = this.getValue()
return (
<React.Fragment>
{this.renderComponent({ value })}
{this.renderComponent({ value, linkUrl })}
</React.Fragment>
)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment