feat: the Button component extends the and attributes

This commit is contained in:
vben
2020-10-27 23:44:32 +08:00
parent 6bffdb5c64
commit 8f5016e3f3
3 changed files with 15 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="p-4">
<CollapseContainer class="px-20 bg-white w-full h-32 rounded-md" title="Message">
<a-button @click="infoMsg('Info message')" class="mr-2">Info</a-button>
<a-button @click="infoMsg('Info message')" class="mr-2"> Info </a-button>
<a-button @click="successMsg('Success message')" class="mr-2" color="success">
Success
</a-button>