mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
style: update font size list
更新字号列表
This commit is contained in:
parent
aee75fdd60
commit
d06fbad9c2
@ -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;
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// 左右栏同步滚动
|
// 左右栏同步滚动
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
let timeout;
|
let timeout;
|
||||||
|
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user