Skip to content

Commit

Permalink
fix(select): fix empty usage slot style missing (#4909)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Jan 10, 2025
1 parent f5bc350 commit d0b29ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/select/select-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,9 @@ export default defineComponent({
defaultNode: <div class={`${COMPONENT_NAME.value}__loading-tips`}>{t(globalConfig.value.loadingText)}</div>,
})}
{/* 空状态 */}
{!props.loading &&
isEmpty.value &&
!showCreateOption.value &&
renderDefaultTNode('empty', {
defaultNode: <div class={`${COMPONENT_NAME.value}__empty`}>{t(globalConfig.value.empty)}</div>,
})}
{!props.loading && isEmpty.value && !showCreateOption.value && (
<div class={`${COMPONENT_NAME.value}__empty`}>{renderTNodeJSX('empty') || t(globalConfig.value.empty)}</div>
)}
{!isEmpty.value && renderOptionsContent(options)}
</div>
);
Expand Down

0 comments on commit d0b29ab

Please sign in to comment.