Skip to content

Commit

Permalink
feat: ✨ Badge 徽标组件增加customStyle自定义样式
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingkai committed Nov 2, 2023
1 parent eebec8a commit d194106
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* 记得注释
-->
<template>
<view :class="['wd-badge', customClass]">
<view :class="['wd-badge', customClass]" :style="customStyle">
<slot></slot>
<view
v-if="!hidden && (content || content === 0 || isDot)"
Expand Down Expand Up @@ -42,9 +42,11 @@ interface Props {
top?: number
right?: number
customClass?: string
customStyle?: string
}
const props = withDefaults(defineProps<Props>(), {
customClass: '',
customStyle: '',
modelValue: null
})
const content = ref<number | string | null>(null)
Expand Down

0 comments on commit d194106

Please sign in to comment.