组件用.vue还是.js_Vue.js的材料组件集成

组件用.vue还是.js

Vue的材料组件 (Material Components for Vue)

vue-mdc-adapter is an integration of Material Components and Vue.js which follows the best practices recommended by Google: Using Foundations and Adapters.

vue-mdc-adapter是Material Components和Vue.js的集成,遵循Google推荐的最佳实践:使用基础和适配器。

This project aims to find the right balance between ease of use and customization while sticking to the Vue Spirit (approachable, versatile, and performant)

该项目旨在在坚持使用Vue精神(可接近,多功能和高性能)的同时,在易用性和自定义之间找到适当的平衡。

项目状态 (Project Status)

This project is under active development. The focus is on known issues, validation, and keeping up with MDC updates. Do not hesitate to open an issue on GitHub, contact us on Gitter, or follow us on Twitter @vuemdc

该项目正在积极开发中。 重点是已知问题,验证以及与MDC更新保持同步。 不要犹豫在GitHub上发布问题,在Gitter上与我们联系或在Twitter @vuemdc上关注我们

快速开始 (Quick Start)

CDN (CDN)
<head>
  <!-- import reset material icons, fonts and vue-mdc-adapter stylesheets -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" type="text/css">

  <!-- import vue and then vue-mdc-adapter -->
  <script src="https://unpkg.com/vue"></script>
  <script src="https://unpkg.com/vue-mdc-adapter"></script>
</head>
<body>
  <!-- vue mdc markup -->
<body>
Vue CLI (Vue CLI)
简单 (Simple)
npm install -g vue-cli
vue init stasson/vue-mdc-adapter-simple my-project
Webpack (Webpack)
npm install -g vue-cli
vue init stasson/vue-mdc-adapter-webpack my-project
cd my-project
npm install
npm run dev

翻译自: https://vuejsexamples.com/material-components-integration-for-vue-js/

组件用.vue还是.js

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值