yjtest_component_button_3 0.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/README.md +5 -0
- package/dist/es/button/index.d.ts +21 -0
- package/dist/es/button/index.mjs +8 -0
- package/dist/es/button/index.vue.d.ts +4 -0
- package/dist/es/button/index.vue.mjs +18 -0
- package/dist/es/button/index.vue2.mjs +4 -0
- package/dist/es/components.d.ts +1 -0
- package/dist/es/components.mjs +5 -0
- package/dist/es/index.d.ts +6 -0
- package/dist/es/index.mjs +16 -0
- package/dist/lib/button/index.d.ts +21 -0
- package/dist/lib/button/index.js +8 -0
- package/dist/lib/button/index.vue.d.ts +4 -0
- package/dist/lib/button/index.vue.js +18 -0
- package/dist/lib/button/index.vue2.js +4 -0
- package/dist/lib/components.d.ts +1 -0
- package/dist/lib/components.js +5 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.js +16 -0
- package/package.json +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Plugin } from 'vue';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
4
|
+
handleClick: () => void;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
6
|
+
P: {};
|
|
7
|
+
B: {};
|
|
8
|
+
D: {};
|
|
9
|
+
C: {};
|
|
10
|
+
M: {};
|
|
11
|
+
Defaults: {};
|
|
12
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
13
|
+
handleClick: () => void;
|
|
14
|
+
}, {}, {}, {}, {}>;
|
|
15
|
+
__isFragment?: never;
|
|
16
|
+
__isTeleport?: never;
|
|
17
|
+
__isSuspense?: never;
|
|
18
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
19
|
+
handleClick: () => void;
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[], any[]>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
handleClick: () => void;
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
...{
|
|
4
|
+
name: "LButton"
|
|
5
|
+
},
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const handleClick = () => {
|
|
9
|
+
window.alert("button clicked");
|
|
10
|
+
};
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("button", { onClick: handleClick }, "惦记我");
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
_sfc_main as default
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as YJButton } from './button';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as components from "./components.mjs";
|
|
2
|
+
import "./button/index.mjs";
|
|
3
|
+
import { default as default2 } from "./button/index.vue.mjs";
|
|
4
|
+
const index = {
|
|
5
|
+
install(app) {
|
|
6
|
+
for (const component in components) {
|
|
7
|
+
const Comp = components[component];
|
|
8
|
+
if (Comp.install) app.use(Comp);
|
|
9
|
+
}
|
|
10
|
+
return app;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
default2 as YJButton,
|
|
15
|
+
index as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Plugin } from 'vue';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
4
|
+
handleClick: () => void;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
6
|
+
P: {};
|
|
7
|
+
B: {};
|
|
8
|
+
D: {};
|
|
9
|
+
C: {};
|
|
10
|
+
M: {};
|
|
11
|
+
Defaults: {};
|
|
12
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
13
|
+
handleClick: () => void;
|
|
14
|
+
}, {}, {}, {}, {}>;
|
|
15
|
+
__isFragment?: never;
|
|
16
|
+
__isTeleport?: never;
|
|
17
|
+
__isSuspense?: never;
|
|
18
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
19
|
+
handleClick: () => void;
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[], any[]>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const index_vue_vue_type_script_setup_true_lang = require("./index.vue.js");
|
|
4
|
+
index_vue_vue_type_script_setup_true_lang.default.install = (app) => {
|
|
5
|
+
app.component(index_vue_vue_type_script_setup_true_lang.default.name, index_vue_vue_type_script_setup_true_lang.default);
|
|
6
|
+
return app;
|
|
7
|
+
};
|
|
8
|
+
exports.default = index_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
handleClick: () => void;
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
+
...{
|
|
6
|
+
name: "LButton"
|
|
7
|
+
},
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const handleClick = () => {
|
|
11
|
+
window.alert("button clicked");
|
|
12
|
+
};
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return vue.openBlock(), vue.createElementBlock("button", { onClick: handleClick }, "惦记我");
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const index_vue_vue_type_script_setup_true_lang = require("./index.vue.js");
|
|
4
|
+
exports.default = index_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as YJButton } from './button';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./button/index.js");
|
|
4
|
+
const index_vue_vue_type_script_setup_true_lang = require("./button/index.vue.js");
|
|
5
|
+
exports.YJButton = index_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const components = require("./components.js");
|
|
4
|
+
require("./button/index.js");
|
|
5
|
+
const index_vue_vue_type_script_setup_true_lang = require("./button/index.vue.js");
|
|
6
|
+
const index = {
|
|
7
|
+
install(app) {
|
|
8
|
+
for (const component in components) {
|
|
9
|
+
const Comp = components[component];
|
|
10
|
+
if (Comp.install) app.use(Comp);
|
|
11
|
+
}
|
|
12
|
+
return app;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
exports.YJButton = index_vue_vue_type_script_setup_true_lang.default;
|
|
16
|
+
exports.default = index;
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yjtest_component_button_3",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"types": "dist/lib/index.d.ts",
|
|
5
|
+
"main": "dist/lib/index.js",
|
|
6
|
+
"module": "dist/es/index.mjs",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/es",
|
|
9
|
+
"dist/lib"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"测试打包组件库"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "vite build",
|
|
17
|
+
"preview": "vite preview"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"vue": "^3.5.24"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^24.10.1",
|
|
24
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
25
|
+
"@vue/tsconfig": "^0.8.1",
|
|
26
|
+
"typescript": "~5.9.3",
|
|
27
|
+
"unplugin-vue-define-options": "^3.1.2",
|
|
28
|
+
"vite": "^7.2.4",
|
|
29
|
+
"vite-plugin-dts": "1.4.1",
|
|
30
|
+
"vue-tsc": "^3.1.4"
|
|
31
|
+
}
|
|
32
|
+
}
|