@builder.io/sdk-vue
Version:
Builder.io SDK for Vue
33 lines (32 loc) • 909 B
JavaScript
import "./style.css";
import { defineComponent as o, openBlock as r, createBlock as n, resolveDynamicComponent as i, mergeProps as s, withCtx as p, renderSlot as a } from "vue";
import { f as c } from "./find-block-4FksmtpZ.js";
import { b as d, _ as m } from "./index-DCvUkRIp.js";
const l = o({
name: "live-edit",
props: ["id", "attributes", "Wrapper"],
inject: {
context: d.key
},
computed: {
block() {
return c(this.context.content, this.id);
},
options() {
var t, e;
return ((e = (t = this.block) == null ? void 0 : t.component) == null ? void 0 : e.options) || {};
}
}
});
function u(t, e, f, b, k, _) {
return r(), n(i(t.Wrapper), s({ attributes: t.attributes }, t.options), {
default: p(() => [
a(t.$slots, "default")
]),
_: 3
}, 16, ["attributes"]);
}
const v = /* @__PURE__ */ m(l, [["render", u]]);
export {
v as default
};