We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于Vue的UI库可参考:Vue相关开源项目库汇总中的UI组件部分
pc端建议使用饿了么前端的 Element,后台管理界面可以参考基于Element的 vue-manage-system
移动端可参考 vux 和 mint-ui
以Element为例说明一下使用: 1.安装
//npm方式安装 npm i element-ui -S npm install babel-plugin-component -D //yarn方式安装 yarn add element-ui yarn add babel-plugin-component -D
2.配置.babelrc
{ ...... "plugins": ["transform-runtime",["component", [ { "libraryName": "element-ui", "styleLibraryName": "theme-default" } ]]], ...... }
3.按需引入
import {pagination,card} from 'element-ui' Vue.use(pagination) Vue.use(card)
移动端如果使用阿里的flexible适配方案,现有的移动端UI库大部分都不适用了,移动端的UI库默认的initial-scale=1,在高清屏上flexible会调整initial-scale=1/dpr,UI的样式被整体缩小了
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
本系列文章:
The text was updated successfully, but these errors were encountered:
用了淘宝的flexible就不能用mint-ui和vux 了吗?
Sorry, something went wrong.
@sfyr111 可以,很多组件被缩小了1/dpr,需要去写样式覆盖
No branches or pull requests
关于Vue的UI库可参考:Vue相关开源项目库汇总中的UI组件部分
pc端建议使用饿了么前端的 Element,后台管理界面可以参考基于Element的 vue-manage-system
移动端可参考 vux 和 mint-ui
以Element为例说明一下使用:
1.安装
2.配置.babelrc
3.按需引入
移动端如果使用阿里的flexible适配方案,现有的移动端UI库大部分都不适用了,移动端的UI库默认的initial-scale=1,在高清屏上flexible会调整initial-scale=1/dpr,UI的样式被整体缩小了
The text was updated successfully, but these errors were encountered: