chore: update default font #360
This commit is contained in:
@@ -16,7 +16,7 @@ new Editor(container, IEditorData | IElement[], {
|
|||||||
interface IEditorOption {
|
interface IEditorOption {
|
||||||
mode?: EditorMode // Editor mode: Edit, Clean (Visual aids are not displayed, For example: page break), ReadOnly, Form (Only editable within the control), Print (Visual aids are not displayed, Unwritten content control). default: Edit
|
mode?: EditorMode // Editor mode: Edit, Clean (Visual aids are not displayed, For example: page break), ReadOnly, Form (Only editable within the control), Print (Visual aids are not displayed, Unwritten content control). default: Edit
|
||||||
defaultType?: string // Default element type. default: TEXT
|
defaultType?: string // Default element type. default: TEXT
|
||||||
defaultFont?: string // Default font. default: Yahei
|
defaultFont?: string // Default font. default: Microsoft YaHei
|
||||||
defaultSize?: number // Default font size. default: 16
|
defaultSize?: number // Default font size. default: 16
|
||||||
minSize?: number // Min font size。default: 5
|
minSize?: number // Min font size。default: 5
|
||||||
maxSize?: number // Max font size。default: 72
|
maxSize?: number // Max font size。default: 72
|
||||||
@@ -96,7 +96,7 @@ interface IFooter {
|
|||||||
interface IPageNumber {
|
interface IPageNumber {
|
||||||
bottom?: number // The size from the bottom of the page.default: 60
|
bottom?: number // The size from the bottom of the page.default: 60
|
||||||
size?: number // font size.default: 12
|
size?: number // font size.default: 12
|
||||||
font?: string // font.default: Yahei
|
font?: string // font.default: Microsoft YaHei
|
||||||
color?: string // font color.default: #000000
|
color?: string // font color.default: #000000
|
||||||
rowFlex?: RowFlex // Line alignment.default: CENTER
|
rowFlex?: RowFlex // Line alignment.default: CENTER
|
||||||
format?: string // Page number format.default: {pageNo}。example:{pageNo}/{pageCount}
|
format?: string // Page number format.default: {pageNo}。example:{pageNo}/{pageCount}
|
||||||
@@ -115,7 +115,7 @@ interface IWatermark {
|
|||||||
color?: string // color.default: #AEB5C0
|
color?: string // color.default: #AEB5C0
|
||||||
opacity?: number // transparency.default: 0.3
|
opacity?: number // transparency.default: 0.3
|
||||||
size?: number // font size.default: 200
|
size?: number // font size.default: 200
|
||||||
font?: string // font.default: Yahei
|
font?: string // font.default: Microsoft YaHei
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -127,6 +127,6 @@ interface IPlaceholder {
|
|||||||
color?: string // color.default: #DCDFE6
|
color?: string // color.default: #DCDFE6
|
||||||
opacity?: number // transparency.default: 1
|
opacity?: number // transparency.default: 1
|
||||||
size?: number // font size.default: 16
|
size?: number // font size.default: 16
|
||||||
font?: string // font.default: Yahei
|
font?: string // font.default: Microsoft YaHei
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ new Editor(container, IEditorData | IElement[], {
|
|||||||
interface IEditorOption {
|
interface IEditorOption {
|
||||||
mode?: EditorMode // 编辑器模式:编辑、清洁(不显示视觉辅助元素。如:分页符)、只读、表单(仅控件内可编辑)、打印(不显示辅助元素、未书写控件及前后括号)。默认:编辑
|
mode?: EditorMode // 编辑器模式:编辑、清洁(不显示视觉辅助元素。如:分页符)、只读、表单(仅控件内可编辑)、打印(不显示辅助元素、未书写控件及前后括号)。默认:编辑
|
||||||
defaultType?: string // 默认元素类型。默认:TEXT
|
defaultType?: string // 默认元素类型。默认:TEXT
|
||||||
defaultFont?: string // 默认字体。默认:Yahei
|
defaultFont?: string // 默认字体。默认:Microsoft YaHei
|
||||||
defaultSize?: number // 默认字号。默认:16
|
defaultSize?: number // 默认字号。默认:16
|
||||||
minSize?: number // 最小字号。默认:5
|
minSize?: number // 最小字号。默认:5
|
||||||
maxSize?: number // 最大字号。默认:72
|
maxSize?: number // 最大字号。默认:72
|
||||||
@@ -96,7 +96,7 @@ interface IFooter {
|
|||||||
interface IPageNumber {
|
interface IPageNumber {
|
||||||
bottom?: number // 距离页面底部大小。默认:60
|
bottom?: number // 距离页面底部大小。默认:60
|
||||||
size?: number // 字体大小。默认:12
|
size?: number // 字体大小。默认:12
|
||||||
font?: string // 字体。默认:Yahei
|
font?: string // 字体。默认:Microsoft YaHei
|
||||||
color?: string // 字体颜色。默认:#000000
|
color?: string // 字体颜色。默认:#000000
|
||||||
rowFlex?: RowFlex // 行对齐方式。默认:CENTER
|
rowFlex?: RowFlex // 行对齐方式。默认:CENTER
|
||||||
format?: string // 页码格式。默认:{pageNo}。示例:第{pageNo}页/共{pageCount}页
|
format?: string // 页码格式。默认:{pageNo}。示例:第{pageNo}页/共{pageCount}页
|
||||||
@@ -115,7 +115,7 @@ interface IWatermark {
|
|||||||
color?: string // 颜色。默认:#AEB5C0
|
color?: string // 颜色。默认:#AEB5C0
|
||||||
opacity?: number // 透明度。默认:0.3
|
opacity?: number // 透明度。默认:0.3
|
||||||
size?: number // 字体大小。默认:200
|
size?: number // 字体大小。默认:200
|
||||||
font?: string // 字体。默认:Yahei
|
font?: string // 字体。默认:Microsoft YaHei
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -127,6 +127,6 @@ interface IPlaceholder {
|
|||||||
color?: string // 颜色。默认:#DCDFE6
|
color?: string // 颜色。默认:#DCDFE6
|
||||||
opacity?: number // 透明度。默认:1
|
opacity?: number // 透明度。默认:1
|
||||||
size?: number // 字体大小。默认:16
|
size?: number // 字体大小。默认:16
|
||||||
font?: string // 字体。默认:Yahei
|
font?: string // 字体。默认:Microsoft YaHei
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
<span class="select" title="字体">微软雅黑</span>
|
<span class="select" title="字体">微软雅黑</span>
|
||||||
<div class="options">
|
<div class="options">
|
||||||
<ul>
|
<ul>
|
||||||
<li data-family="Yahei" style="font-family:'Yahei';">微软雅黑</li>
|
<li data-family="Microsoft YaHei" style="font-family:'Microsoft YaHei';">微软雅黑</li>
|
||||||
<li data-family="宋体" style="font-family:'宋体';">宋体</li>
|
<li data-family="宋体" style="font-family:'宋体';">宋体</li>
|
||||||
<li data-family="黑体" style="font-family:'黑体';">黑体</li>
|
<li data-family="黑体" style="font-family:'黑体';">黑体</li>
|
||||||
<li data-family="仿宋" style="font-family:'仿宋';">仿宋</li>
|
<li data-family="仿宋" style="font-family:'仿宋';">仿宋</li>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { IPageBreak } from '../../interface/PageBreak'
|
import { IPageBreak } from '../../interface/PageBreak'
|
||||||
|
|
||||||
export const defaultPageBreakOption: Readonly<Required<IPageBreak>> = {
|
export const defaultPageBreakOption: Readonly<Required<IPageBreak>> = {
|
||||||
font: 'Yahei',
|
font: 'Microsoft YaHei',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
lineDash: [3, 1]
|
lineDash: [3, 1]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const FORMAT_PLACEHOLDER = {
|
|||||||
export const defaultPageNumberOption: Readonly<Required<IPageNumber>> = {
|
export const defaultPageNumberOption: Readonly<Required<IPageNumber>> = {
|
||||||
bottom: 60,
|
bottom: 60,
|
||||||
size: 12,
|
size: 12,
|
||||||
font: 'Yahei',
|
font: 'Microsoft YaHei',
|
||||||
color: '#000000',
|
color: '#000000',
|
||||||
rowFlex: RowFlex.CENTER,
|
rowFlex: RowFlex.CENTER,
|
||||||
format: FORMAT_PLACEHOLDER.PAGE_NO,
|
format: FORMAT_PLACEHOLDER.PAGE_NO,
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ export const defaultPlaceholderOption: Readonly<Required<IPlaceholder>> = {
|
|||||||
color: '#DCDFE6',
|
color: '#DCDFE6',
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
size: 16,
|
size: 16,
|
||||||
font: 'Yahei'
|
font: 'Microsoft YaHei'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ export const defaultWatermarkOption: Readonly<Required<IWatermark>> = {
|
|||||||
color: '#AEB5C0',
|
color: '#AEB5C0',
|
||||||
opacity: 0.3,
|
opacity: 0.3,
|
||||||
size: 200,
|
size: 200,
|
||||||
font: 'Yahei'
|
font: 'Microsoft YaHei'
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ export default class Editor {
|
|||||||
const editorOptions: DeepRequired<IEditorOption> = {
|
const editorOptions: DeepRequired<IEditorOption> = {
|
||||||
mode: EditorMode.EDIT,
|
mode: EditorMode.EDIT,
|
||||||
defaultType: 'TEXT',
|
defaultType: 'TEXT',
|
||||||
defaultFont: 'Yahei',
|
defaultFont: 'Microsoft YaHei',
|
||||||
defaultSize: 16,
|
defaultSize: 16,
|
||||||
minSize: 5,
|
minSize: 5,
|
||||||
maxSize: 72,
|
maxSize: 72,
|
||||||
|
|||||||
Reference in New Issue
Block a user