<script>
	// #ifdef APP
	import { SerialPortHelper } from "@/uni_modules/android-serialport";
	import * as db from '@/db/sqlite.js'
	// #endif
	export default {
		globalData: {
			RS485: null,
			RS232: null,
		},
		onLaunch: function() {
			// console.log('App Launch')
			// #ifdef APP
			this.globalData.RS485 = new SerialPortHelper();
			this.globalData.RS232 = new SerialPortHelper();
			db.openDb()
			// #endif
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		},
		methods: {
			
		}
	}
</script>

<style>
/* @import url("@/assets/layout.css"); */
/*每个页面公共css */
uni-page-body{
	height: 100%;
}
.status_bar {  
    height: var(--status-bar-height);  
    width: 100%;  
    background-color: transparent;  
}  
.top_view {  
    height: var(--status-bar-height);  
    width: 100%;  
    position: fixed;  
    background-color: transparent;  
    top: 0;  
    z-index: 999;  
}

.ant-flex{
	display: flex;
	justify-content: space-between;
}
.header .ant-btn{
    background: #2F3242;
    border-color: #2F3242;
    height: 46px;
    width: 128px;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    line-height: 38px;
}
.content .ant-table{
	width: 100%;
	background: transparent;
	color: #fff;
	border-top: 1px solid #fff;
}
.ant-table .ant-table-tbody > tr > td:first-child,
.ant-table .ant-table-thead > tr > th:first-child{
	border-left: 1px solid #fff;
}
.ant-table .ant-table-thead > tr > th,
.ant-table .ant-table-tbody > tr > td{
	border-right: 1px solid #fff;
	padding: 10px;
}
.ant-table .ant-table-thead > tr > th{
	text-align: center;
	background: transparent;
	color: #fff;
	border-bottom: 1px solid #fff;
}
</style>
