fix(Badge): has content

This commit is contained in:
chenjiahan 2020-10-02 16:59:18 +08:00
parent 4b410b6bf7
commit 56c50666ce

View File

@ -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;