Skip to content

Commit 16337b6

Browse files
committed
added checkbox to export
1 parent 4e35e93 commit 16337b6

File tree

3 files changed

+76
-74
lines changed

3 files changed

+76
-74
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"react/jsx-handler-names": 0,
3939
"react/jsx-fragments": 0,
4040
"react/no-unused-prop-types": 0,
41-
"import/export": 0,
41+
"import/export": 2,
4242
"no-extra-boolean-cast": 0
4343
}
4444
}

README.md

+71-72
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Lightweight Mobile UI Components built on Typescript and React in under 2kb!
1010

1111
## **Features**
1212

13-
* Support Typescript
14-
* 60+ Reusable components
15-
* 100% Storybook coverage: [https://vant.bctc.io](https://vant.bctc.io)
16-
* Extensive documentation and demos
13+
- Support Typescript
14+
- 60+ Reusable components
15+
- 100% Storybook coverage: [https://vant.bctc.io](https://vant.bctc.io)
16+
- Extensive documentation and demos
1717

1818
## Install
1919

@@ -43,91 +43,91 @@ const App = () => {
4343

4444
### Basic Components
4545

46-
* [x] Button
47-
* [x] Cell
48-
* [x] Icon
49-
* [x] Image
50-
* [ ] Layout
51-
* [x] Popup
52-
* [x] Built-in style
46+
- [x] Button
47+
- [x] Cell
48+
- [x] Icon
49+
- [x] Image
50+
- [ ] Layout
51+
- [x] Popup
52+
- [x] Built-in style
5353

5454
### Form Components
5555

56-
* [ ] Calendar
57-
* [ ] Checkbox
58-
* [ ] DatetimePicker
59-
* [x] Field
60-
* [ ] Form
61-
* [ ] NumberKeyboard
62-
* [ ] PasswordInput
63-
* [ ] Picker
64-
* [ ] Radio
65-
* [x] Rate
66-
* [x] Search
67-
* [x] Slider
68-
* [ ] Stepper
69-
* [ ] Switch
70-
* [ ] SwitchCell
71-
* [ ] Uploader
56+
- [ ] Calendar
57+
- [x] Checkbox
58+
- [ ] DatetimePicker
59+
- [x] Field
60+
- [ ] Form
61+
- [ ] NumberKeyboard
62+
- [ ] PasswordInput
63+
- [ ] Picker
64+
- [ ] Radio
65+
- [x] Rate
66+
- [x] Search
67+
- [x] Slider
68+
- [ ] Stepper
69+
- [ ] Switch
70+
- [ ] SwitchCell
71+
- [ ] Uploader
7272

7373
### Action Components
7474

75-
* [ ] ActionSheet
76-
* [ ] Dialog
77-
* [ ] DropdownMenu
78-
* [ ] Loading
79-
* [ ] Notify
80-
* [ ] Overlay
81-
* [ ] PullRefresh
82-
* [ ] ShareSheet
83-
* [ ] SwipeCell
84-
* [ ] Toast
75+
- [ ] ActionSheet
76+
- [ ] Dialog
77+
- [ ] DropdownMenu
78+
- [ ] Loading
79+
- [ ] Notify
80+
- [ ] Overlay
81+
- [ ] PullRefresh
82+
- [ ] ShareSheet
83+
- [ ] SwipeCell
84+
- [ ] Toast
8585

8686
### Display Components
8787

88-
* [ ] Circle
89-
* [ ] Collapse
90-
* [ ] CountDown
91-
* [ ] Divider
92-
* [ ] Empty
93-
* [ ] ImagePreview
94-
* [ ] Lazyload
95-
* [ ] List
96-
* [ ] NoticeBar
97-
* [ ] Panel
98-
* [ ] Progress
99-
* [ ] Skeleton
100-
* [ ] Steps
101-
* [ ] Sticky
102-
* [ ] Swipe
103-
* [x] Tag
88+
- [ ] Circle
89+
- [ ] Collapse
90+
- [ ] CountDown
91+
- [ ] Divider
92+
- [ ] Empty
93+
- [ ] ImagePreview
94+
- [ ] Lazyload
95+
- [ ] List
96+
- [ ] NoticeBar
97+
- [ ] Panel
98+
- [ ] Progress
99+
- [ ] Skeleton
100+
- [ ] Steps
101+
- [ ] Sticky
102+
- [ ] Swipe
103+
- [x] Tag
104104

105105
### Navigation Components
106106

107-
* [ ] Grid
108-
* [ ] IndexBar
109-
* [x] NavBar
110-
* [ ] Pagination
111-
* [ ] Sidebar
112-
* [ ] Tab
113-
* [ ] Tabbar
114-
* [ ] TreeSelect
107+
- [ ] Grid
108+
- [ ] IndexBar
109+
- [x] NavBar
110+
- [ ] Pagination
111+
- [ ] Sidebar
112+
- [ ] Tab
113+
- [ ] Tabbar
114+
- [ ] TreeSelect
115115

116116
### Business Components
117117

118-
* [ ] AddressEdit
119-
* [ ] AddressList
120-
* [ ] Area
121-
* [ ] Card
122-
* [ ] Contact
123-
* [ ] Coupon
124-
* [ ] GoodsAction
125-
* [ ] SubmitBar
126-
* [ ] Sku
118+
- [ ] AddressEdit
119+
- [ ] AddressList
120+
- [ ] Area
121+
- [ ] Card
122+
- [ ] Contact
123+
- [ ] Coupon
124+
- [ ] GoodsAction
125+
- [ ] SubmitBar
126+
- [ ] Sku
127127

128128
### Deprecated
129129

130-
* [ ] SwitchCell
130+
- [ ] SwitchCell
131131

132132
## Contribution
133133

@@ -148,4 +148,3 @@ Modern browsers and Android 4.0+, iOS 8.0+.
148148
## Open Source License
149149

150150
This is an Open Source Software operating under the [MIT](https://github.com/mxdi9i7/vant-react/blob/master/LICENSE) License.
151-

src/index.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Cell from './components/Cell';
99
import Rate from './components/Rate';
1010
import Image from './components/Image';
1111
import Slider from './components/Slider';
12+
import Checkbox from './components/Checkbox';
1213

1314
export { default as Button } from './components/Button';
1415
export { default as Icon } from './components/Icons';
@@ -21,6 +22,7 @@ export { default as Cell } from './components/Cell';
2122
export { default as Rate } from './components/Rate';
2223
export { default as Image } from './components/Image';
2324
export { default as Slider } from './components/Slider';
25+
export { default as Checkbox } from './components/Checkbox';
2426

2527
const Vant = {
2628
Button,
@@ -33,7 +35,8 @@ const Vant = {
3335
Cell,
3436
Rate,
3537
Image,
36-
Slider
38+
Slider,
39+
Checkbox
3740
};
3841

3942
export default Vant;

0 commit comments

Comments
 (0)