1.0.3 • Published 3 years ago
xiangrui-tools v1.0.3
个人使用总结的一些工具或者方法
- Rendercell react+antd 的表格合并
- RowSpan react+antd 的表格 根据条件计算需要合并的行数,返回新的数据源
- TreeDataFindItem 从 treeData 中找出特定字段(比如 id)特定值(比如 xx)的 item
- TreeDataFindParent 从 treeData 中找出特定字段(比如 id)特定值(比如 xx)的 所有父级指定字段
- DownloadFile 使用文件流下载文件
使用
- 安装
npm i xiangrui-tools
- 引入方法
const { TreeDataFindParent } = require('../dist')
- 使用
let d = TreeDataFindParent({
origin: data,
fieldName: 'key',
value: '0-0-0-1',
needFieldName: 'title',
})
倾斜
加粗
倾斜并加粗
删除线
这是引用的内容
- 无序列表
- 无序列表
- 无序列表
- 有序列表
单行代码
多行代码
分割线