mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
fix(Badge): has content
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user