Skip to content

Commit d30905d

Browse files
committed
update swipeout and folder
1 parent 8dd69b8 commit d30905d

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/components/folder/index.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
}
1515
.folder-header__title {
1616
flex: 1;
17+
display: -webkit-box;
18+
-webkit-line-clamp: 1;
19+
-webkit-box-orient: vertical;
20+
overflow: hidden;
1721
}
1822
}
1923
.folder-content {

src/components/swipeout/index.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
min-height: 60px;
1010
background: #fff;
1111
}
12+
.swipeout-content__mask {
13+
position: absolute;
14+
top: 0;
15+
left: 0;
16+
width: 100%;
17+
height: 100%;
18+
z-index: 99;
19+
}
1220
.swipeout-action {
1321
display: flex;
1422
position: absolute;

src/components/swipeout/index.wpy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<template>
33
<view class="swipeout-container">
44
<view class="swipeout-content" @tap="tap" @touchstart="start" @touchmove="move" @touchend="end" style="transform: translateX({{left}}px);">
5+
<view class="swipeout-content__mask" style="width:{{left===0?'0':'100%'}}"></view>
56
<slot name="content"></slot>
67
</view>
78
<view class="swipeout-action swipeout-action__{{componentId}}">

0 commit comments

Comments
 (0)