{"id":38357998,"url":"https://github.com/maggot-code/maggot-table","last_synced_at":"2026-01-17T03:17:28.537Z","repository":{"id":65603004,"uuid":"345844049","full_name":"maggot-code/maggot-table","owner":"maggot-code","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-02T01:48:30.000Z","size":9337,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T09:26:41.212Z","etag":null,"topics":[],"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/maggot-code.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":"2021-03-09T01:19:08.000Z","updated_at":"2022-06-12T16:25:38.000Z","dependencies_parsed_at":"2023-01-31T10:31:01.028Z","dependency_job_id":null,"html_url":"https://github.com/maggot-code/maggot-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maggot-code/maggot-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maggot-code","download_url":"https://codeload.github.com/maggot-code/maggot-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maggot-code%2Fmaggot-table/sbom","scorecard":{"id":611489,"data":{"date":"2025-08-11","repo":{"name":"github.com/maggot-code/maggot-table","commit":"ab2ee005cc7db9c329f2800912b471a1600635e6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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":"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":"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 'main'"],"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"}},{"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"}}]},"last_synced_at":"2025-08-21T02:46:30.822Z","repository_id":65603004,"created_at":"2025-08-21T02:46:30.822Z","updated_at":"2025-08-21T02:46:30.822Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"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":[],"created_at":"2026-01-17T03:17:28.454Z","updated_at":"2026-01-17T03:17:28.513Z","avatar_url":"https://github.com/maggot-code.png","language":"Vue","readme":"# maggot-table\n\n## 属性\n\n| 属性               | 说明                     | 类型              | 默认值                 |\n| ------------------ | ------------------------ | ----------------- | ---------------------- |\n| `tableSchema`      | 表格结构                 | `Object`          | 必填                   |\n| `tableData`        | 表格数据                 | `Array`           | `[]`                   |\n| `tableChoice`      | 选中集合                 | `Array`           | `[]`                   |\n| `controller`       | 行操作按钮               | `Object`          | `{}`                   |\n| `rowPower`         | 按钮状态（根据权限禁用） | `String`          | `rowpower`             |\n| `total`            | 表格承载数据总数         | `String / Number` | `0`                    |\n| `resizeTable`      | 重置表格容器尺寸         | `String / Number` | `Date.now()`           |\n| `parentHeight`     | 表格父容器高度           | `Number`          | `0`                    |\n| `isLabel`          | 行操作按钮是否显示文字   | `Boolean`         | `true`                 |\n| `resetCurrentPage` | 重置页码到第一页         | `String / Number` | `Date.now()`           |\n| `defaultPageSize`  | 默认每页条数             | `Number`          | `10`                   |\n| `defaultPageSizes` | 默认可选每页条数         | `Array`           | `[10, 20, 30, 40, 50]` |\n\n### `TableSchema`\n\n| 属性           | 说明         | 类型     | 默认值 |\n| -------------- | ------------ | -------- | ------ |\n| `uiSchema`     | 表格视图结构 | `Object` | `{}`   |\n| `columnSchema` | 表格表头结构 | `Array`  | `[]`   |\n\n### `UISchema`\n\n| 属性          | 说明             | 类型                     | 默认值      |\n| ------------- | ---------------- | ------------------------ | ----------- |\n| `handleFixed` | 操作列定位位置   | `left / right`           | `left`      |\n| `size`        | 表格尺寸         | `medium / small / mini`  | `medium`    |\n| `fit`         | 列头是否自动撑开 | `Boolean`                | `true`      |\n| `border`      | 是否显示边框     | `Boolean`                | `true`      |\n| `stripe`      | 是否显示斑马纹   | `Boolean`                | `false`     |\n| `emptyText`   | 空数据提示文字   | `String`                 | 暂无数据    |\n| `showHeader`  | 是否显示表头     | `Boolean`                | `true`      |\n| `highlight`   | 当前行是否高亮   | `Boolean`                | `true`      |\n| `isChoice`    | 是否显示选择列   | `Boolean`                | `false`     |\n| `isIndex`     | 是否显示索引列   | `Boolean`                | `false`     |\n| `isPage`      | 是否显示分页器   | `Boolean`                | `false`     |\n| `sortProp`    | 默认排序字段     | `String`                 | `id`        |\n| `sortOrder`   | 默认排序方式     | `ascending / descending` | `ascending` |\n\n### `ColumnSchema \u003cItem\u003e`\n\n| 属性           | 说明                     | 类型                        | 默认值                   |\n| -------------- | ------------------------ | --------------------------- | ------------------------ |\n| `mold`         | 表格列应用模板           | `String\u003cComponentName\u003e`     | `default`                |\n| `prop`         | 列名标识（字段名字）     | `String`                    | `id`                     |\n| `width`        | 列宽                     | `String / Number / Boolean` |                          |\n| `minWidth`     | 列最小宽                 | `String / Number`           |                          |\n| `fixed`        | 固定列位置               | `left / right`              |                          |\n| `label`        | 列标题                   | `String`                    | 标签                     |\n| `align`        | 列对齐方式               | `left / right/ center`      | `left`                   |\n| `isSort`       | 是否开启列头排序         | `Boolean`                   | `false`                  |\n| `headerAlign`  | 表头对齐方式             | `left / right / center`     | `center`                 |\n| `isTips`       | 超出列是否需要`tips`提示 | `Boolean`                   | `false`                  |\n| `formatDate`   | 列内容格式化 - 日期      | `String`                    | [详情](###FormatDate)   |\n| `formatNumber` | 列内容格式化 - 数字      | `String`                    | [详情](###FormatNumber) |\n| `formatLink`   | 列内容格式化 - 链接      | `String`                    | [详情](###FormatLink)   |\n\n### `Controller 操作列`\n\n| 属性     | 说明                 | 类型                                                 | 默认值            |\n| -------- | -------------------- | ---------------------------------------------------- | ----------------- |\n| `mode`   | 标识（自定义）       | `String`                                             | `default`         |\n| `type`   | 按钮主题状态（颜色） | `primary / success / warning / danger / info / text` | `info`            |\n| `icon`   | 按钮图标             | `Striing`                                            | `el-icon-s-tools` |\n| `label`  | 按钮名称             | `String`                                             | 操作              |\n| `useRow` | 是否用在表格行中使用 | `Boolean`                                            | `false`           |\n| `useAll` | 是否用在表格全局使用 | `Boolean`                                            | `false`           |\n| `attrs`  | 携带的额外信息       | `Object`                                             | `{}`              |\n\n### FormatDate\n\n```javascript\n// format date rule\n// 年 -\u003e y+\n// 月 -\u003e M+\n// 日 -\u003e d+\n// 时 -\u003e h+\n// 分 -\u003e m+\n// 秒 -\u003e s+\n// 季 -\u003e q+\n// 毫秒 -\u003e S\n\n// 原始数据：2022年9月22日10:44:22\n\n// 格式化保留年月日，并使用 \" - \" 连接\n// formatDate: \"yyyy-MM-dd\"\n// 2022-09-22\n\n// 格式化保留时分秒, 并使用 \" : \" 连接\n// formatDate: \"hh:mm:ss\"\n// 10:44:22\n```\n\n### FormatNumber\n\n```javascript\n// format number rule\n// 语法1： [方法名称].[方法参数]\n// 语法2： [方法名称]\n// 备注：所有方法名称都是 JavaScript 提供的基础方法，目前无法扩展和组合\n// 语法1 是 Number 对象提供的方法\n// 语法2 是 Math 对象提供的方法\n\n// 原始数据：value = 123.456789\n\n// 格式化保留两位小数\n// formNumber: \"toFixed.2\"\n// 123.45\n\n// 格式化向上取整\n// formNumber: \"ceil\"\n// 124\n```\n\n### FormatLink\n\n```javascript\n// format link rule\n// 语法1：$[跳转外链]?[别名]=[数据中的字段名称 / 固定数值]\n// 例子1：\"bilibili.com?name=projid\u0026key=999ookie=$%#AFAD\" 用于跳转到外部链接并携带参数\n\n// 语法2：[内部组件名称]?[别名]=[数据中的字段名称 / 固定数值]\n// 例子2：\"viewinfo?title=projname\u0026hasAge=false\"\n\n// 原始数据：\nconst rawdata = [\n    {\n        projid:1002,\n        projname:\"biz\",\n        age:54\n    }\n];\n\n// 语法1结果\n// \"bilibili.com?name=1002\u0026key=999ookie=$%#AFAD\"\n\n// 语法2结果\n// \"viewinfo?title=biz\u0026hasAge=false\"\n```\n\n## `Schema`\n\n```json5\n// 大小写敏感\n{\n    // 主键字段名称\n    \"keyname\":\"id\",\n    \n    // 表格UI结构描述, 详细属性在上面表格里\n    \"uiSchema\":{},\n    \n    // 表格列结构描述, 详细属性在上面表格里\n    \"columnSchema\":[],\n    \n    // 表格操作按钮集合, 详细属性在上面表格里\n    \"controller\":[]\n}\n```\n\n## `TODO`\n\n- [x] 文本单元格（`default`）\n- [x] 隐藏单元格\n- [x] `HTML`单元格\n- [x] `Link`单元格\n- [x] 输入框单元格\n- [x] 下拉框单元格\n- [x] 多级下拉框单元格\n- [x] 日期选择框单元格\n- [ ] 进度条单元格\n- [ ] `Tag`单元格\n- [x] 数字单元格\n- [x] 金额单元格\n- [ ] 可编辑单元格\n- [ ] 搜索框单元格\n- [ ] 格式化文本（金额）\n- [ ] 格式化文本（浮点数）\n- [ ] 格式化文本（用例）\n- [ ] 格式化文本（日期、时间）\n- [ ] 合计行\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaggot-code%2Fmaggot-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaggot-code%2Fmaggot-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaggot-code%2Fmaggot-table/lists"}