UNPKG

arco-crud-plus

Version:

基于arco-design-vue的配置化表格表单组件

41 lines (40 loc) 1.21 kB
var a = Object.defineProperty; var n = (e, t, r) => t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; var l = (e, t, r) => n(e, typeof t != "symbol" ? t + "" : t, r); import { Modal as o } from "@arco-design/web-vue"; import { h as i } from "vue"; class d { constructor() { l(this, "title", ""); l(this, "tag", ""); l(this, "alwaysEnable", !0); this.title = "预览", this.tag = "button"; } // 获取菜单执行时的 value ,用不到则返回 空字符串 或 false getValue(t) { return !1; } // 菜单是否需要激活(如选中加粗文本,“加粗”菜单会激活),用不到则返回 false isActive(t) { return !1; } // 菜单是否需要禁用(如选中 H1 ,“引用”菜单被禁用),用不到则返回 false isDisabled(t) { return !1; } // 点击菜单时触发的函数 async exec(t, r) { o.open({ title: "预览", content: () => i("div", { class: "info-modal-content", innerHTML: t.getHtml() }), fullscreen: !0, // width: "80vw", // bodyStyle: { height: "80vh" }, okText: "关闭", hideCancel: !0 }); } } export { d as default };