File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <button v-on =" $listeners" class =" button" v-bind =" $attrs" >
4
- <slot />
3
+ <button
4
+ :style =" { width: wh + 'px', height: ht + 'px' }"
5
+ v-on =" $listeners"
6
+ class =" button"
7
+ v-bind =" $attrs"
8
+ >
9
+ <slot > Submit </slot >
5
10
</button >
6
11
</div >
7
12
</template >
10
15
export default {
11
16
name: " base" ,
12
17
inheritAttrs: false ,
18
+ props: {
19
+ wh: {
20
+ type: String ,
21
+ default: " 150" ,
22
+ },
23
+ ht: {
24
+ type: String ,
25
+ default: " 25" ,
26
+ },
27
+ },
13
28
};
14
29
</script >
15
30
16
31
<style scoped>
17
32
.button {
18
- height : 25px ;
19
- width : 75px ;
20
33
display : inline-flex ;
21
- align-items : center ;
22
34
justify-content : center ;
35
+ align-items : center ;
23
36
white-space : nowrap ;
24
37
transition : all 0.2s linear ;
25
38
}
You can’t perform that action at this time.
0 commit comments