mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Badge): has content
This commit is contained in:
parent
4b410b6bf7
commit
56c50666ce
@ -17,7 +17,7 @@ export default createComponent({
|
||||
|
||||
setup(props, { slots }) {
|
||||
const hasContent = () =>
|
||||
!!(slots.default || (isDef(props.content) && props.content !== ''));
|
||||
!!(slots.content || (isDef(props.content) && props.content !== ''));
|
||||
|
||||
const renderContent = () => {
|
||||
const { dot, max, content } = props;
|
||||
|
Loading…
x
Reference in New Issue
Block a user