forked from fanruan/fineui
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
660 B
29 lines
660 B
2 years ago
|
import { shortcut, Widget, createWidget } from "@/core";
|
||
8 years ago
|
|
||
2 years ago
|
@shortcut()
|
||
|
export class Func extends Widget {
|
||
|
static xtype = "demo.icon_trigger";
|
||
8 years ago
|
|
||
2 years ago
|
props = { baseCls: "demo-func" };
|
||
|
|
||
|
render() {
|
||
|
createWidget({
|
||
8 years ago
|
type: "bi.vertical",
|
||
|
element: this,
|
||
2 years ago
|
items: [
|
||
|
{
|
||
|
type: "bi.label",
|
||
|
text: "只有一个图标的trigger",
|
||
|
},
|
||
|
{
|
||
|
type: "bi.icon_trigger",
|
||
|
width: 30,
|
||
|
height: 24,
|
||
|
}
|
||
|
],
|
||
8 years ago
|
hgap: 20,
|
||
2 years ago
|
vgap: 20,
|
||
7 years ago
|
});
|
||
8 years ago
|
}
|
||
2 years ago
|
}
|