|
23 | 23 | public readonly size!: string; |
24 | 24 |
|
25 | 25 | @Prop({ type: String, default: 'default' }) |
26 | | - public readonly color!: string; // button modification |
| 26 | + public readonly option!: string; |
27 | 27 |
|
28 | 28 | @Prop(Boolean) |
29 | 29 | public readonly disabled!: boolean; |
|
40 | 40 | this.classList = { |
41 | 41 | button: true, |
42 | 42 | 'is-loading': this.loading, |
43 | | - 'is-default': this.color === 'default', |
44 | | - 'is-primary': this.color === 'primary', |
45 | | - 'is-success': this.color === 'success', |
46 | | - 'is-info': this.color === 'info', |
47 | | - 'is-warning': this.color === 'warning', |
48 | | - 'is-danger': this.color === 'danger', |
49 | | - 'is-white': this.color === 'white', |
50 | | - 'is-light': this.color === 'light', |
51 | | - 'is-dark': this.color === 'dark', |
52 | | - 'is-black': this.color === 'black', |
53 | | - 'is-text': this.color === 'text', |
| 43 | + 'is-default': this.option === 'default', |
| 44 | + 'is-primary': this.option === 'primary', |
| 45 | + 'is-success': this.option === 'success', |
| 46 | + 'is-info': this.option === 'info', |
| 47 | + 'is-warning': this.option === 'warning', |
| 48 | + 'is-danger': this.option === 'danger', |
| 49 | + 'is-white': this.option === 'white', |
| 50 | + 'is-light': this.option === 'light', |
| 51 | + 'is-dark': this.option === 'dark', |
| 52 | + 'is-black': this.option === 'black', |
| 53 | + 'is-text': this.option === 'text', |
54 | 54 | }; |
55 | 55 | } |
56 | 56 |
|
57 | 57 | public onClick(e) { |
58 | | - console.log('click'); |
59 | 58 | this.$emit('click', e); |
60 | 59 | } |
61 | 60 | } |
|
0 commit comments