Skip to content

Commit

Permalink
chore: fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 23, 2025
1 parent 679d200 commit e1a64f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/auto-complete/option-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { AutoCompleteOptionObj, TdAutoCompleteProps } from './type';
import log from '../_common/js/log';
import { useConfig, usePrefixClass } from '../hooks/useConfig';
import { on, off } from '../utils/dom';
import { renderTNodeJSX } from '../utils/render-tnode';

export default defineComponent({
name: 'AutoCompleteOptionList',
Expand Down Expand Up @@ -147,8 +146,9 @@ export default defineComponent({

render() {
if (!this.tOptions.length) {
const empty = renderTNodeJSX(this, 'empty');
return <div class={`${this.classPrefix}-auto-complete__panel--empty`}>{empty || this.globalConfig.empty}</div>;
return (
<div class={`${this.classPrefix}-auto-complete__panel--empty`}>{this.empty || this.globalConfig.empty}</div>
);
}
return (
<ul class={this.classes}>
Expand Down

0 comments on commit e1a64f1

Please sign in to comment.