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

[Dialog] Dialog 透传无效果 #455

Closed
a543063035 opened this issue May 19, 2022 · 4 comments · Fixed by #470
Closed

[Dialog] Dialog 透传无效果 #455

a543063035 opened this issue May 19, 2022 · 4 comments · Fixed by #470
Assignees

Comments

@a543063035
Copy link

tdesign-miniprogram 版本

0.11.2

重现链接

No response

重现步骤

data: {
zt: true,
test:{
['open-type']: 'getPhoneNumber',
['content']: 'ce',
}
},

<t-dialog
visible="{{zt}}"
title="登录提示"
content="请先登录!"
confirmBtn="{{ myCars }}"

期望结果

透传Button开放能力

实际结果

无效果

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@a543063035 a543063035 changed the title [组件名称] 描述问题的标题 [Dialog] Dialog 透传无效果 May 19, 2022
@github-actions
Copy link
Contributor

♥️ 有劳 @jin0209 @mcc108 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @a543063035

@LeeJim
Copy link
Collaborator

LeeJim commented May 23, 2022

可以透传的,用 openType 驼峰写法

@LeeJim LeeJim closed this as completed May 23, 2022
@a543063035
Copy link
Author

@LeeJim 实现可以,回调好像不行

Button透传的‘bindgetphonenumber’报错:
TypeError: this.data["".concat(...)]["bind".concat(...)] is not a function

自带的‘open-type-event’无效果

`<t-dialog
visible="{{true}}"
title="对话框标题"
content="告知当前状态、信息和解决方法等内容。"
confirm-btn="{{myCars}}"
bind:open-type-event="confirmHandle"
bind:open-type-error-event="confirmHandle"

`

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.

3 participants