style:设备总览-刷新按钮

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

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

Loading…
Cancel
Save