feat: unordered list default style
This commit is contained in:
@@ -78,9 +78,7 @@ export class ListParticle {
|
|||||||
if (startElement.value !== ZERO || startElement.listWrap) return
|
if (startElement.value !== ZERO || startElement.listWrap) return
|
||||||
let text = ''
|
let text = ''
|
||||||
if (startElement.listType === ListType.UL) {
|
if (startElement.listType === ListType.UL) {
|
||||||
if (startElement.listStyle) {
|
text = ulStyleMapping[<UlStyle><unknown>startElement.listStyle] || ulStyleMapping[UlStyle.DISC]
|
||||||
text = ulStyleMapping[<UlStyle><unknown>startElement.listStyle] || ulStyleMapping[UlStyle.DISC]
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
text = `${listIndex! + 1}${KeyMap.PERIOD}`
|
text = `${listIndex! + 1}${KeyMap.PERIOD}`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,8 +56,10 @@ export function formatElementList(elementList: IElement[], options: IFormatEleme
|
|||||||
const titleOptions = editorOptions.title
|
const titleOptions = editorOptions.title
|
||||||
for (let v = 0; v < valueList.length; v++) {
|
for (let v = 0; v < valueList.length; v++) {
|
||||||
const value = valueList[v]
|
const value = valueList[v]
|
||||||
value.titleId = titleId
|
if (el.level) {
|
||||||
value.level = el.level
|
value.titleId = titleId
|
||||||
|
value.level = el.level
|
||||||
|
}
|
||||||
// 文本型元素设置字体及加粗
|
// 文本型元素设置字体及加粗
|
||||||
if (isTextLikeElement(value)) {
|
if (isTextLikeElement(value)) {
|
||||||
if (!value.size) {
|
if (!value.size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user