baidu / baidu/amis

关于新版的 Input-Date 当前使用者切换到哪个年月,该如何得知?

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

Description

#### 实现场景:
关于新版的 Input-Date 有提供一个 "largeMode": true, 模式的行事历简单版本,这很好,基本上可以应付基本的需求,感谢开发团队的努力。请问如果行事历的内容很多,我想知道当前使用者切换到哪个年月,该如何得知? 因为这个会配合 api 到后端取行事历数据,需要知道目前要查询哪个年月。祝开发团队全员新年快乐,平安喜乐。

#### 存在的问题:
as above
![image](https://user-images.githubusercontent.com/22609092/147854197-c9e66c7d-199d-4c8c-807b-899a5156674e.png)

#### 当前方案:

```
{
"type": "page",
"body": {
"type": "service",
"api": {
"method": "post",
"url": "http://api.xxx.com.tw:5050/xapi/v2/zenBusiness/get_Schedule/8/",
"data": {
"para01": "${userid}",
"para02": "yyyyMM"
},
"dataType": "form"
},
"body":
{
"type": "input-date",
"embed": true,
"largeMode": true,
"schedules": "${options}"
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Input-Date largeMode entry point and trace how the schedules value is consumed when the displayed month changes. Reproduce the configuration using the shown service API and determine what observable state or event represents the current year and month. Done means there is a documented, testable way to identify the selected month for loading schedules.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.