Challenge 1
本页目录· 1 条
Question
Create a reusable Button.vue component that applies the correct classes given the following props and emits
label: Renders the label inside the buttoncolor: takes button colors defined by Bootstrap (e.g.'primary','success')size:'small','medium','large', defaults to'medium'disabled: boolean, defaults tofalseonClick: event handler, defaults to() => {}style: takes'outlined'or'filled', defaults to'filled'
It should work like the following