Skip to content

[feature request] 修改标签的默认样式:如 <a href> 标签,修改其字体颜色、禁止下划线 #102

@GarfieldJiang

Description

@GarfieldJiang

如题。

目前,可以通过如下方法实现,但感觉不太好:

    customHandler: {
      start: (node: NodeInfo) => {
      },
      end: (node: NodeInfo) => {
        if (node.tag === 'a' && node.artUIStyleObject) {
          node.artUIStyleObject.fontColor = Color.red;
          node.artUIStyleObject.decoration = {
            type: 0,
          }
        }
      },
      chars: null,
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions