mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* feat(components): [input] add the dashed attribute * docs: update tag * refactor: update the documentation of config-provider * refactor: update config-provider test * refactor: update button test * refactor: update test * test: update * refactor: update css * refactor: reset * refactor: update css * refactor: delete blank lines * docs: update version * docs: update button type * docs: update button type --------- Co-authored-by: rzzf <cszhjh@gmail.com>
79 lines
2.2 KiB
Vue
79 lines
2.2 KiB
Vue
<template>
|
|
<div class="button-example">
|
|
<div class="button-row">
|
|
<el-button>Default</el-button>
|
|
<el-button type="primary">Primary</el-button>
|
|
<el-button type="success">Success</el-button>
|
|
<el-button type="info">Info</el-button>
|
|
<el-button type="warning">Warning</el-button>
|
|
<el-button type="danger">Danger</el-button>
|
|
</div>
|
|
|
|
<div class="button-row">
|
|
<el-button plain>Plain</el-button>
|
|
<el-button type="primary" plain>Primary</el-button>
|
|
<el-button type="success" plain>Success</el-button>
|
|
<el-button type="info" plain>Info</el-button>
|
|
<el-button type="warning" plain>Warning</el-button>
|
|
<el-button type="danger" plain>Danger</el-button>
|
|
</div>
|
|
|
|
<div class="button-row">
|
|
<el-button round>Round</el-button>
|
|
<el-button type="primary" round>Primary</el-button>
|
|
<el-button type="success" round>Success</el-button>
|
|
<el-button type="info" round>Info</el-button>
|
|
<el-button type="warning" round>Warning</el-button>
|
|
<el-button type="danger" round>Danger</el-button>
|
|
</div>
|
|
|
|
<div class="button-row">
|
|
<el-button dashed>Dashed</el-button>
|
|
<el-button type="primary" dashed>Primary</el-button>
|
|
<el-button type="success" dashed>Success</el-button>
|
|
<el-button type="info" dashed>Info</el-button>
|
|
<el-button type="warning" dashed>Warning</el-button>
|
|
<el-button type="danger" dashed>Danger</el-button>
|
|
</div>
|
|
|
|
<div class="button-row">
|
|
<el-button :icon="Search" circle />
|
|
<el-button type="primary" :icon="Edit" circle />
|
|
<el-button type="success" :icon="Check" circle />
|
|
<el-button type="info" :icon="Message" circle />
|
|
<el-button type="warning" :icon="Star" circle />
|
|
<el-button type="danger" :icon="Delete" circle />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import {
|
|
Check,
|
|
Delete,
|
|
Edit,
|
|
Message,
|
|
Search,
|
|
Star,
|
|
} from '@element-plus/icons-vue'
|
|
</script>
|
|
|
|
<style scoped>
|
|
.button-example {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.button-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.button-row > * {
|
|
margin: 0;
|
|
}
|
|
</style>
|