diff --git a/src/assets/scripts/config.js b/src/assets/scripts/config.js index b368616..4acfd67 100644 --- a/src/assets/scripts/config.js +++ b/src/assets/scripts/config.js @@ -3,10 +3,12 @@ export default { { label: `无衬线`, value: `-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif`, + desc: `Abc`, }, { label: `衬线`, value: `Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif`, + desc: `Abc`, }, ], sizeOption: [ diff --git a/src/components/CodemirrorEditor/ResetDialog.vue b/src/components/CodemirrorEditor/EditorHeader/ResetDialog.vue similarity index 100% rename from src/components/CodemirrorEditor/ResetDialog.vue rename to src/components/CodemirrorEditor/EditorHeader/ResetDialog.vue diff --git a/src/components/CodemirrorEditor/EditorHeader/StyleOptionMenu.vue b/src/components/CodemirrorEditor/EditorHeader/StyleOptionMenu.vue new file mode 100644 index 0000000..43fc964 --- /dev/null +++ b/src/components/CodemirrorEditor/EditorHeader/StyleOptionMenu.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/components/CodemirrorEditor/EditorHeader.vue b/src/components/CodemirrorEditor/EditorHeader/index.vue similarity index 77% rename from src/components/CodemirrorEditor/EditorHeader.vue rename to src/components/CodemirrorEditor/EditorHeader/index.vue index 1ad807f..66adcef 100644 --- a/src/components/CodemirrorEditor/EditorHeader.vue +++ b/src/components/CodemirrorEditor/EditorHeader/index.vue @@ -98,101 +98,36 @@ - - - - - - {{ font.label }} - Abc - - - + - - - - - - {{ size.label }} - {{ size.desc }} - - - + - - - - - - {{ color.label }} - {{ color.desc }} - - - + - - - - - - {{ code.label }} - {{ code.desc }} - - - +