yc-ui2 0.1.0 → 0.1.1-beta02

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
@@ -1,24 +1,30 @@
1
- # yc-ui2
1
+ ### 使用
2
2
 
3
- ## Project setup
4
- ```
5
- npm install
6
3
  ```
4
+ // 安装
5
+ $ npm install yc-ui2
7
6
 
8
- ### Compiles and hot-reloads for development
9
- ```
10
- npm run serve
11
- ```
7
+ // main.js 导入
8
+ import Ycui2 from 'yc-ui2'
12
9
 
13
- ### Compiles and minifies for production
14
- ```
15
- npm run build
10
+ Vue.use(Ycui2)
16
11
  ```
17
12
 
18
- ### Lints and fixes files
13
+ ### 组件
14
+
15
+ > YcSlideVerify
16
+
19
17
  ```
20
- npm run lint
18
+ <yc-slide-verify
19
+ :isShow="isShow"
20
+ @success="handleLogin"
21
+ @close="isShow = false"
22
+ />
21
23
  ```
22
24
 
23
- ### Customize configuration
24
- See [Configuration Reference](https://cli.vuejs.org/config/).
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>