yc-ui2 0.1.3-beta8 → 0.1.4

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 CHANGED
@@ -10,6 +10,16 @@ import "yc-ui2/dist/yc-ui2.css"
10
10
  Vue.use(Ycui2)
11
11
  ```
12
12
 
13
+ # 组件
14
+ | Name | Describe |
15
+ | --------------------------------------------------------------------- | -------- |
16
+ | [YcSlideVerify](#yc-slide-verify) | 滑动验证 |
17
+ | [YcCustomerService](#yc-customer-service) [YcQuestion](#yc-question) | 小优客服 |
18
+
19
+
20
+ #### yc-slide-verify
21
+ > 滑动验证
22
+
13
23
  ***vue.config.js***
14
24
 
15
25
  ```javascript
@@ -25,16 +35,6 @@ proxy: {
25
35
  }
26
36
  ```
27
37
 
28
- # 组件
29
- | Name | Describe |
30
- | --------------------------------------------------------------------- | -------- |
31
- | [YcSlideVerify](#yc-slide-verify) | 滑动验证 |
32
- | [YcCustomerService](#yc-customer-service) [YcQuestion](#yc-question) | 小优客服 |
33
-
34
-
35
- #### yc-slide-verify
36
- > 滑动验证
37
-
38
38
  ```html
39
39
  <yc-slide-verify
40
40
  :isShow.sync="isShow"
@@ -54,6 +54,21 @@ proxy: {
54
54
  #### yc-customer-service
55
55
  > 小优客服右角展示
56
56
 
57
+ ***vue.config.js***
58
+
59
+ ```javascript
60
+ proxy: {
61
+ // 在proxy中添加以下代码
62
+ ['/customer-api']: {
63
+ target: `http://58.20.153.230:7080`,
64
+ changeOrigin: true,
65
+ pathRewrite: {
66
+ ["^/customer-api"]: "",
67
+ },
68
+ },
69
+ }
70
+ ```
71
+
57
72
  ```html
58
73
  <yc-customer-service
59
74
  :id=""
@@ -121,3 +136,16 @@ const whiteList = ['/login', '......', '/question']
121
136
  | id | `Number` | 服务id |
122
137
  | title | `String` | 服务Name |
123
138
  | commit | `String` | 描述 |
139
+ -------------
140
+
141
+ #### YcCA
142
+ > CA组件
143
+
144
+ ```html
145
+ <YcCA :region="region" @caSuccess="login" />
146
+ ```
147
+
148
+ | Param | Type | Describe |
149
+ | ------ | -------- | -------- |
150
+ | region | `Number` | CA地区类型 |
151
+ | caSuccess | `Function` | CA成功回调方法 |