-
Notifications
You must be signed in to change notification settings - Fork 568
feat(ImageViewer): add default trigger #5935
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
base: develop
Are you sure you want to change the base?
Conversation
/update-common |
TDesign Component Site Preview Open
|
commit: |
return () => { | ||
if (props.mode === 'modeless') { | ||
return ( | ||
<> | ||
{renderTNodeJSX('trigger', { params: { open: openHandler } })} | ||
{renderDefaultTrigger()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{renderDefaultTrigger()} | |
{renderTNodeJSX('trigger', { params: { open: openHandler } }) || renderDefaultTrigger()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
内部如果仅用props.trigger
判断的话,slot
使用会有问题
@@ -258,7 +285,7 @@ export default defineComponent({ | |||
|
|||
return ( | |||
<> | |||
{renderTNodeJSX('trigger', { params: { open: openHandler } })} | |||
{renderDefaultTrigger()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as
/update-common |
🤔 这个 PR 的性质是?
🔗 相关 Issue
#5639
💡 需求背景和解决方案
📝 更新日志
tdesign-vue-next
@tdesign-vue-next/chat
@tdesign-vue-next/auto-import-resolver
☑️ 请求合并前的自查清单