baidu / baidu/amis

表单校验规则Rule 中message 不能使用<% 执行js%>,会直接输出

Open
#3,741 0 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

表单校验规则Rule 中message 不能使用<% 执行js%>,会直接输出
#### 截图或视频:
![48b1f1730a6bddea0ad95608f46c06c](https://user-images.githubusercontent.com/38378220/157612851-9f1b79a1-9a2c-47c7-9ea3-5e860b9b7605.png)

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
React引入

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
"amis": "^1.6.4",

4. 操作步骤
在表单中组合校验,提示消息里面使用kiwi的全球化,执行JS获取提示语,消息里面没有执行,而是直接输出了

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. First reproduce the issue in a React form using amis 1.6.4, a combined Rule validation, and a message containing Kiwi globalization with JavaScript execution; inspect where the validation message is rendered. Done means the JavaScript expression is evaluated and the localized message is shown instead of the literal text.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.