yj-components-test4 1.0.1
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/choosebutton/index.css +1 -0
- package/choosebutton/index.d.ts +5 -0
- package/choosebutton/index.mjs +26 -0
- package/choosebutton/index.umd.js +1 -0
- package/choosebutton/package.json +8 -0
- package/index.css +1 -0
- package/index.d.ts +5 -0
- package/index.mjs +38 -0
- package/index.umd.js +1 -0
- package/package.json +20 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vkbutton[data-v-7e906ff8]{background:red;color:#fff}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as s, createElementBlock as a, openBlock as r } from "vue";
|
|
2
|
+
const _ = /* @__PURE__ */ s({
|
|
3
|
+
name: "LButton",
|
|
4
|
+
__name: "index",
|
|
5
|
+
setup(t) {
|
|
6
|
+
const n = () => {
|
|
7
|
+
window.alert("button clicked");
|
|
8
|
+
};
|
|
9
|
+
return (o, e) => (r(), a("button", {
|
|
10
|
+
class: "vkbutton",
|
|
11
|
+
onClick: n
|
|
12
|
+
}, "惦记我"));
|
|
13
|
+
}
|
|
14
|
+
}), l = (t, n) => {
|
|
15
|
+
const o = t.__vccOpts || t;
|
|
16
|
+
for (const [e, c] of n)
|
|
17
|
+
o[e] = c;
|
|
18
|
+
return o;
|
|
19
|
+
}, p = /* @__PURE__ */ l(_, [["__scopeId", "data-v-7e906ff8"]]), i = {
|
|
20
|
+
install(t) {
|
|
21
|
+
t.component("YJ-Button", p);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
i as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.index=t(e.Vue))})(this,(function(e){"use strict";const s=((n,o)=>{const c=n.__vccOpts||n;for(const[i,u]of o)c[i]=u;return c})(e.defineComponent({name:"LButton",__name:"index",setup(n){const o=()=>{window.alert("button clicked")};return(c,i)=>(e.openBlock(),e.createElementBlock("button",{class:"vkbutton",onClick:o},"惦记我"))}}),[["__scopeId","data-v-7e906ff8"]]);return{install(n){n.component("YJ-Button",s)}}}));
|
package/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vkbutton[data-v-7e906ff8]{background:red;color:#fff}
|
package/index.d.ts
ADDED
package/index.mjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as r, createElementBlock as l, openBlock as a } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ r({
|
|
3
|
+
name: "LButton",
|
|
4
|
+
__name: "index",
|
|
5
|
+
setup(t) {
|
|
6
|
+
const o = () => {
|
|
7
|
+
window.alert("button clicked");
|
|
8
|
+
};
|
|
9
|
+
return (n, e) => (a(), l("button", {
|
|
10
|
+
class: "vkbutton",
|
|
11
|
+
onClick: o
|
|
12
|
+
}, "惦记我"));
|
|
13
|
+
}
|
|
14
|
+
}), _ = (t, o) => {
|
|
15
|
+
const n = t.__vccOpts || t;
|
|
16
|
+
for (const [e, s] of o)
|
|
17
|
+
n[e] = s;
|
|
18
|
+
return n;
|
|
19
|
+
}, i = /* @__PURE__ */ _(u, [["__scopeId", "data-v-7e906ff8"]]), p = {
|
|
20
|
+
install(t) {
|
|
21
|
+
t.component("YJ-Button", i);
|
|
22
|
+
}
|
|
23
|
+
}, c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
YJButton: p
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), f = {
|
|
27
|
+
install(t) {
|
|
28
|
+
for (const o in c) {
|
|
29
|
+
const n = c[o];
|
|
30
|
+
n.install && t.use(n);
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
p as YJButton,
|
|
37
|
+
f as default
|
|
38
|
+
};
|
package/index.umd.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.index={},e.Vue))})(this,(function(e,n){"use strict";const l=((t,c)=>{const o=t.__vccOpts||t;for(const[u,d]of c)o[u]=d;return o})(n.defineComponent({name:"LButton",__name:"index",setup(t){const c=()=>{window.alert("button clicked")};return(o,u)=>(n.openBlock(),n.createElementBlock("button",{class:"vkbutton",onClick:c},"惦记我"))}}),[["__scopeId","data-v-7e906ff8"]]),i={install(t){t.component("YJ-Button",l)}},s=Object.freeze(Object.defineProperty({__proto__:null,YJButton:i},Symbol.toStringTag,{value:"Module"})),r={install(t){for(const c in s){const o=s[c];o.install&&t.use(o)}return t}};e.YJButton=i,e.default=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"name":"yj-components-test4",
|
|
4
|
+
"version":"1.0.1",
|
|
5
|
+
"main":"index.umd.js",
|
|
6
|
+
"module":"index.js",
|
|
7
|
+
"types":"index.d.ts",
|
|
8
|
+
"author":{
|
|
9
|
+
"name":"yj"
|
|
10
|
+
},
|
|
11
|
+
"keywords":[
|
|
12
|
+
"element-plus",
|
|
13
|
+
"ts",
|
|
14
|
+
"封装组件",
|
|
15
|
+
"二次封装",
|
|
16
|
+
"element-plus二次封装",
|
|
17
|
+
"yj"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
|