c mobile
1.0.0
Мобильные элементы пользовательского интерфейса для Vue 2.0
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 ' ;Затем импортируйте файл SCSS в файл входа main.js:
import Vue from 'vue'
import Mobile from 'c-mobile'
import './index.scss'
Vue . use ( Mobile )ViewPort Добавить ViewPort-Fit = Cover для поддержки iPhoneX и других экранов специальной формы
< meta name =" viewport " content =" viewport-fit=cover " >