{"id":18706339,"url":"https://github.com/woai3c/vue-form-maker","last_synced_at":"2025-05-16T01:04:11.893Z","repository":{"id":44115921,"uuid":"160602001","full_name":"woai3c/vue-form-maker","owner":"woai3c","description":"Vue 表单生成器——动态生成表单组件","archived":false,"fork":false,"pushed_at":"2024-10-29T16:08:07.000Z","size":2201,"stargazers_count":264,"open_issues_count":2,"forks_count":76,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-23T22:20:08.897Z","etag":null,"topics":[],"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/woai3c.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}},"created_at":"2018-12-06T01:39:03.000Z","updated_at":"2025-04-04T15:15:42.000Z","dependencies_parsed_at":"2025-01-05T04:06:17.731Z","dependency_job_id":"db689cec-3d60-4d7a-8c32-def099196cb3","html_url":"https://github.com/woai3c/vue-form-maker","commit_stats":{"total_commits":181,"total_committers":3,"mean_commits":"60.333333333333336","dds":"0.10497237569060769","last_synced_commit":"6c411461b92a8e599503220444a088cebeea1778"},"previous_names":["woai3c/vue-generate-form"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woai3c%2Fvue-form-maker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woai3c%2Fvue-form-maker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woai3c%2Fvue-form-maker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woai3c%2Fvue-form-maker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woai3c","download_url":"https://codeload.github.com/woai3c/vue-form-maker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"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":[],"created_at":"2024-11-07T12:13:52.230Z","updated_at":"2025-05-16T01:04:11.866Z","avatar_url":"https://github.com/woai3c.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 简介\nVue 动态生成表单组件，可以根据数据配置表单，使用的UI库是[iView](https://www.iviewui.com/)。\n\n有问题或BUG欢迎提 [issues](https://github.com/woai3c/vue-form-maker/issues)\n\n\n* [文档](https://github.com/woai3c/vue-form-maker/blob/master/doc.md)\n* [在线DEMO](https://github.com/woai3c/vue-form-maker/blob/master/demo.md)\n## 表单组件\n* Input 输入框\n* Button 按钮\n* Radio 单选框\n* Checkbox 多选框\n* Icon 图标\n* Switch 开关\n* Select 选择器\n* Slider 滑块\n* DatePicker 日期选择器\n* TimePicker 时间选择器\n* Cascader 级联选择器\n* InputNumber 数字输入框\n* Rate 评分\n* Upload 上传\n* ColorPicker 颜色选择器\n\n## 使用\n### 在单文件组件中引用\n```\nnpm i vue-form-maker\n```\n\n```\nimport VueFormMaker from 'vue-form-maker'\nimport ViewUI from 'view-design';\nimport 'view-design/dist/styles/iview.css';\n// 如需使用城市数据 可以这样引用\n// 省 市 县\nimport 'vue-form-maker/dist/cityData3Level'\n// 省 市\nimport 'vue-form-maker/dist/cityData2Level'\n// 城市数据文件定义了一个全局变量cityData 在项目里直接使用cityData即可\n\nVue.use(ViewUI)\nVue.use(VueFormMaker)\n```\n```\n\u003ctemplate\u003e\n    \u003cdiv id=\"app\"\u003e\n        \u003cVueFormMaker :options=\"options\"/\u003e\n        // 或者 \u003cvue-form-maker :options=\"options\"/\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n\n### 在HTML文件中直接引用\n使用的是dist目录中的`vue-form-maker.js`\n```\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"iview.css\"\u003e\n```\n```\n\u003cdiv id=\"app\"\u003e\n    \u003c!-- 在 HTML 中使用组件要这样使用，不能这样用 \u003cvue-form-maker :options=\"options\"/\u003e，否则后面的元素渲染不出来 --\u003e\n    \u003cvue-form-maker :options=\"options\"\u003e\u003c/vue-form-maker\u003e\n\u003c/div\u003e\n```\n```\n\u003cscript src=\"vue.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"iview.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"vue-form-maker.js\"\u003e\u003c/script\u003e\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoai3c%2Fvue-form-maker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoai3c%2Fvue-form-maker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoai3c%2Fvue-form-maker/lists"}