Files
bhwa23 dc69729161 feat(components): [badge] add dotClass、dotStyle、offset props (#16434)
* 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>
2024-04-12 14:35:55 +08:00

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>