import { shortcut, Widget } from "@/core"; import { Msg } from "@/base"; @shortcut() export class Message extends Widget { static xtype = "demo.message"; props = { baseCls: "demo-bubble" }; render() { return { type: "bi.center_adapt", items: [ { el: { type: "bi.button", text: "点击我弹出一个消息框", height: 30, handler() { Msg.alert("测试消息框", "我是测试消息框的内容"); }, }, } ], }; } }