forked from fanruan/fineui
Treecat
2 years ago
45 changed files with 1330 additions and 1152 deletions
@ -1,19 +1,24 @@
|
||||
import { IconButton } from "../../../base/single/button/buttons/button.icon"; |
||||
import { shortcut, extend } from "../../../core"; |
||||
|
||||
/** |
||||
* 统一的trigger图标按钮 |
||||
* |
||||
* Created by GUY on 2015/9/16. |
||||
* @class BI.TriggerIconButton |
||||
* @extends BI.IconButton |
||||
* @class TriggerIconButton |
||||
* @extends IconButton |
||||
*/ |
||||
BI.TriggerIconButton = BI.inherit(BI.IconButton, { |
||||
@shortcut() |
||||
export class TriggerIconButton extends IconButton { |
||||
static xtype = "bi.trigger_icon_button"; |
||||
EVENT_CHANGE = IconButton.EVENT_CHANGE; |
||||
|
||||
_defaultConfig() { |
||||
const conf = super._defaultConfig(arguments); |
||||
|
||||
_defaultConfig: function () { |
||||
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments); |
||||
return BI.extend(conf, { |
||||
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button overflow-hidden", |
||||
extraCls: "pull-down-font" |
||||
return extend(conf, { |
||||
baseCls: `${conf.baseCls || ""} bi-trigger-icon-button overflow-hidden`, |
||||
extraCls: "pull-down-font", |
||||
}); |
||||
} |
||||
}); |
||||
BI.TriggerIconButton.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE; |
||||
BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton); |
||||
} |
||||
|
@ -1,21 +1,28 @@
|
||||
import { IconButton } from "../../../../base/single/button/buttons/button.icon"; |
||||
import { shortcut, extend } from "../../../../core"; |
||||
|
||||
|
||||
/** |
||||
* guy |
||||
* @extends BI.Single |
||||
* @type {*|void|Object} |
||||
*/ |
||||
BI.HalfIconButton = BI.inherit(BI.IconButton, { |
||||
_defaultConfig: function () { |
||||
var conf = BI.HalfIconButton.superclass._defaultConfig.apply(this, arguments); |
||||
return BI.extend(conf, { |
||||
@shortcut() |
||||
export class HalfIconButton extends IconButton { |
||||
static xtype = "bi.half_icon_button"; |
||||
static EVENT_CHANGE = IconButton.EVENT_CHANGE |
||||
|
||||
_defaultConfig() { |
||||
const conf = super._defaultConfig(arguments); |
||||
|
||||
return extend(conf, { |
||||
extraCls: "bi-half-icon-button check-half-select-icon", |
||||
height: 16, |
||||
width: 16, |
||||
iconWidth: 16, |
||||
iconHeight: 16, |
||||
selected: false |
||||
selected: false, |
||||
}); |
||||
} |
||||
}); |
||||
BI.HalfIconButton.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE; |
||||
} |
||||
|
||||
BI.shortcut("bi.half_icon_button", BI.HalfIconButton); |
@ -0,0 +1,29 @@
|
||||
export { MultiSelectItem } from "./item.multiselect"; |
||||
export { SingleSelectIconTextItem } from "./item.singleselect.icontext"; |
||||
export { SingleSelectItem } from "./item.singleselect"; |
||||
export { SingleSelectRadioItem } from "./item.singleselect.radio"; |
||||
export { Switch } from "./switch"; |
||||
|
||||
export { IconChangeButton } from "./icon/icon.change"; |
||||
export { TriggerIconButton } from "./icon/icon.trigger"; |
||||
export { HalfIconButton } from "./icon/iconhalf/icon.half.image"; |
||||
export { HalfButton } from "./icon/iconhalf/icon.half"; |
||||
|
||||
export { ArrowNode } from "./node/node.arrow"; |
||||
export { FirstPlusGroupNode } from "./node/node.first.plus"; |
||||
export { IconArrowNode } from "./node/node.icon.arrow"; |
||||
export { LastPlusGroupNode } from "./node/node.last.plus"; |
||||
export { MidPlusGroupNode } from "./node/node.mid.plus"; |
||||
export { MultiLayerIconArrowNode } from "./node/node.multilayer.icon.arrow"; |
||||
export { PlusGroupNode } from "./node/node.plus"; |
||||
export { TreeNodeSwitcher } from "./node/siwtcher.tree.node"; |
||||
export { BasicTreeNode } from "./node/treenode"; |
||||
|
||||
export { FirstTreeLeafItem } from "./treeitem/item.first.treeleaf"; |
||||
export { IconTreeLeafItem } from "./treeitem/item.icon.treeleaf"; |
||||
export { LastTreeLeafItem } from "./treeitem/item.last.treeleaf"; |
||||
export { MidTreeLeafItem } from "./treeitem/item.mid.treeleaf"; |
||||
export { MultiLayerIconTreeLeafItem } from "./treeitem/item.multilayer.icon.treeleaf"; |
||||
export { RootTreeLeafItem } from "./treeitem/item.root.treeleaf"; |
||||
export { TreeTextLeafItem } from "./treeitem/item.treetextleaf"; |
||||
export { BasicTreeItem } from "./treeitem/treeitem"; |
Loading…
Reference in new issue