mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 18:11:48 +08:00

* feat: 🎸 [badge] add color prop add color prop to set badge background color * feat: 🎸 [badge] add dotClass dotStyle offset props * docs: ✏️ [badge] add dotClass dotStyle offset props * feat: 🎸 [badge] unify style * style: 💄 [badge] format * docs: ✏️ update badge.md * docs: ✏️ update badge props desc * Update docs/en-US/component/badge.md Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com> * refactor: 💡 [badge] refactor style * fix: 🐛 [badge] dotStyle has higher precedence than color --------- Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
13 lines
204 B
Vue
13 lines
204 B
Vue
<template>
|
|
<el-badge class="item" :value="1" :offset="[10, 5]">
|
|
<el-button> offset</el-button>
|
|
</el-badge>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.item {
|
|
margin-top: 10px;
|
|
margin-right: 30px;
|
|
}
|
|
</style>
|