ck-plus
Version:
vite制作npm包
42 lines (41 loc) • 955 B
JavaScript
import { openBlock as d, createElementBlock as l, normalizeClass as r, renderSlot as i } from "vue";
const u = (t, e) => {
const o = t.__vccOpts || t;
for (const [c, a] of e)
o[c] = a;
return o;
}, f = {
name: "ckButton"
}, p = /* @__PURE__ */ Object.assign(f, {
props: {
size: {
type: String,
default: "middle"
},
type: {
type: String,
default: "default"
}
},
setup(t) {
return (e, o) => (d(), l("button", {
class: r(["ck-btn", [t.size, t.type]])
}, [
i(e.$slots, "default", {}, void 0, !0)
], 2));
}
}), _ = /* @__PURE__ */ u(p, [["__scopeId", "data-v-7db37d9c"]]), s = [_], n = function(t) {
n.installed || (n.installed = !0, s.map((e) => {
t.component(e.name, e);
}));
};
typeof window < "u" && window.Vue && n(window.Vue);
const w = {
// 导出的对象必须具备一个 install 方法
install: n,
// 组件列表
...s
};
export {
w as default
};