1 Star 0 Fork 0

@newpearl / ui

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

@newpearl/ui

安装

npm i @newpearl/ui --save

全局引用注册

import Vue from 'vue'
import NewPearlUI from '@newpearl/ui'
import '@newpearl/ui/lib/css/index.css'

Vue.use(NewPearlUI)

按需引用注册

需要安装 @newpearl/core

babel.config.js 配置

const babel = require('@newpearl/core/babel');
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
     // 支持 css 或 scss
    ...babel({
      el: 'scss',
      ui: 'scss'
    })
  ]
};

引用组件

import { XLogin } from '@newpearl/ui';
// 等价于:
// import XLogin from '@newpearl/ui/lib/x-login'
// import '@newpearl/ui/lib/x-login/style.scss'

export default {
  components: {
    XLogin
  }
}

Repository Comments ( 0 )

Sign in to post a comment

About

No description expand collapse
JavaScript and 4 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/newpearl/ui.git
git@gitee.com:newpearl/ui.git
newpearl
ui
ui
master

Search

113223 674803ea 1850385 170725 2838fb2a 1850385