react
hyblzcf
这个作者很懒,什么都没留下…
展开
-
前端表格导出excel兼容office
安装xlsxnpm install --save xlsx const exportExcel = () => { const wbout = XLSX.write( XLSX.utils.table_to_book(document.getElementById('table'), { raw: true }), { bookType: 'xlsx', bookSST: true, t原创 2021-09-03 09:34:21 · 180 阅读 · 1 评论 -
react hooks中使用Ant design的table组件
table加悬浮表单,废话不多说,看图表格的配置const columns = [ { title: '联系人', width: 100, render: item => { const {contactPerson, username} = item; return ( <Popover content={<div> <Input原创 2020-12-03 19:29:05 · 937 阅读 · 0 评论 -
react hooks中使用Ant design的table组件
table折叠实现显示和隐藏(说不明白了)看效果,为了让你们看懂,略丑打开折叠看代码<Table columns={columns} rowKey={record => record.deviceId} expandedRowRender={record => <TableMessage record={record} style={{margin: 0}} />} expandedRowKeys={expandedRowKeys} dataSo原创 2020-12-03 18:56:18 · 573 阅读 · 0 评论 -
react hooks使用echarts
安装依赖npm install echarts --save项目需要的是柱状图,如图组件 <ChartBar id="chart-bar" optionsData={echarts} width={880} height={300} />组件内容,全粘过来了import {useEffect} from 'react';import echarts from 'echarts/lib/echarts';import 'echarts/lib/chart/bar';原创 2020-12-03 18:23:19 · 2827 阅读 · 0 评论