Commit 120573f9 by fanx

系统字体设置

1 parent 5869b7f7
......@@ -65,7 +65,7 @@ export default {
faceIdChecked: false, // 面容ID解锁状态
showSysFont: false,
sysFontText: '标准',
columns: ['较小', '标准', '较大', '超大'],
columns: [{ text: '较小', value: 98 }, { text: '标准', value: 100 }, { text: '较大', value: 110 }, { text: '超大', value: 120 }],
}
},
mounted() {
......@@ -160,18 +160,9 @@ export default {
})
},
// 切换字体大小
onConfirm(value) {
this.sysFontText = value
let size;
if (value == '较小') {
size = 95
} else if (value == '较大') {
size = 110
} else if (value == '超大') {
size = 120
} else {
size = 100
}
onConfirm(opt) {
this.sysFontText = opt.text
const size = opt.value
NativeApi.nativeTextZoom({
value: size
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!