yc-ui2 0.1.0 → 0.1.1-beta02
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +21 -15
- package/dist/demo.html +1 -0
- package/dist/yc-ui2.common.js +2395 -0
- package/dist/yc-ui2.common.js.map +1 -0
- package/dist/yc-ui2.css +1 -0
- package/dist/yc-ui2.umd.js +2406 -0
- package/dist/yc-ui2.umd.js.map +1 -0
- package/dist/yc-ui2.umd.min.js +2 -0
- package/dist/yc-ui2.umd.min.js.map +1 -0
- package/package.json +14 -5
- package/src/App.vue +4 -4
- package/src/main.js +10 -0
- package/src/router/index.js +21 -0
- package/vue.config.js +30 -3
- package/dist/css/app.6e86a2b4.css +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/index.html +0 -1
- package/dist/js/app.43a0c17e.js +0 -2
- package/dist/js/app.43a0c17e.js.map +0 -1
- package/src/components/Button/index.vue +0 -21
- package/src/components/index.js +0 -23
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` | 关闭显示 |
|
package/dist/demo.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>yc-ui2 demo</title><script src="./yc-ui2.umd.js"></script><link rel="stylesheet" href="./yc-ui2.css"><script>console.log(yc-ui2)</script>
|