项目使用了1.9.0 的 ”InputTimeRange 时间范围“ 组件内嵌模式,升级到任意最新 1.10.0, 2.0.0 无法正常加载
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
项目使用了1.9.0 的 ”InputTimeRange 时间范围“ 组件内嵌模式,升级到任意最新 1.10.0, 2.0.0 `无法正常加载
#### 截图或视频:
使用了1.10.0 InputTimeRange 组件内嵌模式

开启属性embed 属性为true 时
#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
sdk 引入
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
1.10.0 ( 2.0.0 也试过)存在,官网也存在

3. 粘贴有问题的完整 `amis schema` 代码:
```
const amisJSON = {
"type": "page",
"body": {
"type": "form",
"debug": true,
"body": [
{
type: 'fieldSet',
title: '投放设置',
collapsable: true,
body: [
{
"type": "button-group-select",
"name": "time_range_type",
"label": "投放时段",
"value": "unlimited",
"required": true,
'options': {
'unlimited': '不限',
'custom': '指定时间段',
},
"btnActiveLevel": "primary"
},
{
"type": "input-time-range",
"name": "times",
"label": "",
"embed": true,
"desc": "平台统一使用北京时间",
"visibleOn": "${time_range_type == 'custom'}",
"joinValues": false
}
]
}
]
}
}
```
4. 操作步骤
请简单描述一下复现的操作步骤...
开启 embed 属性为true 时, 组件内嵌模式无法加载
预期表现

1.9.0版本展示
和现在的错误表现

1.10.0版本展示
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the InputTimeRange component and its embed-mode handling, using the provided amis schema and the 1.9.0, 1.10.0, and 2.0.0 behavior as the comparison cases. Reproduce the issue with embed set to true and visibleOn selecting the custom range; done means the embedded time-range component loads and displays correctly in the newer versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100