mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
ui: fix dnd
This commit is contained in:
1 parent
406e45975f
commit
ce5a16914c
5 files changed
+9
-9
No files matched your search
+2
-2
@@ -10,8 +10,8 @@ const ProblemSelectAutoComplete = forwardRef<AutoCompleteHandle<ProblemDoc>, Aut
|
||||
cacheKey={`problem-${UiContext.domainId}`}
|
||||
queryItems={(query) => request.get(`/d/${UiContext.domainId}/problem/list`, { prefix: query })}
|
||||
// FIXME fetch items
|
||||
fetchItems={() => []}
|
||||
itemText={(pdoc) => `${pdoc.docId || pdoc}`}
|
||||
fetchItems={(ids) => ids.map((id) => ({ docId: id, pid: id, title: id }) as any)}
|
||||
itemText={(pdoc) => `${`${pdoc.docId} ${pdoc.title}`}`}
|
||||
itemKey={(pdoc) => `${pdoc.docId || pdoc}`}
|
||||
renderItem={(pdoc) => (
|
||||
<div className="media">
|
||||
|
||||
Reference in new issue
Block a user