fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
822 B

/**
* Created by roy on 15/10/16.
* 右与下箭头切换的树节点
*/
import { shortcut } from "@/core";
import { IconButton } from "@/base";
@shortcut()
export class ArrowTreeGroupNodeCheckbox extends IconButton {
static xtype = "bi.arrow_group_node_checkbox";
props(conf) {
return {
extraCls: `bi-arrow-group-node-checkbox ${conf.collapseIcon || "expander-right-font"}`,
expandIcon: "expander-down-font",
collapseIcon: "expander-right-font",
};
}
setSelected(v) {
const o = this.options;
super.setSelected(...arguments);
if (v) {
this.element.removeClass(o.collapseIcon).addClass(o.expandIcon);
} else {
this.element.removeClass(o.expandIcon).addClass(o.collapseIcon);
}
}
}