🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@newpearl/ui

Package Overview
Dependencies
Maintainers
2
Versions
435
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newpearl/ui

PC端业务组件库

latest
npmnpm
Version
0.5.58
Version published
Maintainers
2
Created
Source

@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
  }
}

FAQs

Package last updated on 21 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts