const columns = title 图书名称 width 300 dataIndex bookName key bookName fixed left title 图书编码 width 250 dataIndex bookCode key bookCode fixed left title 状态 width 250 dataIndex status key status
这段代码定义了一个表格的列配置,其中包括以下四个列:
- "图书名称" 列,宽度为 300,数据对应的属性名称为 "bookName",键值为 "bookName",固定在表格左侧。
- "图书编码" 列,宽度为 250,数据对应的属性名称为 "bookCode",键值为 "bookCode",固定在表格左侧。
- "状态" 列,宽度为 250,数据对应的属性名称为 "status",键值为 "status",固定在表格左侧,同时使用了自定义渲染函数 "status"。
- "操作" 列,居中对齐,键值为 "operation",固定在表格右侧,宽度为 150,同时使用了自定义渲染函数 "action"。
原文地址: https://www.cveoy.top/t/topic/biEs 著作权归作者所有。请勿转载和采集!