|
|
@ -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 { MultiSelectEditor } from "../../multiselect/trigger/editor.multiselect"; |
|
|
|
import { MultiSelectSearcher } from "../../multiselect/trigger/searcher.multiselect"; |
|
|
|
import { MultiSelectSearcher } from "../../multiselect/trigger/searcher.multiselect"; |
|
|
|
import { Searcher } from "@/base"; |
|
|
|
import { Searcher } from "@/base"; |
|
|
@ -137,7 +137,7 @@ export class MultiListTreeSearcher extends Widget { |
|
|
|
setState(ob) { |
|
|
|
setState(ob) { |
|
|
|
const o = this.options; |
|
|
|
const o = this.options; |
|
|
|
ob || (ob = {}); |
|
|
|
ob || (ob = {}); |
|
|
|
ob.value || (ob.value = []); |
|
|
|
isObject(ob) && (ob.value || (ob.value = [])); |
|
|
|
let count = 0; |
|
|
|
let count = 0; |
|
|
|
if (isNumber(ob)) { |
|
|
|
if (isNumber(ob)) { |
|
|
|
this.editor.setState(ob); |
|
|
|
this.editor.setState(ob); |
|
|
|