Skip to content

Commit 45c91f2

Browse files
committed
feat(swipe): 等比适配
1 parent 5565d44 commit 45c91f2

9 files changed

Lines changed: 13 additions & 11 deletions

File tree

src/packages/swipe/demos/h5/demo1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const App = () => {
99
<Button
1010
type="primary"
1111
shape="square"
12-
style={{ alignSelf: 'stretch', height: 46 }}
12+
style={{ alignSelf: 'stretch', height: '100%' }}
1313
>
1414
删除
1515
</Button>

src/packages/swipe/demos/h5/demo3.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const App = () => {
1212
<Button
1313
type="primary"
1414
shape="square"
15-
style={{ alignSelf: 'stretch', height: 46 }}
15+
style={{ alignSelf: 'stretch', height: '100%' }}
1616
>
1717
删除
1818
</Button>

src/packages/swipe/demos/h5/demo4.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const App = () => {
1111
<Button
1212
shape="square"
1313
type="danger"
14-
style={{ alignSelf: 'stretch', height: 46 }}
14+
style={{ alignSelf: 'stretch', height: '100%' }}
1515
>
1616
删除
1717
</Button>

src/packages/swipe/demos/h5/demo5.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const App = () => {
1111
<Button
1212
shape="square"
1313
type="danger"
14-
style={{ alignSelf: 'stretch', height: 46 }}
14+
style={{ alignSelf: 'stretch', height: '100%' }}
1515
>
1616
删除
1717
</Button>

src/packages/swipe/demos/h5/demo6.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const App = () => {
99
<Button
1010
shape="square"
1111
type="danger"
12-
style={{ alignSelf: 'stretch', height: 46 }}
12+
style={{ alignSelf: 'stretch', height: '100%' }}
1313
>
1414
删除
1515
</Button>

src/packages/swipe/demos/h5/demo7.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const App = () => {
1414
type="success"
1515
style={{
1616
alignSelf: 'stretch',
17-
height: 46,
17+
height: '100%',
1818
}}
1919
>
2020
选择
@@ -25,14 +25,14 @@ const App = () => {
2525
<Button
2626
shape="square"
2727
type="danger"
28-
style={{ alignSelf: 'stretch', height: 46 }}
28+
style={{ alignSelf: 'stretch', height: '100%' }}
2929
>
3030
删除
3131
</Button>
3232
<Button
3333
shape="square"
3434
type="info"
35-
style={{ alignSelf: 'stretch', height: 46 }}
35+
style={{ alignSelf: 'stretch', height: '100%' }}
3636
>
3737
收藏
3838
</Button>

src/packages/swipe/demos/h5/demo8.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const App = () => {
1919
<Button
2020
shape="square"
2121
type="success"
22-
style={{ alignSelf: 'stretch', height: 46 }}
22+
style={{ alignSelf: 'stretch', height: '100%' }}
2323
>
2424
选择
2525
</Button>
@@ -29,7 +29,7 @@ const App = () => {
2929
<Button
3030
shape="square"
3131
type="danger"
32-
style={{ alignSelf: 'stretch', height: 46 }}
32+
style={{ alignSelf: 'stretch', height: '100%' }}
3333
>
3434
删除
3535
</Button>

src/packages/swipe/demos/h5/demo9.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const App = () => {
1010
<Button
1111
shape="square"
1212
type="danger"
13-
style={{ alignSelf: 'stretch', height: 46 }}
13+
style={{ alignSelf: 'stretch', height: '100%' }}
1414
>
1515
加入购物车
1616
</Button>

src/packages/swipe/swipe.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
}
3232

3333
&-right {
34+
display: flex;
3435
//left: 100%;
36+
height: 100%;
3537
right: 0px;
3638
transform: translate(100%, 0px);
3739
}

0 commit comments

Comments
 (0)