lty-protocol 1.0.3 → 1.0.5
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.d.ts +2 -28
- package/dist/lty-protocol.mjs +19 -20
- package/dist/lty-protocol.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
|
+
import { default as MyButton } from './components/MyButton.vue';
|
|
1
2
|
import { Plugin } from 'vue';
|
|
2
|
-
export declare const ExportedMyButton: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
4
|
-
onClick?: (() => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
click: () => any;
|
|
7
|
-
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<{}> & Readonly<{
|
|
15
|
-
onClick?: (() => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
21
|
-
onClick?: (() => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
-
click: () => any;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
25
|
-
$slots: {
|
|
26
|
-
default?(_: {}): any;
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
export { ExportedMyButton as MyButton };
|
|
30
3
|
declare const Protocol: Plugin;
|
|
4
|
+
export { MyButton };
|
|
31
5
|
export default Protocol;
|
package/dist/lty-protocol.mjs
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, openBlock as r, createElementBlock as a, renderSlot as l } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ s({
|
|
3
3
|
name: "MyButton",
|
|
4
4
|
__name: "MyButton",
|
|
5
5
|
emits: ["click"],
|
|
6
|
-
setup(o, { emit:
|
|
7
|
-
const
|
|
8
|
-
|
|
6
|
+
setup(o, { emit: t }) {
|
|
7
|
+
const n = t, e = () => {
|
|
8
|
+
n("click");
|
|
9
9
|
};
|
|
10
|
-
return (c,
|
|
10
|
+
return (c, u) => (r(), a("button", {
|
|
11
11
|
class: "my-btn",
|
|
12
12
|
onClick: e
|
|
13
13
|
}, [
|
|
14
|
-
|
|
14
|
+
l(c.$slots, "default", {}, void 0, !0)
|
|
15
15
|
]));
|
|
16
16
|
}
|
|
17
|
-
}),
|
|
18
|
-
const
|
|
19
|
-
for (const [e, c] of
|
|
20
|
-
|
|
21
|
-
return
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
}), _ = (o, t) => {
|
|
18
|
+
const n = o.__vccOpts || o;
|
|
19
|
+
for (const [e, c] of t)
|
|
20
|
+
n[e] = c;
|
|
21
|
+
return n;
|
|
22
|
+
}, i = /* @__PURE__ */ _(m, [["__scopeId", "data-v-c654f959"]]), p = [
|
|
23
|
+
i
|
|
24
|
+
], d = {
|
|
25
25
|
install(o) {
|
|
26
|
-
|
|
27
|
-
o.component(
|
|
26
|
+
p.forEach((t) => {
|
|
27
|
+
o.component(t.name, t);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
y as default
|
|
32
|
+
i as MyButton,
|
|
33
|
+
d as default
|
|
35
34
|
};
|
package/dist/lty-protocol.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t
|
|
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["lty-protocol"]={},e.Vue))})(this,(function(e,t){"use strict";const u=((o,n)=>{const c=o.__vccOpts||o;for(const[s,i]of n)c[s]=i;return c})(t.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(o,{emit:n}){const c=n,s=()=>{c("click")};return(i,_)=>(t.openBlock(),t.createElementBlock("button",{class:"my-btn",onClick:s},[t.renderSlot(i.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-c654f959"]]),l=[u],r={install(o){l.forEach(n=>{o.component(n.name,n)})}};e.MyButton=u,e.default=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|