{"id":21148780,"url":"https://github.com/2ue/vui","last_synced_at":"2025-07-09T08:30:44.136Z","repository":{"id":143889890,"uuid":"102577228","full_name":"2ue/vui","owner":"2ue","description":"一个基于VUE的简易框架。a ui framework  build with vue。","archived":false,"fork":false,"pushed_at":"2019-04-26T11:20:34.000Z","size":3067,"stargazers_count":19,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T20:23:13.235Z","etag":null,"topics":["component","css","javascript","ui","vue","vui"],"latest_commit_sha":null,"homepage":"https://2ue.github.io/vui","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/2ue.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":"2017-09-06T07:29:11.000Z","updated_at":"2025-03-24T06:51:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"b81b5328-0c2a-4d01-9967-741442920152","html_url":"https://github.com/2ue/vui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2ue/vui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2ue","download_url":"https://codeload.github.com/2ue/vui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264421778,"owners_count":23605581,"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":["component","css","javascript","ui","vue","vui"],"created_at":"2024-11-20T09:28:58.506Z","updated_at":"2025-07-09T08:30:44.130Z","avatar_url":"https://github.com/2ue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vui\n\na ui framework  build with vue for pc。\n[Demo](https://2ue.github.io/vui)\n\n# 目的\n\n主要是为深入学习vue\n\n# css变量命名规则\n## 通用规则\n\n- 所有命名都应添加前缀`vui`，以避免命名冲突\n- 以中划线（-）链接\n\n## 汉英对照\n\n- 弹窗-pop up\n- 遮罩-shade\n- 模态-modal\n- 模态框-modal dialog\n\n## box 层级\n\n- warp\n- box\n- inner(body)\n- header/content(body)/footer\n\n## layout 关系\n\n\u003e 与box结合\n\n# 进度\n\n- alert\n- loadding\n- icon\n- button\n- checkbox\n- raido\n- switch\n- datepicker[基础版已完成]\n- 多级菜单\n- 联动选择[正在开发]\n\n# 记录问题\n\n\u003e 记录开发过程中遇到的问题，避免下次踩坑\n\n## 编译字体文件路径问题\n\n编译时，由于字体路径写在了css文件中，需要额外设置一下字体文件打包的路径，才能把字体文件打包到预想位置\n\n``` javascript\n//webpack.base.conf.js\n{\n    test: /\\.(woff2?|eot|ttf|otf)(\\?.*)?$/,\n    loader: 'url-loader',\n    options: {\n        limit: 10000,\n        name: utils.assetsPath('fonts/[name].[hash:7].[ext]'),\n        //http://blog.csdn.net/qq_38652603/article/details/73835153\n        publicPath: '../'\n    }\n}\n```\n\n## 子组件监听父组件数据\n\n父组件向子组件传递的参数，为了不造成数据污染，子组件不会自动的监听父组件数据的变化，但在某些情况下可能需要实现这一功，使用`watch`或者`computed`去显式的监听。两者都能达到目的，使用`computed`意味着在子组件内不能去显式的去修改它，使用`watch`则可以随意修改\n\n## 预处理器变量全局穿透\n\n\u003e 定义一套变量，希望在任何地方都能使用\n\n在vue-loader里面添加配置规则就可以了\n\n## 如何不渲染一个HTML标签的属性\n\n在vue渲染HTML标签属性（假设渲染a属性）时，属性值为undefined或者null不会被渲染出来（包括a都不会在标签上显示），如果为空字符串就会被渲染成a=\"\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2ue%2Fvui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2ue%2Fvui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2ue%2Fvui/lists"}