{"id":22394194,"url":"https://github.com/jiereal/elementui_treegrid","last_synced_at":"2025-04-13T06:09:34.102Z","repository":{"id":57222264,"uuid":"138151214","full_name":"jiereal/ElementUI_treeGrid","owner":"jiereal","description":"ElementUI_treeGrid","archived":false,"fork":false,"pushed_at":"2018-06-21T10:25:17.000Z","size":40,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T06:09:16.857Z","etag":null,"topics":["element-ui","treegrid"],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiereal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-21T09:45:16.000Z","updated_at":"2021-07-02T07:40:04.000Z","dependencies_parsed_at":"2022-08-29T04:11:38.184Z","dependency_job_id":null,"html_url":"https://github.com/jiereal/ElementUI_treeGrid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiereal%2FElementUI_treeGrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiereal%2FElementUI_treeGrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiereal%2FElementUI_treeGrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiereal%2FElementUI_treeGrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiereal","download_url":"https://codeload.github.com/jiereal/ElementUI_treeGrid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670435,"owners_count":21142904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["element-ui","treegrid"],"created_at":"2024-12-05T05:09:23.406Z","updated_at":"2025-04-13T06:09:34.075Z","avatar_url":"https://github.com/jiereal.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElementUI_treeGrid\n  treeGrid component with element-ui library\n\n# Installation\n\n```\n    npm i elementui_treegrid\n```\n\n# Example\n```js\n    \u003ctemplate\u003e\n        \u003ctree-grid :columns=\"columns\"\n                   :items=\"items\"\n                   :expandAll=\"true\"\n                   @on-row-click=\"click\"\n                   @on-selection-change=\"select\"\n        /\u003e\n    \u003c/template\u003e\n    \u003cscript\u003e\n        import treeGrid from '../src/treeGrid';\n\n        export default {\n            data() {\n                return {\n                    columns: [{\n                        type: 'selection',\n                        width: '50',\n                        align: 'center'\n                    }, {\n                        title: '编码',\n                        key: 'code',\n                        sortable: true,\n                        width: '150',\n                    }, {\n                        title: '名称',\n                        key: 'name',\n                        width: '150',\n                    }, {\n                        title: '类型',\n                        key: 'type',\n                        width: '150',\n\n                    }, {\n                        title: '描述',\n                        key: 'description',\n                        width: '150',\n                    }],\n                    items: [{\n                        code: '1',\n                        name: 'name1',\n                        type: 'type1',\n                        description: 'description',\n                        id: 1,\n                        children: [{\n                            code: '1',\n                            name: 'name1',\n                            type: 'type1',\n                            description: 'description',\n                            id: 11,\n                        }, {\n                            code: '1',\n                            name: 'name1',\n                            type: 'type1',\n                            description: 'description',\n                            id: 12\n                        }, {\n                            code: '1',\n                            name: 'name1',\n                            type: 'type1',\n                            description: 'description',\n                            id: 13\n                        }]\n                    }, {\n                        code: '1',\n                        name: 'name1',\n                        type: 'type1',\n                        description: 'description',\n                        id: 2\n                    }, {\n                        code: '1',\n                        name: 'name1',\n                        type: 'type1',\n                        description: 'description',\n                        id: 3\n                    }, {\n                        code: '1',\n                        name: 'name1',\n                        type: 'type1',\n                        description: 'description',\n                        id: 4\n                    }]\n                }\n            },\n            methods: {\n                click(result, event, index, text) {\n                    console.log(result, event, index, text)\n                },\n                select(items) {\n                    console.log(items)\n                }\n            },\n            components: {\n                treeGrid\n            }\n        }\n    \u003c/script\u003e\n```\n![截图](https://raw.githubusercontent.com/jiereal/ElementUI_treeGrid/master/example/screenshot.png)\n\n# Contribution\nIf 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) .\n\n# License\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiereal%2Felementui_treegrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiereal%2Felementui_treegrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiereal%2Felementui_treegrid/lists"}