Skip to content

Commit eee8817

Browse files
authored
Merge branch 'master' into trista/readme
2 parents 628336b + 8cc2e03 commit eee8817

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2489
-135
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

+52-49
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

@@ -72,65 +72,69 @@ const App = () => {
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

134+
If you like what we do, please consider buy us a bubble-tea(donate)!
135+
136+
[![DonorBox](https://d1iczxrky3cnb2.cloudfront.net/button-small-blue.png)](https://donorbox.org/vant-react-dev-team?default_interval=o&amount=5)
137+
134138
Please make sure to read the[ Contributing Guide](.github/CONTRIBUTION.md) before making a pull request.
135139

136140
Or, join our discussion group on Wechat by adding me!
@@ -144,4 +148,3 @@ Modern browsers and Android 4.0+, iOS 8.0+.
144148
## Open Source License
145149

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

changelog.md

+51-9
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,67 @@
22

33
## Intro
44

5-
Vant follows Semantic Versioning 0.1.1.
5+
Vant follows Semantic Versioning 0.2.0.
66

77
**Release Schedule**
88

99
- Patch version:released weekly, including features and bug fixes.
1010
- Minor version:released every one to two months, including backwards compatible features.
1111
- Major version:including breaking changes and new features.
1212

13+
## **0**.2.2
14+
15+
-06-24-2020
16+
17+
**Bug Fixes**
18+
19+
- Popup:
20+
- fix custom size and hided scrollbar
21+
- add padding and fit-content
22+
23+
## **0**.2.1
24+
25+
-06-18-2020
26+
27+
**Bug Fixes**
28+
29+
- Popup:
30+
- Adjusted position
31+
32+
## **0**.2.0
33+
34+
-06-17-2020
35+
36+
**Feature**
37+
38+
- Added Field components [\#26](https://github.com/mxdi9i7/vant-react/pull/26)
39+
- Added Search components [\#31](https://github.com/mxdi9i7/vant-react/pull/31)
40+
- Added Rate components [\#32](https://github.com/mxdi9i7/vant-react/pull/32)
41+
- Added Popup components [\#33](https://github.com/mxdi9i7/vant-react/pull/33)
42+
- Added Cell components [\#33](https://github.com/mxdi9i7/vant-react/pull/42)
43+
- Added Built-in style
44+
- Basic docs: Popup & Field & Rate
45+
- Added changelogs
46+
47+
**Bug Fixes**
48+
49+
- Button:
50+
- Enabled icon buttons
51+
- Icon:
52+
- Added handle icon click
53+
- Adjusted icon librart sryles
54+
1355
## **0**.1.1
1456

1557
-05-25-2020
1658

1759
**Bug Fixes**
1860

1961
- Button:
20-
- enable icon buttons, need to have icon library done first
21-
- accept linear gradient
62+
- Enabled icon buttons, need to have icon library done first
63+
- Accepted linear gradient
2264
- Tag:
23-
- accept custom tag element
65+
- Accepted custom tag element
2466

2567
## **0**.1.0
2668

@@ -29,7 +71,7 @@ Vant follows Semantic Versioning 0.1.1.
2971
**Feature**
3072

3173
- Added Button components [\#4](https://github.com/mxdi9i7/vant-react/pull/4)
32-
- Added Icons components [\#6](https://github.com/mxdi9i7/vant-react/pull/6/files)
74+
- Added Icons components [\#6](https://github.com/mxdi9i7/vant-react/pull/6)
3375
- Added Navbar components [\#8](https://github.com/mxdi9i7/vant-react/pull/8)
3476
- Added Tag components [\#9](https://github.com/mxdi9i7/vant-react/pull/9)
3577
- Basic docs: Navbar & Tag & Icon
@@ -38,8 +80,8 @@ Vant follows Semantic Versioning 0.1.1.
3880
**Bug Fixes**
3981

4082
- Button:
41-
- add hairline props
42-
- accept color in rgb
83+
- Added hairline props
84+
- Accepted color in rgb
4385
- Navbar:
44-
- Fix navbar font weight
45-
- Add navbar prop -> border: boolean, default is true
86+
- Fixed navbar font weight
87+
- Added navbar prop -> border: boolean, default is true

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vant-react",
3-
"version": "0.1.2",
3+
"version": "0.2.4",
44
"description": "Lightweight Mobile UI Components built in React & Typescript, inspired by Vant: https://youzan.github.io/vant",
55
"author": "mxdi9i7",
66
"license": "MIT",

src/assets/icons/loaders/Circular/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ReactElement } from 'react';
22
import './index.scss';
33

44
interface Props {
5-
className: string;
5+
className?: string;
66
loadingSize?: string;
77
}
88

src/assets/icons/loaders/Spinner/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { ReactElement } from 'react';
33
import './index.scss';
44

55
interface Props {
6-
className: string;
6+
className?: string;
77
loadingSize?: string;
88
}
99

src/components/Button/index.stories.tsx

+14-14
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
};
99

1010
export const ButtonTypes = () => (
11-
<div className='container button'>
11+
<div className='storybook__container button'>
1212
<Button type='default'>Default Button</Button>
1313
<Button type='primary'>Primary Button</Button>
1414
<Button type='info'>Info Button</Button>
@@ -18,7 +18,7 @@ export const ButtonTypes = () => (
1818
);
1919

2020
export const PlainButtons = () => (
21-
<div className='container button'>
21+
<div className='storybook__container button'>
2222
<Button type='danger' plain>
2323
Danger Button
2424
</Button>
@@ -29,7 +29,7 @@ export const PlainButtons = () => (
2929
);
3030

3131
export const HairlineButtons = () => (
32-
<div className='container button'>
32+
<div className='storybook__container button'>
3333
<Button type='danger' hairline>
3434
Danger Button
3535
</Button>
@@ -40,7 +40,7 @@ export const HairlineButtons = () => (
4040
);
4141

4242
export const DisabledButtons = () => (
43-
<div className='container button'>
43+
<div className='storybook__container button'>
4444
<Button type='danger' disabled>
4545
Disabled Button
4646
</Button>
@@ -51,7 +51,7 @@ export const DisabledButtons = () => (
5151
);
5252

5353
export const LoadingButtons = () => (
54-
<div className='container button'>
54+
<div className='storybook__container button'>
5555
<Button type='danger' loading>
5656
Loading Default
5757
</Button>
@@ -68,7 +68,7 @@ export const LoadingButtons = () => (
6868
);
6969

7070
export const ButtonShapes = () => (
71-
<div className='container button'>
71+
<div className='storybook__container button'>
7272
<Button type='info' round>
7373
Info Button
7474
</Button>
@@ -79,7 +79,7 @@ export const ButtonShapes = () => (
7979
);
8080

8181
export const ButtonSize = () => (
82-
<div className='container button'>
82+
<div className='storybook__container button'>
8383
<Button type='info' size='large'>
8484
Info Button
8585
</Button>
@@ -93,7 +93,7 @@ export const ButtonSize = () => (
9393
);
9494

9595
export const ButtonColor = () => (
96-
<div className='container button'>
96+
<div className='storybook__container button'>
9797
<Button color='FFECB3'>Info Button</Button>
9898
<Button color='00796B' fontColor='#999'>
9999
Warning Button
@@ -105,29 +105,29 @@ export const ButtonColor = () => (
105105
);
106106

107107
export const ButtonTags = () => (
108-
<div className='container button'>
108+
<div className='storybook__container button'>
109109
<Button tag='a'>A Tag</Button>
110110
<Button tag='button'>Button Tag</Button>
111111
</div>
112112
);
113113

114114
export const ButtonNativeTypes = () => (
115-
<div className='container button'>
115+
<div className='storybook__container button'>
116116
<Button nativeType='button'>Button Type</Button>
117117
<Button nativeType='reset'>Reset Type</Button>
118118
<Button nativeType='submit'>Submit Type</Button>
119119
</div>
120120
);
121121

122122
export const BlockButtons = () => (
123-
<div className='container column button'>
123+
<div className='storybook__container column button'>
124124
<Button>Non Block Button</Button>
125125
<Button block>Block Button</Button>
126126
</div>
127127
);
128128

129129
export const IconButton = () => (
130-
<div className='container button'>
130+
<div className='storybook__container button'>
131131
<Button icon='star-o' type='primary' />
132132
<Button icon='star-o' type='info'>
133133
Custom Icon Button
@@ -139,7 +139,7 @@ export const IconButton = () => (
139139
);
140140

141141
export const ButtonURL = () => (
142-
<div className='container column button'>
142+
<div className='storybook__container column button'>
143143
<Button tag='a' url='https://github.com/mxdi9i7/vant-react'>
144144
Button with URL
145145
</Button>
@@ -153,7 +153,7 @@ export const ButtonURL = () => (
153153
);
154154

155155
export const ButtonAction = () => (
156-
<div className='container column button'>
156+
<div className='storybook__container column button'>
157157
<Button click={(e) => alert(e.target)}>Handle Click</Button>
158158
<Button touchstart={(e) => alert(e.target)}>Handle Touchstart</Button>
159159
<Button click={(e) => alert(e.target)} type='primary' disabled>

0 commit comments

Comments
 (0)