0.0.1 • Published 3 years ago
enniot-device-info v0.0.1
目录结构
── enniot-device-info
├── basic-info.vue
├── Readme.md
├── basic-model.json
└── package.json
Props
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
schema | 规定 form 格式的 json 文件 | object | — | — |
data | 用于将后台读取的数据填入 form 组件以及默认值 | object | — | — |
Fields
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
device_model | 设备型号 | string | — | — |
firmware_version | 固件版本 | string | — | "1.0.0" |
cpu_model | CPU信息 | string | — | "Core™ i7-10510U" |
operate_system | 操作系统 | string | — | "linux" |
has_sim_card | SIM卡状态 | boolean | true/false | true |
flash_total | 总FLASH | int | — | 999526 |
flash_free | 可用FLASH | int | — | 781915 |
memory_total | 总内存 | int | — | 16754 |
memory_free | 可用内存 | int | — | 7270 |
serial_number | 序列号 | string | — | — |
mac_address | MAC地址 | string | — | — |
system_running_time | 系统启用时间 | string | — | — |
Model
用法示例
<template>
<el-row>
<el-col>
<el-card class="grid-card">
<BasicInfo :baseUrl=this.basic_url style="width: 40%" />
</el-card>
</el-col>
</el-row>
</template>
<script>
import baseUrl from '@/service/api';
import BasicInfo from 'enniot-device-info';
export default {
components: {
BasicInfo,
},
data() {
return {
basic_url: baseUrl,
};
},
};
</script>
0.0.1
3 years ago