File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 4949 <t-dialog
5050 :visible.sync =" visibleShowInAttachedElement"
5151 header =" 对话框仅展示在挂载元素区域"
52+ attach =" .dialog-attach-wrap"
5253 :showInAttachedElement =" true"
5354 placement =" center"
5455 :onConfirm =" () => (this.visibleShowInAttachedElement = false)"
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export default mixins(
153153 return ! this . isFullScreen ? { width : getCSSValue ( this . width ) , ...this . dialogStyle } : { ...this . dialogStyle } ; // width全屏模式不生效;
154154 } ,
155155 computedAttach ( ) : AttachNode {
156- return this . showInAttachedElement || this . isNormal ? undefined : this . attach || this . globalAttach ( ) ;
156+ return this . isNormal ? undefined : this . attach || this . globalAttach ( ) ;
157157 } ,
158158 } ,
159159
Original file line number Diff line number Diff line change 11<template >
22 <div class =" t-container" >
33 <div class =" t-suf-container" >
4- <t-drawer :visible.sync =" visible" :placement =" placement" :mode =" mode" header =" 抽屉标题" showInAttachedElement >
4+ <t-drawer
5+ :visible.sync =" visible"
6+ :placement =" placement"
7+ :mode =" mode"
8+ header =" 抽屉标题"
9+ showInAttachedElement
10+ attach =" .t-suf-container"
11+ >
512 <p >抽屉的内容</p >
613 </t-drawer >
714 <div class =" tdesign-radio-button" >
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export default mixins(
122122 } ;
123123 } ,
124124 computedAttach ( ) : AttachNode {
125- return this . showInAttachedElement ? undefined : this . attach || this . globalAttach ( ) ;
125+ return this . attach || this . globalAttach ( ) ;
126126 } ,
127127 } ,
128128
You can’t perform that action at this time.
0 commit comments