@tlylt/vue-component-0
Version:
55 lines (54 loc) • 1.68 kB
JavaScript
import { defineComponent as a, ref as p, createElementBlock as i, openBlock as d, Fragment as c, createElementVNode as e, toDisplayString as u, createTextVNode as o } from "vue";
const m = { class: "card" }, g = /* @__PURE__ */ a({
__name: "HelloWorld",
props: {
msg: {}
},
setup(l) {
const n = p(0);
return (r, t) => (d(), i(c, null, [
e("h1", null, u(r.msg), 1),
e("div", m, [
e("button", {
type: "button",
onClick: t[0] || (t[0] = (s) => n.value++)
}, "count is " + u(n.value), 1),
t[1] || (t[1] = e("p", null, [
o(" Edit "),
e("code", null, "components/HelloWorld.vue"),
o(" to test HMR ")
], -1))
]),
t[2] || (t[2] = e("p", null, [
o(" Check out "),
e("a", {
href: "https://vuejs.org/guide/quick-start.html#local",
target: "_blank"
}, "create-vue"),
o(", the official Vue + Vite starter ")
], -1)),
t[3] || (t[3] = e("p", null, [
o(" Learn more about IDE Support for Vue in the "),
e("a", {
href: "https://vuejs.org/guide/scaling-up/tooling.html#ide-support",
target: "_blank"
}, "Vue Docs Scaling up Guide"),
o(". ")
], -1)),
t[4] || (t[4] = e("p", { class: "read-the-docs" }, "Click on the Vite and Vue logos to learn more", -1))
], 64));
}
}), f = (l, n) => {
const r = l.__vccOpts || l;
for (const [t, s] of n)
r[t] = s;
return r;
}, v = /* @__PURE__ */ f(g, [["__scopeId", "data-v-cc337d8c"]]), V = {
install(l) {
l.component("HelloWorld", v);
}
};
export {
v as HelloWorld,
V as default
};