1.0.85 • Published 6 months ago

@be-ui/pc v1.0.85

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

npm.io

一套基于ElementUI & Vue2做技术和组件封装,提供PC通用项目模板能力,提供一致的UI规范组件,更贴近业务落地场景,减少开发工作量

Requirements

  • vue@2.6.14
  • webpack@^5.0
  • node@^11(development)

Docs

homePage

Quick Start

npm i @be-ui/pc --save // or yarn add -D @be-ui/pc
npm install // or yarn

be-ui支持全局引入与按需引入两种使用方式,以下分别介绍:

全局引入

在你的vue工程项目的入口文件中进行引用插件并引入be-ui插件样式包即可。

// to main.js
import Vue from 'vue'
import BeUI from "@be-ui/pc";
import "@be-ui/pc/lib/lib-style/main.css";

Vue.use(BeUI)

按需引入

按需引入需要借助babel-plugin-component插件实现,首先需要先执行npm install babel-plugin-component,再在项目根目录下的babel.config.js文件中进行如下配置:

// 旧
module.exports = {
  plugins: [
    [
      'component',
      {
        libraryName: 'bgyfw-be-ui',
        styleLibraryName: 'lib-style'
      },
      'bgyfw-be-ui'
    ]
  ],
}

// 新
module.exports = {
  plugins: [
    [
      'component',
      {
        libraryName: '@be-ui/pc',
        styleLibraryName: 'lib-style'
      },
      '@be-ui/pc'
    ]
  ],
}

即可在项目中进行使用,形如:

<template>
  <div class="home">
    <be-button type="primary">
      点我打开
    </be-button>
  </div>
</template>
<script>
import {  BeButton } from '@be-ui/pc'
export default {
  components: {
    BeButton
  }
</script>

BeUI is Inspired or Powered By:

License

ISC

1.0.80

7 months ago

1.0.84

6 months ago

1.0.83

7 months ago

1.0.82

7 months ago

1.0.81

7 months ago

1.0.85

6 months ago

1.0.79

7 months ago

1.0.78

8 months ago

1.0.77

8 months ago

1.0.76

8 months ago

1.0.75

8 months ago

1.0.74

8 months ago

1.0.73

8 months ago

1.0.72

8 months ago

1.0.71

10 months ago

1.0.70

10 months ago

1.0.69

10 months ago

1.0.68

10 months ago

1.0.67

10 months ago

1.0.66

10 months ago

1.0.65

11 months ago

1.0.64

11 months ago

1.0.63

1 year ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.40

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.29

2 years ago

1.0.30

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.20

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago