fix: delete default control color property #513
This commit is contained in:
@@ -105,7 +105,6 @@ export const CONTROL_STYLE_ATTR: Array<keyof IControlStyle> = [
|
|||||||
'font',
|
'font',
|
||||||
'size',
|
'size',
|
||||||
'bold',
|
'bold',
|
||||||
'color',
|
|
||||||
'highlight',
|
'highlight',
|
||||||
'italic',
|
'italic',
|
||||||
'strikeout'
|
'strikeout'
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ export interface IControlStyle {
|
|||||||
font?: string
|
font?: string
|
||||||
size?: number
|
size?: number
|
||||||
bold?: boolean
|
bold?: boolean
|
||||||
color?: string
|
|
||||||
highlight?: string
|
highlight?: string
|
||||||
italic?: boolean
|
italic?: boolean
|
||||||
strikeout?: boolean
|
strikeout?: boolean
|
||||||
|
|||||||
@@ -234,10 +234,8 @@ export function formatElementList(
|
|||||||
)
|
)
|
||||||
// 前后缀个性化设置
|
// 前后缀个性化设置
|
||||||
const thePrePostfixArg: Omit<IElement, 'value'> = {
|
const thePrePostfixArg: Omit<IElement, 'value'> = {
|
||||||
...controlDefaultStyle
|
...controlDefaultStyle,
|
||||||
}
|
color: editorOptions.control.bracketColor
|
||||||
if (!thePrePostfixArg.color) {
|
|
||||||
thePrePostfixArg.color = editorOptions.control.bracketColor
|
|
||||||
}
|
}
|
||||||
// 前缀
|
// 前缀
|
||||||
const prefixStrList = splitText(prefix || controlOption.prefix)
|
const prefixStrList = splitText(prefix || controlOption.prefix)
|
||||||
@@ -341,10 +339,8 @@ export function formatElementList(
|
|||||||
} else if (placeholder) {
|
} else if (placeholder) {
|
||||||
// placeholder
|
// placeholder
|
||||||
const thePlaceholderArgs: Omit<IElement, 'value'> = {
|
const thePlaceholderArgs: Omit<IElement, 'value'> = {
|
||||||
...controlDefaultStyle
|
...controlDefaultStyle,
|
||||||
}
|
color: editorOptions.control.placeholderColor
|
||||||
if (editorOptions?.control?.placeholderColor) {
|
|
||||||
thePlaceholderArgs.color = editorOptions.control.placeholderColor
|
|
||||||
}
|
}
|
||||||
const placeholderStrList = splitText(placeholder)
|
const placeholderStrList = splitText(placeholder)
|
||||||
for (let p = 0; p < placeholderStrList.length; p++) {
|
for (let p = 0; p < placeholderStrList.length; p++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user