yc-ui2 0.1.0-beta17 → 0.1.0-beta18
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +21 -15
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,24 +1,30 @@
|
|
1
|
-
|
1
|
+
### 使用
|
2
2
|
|
3
|
-
## Project setup
|
4
|
-
```
|
5
|
-
npm install
|
6
3
|
```
|
4
|
+
// 安装
|
5
|
+
$ npm install yc-ui2
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
npm run serve
|
11
|
-
```
|
7
|
+
// main.js 导入
|
8
|
+
import Ycui2 from 'yc-ui2'
|
12
9
|
|
13
|
-
|
14
|
-
```
|
15
|
-
npm run build
|
10
|
+
Vue.use(Ycui2)
|
16
11
|
```
|
17
12
|
|
18
|
-
###
|
13
|
+
### 组件
|
14
|
+
|
15
|
+
> YcSlideVerify
|
16
|
+
|
19
17
|
```
|
20
|
-
|
18
|
+
<yc-slide-verify
|
19
|
+
:isShow="isShow"
|
20
|
+
@success="handleLogin"
|
21
|
+
@close="isShow = false"
|
22
|
+
/>
|
21
23
|
```
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
+
| Param | Type | Describe |
|
26
|
+
| ------- | ---------- | -------- |
|
27
|
+
| title | `String` | 滑动验证 |
|
28
|
+
| isShow | `Boolean` | 是否显示 |
|
29
|
+
| success | `Function` | 成功回调 |
|
30
|
+
| close | `Function` | 关闭显示 |
|