Xinxin

Results 155 comments of Xinxin
trafficstars

Thanks for your suggestion. vue-2-3 looks great. I can maintain only one version if I use it. But I don't plan to use it now, because the current solution works...

I will publish he-tree new version. It support display from bottom to top.

I'm sorry, I'm confused about what you're saying. No sort field. There is a node path variable, it is node position, can be access by scoped slot. ```html {{index}} Title:...

tree only reads nested data, and exports nested data, like this: ```js [{text: 'node 1'}, {text: 'node 2', children: [{text: 'node 2-1'}]}] ``` If your data is not nested and...

the path of id 3 is [2]. ```js // get removed id's console.log(tree.getAllNodesByPath([2])) // remove tree.removeNodeByPath([2]) ```

```html ``` tree is a ref. check vue doc to get ref.

```js function getNodeInfoByID(id) { let found tree.walkTreeData((node, index, parent, path) => { if (node.id === id) { found = {node, index, parent, path} return false } }) return found }...

remove the square brackets of node.path ```js const removeNode = (id) => { let node = getNodeInfoByID(id); console.log(node, id); if (node) { // get removed id's from the three console.log(tree.value.getAllNodesByPath(node.path));...

simple example: ```js treeData: [ {text: 'node 1', $nodeBackClass: 'active', $nodeStyle: {fontWeight: 'bold'}} ] ```