snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
78 lines (77 loc) • 1.81 kB
JavaScript
import { addRowAfterRightClick as t, addColumnAfterRightClick as l, mergeRight as r, mergeDown as i, splitCell as c, deleteRowAfterRightClick as a, deleteColumnAfterRightClick as p } from "./contextMenu.js";
const s = {
component: () => import("./td.vue.js"),
config: {
action: [],
attribute: [
{
field: "componentProps.hidden",
label: "隐藏",
type: "switch"
}
],
event: []
},
contextMenu: [
{
handler: t,
icon: "icon--epic--table-row-plus-after",
label: "新增行"
},
{
handler: l,
icon: "icon--epic--table-column-plus-after",
label: "新增列"
},
{
handler: r,
icon: "icon--epic--arrow-bar-to-right",
label: "向右合并"
},
{
handler: i,
icon: "icon--epic--arrow-bar-to-down",
label: "向下合并"
},
{
handler: c,
icon: "icon--epic--dataset-outline-rounded",
label: "拆分单元格",
show: (o) => {
var e, n;
return ((e = o.componentProps) == null ? void 0 : e.colspan) > 1 || ((n = o.componentProps) == null ? void 0 : n.rowspan) > 1;
}
},
{
divider: !0,
handler: a,
icon: "icon--epic--table-row-remove",
label: "删除行",
show: (o) => {
var e;
return !(((e = o.componentProps) == null ? void 0 : e.rowspan) > 1);
}
},
{
handler: p,
icon: "icon--epic--table-column-remove",
label: "删除列",
show: (o) => {
var e;
return !(((e = o.componentProps) == null ? void 0 : e.colspan) > 1);
}
}
],
defaultSchema: {
icon: "icon-tabs",
label: "单元格",
type: "td",
children: []
},
editConstraints: {
locked: !0
}
};
export {
s as default
};