File tree 1 file changed +17
-6
lines changed
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 3
3
OMI 版本 WeUI 是一套同微信原生视觉体验一致的基础样式库,由微信官方设计团队为微信内网页和微信小程序量身设计,令用户的使用感知更加统一。
4
4
5
5
6
- ## Installation
6
+ ## 安装
7
7
8
8
``` bash
9
9
npm i omi-weui
10
10
```
11
11
12
- ## Usage
12
+ ## 使用
13
13
14
14
``` tsx
15
- import ' @omi-weui/button'
15
+ import { WeButton } from ' omi-weui'
16
+ WeButton .define (' we-button' )
16
17
```
17
18
18
19
在各个框架中使用:
19
20
20
21
``` tsx
21
- <w-button >按钮</w-button > // omi
22
- <w-button >按钮</w-button > // vue
23
- <w-button >按钮</w-button > // html
22
+ <we-button type = " warn" >按钮</we-button > // omi
23
+ <we-button size = " mini" >按钮</we-button > // vue
24
+ <we-button type = " default" >按钮</we-button > // react
25
+ <we-button loading >按钮</we-button > // html
24
26
```
27
+ 或者直接:
28
+
29
+ ``` tsx
30
+ const btn = document .createElement (' we-button' )
31
+ btn .innerText = ' 按钮'
32
+ document .body .appendChild (btn )
33
+ ```
34
+
35
+
25
36
26
37
## License
27
38
You can’t perform that action at this time.
0 commit comments