{"id":20414466,"url":"https://github.com/x-extends/vxe-table-plugin-validator","last_synced_at":"2026-01-07T03:07:35.645Z","repository":{"id":182980450,"uuid":"669436463","full_name":"x-extends/vxe-table-plugin-validator","owner":"x-extends","description":"基于 vxe-table 的表格插件，提供一些常用的校验","archived":false,"fork":false,"pushed_at":"2025-03-13T07:47:35.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T18:52:09.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/x-extends.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-22T09:17:36.000Z","updated_at":"2024-12-03T13:28:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"0efe3f96-8b5a-4e73-b688-02d4027f1f26","html_url":"https://github.com/x-extends/vxe-table-plugin-validator","commit_stats":null,"previous_names":["x-extends/vxe-table-plugin-validator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x-extends/vxe-table-plugin-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-extends","download_url":"https://codeload.github.com/x-extends/vxe-table-plugin-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28231779,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-15T06:10:12.515Z","updated_at":"2026-01-07T03:07:35.621Z","avatar_url":"https://github.com/x-extends.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vxe-table-plugin-validator\n\n[![gitee star](https://gitee.com/x-extends/vxe-table-plugin-validator/badge/star.svg?theme=dark)](https://gitee.com/x-extends/vxe-table-plugin-validator/stargazers)\n[![npm version](https://img.shields.io/npm/v/vxe-table-plugin-validator.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table-plugin-validator)\n[![npm downloads](https://img.shields.io/npm/dm/vxe-table-plugin-validator.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-table-plugin-validator)\n[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)\n\n基于 [vxe-table](https://github.com/x-extends/vxe-table) 的表格插件，提供一些常用的校验\n\n## Compatibility\n\n依赖 vxe-table v4 版本  \n\n## Installing\n\n```shell\nnpm install vxe-table@next vxe-table-plugin-validator@next\n```\n\n```javascript\n// ...\nimport VXETable from 'vxe-table'\nimport VXETablePluginValidator from 'vxe-table-plugin-validator'\n// ...\n\nVXETable.use(VXETablePluginValidator)\n```\n\n## API\n\n### Validator codes\n\n| code 编码 | describe 描述 | params 参数 |\n|------|------|------|\n| MOBILE_NUMBER | 手机号13位 | — |\n| EMAIL_ADDRESS  | 邮箱地址 | — |\n| IDENTITY_CARD  | 身份证号码 | — |\n| IP_ADDRESS  | IP地址 | — |\n| URL  | URL地址 | — |\n| PLATE_NUMBER  | 车牌号 | — |\n\n## Demo\n\n```html\n\u003cvxe-table\n  :data=\"tableData\"\n  :edit-config=\"{trigger: 'click', mode: 'cell'}\"\n  :edit-rules=\"editRules\"\u003e\n  \u003cvxe-column type=\"seq\" width=\"60\"\u003e\u003c/vxe-column\u003e\n  \u003cvxe-column field=\"name\" title=\"Name\" :edit-render=\"{name: 'input'}\"\u003e\u003c/vxe-column\u003e\n  \u003cvxe-column field=\"mobile\" title=\"Mobile\" :edit-render=\"{name: 'input'}\"\u003e\u003c/vxe-column\u003e\n  \u003cvxe-column field=\"email\" title=\"Email\" :edit-render=\"{name: 'input'}\"\u003e\u003c/vxe-column\u003e\n\u003c/vxe-table\u003e\n```\n\n```javascript\nexport default {\n  data () {\n    return {\n      tableData: [\n        { id: 100,  name: 'test1', mobile: '', email: '' },\n        { id: 101,  name: 'test2', mobile: '', email: '' },\n        { id: 102,  name: 'test3', mobile: '', email: '' }\n      ],\n      editRules: {\n        mobile: [\n          { required: true, validator: 'MOBILE_NUMBER' }\n        ],\n        email: [\n          { required: true, validator: 'EMAIL_ADDRESS' }\n        ]\n      }\n    }\n  }\n}\n```\n\n## License\n\nMIT License, 2019-present, Xu Liangzhan","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-extends%2Fvxe-table-plugin-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-extends%2Fvxe-table-plugin-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-extends%2Fvxe-table-plugin-validator/lists"}