{b} : {c}%', + }, series: [ { + name: 'Pressure', type: 'gauge', - axisLine: { - lineStyle: { - width: 15, - color: [ - [0.3, '#67e0e3'], - [0.7, '#37a2da'], - [1, '#fd666d'], - ], - }, - }, - pointer: { // 指针 - itemStyle: { - color: 'auto', - }, + max: 6, + progress: { + show: true, + width: 5, }, - axisTick: { // 中间刻度值 - distance: -15, - length: 8, // 刻度线长度 - lineStyle: { - color: '#fff', - width: 1, // 刻度线宽度 - }, - }, - splitLine: { - distance: -30, // 与圆盘之间的距离 - length: 30, + axisLine: { lineStyle: { - color: '#fff', - width: 4, + width: 5, }, }, - axisLabel: { - color: 'inherit', - distance: 25, - fontSize: 14, - }, detail: { valueAnimation: true, - formatter: '{value} KPa', - color: 'inherit', - fontSize: 14, + formatter: '{value}Kp', }, data: [ { diff --git a/src/components/setting/AddUser.vue b/src/components/setting/AddUser.vue index d2051b2..874209c 100644 --- a/src/components/setting/AddUser.vue +++ b/src/components/setting/AddUser.vue @@ -2,33 +2,39 @@ import type { FormInstance } from 'element-plus' import { useSettingStore } from '@/stores/settingStore' import SoftKeyboard from 'components/common/SoftKeyboard/index.vue' -import { onMounted, ref, watch } from 'vue' +import { onMounted, ref, watchEffect } from 'vue' const settingStore = useSettingStore() const visible = ref(settingStore.addUserVisible) +const modalType = ref(settingStore.userModalState) const inputValue = ref
{b} : {c}%', + }, series: [ { + name: 'Pressure', type: 'gauge', - axisLine: { - lineStyle: { - width: 15, - color: [ - [0.3, '#67e0e3'], - [0.7, '#37a2da'], - [1, '#fd666d'], - ], - }, - }, - pointer: { // 指针 - itemStyle: { - color: 'auto', - }, + max: 6, + progress: { + show: true, + width: 5, }, - axisTick: { // 中间刻度值 - distance: -15, - length: 8, // 刻度线长度 - lineStyle: { - color: '#fff', - width: 1, // 刻度线宽度 - }, - }, - splitLine: { - distance: -30, // 与圆盘之间的距离 - length: 30, + axisLine: { lineStyle: { - color: '#fff', - width: 4, + width: 5, }, }, - axisLabel: { - color: 'inherit', - distance: 25, - fontSize: 14, - }, detail: { valueAnimation: true, - formatter: '{value} KPa', - color: 'inherit', - fontSize: 14, + formatter: '{value}Kp', }, data: [ { diff --git a/src/components/setting/AddUser.vue b/src/components/setting/AddUser.vue index d2051b2..874209c 100644 --- a/src/components/setting/AddUser.vue +++ b/src/components/setting/AddUser.vue @@ -2,33 +2,39 @@ import type { FormInstance } from 'element-plus' import { useSettingStore } from '@/stores/settingStore' import SoftKeyboard from 'components/common/SoftKeyboard/index.vue' -import { onMounted, ref, watch } from 'vue' +import { onMounted, ref, watchEffect } from 'vue' const settingStore = useSettingStore() const visible = ref(settingStore.addUserVisible) +const modalType = ref(settingStore.userModalState) const inputValue = ref