https://github.com/jiereal/elementui_treegrid
ElementUI_treeGrid
https://github.com/jiereal/elementui_treegrid
element-ui treegrid
Last synced: about 1 year ago
JSON representation
ElementUI_treeGrid
- Host: GitHub
- URL: https://github.com/jiereal/elementui_treegrid
- Owner: jiereal
- License: mit
- Created: 2018-06-21T09:45:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T10:25:17.000Z (almost 8 years ago)
- Last Synced: 2025-04-13T06:09:16.857Z (about 1 year ago)
- Topics: element-ui, treegrid
- Language: Vue
- Size: 39.1 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ElementUI_treeGrid
treeGrid component with element-ui library
# Installation
```
npm i elementui_treegrid
```
# Example
```js
import treeGrid from '../src/treeGrid';
export default {
data() {
return {
columns: [{
type: 'selection',
width: '50',
align: 'center'
}, {
title: '编码',
key: 'code',
sortable: true,
width: '150',
}, {
title: '名称',
key: 'name',
width: '150',
}, {
title: '类型',
key: 'type',
width: '150',
}, {
title: '描述',
key: 'description',
width: '150',
}],
items: [{
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 1,
children: [{
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 11,
}, {
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 12
}, {
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 13
}]
}, {
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 2
}, {
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 3
}, {
code: '1',
name: 'name1',
type: 'type1',
description: 'description',
id: 4
}]
}
},
methods: {
click(result, event, index, text) {
console.log(result, event, index, text)
},
select(items) {
console.log(items)
}
},
components: {
treeGrid
}
}
```

# Contribution
If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/jiereal/ElementUI_treeGrid/issues) or a [https://github.com/jiereal/ElementUI_treeGrid/pulls) .
# License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details