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 11<template >
22 <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 >
510 </button >
611 </div >
712</template >
1015export default {
1116 name: " base" ,
1217 inheritAttrs: false ,
18+ props: {
19+ wh: {
20+ type: String ,
21+ default: " 150" ,
22+ },
23+ ht: {
24+ type: String ,
25+ default: " 25" ,
26+ },
27+ },
1328};
1429 </script >
1530
1631<style scoped>
1732.button {
18- height : 25px ;
19- width : 75px ;
2033 display : inline-flex ;
21- align-items : center ;
2234 justify-content : center ;
35+ align-items : center ;
2336 white-space : nowrap ;
2437 transition : all 0.2s linear ;
2538}
You can’t perform that action at this time.
0 commit comments