antd-editable:从antd继承的React组件,可以编辑单元格表-源码

上传者: 42138716 | 上传时间: 2021-05-24 11:16:10 | 文件大小: 140KB | 文件类型: ZIP
可编辑表格(React hooks) 一个基于 的 React 组件, 可以编辑表格的内容并实时保存。 Features 行/列可编辑 tab 键切换 自定义表单数据校验 typescript 支持 支持 Select 控件 行/列/单元格禁用 何时使用 当表格涉及到内容的修改的时候 如何使用 安装 $ yarn add antd-editable 使用 默认已经开启所有的单元格可编辑。如需禁用某列的可编辑,只需要在传入 columns 里设置对应列的 editable 为 false。 如需禁用某行的可编辑,只需要在传入 dataSource 里设置对应行的 editable 为 false。 每一次输入框失焦后,会在组件内部保存一个新的 dataSource ,可以传入一个 onCellChange 的回调函数用于捕获这个实时的 dataSource 用于一些类似

文件下载

资源详情

[{"title":"( 25 个子文件 140KB ) antd-editable:从antd继承的React组件,可以编辑单元格表-源码","children":[{"title":"antd-editable-master","children":[{"title":"index.js <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"style","children":[{"title":"EditableWrapper.ts <span style='color:#111;'> 957B </span>","children":null,"spread":false}],"spread":true},{"title":"computedEditColumns.tsx <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"Cell.tsx <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"useProps.ts <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"useTabChange.ts <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"_utils","children":[{"title":"type.ts <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 163B </span>","children":null,"spread":false}],"spread":true},{"title":"Editable.tsx <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 88B </span>","children":null,"spread":false}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"submit.js <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"asyncData.html <span style='color:#111;'> 11B </span>","children":null,"spread":false},{"title":"simple.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"rules.js <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"submit.html <span style='color:#111;'> 11B </span>","children":null,"spread":false},{"title":"asyncData.js <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"rules.html <span style='color:#111;'> 11B </span>","children":null,"spread":false},{"title":"simple.html <span style='color:#111;'> 11B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 475.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明