Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态高亮关键字 #332

Closed
xingliang123 opened this issue Nov 15, 2023 · 5 comments
Closed

动态高亮关键字 #332

xingliang123 opened this issue Nov 15, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@xingliang123
Copy link

What problem does this feature solve?

在编辑内容的时候(在控件中输入),如何遇到关键字进行变色

What does the proposed API look like?

在编辑内容的时候(在控件中输入),如何遇到关键字进行变色

@Hufe921
Copy link
Owner

Hufe921 commented Nov 15, 2023

@Hufe921 Hufe921 added the enhancement New feature or request label Nov 16, 2023
Hufe921 added a commit that referenced this issue Dec 16, 2023
@Hufe921 Hufe921 closed this as completed Dec 16, 2023
@xingliang123
Copy link
Author

这个功能可以提供一个示例吗

@Hufe921
Copy link
Owner

Hufe921 commented Dec 18, 2023

  instance.command.executeSetControlHighlight([
    {
      conceptId: '1',
      ruleList: [
        {
          backgroundColor: 'red', // 可选,默认使用搜索颜色配置
          alpha: 0.6, // 可选,默认使用搜索透明度配置
          keyword: '高'
        },
        {
          keyword: '低'
        }
      ]
    }
  ])

@xingliang123
Copy link
Author

可以修改字体的颜色吗?而不是修改背景色

@Hufe921
Copy link
Owner

Hufe921 commented Dec 19, 2023

重新发起一个issue

可以修改字体的颜色吗?而不是修改背景色

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants