We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752b894 commit ed56452Copy full SHA for ed56452
commands/basec/templates/BaseButton.vue
@@ -1,7 +1,12 @@
1
<template>
2
<div>
3
- <button v-on="$listeners" class="button" v-bind="$attrs">
4
- <slot />
+ <button
+ :style="{ width: wh + 'px', height: ht + 'px' }"
5
+ v-on="$listeners"
6
+ class="button"
7
+ v-bind="$attrs"
8
+ >
9
+ <slot> Submit </slot>
10
</button>
11
</div>
12
</template>
@@ -10,13 +15,21 @@
15
export default {
16
name: "base",
17
inheritAttrs: false,
18
+ props: {
19
+ wh: {
20
+ type: String,
21
+ default: "150",
22
+ },
23
+ ht: {
24
25
+ default: "25",
26
27
13
28
};
14
29
</script>
30
31
<style scoped>
32
.button {
- height: 25px;
- width: 75px;
33
display: inline-flex;
34
align-items: center;
35
justify-content: center;
0 commit comments