fix: demo

This commit is contained in:
chenos 2025-06-20 15:49:07 +08:00
parent d709d41d00
commit c6e9e9ba79

View File

@ -117,6 +117,10 @@ export class TableColumnModel extends FieldModel {
render() {
return (value, record, index) => (
<>
<div>
{this.componentProps.prefix}
{this.componentProps.suffix}
</div>
<Demo value={value} model={this} />
{this.renderQuickEditButton(record)}
</>
@ -179,7 +183,8 @@ TableColumnModel.registerFlow({
},
},
handler(ctx, params) {
ctx.model.setComponentProps(params);
ctx.model.componentProps.prefix = params.prefix || '';
ctx.model.componentProps.suffix = params.suffix || '';
},
},
},