Browse Source

统一字体列表

zq 4 days ago
parent
commit
b699d4cd01

+ 4 - 18
src/views/book/courseware/create/components/base/common/CorrectPinyin.vue

@@ -5,6 +5,8 @@
     top="20vh"
     :show-close="false"
     :close-on-click-modal="false"
+    :modal-append-to-body="true"
+    :append-to-body="true"
     @close="dialogClose"
   >
     <div ref="toolbarMenu" class="toolbar">
@@ -56,6 +58,7 @@
 import { addTone, handleToneValue } from '@/utils/common';
 import RichText from '@/components/RichText.vue';
 import _ from 'lodash';
+import { fontFamilyList } from '@/views/book/courseware/data/table.js';
 
 export default {
   name: 'CorrectPinyin',
@@ -80,24 +83,7 @@ export default {
   data() {
     return {
       numberPinyin: '',
-      fontFamilyOptions: [
-        {
-          value: '楷体',
-          label: '中文',
-        },
-        {
-          value: 'Sans-GBNPC',
-          label: '拼音',
-        },
-        {
-          value: 'robot',
-          label: '英文',
-        },
-        {
-          value: 'Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif, alabo',
-          label: '系统字体',
-        },
-      ],
+      fontFamilyOptions: fontFamilyList,
       fontSizeOptions: [
         '8pt',
         '10pt',