{"id":17967455,"url":"https://github.com/msidolphin/element-ui-tree-table","last_synced_at":"2026-03-09T02:31:58.181Z","repository":{"id":57222222,"uuid":"182965568","full_name":"msidolphin/element-ui-tree-table","owner":"msidolphin","description":"A tree table component bases on Vue and ElementUI","archived":false,"fork":false,"pushed_at":"2019-05-16T13:30:00.000Z","size":400,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-22T20:00:50.277Z","etag":null,"topics":["element-ui","tree","tree-table","vuecomponent"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/msidolphin.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":"2019-04-23T08:05:06.000Z","updated_at":"2025-07-28T08:28:16.000Z","dependencies_parsed_at":"2022-08-29T02:31:04.364Z","dependency_job_id":null,"html_url":"https://github.com/msidolphin/element-ui-tree-table","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/msidolphin/element-ui-tree-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Felement-ui-tree-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Felement-ui-tree-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Felement-ui-tree-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Felement-ui-tree-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msidolphin","download_url":"https://codeload.github.com/msidolphin/element-ui-tree-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Felement-ui-tree-table/sbom","scorecard":{"id":665697,"data":{"date":"2025-08-11","repo":{"name":"github.com/msidolphin/element-ui-tree-table","commit":"54238ff51bc1ff96b10a6b819e58c96e2c01b3da"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T17:57:41.123Z","repository_id":57222222,"created_at":"2025-08-21T17:57:41.123Z","updated_at":"2025-08-21T17:57:41.123Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30280850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:23:26.802Z","status":"ssl_error","status_checked_at":"2026-03-09T02:22:46.175Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","tree","tree-table","vuecomponent"],"created_at":"2024-10-29T14:08:54.084Z","updated_at":"2026-03-09T02:31:58.159Z","avatar_url":"https://github.com/msidolphin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# element-ui-tree-table\n\n\u003e 扩展ElementUI表格组件，支持树状结构\n\n\n## 安装\n\n```bash\nnpm install element-ui-tree-table -S\n```\n\n## 使用方式\n\n\u003e 项目依赖于[Element-UI](https://github.com/ElemeFE/element)，您需要先进行引入\n\n### 引入\n```javascript\nimport TreeTableComponent from 'element-ui-tree-table'\nimport 'element-ui-tree-table/dist/index.css'\nVue.use(TreeTableComponent, {\n    prefix: 'i' // 可选\n})\n```\n\n### 使用\n\n[测试数据](https://github.com/msidolphin/element-ui-tree-table/blob/master/src/components/data.js)\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003ci-tree-table height=\"600px\" id-key=\"rowKey\" :columns=\"columns\"\n      @select=\"onSelect\"\n      @trigger=\"onTrigger\"\n      :data=\"data\" border\u003e\n      \u003cel-table-column label=\"负责人\" prop=\"leader\"/\u003e\n      \u003cel-table-column label=\"创建时间\" prop=\"createTime\"/\u003e\n      \u003cel-table-column label=\"经验要求\" prop=\"expr\"\u003e\n        \u003ctemplate slot-scope=\"scope\"\u003e\n          \u003cspan v-if=\"scope.row.expr\"\u003e{{scope.row.expr}}\u003c/span\u003e\n          \u003cspan v-else\u003e————\u003c/span\u003e\n        \u003c/template\u003e\n      \u003c/el-table-column\u003e\n      \u003cel-table-column label=\"发布天数\" prop=\"date\"/\u003e\n    \u003c/i-tree-table\u003e\n    \u003cbr/\u003e\n    \u003cel-button type=\"primary\" size=\"small\" @click=\"add\"\u003e增加一行\u003c/el-button\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport data from './components/data'\nimport TreeTable from './components/tree-table'\nexport default {\n  name: 'App',\n  components: {\n    TreeTable\n  },\n  data () {\n    return {\n      data,\n      columns: [{\n        type: 'index',\n        align: 'center'\n      }, {\n        type: 'selection',\n        align: 'center'\n      }, {\n        label: '职位名称',\n        prop: 'name'\n      }],\n      id: 1000\n    }\n  },\n  methods: {\n    add () {\n      this.data.push({\n        rowKey: this.id++,\n        name: '新增行',\n        leader: '管理员',\n        $expanded: true,\n        createTime: '2019-07-24',\n        expr: '',\n        date: '1天'\n      })\n    },\n    onSelect (selection) {\n      console.log(selection)\n    },\n    onTrigger (row, expanded) {\n      /**\n       * 在这里可以保留折叠状态\n       * 也可以设置reserve-expaned属性为true保留状态 但是你不能够设置默认值，设置了默认值的行将不受控，因为* 组件肯定是选择用户传入$expaned属性为准\n       * 所以推荐的做法是监听trigger事件\n       */\n      row.$expanded = expanded\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n## 配置项\n\n| 属性 | 类型 | 说明 | 默认值 |\n| :------ | :------ | :------ | --- |\n| data | Array | 数据源, 要求默认指定一个rowKey属性，唯一标识该行 | - |\n| id-key | String | 数据源唯一索引 | rowKey |\n| columns | Array | 配置索引列，选择列和展开列 | - |\n| icon | String | 展开图标 | el-icon-caret-right | - |\n| trigger-class | String | 展开按钮类 | - |\n| reserve-expaned | Boolean| 是否保留展开状态，建议此属性为true时不要设置默认展开，保留展开状态可以通过监听trigger实现 | - |\n| 原表格配置项 | - | 参考element-ui文档 | - |\n\n### columns配置项\n注意：\n* 第一个type不为index和selection的元素将被视为展开按钮放置列\n* 只能有一个展开列，多余的会忽略\n\n#### 展开列配置\n\n| 属性 | 类型 | 说明 | 可选值 |\n| :------ | :------ | :------ | --- |\n| label | String | 显示的标题| - |\n| prop | String | 对应列内容的字段名，也可以使用 property 属性 | - |\n| align | String | 对齐方式 | left/center/right|\n| width | String | 对应列的宽度 | - | | |\n| fixed | String, Boolean | 列是否固定在左侧或者右侧，true 表示固定在左侧 | |\n| render-header | Function(h, { column, $index }) | 列标题 Label 区域渲染使用的 Function | |\n| class-name | String | 列的 className| |\n| label-class-name | String | 当前列标题的自定义类名| |\n|show-overflow-tooltip | Boolean |  当内容过长被隐藏时显示 tooltip | |\n| min-width | String | 对应列的最小宽度，与 width 的区别是 width 是固定的，min-width 会把剩余宽度按比例分配给设置了 min-width 的列 | |\n| header-align | String | 表头对齐方式，若不设置该项，则使用表格的对齐方式 | left/center/right |\n| resizable\t | Boolean | 对应列是否可以通过拖动改变宽度（需要设置 border 属性为真） | |\n\n\n#### 普通列配置\n\n| 属性 | 类型 | 说明 | 可选值 |\n| :------ | :------ | :------ | --- |\n| type | String | 对应列的类型，如果设置了 selection 则显示多选框；如果设置了 index 则显示该行的索引 | selection/index |\n| label | String | 显示的标题| - |\n| prop | String | 对应列内容的字段名，也可以使用 property 属性 | - |\n| align | String | 对齐方式 | left/center/right|\n| width | String | 对应列的宽度 | - | | |\n| fixed | String, Boolean | 列是否固定在左侧或者右侧，true 表示固定在左侧 | |\n| render-header | Function(h, { column, $index }) | 列标题 Label 区域渲染使用的 Function | |\n| class-name | String | 列的 className| |\n| label-class-name | String | 当前列标题的自定义类名| |\n| selectable | Function(row, index) |   仅对 type=selection 的列有效，类型为 Function，Function 的返回值用来决定这一行的 CheckBox 是否可以勾选 | |\n|show-overflow-tooltip | Boolean |  当内容过长被隐藏时显示 tooltip | |\n| min-width | String | 对应列的最小宽度，与 width 的区别是 width 是固定的，min-width 会把剩余宽度按比例分配给设置了 min-width 的列 | |\n| header-align | String | 表头对齐方式，若不设置该项，则使用表格的对齐方式 | left/center/right |\n| resizable\t | Boolean | 对应列是否可以通过拖动改变宽度（需要设置 border 属性为真） | |\n\n\n## 事件\n\n| 事件名 | 作用 | 参数 |\n| :------ | :------ | :------ |\n| trigger | 展开状态改变时触发，一般用作保存状态 | (data数据源节点，展开状态) |\n\n## 方法\n\n| 方法名 | 作用 | 参数 |\n| :------ | :------ | :------ |\n| expandAll | 展开所有 | - |\n| collapseAll | 收起所有 | - |\n\n\u003e 参考element-ui文档\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsidolphin%2Felement-ui-tree-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsidolphin%2Felement-ui-tree-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsidolphin%2Felement-ui-tree-table/lists"}