snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
51 lines (50 loc) • 1.37 kB
JavaScript
import { defineComponent as p, ref as s, createElementBlock as V, openBlock as w, createVNode as t, unref as m, withCtx as n, createTextVNode as _, createElementVNode as k } from "vue";
import { Badge as h, Button as x } from "ant-design-vue";
import B from "./drawer.vue.js";
/* empty css */
const D = /* @__PURE__ */ p({
__name: "formLogic",
props: {
modelValue: {}
},
emits: ["update:modelValue"],
setup(u, { emit: i }) {
const r = u, d = i, l = s();
function f() {
var e;
(e = l.value) == null || e.showDrawer(r.modelValue);
}
function c(e) {
d("update:modelValue", e);
}
return (e, o) => {
var a;
return w(), V("div", null, [
t(m(h), {
count: ((a = r.modelValue) == null ? void 0 : a.length) ?? 0
}, {
default: n(() => [
t(m(x), { onClick: f }, {
icon: n(() => o[0] || (o[0] = [
k("span", { class: "iconfont epic-icon-shezhi mr-1" }, null, -1)
])),
default: n(() => [
o[1] || (o[1] = _(" 配置 "))
]),
_: 1
})
]),
_: 1
}, 8, ["count"]),
t(B, {
ref_key: "drawerRef",
ref: l,
onOk: c
}, null, 512)
]);
};
}
});
export {
D as default
};