File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tdesign-vue-next/test/unit/snap/__snapshots__ Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export function useAction(action: BtnAction) {
128
128
}
129
129
// 如果属性存在,优先返回属性配置
130
130
if ( cancelBtn && [ 'string' , 'object' ] . includes ( typeof cancelBtn ) ) {
131
- return getButtonByProps ( cancelBtn as string | ButtonProps , { defaultButtonProps } ) ;
131
+ return getButtonByProps ( cancelBtn as string | ButtonProps , { defaultButtonProps, className } ) ;
132
132
}
133
133
// 渲染插槽 或 function 类型的 confirmBtn,属性优先级更高
134
134
return renderTNodeJSX ( 'cancelBtn' ) ;
Original file line number Diff line number Diff line change @@ -55689,7 +55689,7 @@ exports[`csr snapshot test > csr test ./packages/components/dialog/_example/cust
55689
55689
>
55690
55690
<div>
55691
55691
<button
55692
- class="t-button t-button--variant-base t-button--theme-default"
55692
+ class="t-button t-button--variant-base t-button--theme-default t-dialog__cancel "
55693
55693
href=""
55694
55694
tabindex="0"
55695
55695
type="button"
@@ -55791,7 +55791,7 @@ exports[`csr snapshot test > csr test ./packages/components/dialog/_example/cust
55791
55791
>
55792
55792
<div>
55793
55793
<button
55794
- class="t-button t-button--variant-outline t-button--theme-default"
55794
+ class="t-button t-button--variant-outline t-button--theme-default t-dialog__cancel "
55795
55795
href=""
55796
55796
tabindex="0"
55797
55797
type="button"
@@ -55893,7 +55893,7 @@ exports[`csr snapshot test > csr test ./packages/components/dialog/_example/cust
55893
55893
>
55894
55894
<div>
55895
55895
<button
55896
- class="t-button t-button--variant-base t-button--theme-default"
55896
+ class="t-button t-button--variant-base t-button--theme-default t-dialog__cancel "
55897
55897
href=""
55898
55898
tabindex="0"
55899
55899
type="button"
@@ -56001,7 +56001,7 @@ exports[`csr snapshot test > csr test ./packages/components/dialog/_example/cust
56001
56001
>
56002
56002
<div>
56003
56003
<button
56004
- class="t-button t-button--variant-base t-button--theme-default"
56004
+ class="t-button t-button--variant-base t-button--theme-default t-dialog__cancel "
56005
56005
href=""
56006
56006
tabindex="0"
56007
56007
type="button"
@@ -59691,7 +59691,7 @@ exports[`csr snapshot test > csr test ./packages/components/drawer/_example/cust
59691
59691
</span>
59692
59692
</button>
59693
59693
<button
59694
- class="t-button t-button--variant-base t-button--theme-default"
59694
+ class="t-button t-button--variant-base t-button--theme-default t-drawer__cancel "
59695
59695
href=""
59696
59696
tabindex="0"
59697
59697
type="button"
You can’t perform that action at this time.
0 commit comments