diff --git a/packages/fineui/src/base/tree/customtree.js b/packages/fineui/src/base/tree/customtree.js index 0172a19d0..491fbc96b 100644 --- a/packages/fineui/src/base/tree/customtree.js +++ b/packages/fineui/src/base/tree/customtree.js @@ -81,6 +81,7 @@ export class CustomTree extends Widget { { id: node.id, pId: node.pId, + key: node.key, } ); let el = stripEL(node); diff --git a/packages/fineui/src/bundle.js b/packages/fineui/src/bundle.js index 329d5be85..4f0e5252f 100644 --- a/packages/fineui/src/bundle.js +++ b/packages/fineui/src/bundle.js @@ -1,15 +1,16 @@ import * as fuiExport from "./index"; -import { shortcut, provider } from "@/core/5.inject"; +import * as injectFn from "@/core/5.inject"; import { _global } from "@/core/0.foundation"; import * as Decorators from "@/core/decorator"; _global.BI = _global.BI || {}; -_global.BI.Decorators = Decorators; +_global.BI.Decorators = { ...Decorators, Model: fuiExport.Fix.Model }; Object.assign(_global, { Fix: fuiExport.Fix, _: fuiExport._, $: fuiExport.$, + jQuery: fuiExport.$, }); -Object.assign(_global.BI, fuiExport, { shortcut, provider }); +Object.assign(_global.BI, fuiExport, injectFn); diff --git a/packages/fineui/src/case/button/item.singleselect.radio.js b/packages/fineui/src/case/button/item.singleselect.radio.js index 331f0bf3f..b39996632 100644 --- a/packages/fineui/src/case/button/item.singleselect.radio.js +++ b/packages/fineui/src/case/button/item.singleselect.radio.js @@ -35,6 +35,7 @@ export class SingleSelectRadioItem extends BasicButton { items: [ { type: Radio.xtype, + once: o.once, ref: _ref => { this.radio = _ref; }, diff --git a/packages/fineui/src/component/allvaluechooser/combo.allvaluechooser.js b/packages/fineui/src/component/allvaluechooser/combo.allvaluechooser.js index ed746ec3c..519218278 100644 --- a/packages/fineui/src/component/allvaluechooser/combo.allvaluechooser.js +++ b/packages/fineui/src/component/allvaluechooser/combo.allvaluechooser.js @@ -34,6 +34,7 @@ export class AllValueChooserCombo extends AbstractAllValueChooser { valueFormatter: bind(this._valueFormatter, this), width: o.width, height: o.height, + defaultText: o.defaultText, value: this._assertValue({ type: Selection.Multi, value: o.value || [], diff --git a/packages/fineui/src/core/structure/tree.js b/packages/fineui/src/core/structure/tree.js index a48c17d83..3f640f7c0 100644 --- a/packages/fineui/src/core/structure/tree.js +++ b/packages/fineui/src/core/structure/tree.js @@ -170,15 +170,15 @@ export class Tree { initTree(nodes) { this.clear(); - const queue = []; + const queue = new Set(); each(nodes, (i, node) => { const n = new Node(node); n.set("data", node); this.addNode(n); - queue.push(n); + queue.add(n); }); - while (!isEmpty(queue)) { - const parent = queue.shift(); + queue.forEach(parent => { + queue.delete(parent); const node = parent.get("data"); each(node.children, (i, child) => { const n = new Node(child); @@ -186,7 +186,7 @@ export class Tree { queue.push(n); this.addNode(parent, n); }); - } + }) } _toJSON(node) { @@ -265,7 +265,7 @@ export class Tree { continue; } if (temp != null) { - queue = queue.concat(temp.getChildren()); + queue.push(...temp.getChildren()); } } } diff --git a/packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js b/packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js index f7d46437d..45355275b 100644 --- a/packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js +++ b/packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js @@ -28,12 +28,12 @@ export class DynamicDateTimeSelect extends Widget { props () { return { baseCls: "bi-date-time-select", - height: SIZE_CONSANTS.LIST_ITEM_HEIGHT, + editorHeight: SIZE_CONSANTS.LIST_ITEM_HEIGHT, }; } render() { - const { height } = this.options; + const { editorHeight } = this.options; return { type: CenterAdaptLayout.xtype, @@ -79,7 +79,7 @@ export class DynamicDateTimeSelect extends Widget { } ], width: 60, - height, + height: editorHeight, }, }, { @@ -124,7 +124,7 @@ export class DynamicDateTimeSelect extends Widget { } ], width: 60, - height, + height: editorHeight, }, { type: Label.xtype, @@ -158,7 +158,7 @@ export class DynamicDateTimeSelect extends Widget { } ], width: 60, - height, + height: editorHeight, } ], }