ui: autocomplete: rewrite in typescript

This commit is contained in:
undefined committed 2022-04-05 03:26:30 +08:00
1 parent 370fc07914
commit 8f4a63006a
11 files changed
+332 -293

No files matched your search

@@ -68,10 +68,10 @@ export default class AutoComplete extends DOMAttachedObject {
<AutoCompleteFC
ref={(ref) => { this.ref = ref; }}
height="34px"
itemsFn={this.options.items}
queryItems={this.options.items}
renderItem={this.options.render}
itemText={this.options.text}
defaultItems={value}
selectedKeys={value.split(',').map((i) => i.trim())}
onChange={this.onChange}
multi={this.options.multi}
freeSolo={this.options.multi}