style: update font size list

更新字号列表
This commit is contained in:
yanglbme 2019-11-07 14:06:59 +08:00
parent aee75fdd60
commit d06fbad9c2
4 changed files with 33 additions and 33 deletions

View File

@ -22,9 +22,9 @@ let app = new Vue({
} }
], ],
sizeOption: [ sizeOption: [
{ label: '13px', value: '13px', desc: '稍小' },
{ label: '14px', value: '14px', desc: '推荐' }, { label: '14px', value: '14px', desc: '推荐' },
{ label: '15px', value: '15px', desc: '正常' }, { label: '15px', value: '15px', desc: '稍大' },
{ label: '16px', value: '16px', desc: '稍大' },
], ],
colorOption: [ colorOption: [
{ label: '橘红', value: 'rgba(255, 95, 46, 0.9)', hex: '#FF5F2E' }, { label: '橘红', value: 'rgba(255, 95, 46, 0.9)', hex: '#FF5F2E' },
@ -35,7 +35,7 @@ let app = new Vue({
}; };
d.currentEditorTheme = d.editorThemes[0].value; d.currentEditorTheme = d.editorThemes[0].value;
d.currentFont = d.builtinFonts[0].value; d.currentFont = d.builtinFonts[0].value;
d.currentSize = d.sizeOption[0].value; d.currentSize = d.sizeOption[1].value;
d.currentColor = d.colorOption[1].value; d.currentColor = d.colorOption[1].value;
return d; return d;
}, },

View File

@ -1,5 +1,4 @@
// 左右栏同步滚动 // 左右栏同步滚动
$(document).ready(function () { $(document).ready(function () {
let timeout; let timeout;

View File

@ -1,3 +1,4 @@
// 设置自定义颜色
function setColorWithTemplate(template) { function setColorWithTemplate(template) {
return function(color) { return function(color) {
let custom_theme = JSON.parse(JSON.stringify(template)); let custom_theme = JSON.parse(JSON.stringify(template));