c mobile
1.0.0
VUE 2.0のモバイルUI要素
yarn add c-mobile
# or
npm install c-mobile --save import Vue from 'vue'
import Mobile from 'c-mobile'
import 'c-mobile/dist/index.css'
Vue . use ( Mobile )プロジェクトの下でSCSSファイルindex.scssを作成し、次のコンテンツを書きます。
// 常用颜色
$primary : #39f ;
$success : #0c6 ;
$warning : #f90 ;
$danger : #f30 ;
// 文字颜色
$text : #737373 ;
$text-light : #a6a6a6 ;
// 边框颜色
$border : #d9d9d9 ;
@import ' ~c-mobile/dist/index.scss ' ;次に、エントリファイルMain.jsにSCSSファイルをインポートします。
import Vue from 'vue'
import Mobile from 'c-mobile'
import './index.scss'
Vue . use ( Mobile )ビューポート追加ビューポートフィット=カバーiPhonexやその他の特別な形の画面をサポートする
< meta name =" viewport " content =" viewport-fit=cover " >