Comments (3)
是类似这样的么?
如果是这样的话, 你可以自定义编辑组件具体可以参考 文档
from vtable.
是类似这样的么? 如果是这样的话, 你可以自定义编辑组件具体可以参考 文档
嗯这个我已经试过了,只能插入原生dom,我的诉求应该和#890 是一样的 希望可以插入一些class类、组件等
from vtable.
目前 react-vtable 还没有直接提供这样的功能,不过如 @luda-dev 提到的那样,你可以间接地使用这样的功能,比如像 #1005 里面一样在 onStart
(aka beginEdit
)时创建你需要的编辑器。不过这个例子里的代码需要进行一些调整:
- 如果你需要消费 context,你应该使用
createPortal
而不是新建一个 root 节点 - 如果你使用了
createRoot
,你应该在 endEdit 时调用 root 上的unmount
来释放资源 - 如果你使用 react 18-,你应该调用
render
并使用unmountComponentAtNode
来释放资源
如果 react-vtable 需要添加这样的支持的话,你希望 API 是什么样呢?
from vtable.
Related Issues (20)
- [Bug] Instance.arrangeCustomCellStyle(cellPosition, 'a0001') 设置单元格样式报错 HOT 1
- [Bug] 导出单元格中内容为逗号的csv文件,列显示错位
- [Bug] 隐藏行表头, body内容消失.
- [Feature] 导出图片背景色透明.
- vchart 垂直方向不能居中? HOT 6
- 换行符渲染 HOT 6
- [Bug] 透视组合图legends改成数组就不显示了,但是按文档里给的应该是允许数组的
- [Bug] setTableColumnsEditor occor error when not set columns
- [Bug] when body cell is blank string,compute row height error
- [Feature] 导出图片,是否考虑增加导出全量数据 HOT 1
- [Feature] 单元格是否支持解析HTML,如果遇到下标和上标时,能不能处理? HOT 2
- row number error when using getRadioState after column sort HOT 3
- [Bug] lineClamp not work on compute rowHeight
- [Bug] tree mode with rowHierarchyTextStartAlignment computColWidth error
- How to update `rawData`?
- [Feature] ListTable 需要显示空状态 HOT 2
- [Bug] CornerRadius is not round corner HOT 1
- [Bug] 组合图单元格宽度显示异常
- [Bug] 表格导出Excel报错
- [Bug] 单元格表头区域设置渐变色无效 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtable.