Build simple table with @antd-table
- Define column and row count
- Support custom render.
yarn add table-cms-react
npm install table-cms-react
import React, { Component } from 'react'
import { TableCms, TableRender } from 'table-cms-react'
// cms
const Example = () => {
return (
<TableCms
defaultSize={
column: 3,
row: 3
}
onChange={(data) => console.log(data)}
/>
);
}
// render
const Example = () => {
return (
<TableRender
data={data}
/>
);
}
defaultSize
onChange
data
MIT © 2020