|
|
@ -31,7 +31,8 @@ import { |
|
|
|
pushDistinct, |
|
|
|
pushDistinct, |
|
|
|
Selection, |
|
|
|
Selection, |
|
|
|
SIZE_CONSANTS, |
|
|
|
SIZE_CONSANTS, |
|
|
|
BlankSplitChar |
|
|
|
BlankSplitChar, |
|
|
|
|
|
|
|
size, |
|
|
|
} from "@/core"; |
|
|
|
} from "@/core"; |
|
|
|
import { Single, Combo, Msg } from "@/base"; |
|
|
|
import { Single, Combo, Msg } from "@/base"; |
|
|
|
import { MultiSelectBar, TriggerIconButton } from "@/case"; |
|
|
|
import { MultiSelectBar, TriggerIconButton } from "@/case"; |
|
|
@ -215,7 +216,19 @@ export class MultiSelectInsertCombo extends Single { |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: (op, callback) => { |
|
|
|
|
|
|
|
o.itemsCreator(op, ob => { |
|
|
|
|
|
|
|
callback(ob); |
|
|
|
|
|
|
|
// 全选时数据变化,配置需要同步
|
|
|
|
|
|
|
|
if (this.storeValue.type === Selection.All && size(ob.items) !== size(this.storeValue.assist)) { |
|
|
|
|
|
|
|
this._dataChange = true; |
|
|
|
|
|
|
|
this.storeValue.assist = map(ob.items, 'value'); |
|
|
|
|
|
|
|
this._adjust(() => { |
|
|
|
|
|
|
|
assertShowValue(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
itemFormatter: o.itemFormatter, |
|
|
|
itemFormatter: o.itemFormatter, |
|
|
|
itemHeight: o.itemHeight, |
|
|
|
itemHeight: o.itemHeight, |
|
|
|