forked from opentiny/tiny-vue
34 lines
757 B
Vue
34 lines
757 B
Vue
<template>
|
|
<div class="button-wrap">
|
|
<tiny-button plain>朴素按钮</tiny-button>
|
|
<tiny-button type="primary" plain>主要按钮</tiny-button>
|
|
<tiny-button type="success" plain>成功按钮</tiny-button>
|
|
<tiny-button type="info" plain>信息按钮</tiny-button>
|
|
<tiny-button type="warning" plain>警告按钮</tiny-button>
|
|
<tiny-button type="danger" plain>危险按钮</tiny-button>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="jsx">
|
|
import { Button } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyButton: Button
|
|
},
|
|
data() {
|
|
return {}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.button-wrap {
|
|
padding: 0 10px;
|
|
}
|
|
.button-wrap .tiny-mobile-button:not(:nth-child(3n)) {
|
|
margin-right: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
</style>
|