|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { shortcut, Widget, extend, emptyFn, createWidget, isNotNull, isNumber, size, each, last, Selection } from "@/core"; |
|
|
|
|
import { shortcut, Widget, extend, emptyFn, createWidget, isNotNull, isNumber, size, each, last, Selection, isObject } from "@/core"; |
|
|
|
|
import { MultiSelectEditor } from "../../multiselect/trigger/editor.multiselect"; |
|
|
|
|
import { MultiSelectSearcher } from "../../multiselect/trigger/searcher.multiselect"; |
|
|
|
|
import { Searcher } from "@/base"; |
|
|
|
@ -137,7 +137,7 @@ export class MultiListTreeSearcher extends Widget {
|
|
|
|
|
setState(ob) { |
|
|
|
|
const o = this.options; |
|
|
|
|
ob || (ob = {}); |
|
|
|
|
ob.value || (ob.value = []); |
|
|
|
|
isObject(ob) && (ob.value || (ob.value = [])); |
|
|
|
|
let count = 0; |
|
|
|
|
if (isNumber(ob)) { |
|
|
|
|
this.editor.setState(ob); |
|
|
|
|