feidou-oa 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -9
- package/dist/feidou-oa.css +1 -1
- package/dist/feidou-oa.es.js +5929 -5848
- package/dist/feidou-oa.umd.js +46 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# feidou-oa
|
|
2
2
|
|
|
3
3
|
这是一个基于 Vue 2 和 Element UI 的组件库,提供了常用的业务组件。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install feidou-oa
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## 使用
|
|
@@ -14,11 +14,10 @@ npm install @cpq1108/my-vue-components-lib
|
|
|
14
14
|
|
|
15
15
|
```javascript
|
|
16
16
|
import Vue from 'vue';
|
|
17
|
-
import
|
|
18
|
-
import '
|
|
19
|
-
import 'my-vue-components-lib/dist/style.css'; // 引入组件库样式
|
|
17
|
+
import { MyComponent } from 'feidou-oa';
|
|
18
|
+
import 'feidou-oa/dist/feidou-oa.css'; // 引入组件库样式
|
|
20
19
|
|
|
21
|
-
Vue.use(
|
|
20
|
+
Vue.use(MyComponent);
|
|
22
21
|
```
|
|
23
22
|
|
|
24
23
|
### 按需引入
|
|
@@ -26,9 +25,8 @@ Vue.use(MyComponentsLib);
|
|
|
26
25
|
如果您只需要使用部分组件,可以按需引入:
|
|
27
26
|
|
|
28
27
|
```javascript
|
|
29
|
-
import { MyComponent } from '
|
|
30
|
-
import '
|
|
31
|
-
import 'my-vue-components-lib/dist/style.css'; // 引入组件库样式
|
|
28
|
+
import { MyComponent } from 'feidou-oa';
|
|
29
|
+
import 'feidou-oa/dist/feidou-oa.css'; // 引入组件库样式
|
|
32
30
|
|
|
33
31
|
Vue.component(MyComponent.name, MyComponent);
|
|
34
32
|
```
|