mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix(Badge): has content
This commit is contained in:
@@ -17,7 +17,7 @@ export default createComponent({
|
|||||||
|
|
||||||
setup(props, { slots }) {
|
setup(props, { slots }) {
|
||||||
const hasContent = () =>
|
const hasContent = () =>
|
||||||
!!(slots.default || (isDef(props.content) && props.content !== ''));
|
!!(slots.content || (isDef(props.content) && props.content !== ''));
|
||||||
|
|
||||||
const renderContent = () => {
|
const renderContent = () => {
|
||||||
const { dot, max, content } = props;
|
const { dot, max, content } = props;
|
||||||
|
Reference in New Issue
Block a user