antd-editTable
使用antd實(shí)現(xiàn)表格增、刪、編輯,分別基于react16.2和react16.3實(shí)現(xiàn)兩種方式
背景
React在版本16.3-alpha里引入了新的Context API,antd3.10.0基于react16.3-alpha,利用React.createContext()特性實(shí)現(xiàn)表格編輯。
方式一:基于react16.2, antd8.4實(shí)現(xiàn)表格增、刪、編輯,未實(shí)現(xiàn)校驗(yàn)功能
示例

example.gif
Demo
https://codesandbox.io/s/v85jlv541y
方式二:基于react16.3, antd3.10實(shí)現(xiàn)表格增、刪、編輯,已實(shí)現(xiàn)校驗(yàn)功能
示例

example.gif
Demo
https://codesandbox.io/s/73zvp3vljx