@wangke001/components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +2 -0
- package/dist/index.mjs +22 -0
- package/dist/index.umd.js +1 -0
- package/package.json +22 -0
package/dist/index.css
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElementBlock as e, createTextVNode as t, defineComponent as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
+
//#region src/button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var a = { class: "wkk-btn" }, o = /* @__PURE__ */ ((e, t) => {
|
|
4
|
+
let n = e.__vccOpts || e;
|
|
5
|
+
for (let [e, r] of t) n[e] = r;
|
|
6
|
+
return n;
|
|
7
|
+
})(/* @__PURE__ */ n({
|
|
8
|
+
__name: "button",
|
|
9
|
+
setup(n) {
|
|
10
|
+
return (n, o) => (r(), e("button", a, [i(n.$slots, "default", {}, () => [o[0] ||= t("默认按钮11", -1)], !0)]));
|
|
11
|
+
}
|
|
12
|
+
}), [["__scopeId", "data-v-5ac2e32b"]]);
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region index.ts
|
|
15
|
+
o.install = (e) => {
|
|
16
|
+
e.component("WButton", o);
|
|
17
|
+
};
|
|
18
|
+
var s = { install(e) {
|
|
19
|
+
e.use(o.install);
|
|
20
|
+
} };
|
|
21
|
+
//#endregion
|
|
22
|
+
export { o as WButton, s as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.WkkUI={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var n={class:`wkk-btn`},r=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,t.defineComponent)({__name:`button`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,n,[(0,t.renderSlot)(e.$slots,`default`,{},()=>[r[0]||=(0,t.createTextVNode)(`默认按钮11`,-1)],!0)]))}}),[[`__scopeId`,`data-v-5ac2e32b`]]);r.install=e=>{e.component(`WButton`,r)},e.WButton=r,e.default={install(e){e.use(r.install)}}});
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wangke001/components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"main": "dist/index.umd.js",
|
|
8
|
+
"module": "dist/index.mjs",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "vite build"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
18
|
+
"typescript": "~6.0.2",
|
|
19
|
+
"vite": "^8.0.8",
|
|
20
|
+
"vue": "^3.5.32"
|
|
21
|
+
}
|
|
22
|
+
}
|