|
|
|
import { shortcut, Widget } from "@/core";
|
|
|
|
|
|
|
|
@shortcut()
|
|
|
|
export class Button extends Widget {
|
|
|
|
static xtype = "demo.icon_button";
|
|
|
|
|
|
|
|
props = { baseCls: "demo-button" };
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const items = [
|
|
|
|
{
|
|
|
|
el: {
|
|
|
|
type: "bi.icon_button",
|
|
|
|
cls: "close-ha-font",
|
|
|
|
width: 25,
|
|
|
|
height: 25,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
return {
|
|
|
|
type: "bi.left",
|
|
|
|
vgap: 200,
|
|
|
|
hgap: 20,
|
|
|
|
items,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|