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.

85 lines
2.4 KiB

import { shortcut, Widget, Bubbles } from "@/core";
@shortcut()
export class Bubble extends Widget {
static xtype = "demo.bubble";
props = { baseCls: "demo-bubble" };
render() {
const btns = [];
const items = [
8 years ago
{
el: {
ref(_ref) {
8 years ago
btns.push(_ref);
},
7 years ago
type: "bi.button",
text: "bubble测试(消息)",
title: "123",
8 years ago
height: 30,
handler() {
Bubbles.show("singleBubble1", "bubble测试", this, {
level: "common",
});
},
},
},
{
8 years ago
el: {
ref(_ref) {
8 years ago
btns.push(_ref);
},
7 years ago
type: "bi.button",
text: "bubble测试(成功)",
8 years ago
height: 30,
handler() {
Bubbles.show("singleBubble2", "bubble测试", this, {
offsetStyle: "center",
level: "success",
8 years ago
});
},
},
},
{
8 years ago
el: {
ref(_ref) {
8 years ago
btns.push(_ref);
},
7 years ago
type: "bi.button",
text: "bubble测试(错误)",
8 years ago
height: 30,
handler() {
Bubbles.show("singleBubble3", "bubble测试", this, {
offsetStyle: "right",
level: "error",
});
},
},
},
{
el: {
ref(_ref) {
btns.push(_ref);
},
type: "bi.button",
text: "bubble测试(警告)",
height: 30,
handler() {
Bubbles.show("singleBubble4", "bubble测试", this, {
level: "warning",
8 years ago
});
},
},
8 years ago
}
];
8 years ago
return {
type: "bi.left",
8 years ago
vgap: 200,
hgap: 20,
items,
7 years ago
};
8 years ago
}
}