Browse Source

无jira fix:AsyncTree

es6
Treecat 2 years ago
parent
commit
b434419469
  1. 6
      packages/demo/src/demo/base/tree/demo.sync_tree.js
  2. 2
      packages/fineui/src/case/ztree/asynctree.js
  3. 2
      packages/fineui/src/case/ztree/list/listparttree.js
  4. 4
      packages/fineui/src/case/ztree/parttree.js
  5. 4
      packages/fineui/src/widget/multiselecttree/multiselecttree.popup.js
  6. 6
      packages/fineui/src/widget/multitree/multi.tree.popup.js
  7. 2
      scripts/lib/fui.component.json
  8. 2
      scripts/lib/fui.export.txt

6
packages/demo/src/demo/base/tree/demo.sync_tree.js

@ -1,5 +1,5 @@
import { VTapeLayout, Label, Asynctree, shortcut, Widget, isNull } from "@fui/core"
import { VTapeLayout, Label, AsyncTree, shortcut, Widget, isNull } from "@fui/core"
@shortcut()
@ -33,7 +33,7 @@ export class SyncTreeDemo extends Widget {
text: "可以异步获取数据的树",
},
{
type: Asynctree.xtype,
type: AsyncTree.xtype,
ref(_ref) {
self.syncTree1 = _ref;
},
@ -78,7 +78,7 @@ export class SyncTreeDemo extends Widget {
text: "showIcon属性搭配节点iconCls,可以显示图标",
},
{
type: Asynctree.xtype,
type: AsyncTree.xtype,
ref(_ref) {
self.syncTree2 = _ref;
},

2
packages/fineui/src/case/ztree/asynctree.js

@ -4,7 +4,7 @@ import { TreeRenderPageService } from "./treerender.page.service";
import $ from "jquery";
@shortcut()
export class Asynctree extends TreeView {
export class AsyncTree extends TreeView {
static xtype = "bi.async_tree";
_defaultConfig() {

2
packages/fineui/src/case/ztree/list/listparttree.js

@ -7,7 +7,7 @@ import $ from "jquery";
* guy
* 局部树两个请求树 第一个请求构造树第二个请求获取节点
* @class ListPartTree
* @extends Asynctree
* @extends AsyncTree
*/
@shortcut()

4
packages/fineui/src/case/ztree/parttree.js

@ -1,5 +1,5 @@
import { isEmpty, shortcut, extend, deepClone, each, isNotEmptyArray, Events, delay, isNull } from "@/core";
import { Asynctree } from "./asynctree";
import { AsyncTree } from "./asynctree";
import { TreeView } from "./treeview";
import $ from "jquery";
@ -11,7 +11,7 @@ import $ from "jquery";
*/
@shortcut()
export class PartTree extends Asynctree {
export class PartTree extends AsyncTree {
static xtype = "bi.part_tree";
static EVENT_CLICK_TREE_NODE = "EVENT_CLICK_TREE_NODE";

4
packages/fineui/src/widget/multiselecttree/multiselecttree.popup.js

@ -1,5 +1,5 @@
import { shortcut, Widget, extend, emptyFn, createWidget } from "@/core";
import { TreeView, Asynctree } from "@/case";
import { TreeView, AsyncTree } from "@/case";
@shortcut()
export class MultiSelectTreePopup extends Widget {
@ -20,7 +20,7 @@ export class MultiSelectTreePopup extends Widget {
const self = this,
o = this.options;
this.popup = createWidget({
type: Asynctree.xtype,
type: AsyncTree.xtype,
showLine: o.showLine,
element: this,
itemsCreator: o.itemsCreator,

6
packages/fineui/src/widget/multitree/multi.tree.popup.js

@ -1,6 +1,6 @@
import { shortcut, extend, emptyFn, createWidget, i18nText } from "@/core";
import { Pane } from "@/base";
import { Asynctree, MultiPopupView, TreeView } from "@/case";
import { AsyncTree, MultiPopupView, TreeView } from "@/case";
@shortcut()
export class MultiTreePopup extends Pane {
@ -19,7 +19,7 @@ export class MultiTreePopup extends Pane {
maxHeight: 400,
onLoaded: emptyFn,
el: {
type: Asynctree.xtype,
type: AsyncTree.xtype,
},
});
}
@ -34,7 +34,7 @@ export class MultiTreePopup extends Pane {
this.selectedValues = {};
this.tree = createWidget(opts.el, {
type: Asynctree.xtype,
type: AsyncTree.xtype,
showLine: opts.showLine,
height: 400,
cls: "popup-view-tree",

2
scripts/lib/fui.component.json

@ -166,7 +166,7 @@
"bi.select_text_trigger": "SelectTextTrigger",
"bi.small_select_text_trigger": "SmallSelectTextTrigger",
"bi.small_text_trigger": "SmallTextTrigger",
"bi.async_tree": "Asynctree",
"bi.async_tree": "AsyncTree",
"bi.list_async_tree": "Listasynctree",
"bi.list_part_tree": "ListPartTree",
"bi.list_tree_view": "Listtreeview",

2
scripts/lib/fui.export.txt

@ -17,7 +17,7 @@ AllCountPager
AllValueMultiTextValueCombo
ArrowNode
ArrowTreeGroupNodeCheckbox
Asynctree
AsyncTree
AutoVerticalTapeLayout
Axis
BarPopover

Loading…
Cancel
Save