表单校验规则Rule 中message 不能使用<% 执行js%>,会直接输出
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
表单校验规则Rule 中message 不能使用<% 执行js%>,会直接输出
#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):
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