Xinxin

Results 155 comments of Xinxin
trafficstars

> when can we expect this Model value issue to be fixed by? In version 1, you need call method to get data in drop event. In version 2, you...

默认选中、默认展开x级 可以通过遍历节点设置. 展开是node.$folded属性. 选中是node.$checked属性. node.$checked支持半选, 值: true, false|null:未选, 0 半选.

Does this help? https://hetree.phphe.com/v1/guide#ouput

addNode ``` (node: obj, parentId: number | string | null, index?: number): void; ``` 第三参数是索引, 就是用来添加平级的

index是普通数组索引. 要添加到目标后面, 就是目标在同级中的索引加1.

it seems a ts config error, try `"esModuleInterop": true`

Yes, it works in Vue3, with bug in Vue2. After addNode called, try follow code make properties reactive. ```js Object.keys(node).forEach(key => { this.$set(node, key, node[key]) }); ```

https://hetree.phphe.com/v1/api#basenode set node.$childrenLoadStaus = undefined, make it lazy load in next open