0.2.25 • Published 2 years ago

mrray-common-components v0.2.25

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

代码仓库

安装

npm install mrray-common-components

yarn add mrray-common-components

使用

全局

import MrrayCommonComponents from 'mrray-common-components'
Vue.use(MrrayCommonComponents)

支持按需引入

import { RbCard } from 'mrray-common-components'
Vue.use(RbCard)

事项说明

1.基于Element-ui及Echarts封装的RayBase基础页面库,项目引入该基础库时,项目应首先引入Element/Echarts/moment等相关依赖,特别需要注意的是Echarts版本为4.x,请勿引入5.x及以上版本的Echarts!!!

项目中引入echarts后需将echarts挂载在Vue原型上:
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

若有高版本需求,需将库中的import echarts from 'echarts'(4.x版本)修改为:
import * as echarts from 'echarts'
或
// 按需引入
import * as echarts from 'echarts/lib/echarts'

2.打包配置文件:rollup.config.js

3.单独页面为一个文件夹,为每个文件夹配置单独的静态资源引入,例如:

工作台WorkBench

			|--- assets
|			|
|--- src ---|--- components
|			|
|			|--- pages
|			|
|			|--- workeBench.vue
|			
|
|--- index.js --- 单独注册,可按需引入
|

4.
0.2.25

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago