{"id":13699841,"url":"https://github.com/aweiu/element-ui-verify","last_synced_at":"2025-05-15T05:05:38.858Z","repository":{"id":57222227,"uuid":"114998782","full_name":"aweiu/element-ui-verify","owner":"aweiu","description":"如果你受够了饿了么ElementUI原生的校验方式，那就来试试它吧！一款更懂你的校验插件","archived":false,"fork":false,"pushed_at":"2024-10-24T20:31:23.000Z","size":66,"stargazers_count":477,"open_issues_count":2,"forks_count":54,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-14T08:11:54.732Z","etag":null,"topics":["element","element-ui","element-ui-validator","element-ui-verification","elementui","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aweiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-12-21T11:31:35.000Z","updated_at":"2025-03-19T09:16:17.000Z","dependencies_parsed_at":"2024-11-24T06:03:06.160Z","dependency_job_id":null,"html_url":"https://github.com/aweiu/element-ui-verify","commit_stats":{"total_commits":69,"total_committers":5,"mean_commits":13.8,"dds":"0.49275362318840576","last_synced_commit":"42375c273f8fffe7eff7e398ea9f19895a0d724e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aweiu%2Felement-ui-verify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aweiu%2Felement-ui-verify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aweiu%2Felement-ui-verify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aweiu%2Felement-ui-verify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aweiu","download_url":"https://codeload.github.com/aweiu/element-ui-verify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276446,"owners_count":22043866,"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","element-ui","element-ui-validator","element-ui-verification","elementui","vue"],"created_at":"2024-08-02T20:00:44.449Z","updated_at":"2025-05-15T05:05:38.833Z","avatar_url":"https://github.com/aweiu.png","language":"TypeScript","funding_links":[],"categories":["表单","TypeScript","Components"],"sub_categories":[],"readme":"# element-ui-verify\n\n如果你受够了饿了么 ElementUI 原生的校验方式，那就来试试它吧！\n\n## 前言\n\n饿了么 ElementUI 虽好，但表单校验的体验不够理想\n\n如果说产品开发要讲究用户体验，那插件开发也要讲究开发体验，而好的开发体验，要靠好的 api 设计来保障\n\n本人专注校验插件开发 30 年，有祖传的校验插件 api 设计（玩笑）。主要是参考了之前写的[vue-verify-pop](https://github.com/aweiu/vue-verify-pop)的 api，并加以完善，取其精华，去其糟粕，揉和日月之精华。。。\n\n本插件只是对 ElementUI 原本的校验方式做了一层封装，核心的校验器仍然是[async-validator](https://github.com/yiminghe/async-validator)，非侵入式，完全不会影响你继续使用 ElementUI 的原生校验\n\n## 示例\n\n```html\n\u003ctemplate\u003e\n  \u003cel-form label-width=\"100px\" :model=\"model\"\u003e\n    \u003cel-form-item label=\"年龄\" prop=\"age\" verify int :gt=\"0\"\u003e\n      \u003cel-input v-model=\"model.age\"\u003e\u003c/el-input\u003e\n    \u003c/el-form-item\u003e\n  \u003c/el-form\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n  export default {\n    data() {\n      return {\n        model: {\n          age: \"\"\n        }\n      };\n    }\n  };\n\u003c/script\u003e\n```\n\nok，你已经完成了一个内容为大于 0 的整数校验！([欢迎对比官方版的相似例子](http://element-cn.eleme.io/#/zh-CN/component/form#shu-zi-lei-xing-yan-zheng))\n\n## 文档\n\nhttps://aweiu.com/documents/element-ui-verify/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweiu%2Felement-ui-verify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faweiu%2Felement-ui-verify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweiu%2Felement-ui-verify/lists"}