File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import './button.scss';
9
9
10
10
export default defineComponent ( {
11
11
name : 'd-button' ,
12
+ inheritAttrs : false ,
12
13
props : {
13
14
id : {
14
15
type : [ String , Number ]
@@ -108,6 +109,7 @@ export default defineComponent({
108
109
disabled = { disabled }
109
110
style = { { width : width } }
110
111
onClick = { onClick }
112
+ { ...ctx . attrs }
111
113
// dLoading
112
114
// [showLoading]="showLoading"
113
115
// [loadingTemplateRef]="loadingTemplateRef"
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ export default defineComponent({
6
6
setup ( ) {
7
7
return ( ) => {
8
8
return (
9
- < div >
10
- < Button bsStyle = "primary" > primary</ Button >
9
+ < div style = "display:flex;" >
10
+ < Button bsStyle = "primary" style = "margin-right: 4px" > primary</ Button >
11
+ < Button bsStyle = "primary" disabled > Disabled</ Button >
11
12
</ div >
12
13
) ;
13
14
}
You can’t perform that action at this time.
0 commit comments