Files
app-govern/pages/device/APF/report.vue

51 lines
1.3 KiB
Vue
Raw Normal View History

2023-02-07 17:59:54 +08:00
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='record'>
<div class="header">
<uni-segmented-control :current="current" :values="items" :style-type="styleType"
:active-color="activeColor" @clickItem="onClickItem" />
</div>
<uni-list :border="false">
<uni-list-item title="输入电压异常" rightText="2023-02-01 15:10:29" v-for="item in 5" />
</uni-list>
<uni-load-more status="nomore"></uni-load-more>
</view>
</view>
</Cn-page>
</template>
<script>
export default {
data () {
return {
loading: false,
current: 0,
items: ['当前告警', '历史告警'],
styleType: 'text',
activeColor: '#007aff',
}
},
methods: {
onClickItem (e) {
this.current = e.currentIndex
},
}
}
</script>
<style lang='scss'>
.record {
.header {
position: sticky;
top: 0;
left: 0;
z-index: 10;
background: $uni-theme-white;
padding: 10rpx 20rpx 20rpx;
box-shadow: 0 0 10rpx #eee;
}
}
/deep/ .uni-list-item {
background-color: $uni-theme-white !important;
}
</style>