wangyaoqin

Results comments of wangyaoqin

``` javascript // in table.js const List = Quill.import('formats/list') const Block = Quill.import('blots/block') ... TableCell.allowedChildren = [..., List.requiredContainer, Block] ``` `List.requiredContainer` can make you add ul, and `Block` can preserve...

> @WongYAQi It's not enough for adding ul/ol in table cell. > To achieve it, the `listItem` blot and `listContainer` blot need to be modified accordingly (like table cell line)....

我也遇到了这个问题。说一下我的解决办法 我是分页控件之后,重新查询一遍数据,然后在查询到数据之后就进行检查,进行toggleRowSelection。发现不行,调试了之后,发现this.$refs.table.selection 是记录勾选的对象的。在我获取到数据遍历的时候,这个数据是有值的(就是我曾经勾选的)。然后F8退出调试,再去检查这个对象,发现没有值了。 看一下vue的官方文档,$ref表示的DOM元素会在数据更新之后被注销新建。所以我认为是在我获取数据之后,就会进行$ref的新建。导致我们设置的勾选元素清空了。 通过updated 生命周期进行调试,发现正常。 代码如下: ` updated:function(){ this.$nextTick(function(){ //遍历,设置toggleRowSelection方法 } } `

> updated:function(){ this.$nextTick(function(){ //遍历,设置toggleRowSelection方法 } } > 在这个生命周期里改动也并没有生效 这里有个例子 https://jsfiddle.net/WongYAQi/j0L2ozea/1/

> > updated:function(){ this.$nextTick(function(){ //遍历,设置toggleRowSelection方法 } } > > 在这个生命周期里改动也并没有生效 > > 这里有个例子 > https://jsfiddle.net/WongYAQi/j0L2ozea/1/ 1313234234

老哥能不能解释下,如果我写 ``` type InorderTraversal = T extends TreeNode ? [...InorderTraversal, T["val"], ...InorderTraversal] : [] ``` ts会提示我,`类型过深,可能有无限`,同时还有 `表达式生成的联合类型过于复杂,无法表示` 两个问题,但是我认为两个答案是没有什么本质区别的吧?为什么在你的答案中就没有了`无限`的问题呢?

quill-better-table is a good table plugin, but it still has problems, maybe you need to modify that for your use