Vue Material
Posted lightsong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Vue Material相关的知识,希望对你有一定的参考价值。
Material Design是什么?
https://www.zhihu.com/topic/20005114/top-answers
我们挑战自我,为用户创造了崭新的视觉设计语言。与此同时,新的设计语言除了遵循经典设计定则,还汲取了最新的科技,秉承了创新的设计理念。这就是
原质化设计(Material Design)
。这份文档是动态更新的,将会随着我们对 Material Design 的探索而不断迭代、升级。
Vue Material
https://vuematerial.io/
https://vuematerial.io/getting-started/
Introduction
Vue Material is the best integration between Vue.js and Material Design specs! You can easily configure it to suit all your needs through an easy API.
The documentation is divided by Themes, Components and UI Elements. The themes area is the definitive guide on how to theme your application (or write your own themes). The Components and UI Elements parts shows live examples, along with an API Table of each component/resource.
脚手架
https://github.com/vuematerial/webpack
vue-webpack-boilerplate
A full-featured Webpack setup + VueMaterial with hot-reload, lint-on-save, unit testing & css extraction.
This is a project template for vue-cli. It is recommended to use npm 3+ for a more efficient dependency tree.
$ npm install -g vue-cli $ vue init vuematerial/webpack my-project $ cd my-project $ npm install $ npm run dev
安装遇到的问题
https://blog.csdn.net/seekertime/article/details/68944482
鉴于国内的环境,node-sass实在是太难安装了,可以直接通过淘宝的npm镜像来安装。
1.安装cnpm(https://npm.taobao.org/)
npm install -g cnpm --registry=https://registry.npm.taobao.org2.在项目文件夹下安装node-sass
cnpm install --save-dev node-sass
说明:--save-dev自动将node-sass加入到项目文件夹下的package.json中
https://github.com/sass/node-sass
Install from mirror in China
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org npm install node-sass
示例
https://github.com/fanqingsong/code-snippet/tree/master/web/materialdesign_quickstart
<template> <div class="centered-container"> <md-content class="md-elevation-3"> <div class="title"> <img src="https://vuematerial.io/assets/logo-color.png"> <div class="md-title">Vue Material</div> <div class="md-body-1">Build beautiful apps with Material Design and Vue.js</div> </div> <div class="form"> <md-field> <label>E-mail</label> <md-input v-model="login.email" autofocus></md-input> </md-field> <md-field md-has-password> <label>Password</label> <md-input v-model="login.password" type="password"></md-input> </md-field> </div> <div class="actions md-layout md-alignment-center-space-between"> <a href="/resetpassword">Reset password</a> <md-button class="md-raised md-primary" @click="auth">Log in</md-button> </div> <div class="loading-overlay" v-if="loading"> <md-progress-spinner md-mode="indeterminate" :md-stroke="2"></md-progress-spinner> </div> </md-content> <div class="background" /> </div> </template> <script> export default { name: "App", data() { return { loading: false, login: { email: "", password: "" } }; }, methods: { auth() { // your code to login user // this is only for example of loading this.loading = true; setTimeout(() => { this.loading = false; }, 5000); } } }; </script> <style lang="scss"> .centered-container { display: flex; align-items: center; justify-content: center; position: relative; height: 100vh; .title { text-align: center; margin-bottom: 30px; img { margin-bottom: 16px; max-width: 80px; } } .actions { .md-button { margin: 0; } } .form { margin-bottom: 60px; } .background { background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjEwODAiPgogIDxwYXRoIGZpbGw9IiNmM2YzZjMiIHN0cm9rZT0iI2YzZjNmMyIgc3Ryb2tlLXdpZHRoPSIxLjUxIiBkPSJNMTQ0LTQ5Nmw2MjcgMTY3IDI1OSA2eiIvPgogIDxwYXRoIGZpbGw9IiNlM2UzZTMiIHN0cm9rZT0iI2UzZTNlMyIgc3Ryb2tlLXdpZHRoPSIxLjUxIiBkPSJNNDczIDE1MjZsLTcxMCAxNDQgMTU0OS02NHoiLz4KICA8cGF0aCBmaWxsPSIjZWVlIiBzdHJva2U9IiNlZWUiIHN0cm9rZS13aWR0aD0iMS41MSIgZD0iTTEwMzAtMzIzaDU5MWwzODMtMTU5eiIvPgogIDxwYXRoIGZpbGw9IiNmMWYxZjEiIHN0cm9rZT0iI2YxZjFmMSIgc3Ryb2tlLXdpZHRoPSIxLjUxIiBkPSJNMTQ0LTQ5Nmw4ODYgMTczIDk3NC0xNTl6Ii8+CiAgPHBhdGggZmlsbD0iI2UwZTBlMCIgc3Ryb2tlPS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mlsbD0iI2YyZjJmMiIgc3Ryb2tlPSIjZjJmMmYyIiBzdHJva2Utd2lkdGg9IjEuNTEiIGQ9Ik0tNDM1IDIwN2wxOTAgNTY1IDE0OS00NzV6Ii8+CiAgPHBhdGggZmlsbD0iI2Y0ZjRmNCIgc3Ryb2tlPSIjZjRmNGY0IiBzdHJva2Utd2lkdGg9IjEuNTEiIGQ9Ik0tMzU3IDEyOGwtNzggNzkgMzM5IDkweiIvPgogIDxwYXRoIGZpbGw9IiNlZWUiIHN0cm9rZT0iI2VlZSIgc3Ryb2tlLXdpZHRoPSIxLjUxIiBkPSJNLTI0NSA3NzJsLTMwNSA0MDkgMzcxLTEzNXoiLz4KICA8cGF0aCBmaWxsPSIjZjFmMWYxIiBzdHJva2U9IiNmMWYxZjEiIHN0cm9rZS13aWR0aD0iMS41MSIgZD0iTS00MzUgMjA3bC0xMTUgOTc0IDMwNS00MDl6Ii8+CiAgPHBhdGggZmlsbD0iI2Y4ZjhmOCIgc3Ryb2tlPSIjZjhmOGY4IiBzdHJva2Utd2lkdGg9IjEuNTEiIGQ9Ik0tNTk4LTU2MWwxNjMgNzY4IDc4LTc5eiIvPgogIDxwYXRoIGZpbGw9IiNmNWY1ZjUiIHN0cm9rZT0iI2Y1ZjVmNSIgc3Ryb2tlLXdpZHRoPSIxLjUxIiBkPSJNLTU5OC01NjFsNDggMTc0MiAxMTUtOTc0eiIvPgogIDxwYXRoIGZpbGw9IiNmMmYyZjIiIHN0cm9rZT0iI2YyZjJmMiIgc3Ryb2tlLXdpZHRoPSIxLjUxIiBkPSJNLTU5OC01NjFsNDQgMTk1MyA0LTIxMXoiLz4KPC9zdmc+Cg==); position: absolute; height: 100%; width: 100%; top: 0; bottom: 0; right: 0; left: 0; z-index: 0; } .md-content { z-index: 1; padding: 40px; width: 100%; max-width: 400px; position: relative; } .loading-overlay { z-index: 10; top: 0; left: 0; right: 0; position: absolute; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; } } </style>
以上是关于Vue Material的主要内容,如果未能解决你的问题,请参考以下文章