style:设备总览-刷新按钮

master
黄伟杰 1 day ago
parent cdb9107e3f
commit 0077ab331c

@ -15,8 +15,8 @@
@confirm="handleSearch" @confirm="handleSearch"
/> />
</view> </view>
<view class="icon-btn" @click="resetSearch"> <view class="icon-filter-btn" @click="resetFilters">
<uni-icons type="refresh" size="23" color="#64748b"></uni-icons> <uni-icons type="refresh" size="24" color="#7b8491"></uni-icons>
</view> </view>
</view> </view>
@ -204,9 +204,10 @@ function handleSearch() {
applyFilters(true) applyFilters(true)
} }
function resetSearch() { async function resetFilters() {
if (searchTimer) clearTimeout(searchTimer)
keyword.value = '' keyword.value = ''
applyFilters(true) await fetchDevices(true)
} }
function onScroll(e) { function onScroll(e) {
@ -329,14 +330,16 @@ function formatDateTime(value) {
box-sizing: border-box; box-sizing: border-box;
} }
.icon-btn { .icon-filter-btn {
width: 68rpx; width: 66rpx;
height: 68rpx; height: 66rpx;
border-radius: 8rpx; flex: 0 0 66rpx;
background: #ffffff;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border: 1rpx solid transparent;
background: transparent;
box-sizing: border-box;
} }
.list-scroll { .list-scroll {

Loading…
Cancel
Save