Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Calendar] confirm-btn 设置null无效,select event无效 #1108

Closed
lixunhui opened this issue Nov 24, 2022 · 5 comments · Fixed by #1120
Closed

[Calendar] confirm-btn 设置null无效,select event无效 #1108

lixunhui opened this issue Nov 24, 2022 · 5 comments · Fixed by #1120

Comments

@lixunhui
Copy link

tdesign-miniprogram 版本

0.27.0

重现链接

No response

重现步骤

写法1,confirm-btn 在js中定义

<t-calendar visible="{{calendar_visible}}" bind:confirm="handleSelect" type="single" confirm-btn="{{confirm_btn}}"/>
JS中代码
confirm_btn:null
结果无效
image

写法2,confirm-btn=null,报错

<t-calendar visible="{{calendar_visible}}" bind:confirm="handleSelect" type="single" confirm-btn=null/>
image

写法3,confirm-btn=“null”,确认按钮显示,只是不显示确认文字

<t-calendar visible="{{calendar_visible}}" bind:confirm="handleSelect" type="single" confirm-btn="null"/>
效果如下
image


bind:select 无效

<t-calendar visible="{{calendar_visible}}" bind:select="handleSelect" type="single"/>
handleSelect(e) { console.log(e.detail.value); this.hideCalendar(); }
日历上点击选择后不触发事件

期望结果

  1. 日历支持隐藏确认按钮
  2. 日历支持select事件

实际结果

  1. 日历不支持隐藏确认按钮【bug】
  2. 日历不支持select事件【bug】

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

npm: '8.18.0',
node: '18.8.0',
v8: '10.2.154.13-node.11',
tdesign-miniprogram@0.27.0

@github-actions
Copy link
Contributor

👋 @lixunhui,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@lixunhui
Copy link
Author

另外,设置最大时间和最小时间后,打开日历默认界面能否停留在value值的地方,目前设置最大最小时间之后,默认停留在最小可选择日期的月份

@LeeJim
Copy link
Collaborator

LeeJim commented Nov 25, 2022

感谢反馈,我来定位下问题

@LeeJim
Copy link
Collaborator

LeeJim commented Nov 26, 2022

另外,设置最大时间和最小时间后,打开日历默认界面能否停留在value值的地方,目前设置最大最小时间之后,默认停留在最小可选择日期的月份

感谢反馈,我来支持下

@LeeJim
Copy link
Collaborator

LeeJim commented Nov 26, 2022

另外,设置最大时间和最小时间后,打开日历默认界面能否停留在value值的地方,目前设置最大最小时间之后,默认停留在最小可选择日期的月份

对应 PR:#1119 ,预计下周一发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants