添加多种文本类型特征
每当我尝试添加多个带有不同条件和标签/属性的性质文本时,却只用最后一个,且每个性质条件都不行。 请帮我解决这个问题。 以下是代码 编辑。DomComponents.addType('text', { isComponent: el =>( (el.attributes&&el.attributes.paraJustify&&el.attributes.paraJustify.value) ), 型号:{ 默认值:{ 特质:[ { 类型:“选择”, 选项:[ { 值:'text-align:center',名称:'Center' }, { 值:'text-align:left ', name: 'Left', { 值: 'text-...
amitbhoj777
找到解决方案了。我们需要在 Traits 中扩展打字文本。谢谢。 编辑。DomComponents.addType('paraJustify', { isComponent: el => ((el.attributes && el.attributes.paraJustify && el.attributes.paraJustify.value)), 扩展:“文本”, 型号:{ 默认值:{ 特质:[ { 类型:“选择”, 选项:[ { 值:'text-align:cente...