fancy-plugins-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/Button/button.vue.d.ts +18 -0
- package/dist/Button/types.d.ts +5 -0
- package/dist/components.d.ts +1 -0
- package/dist/fancy-components.d.ts +2 -0
- package/dist/fancy-components.js +30 -0
- package/dist/fancy-components.umd.cjs +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/installer.d.ts +2 -0
- package/package.json +25 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLButtonElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FancyButton } from './Button/button.vue';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as r, createElementBlock as l, openBlock as a, createTextVNode as c, renderSlot as s } from "vue";
|
|
2
|
+
const p = /* @__PURE__ */ r({
|
|
3
|
+
name: "FancyButton",
|
|
4
|
+
__name: "button",
|
|
5
|
+
props: {
|
|
6
|
+
type: {},
|
|
7
|
+
size: {},
|
|
8
|
+
loading: {}
|
|
9
|
+
},
|
|
10
|
+
setup(n) {
|
|
11
|
+
return (e, t) => (a(), l("button", null, [
|
|
12
|
+
t[0] || (t[0] = c("这是button ", -1)),
|
|
13
|
+
s(e.$slots, "default")
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
}), o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
FancyButton: p
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), m = {
|
|
20
|
+
install(n) {
|
|
21
|
+
Object.keys(o).forEach((e) => {
|
|
22
|
+
const t = o[e];
|
|
23
|
+
t && t.name && n.component(t.name, t);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
p as FancyButton,
|
|
29
|
+
m as installer
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.FancyComponents={},n.Vue))})(this,(function(n,e){"use strict";const i=e.defineComponent({name:"FancyButton",__name:"button",props:{type:{},size:{},loading:{}},setup(l){return(o,t)=>(e.openBlock(),e.createElementBlock("button",null,[t[0]||(t[0]=e.createTextVNode("这是button ",-1)),e.renderSlot(o.$slots,"default")]))}}),s=Object.freeze(Object.defineProperty({__proto__:null,FancyButton:i},Symbol.toStringTag,{value:"Module"})),r={install(l){Object.keys(s).forEach(o=>{const t=s[o];t&&t.name&&l.component(t.name,t)})}};n.FancyButton=i,n.installer=r,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fancy-plugins-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./dist/fancy-components.js",
|
|
6
|
+
"module": "./dist/fancy-components.js",
|
|
7
|
+
"types": "./dist/fancy-components.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/fancy-components.d.ts",
|
|
11
|
+
"import": "./dist/fancy-components.js",
|
|
12
|
+
"require": "./dist/fancy-components.umd.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "vite build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [],
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"type": "module"
|
|
25
|
+
}
|