alibaba / alibaba/lowcode-engine

时间设置器TimePIcker每次选择时间后会滑动到0

Open
#2,414 0 comments 0 reactions 1 assignee Claimed by @hujiulong View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**
官方demo,antd物料编辑器,时间选择器组件的默认时间和当前时间的设置器是日期,应该是时间吧? 我自己将日期设置器修改为时间设置器TimePicker之后,选中组件,修改当前时间或者默认时间,时间会清空。
---
## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**
1.打开官方demo地址 https://lowcode-engine.cn/demo/demo-basic-antd/index.html
2.拖入时间选择框组件
![image](https://github.com/alibaba/lowcode-engine/assets/48480478/15f8b1c6-7b57-438f-b2df-229652ca0487)
3.选中时间选择框组件
![image](https://github.com/alibaba/lowcode-engine/assets/48480478/3c461c44-46c1-4b6a-b443-25580b1be314)
4. 可以看到右侧的默认时间和当前时间是日期,应该是时间
5. 我本地运行官方的antd物料,将time-picker/meta.ts文件中的默认时间和当前时间的设置器改为TimePicker,再将时间选择器组件拖到画布并选中,修改默认时间或当前时间,时间设置器会自动滚动到0。若是我配置的问题,应该如何配置?
原代码:
![image](https://github.com/alibaba/lowcode-engine/assets/48480478/97bc5aee-16af-4c56-80c0-318cbd53b018)
修改后的代码:
![image](https://github.com/alibaba/lowcode-engine/assets/48480478/5e5435b0-342c-41ac-8fbd-80cb7a5c0c96)
---
## **Expected behavior (required)** / **预期行为(必填,非常重要)**
如何配置TimePicker,时间设置器才不会每次选择时间后滚动到0
---

## **Screenshots (optional)** / **bug 截图(可选)**
官方demo:
![image](https://github.com/alibaba/lowcode-engine/assets/48480478/3c461c44-46c1-4b6a-b443-25580b1be314)
本地运行官方的antd物料,将time-picker/meta.ts文件中的默认时间和当前时间的设置器改为TimePicker:
![image](https://github.com/alibaba/lowcode-engine/assets/48480478/041f399b-356d-4dd4-884a-d2fb966a3036)
---

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine version: v1.1.10-beta / 低代码引擎版本
- AliLowCodeEngineExt version: v1.0.6 / 低代码引擎扩展包版本
- Browser: chrome / 浏览器版本

## **Additional context (optional)** / **更多额外信息(可选)**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.