tutor-pro-ui-vue 1.0.17-beta → 1.0.19-beta

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.
@@ -0,0 +1,5 @@
1
+ import { SFCWithInstall } from '../typescript';
2
+ import { default as Button } from './src/index';
3
+ declare const CommonButton: SFCWithInstall<typeof Button>;
4
+ export default CommonButton;
5
+ export * from './src/types';
@@ -0,0 +1,27 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ debounce: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ label: {
7
+ type: FunctionConstructor;
8
+ default: () => string;
9
+ };
10
+ }>, {
11
+ debounceClick: import('@vueuse/core').PromisifyFn<() => void>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ debounce: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ label: {
18
+ type: FunctionConstructor;
19
+ default: () => string;
20
+ };
21
+ }>> & Readonly<{
22
+ onClick?: ((...args: any[]) => any) | undefined;
23
+ }>, {
24
+ debounce: number;
25
+ label: Function;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from 'element-plus';
2
+ import { VNode } from 'vue';
3
+ export interface CommonButtonProps extends ButtonProps {
4
+ debounce?: number;
5
+ label?: () => VNode;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ debounce: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ }>, {
7
+ debounceClick: import('@vueuse/core').PromisifyFn<() => void>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ debounce: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ }>> & Readonly<{
14
+ onClick?: ((...args: any[]) => any) | undefined;
15
+ }>, {
16
+ debounce: number;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { default as CommonButton } from './CommonButton';
2
+
3
+
4
+ declare module 'vue' {
5
+ export interface GlobalComponents {
6
+ CommonButton: typeof CommonButton;
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ import { default as CommonButton } from './CommonButton';
2
+ /**
3
+ * 按需引入
4
+ */
5
+ export { CommonButton };
6
+ declare const _default: {
7
+ install: any;
8
+ };
9
+ export default _default;
10
+ export * from './types';
@@ -0,0 +1 @@
1
+ export * from './CommonButton';
@@ -0,0 +1,6 @@
1
+ import { AppContext, EmitsOptions, Plugin, SetupContext } from 'vue';
2
+ export type SFCWithInstall<T> = T & Plugin;
3
+ export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
+ _context: AppContext | null;
5
+ };
6
+ export type EmitFn<E extends EmitsOptions> = SetupContext<E>['emit'];
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
+ export {};
@@ -1 +1,6 @@
1
+ export * from './src/components/index'
2
+ export {}
3
+ import TutorProUiVue from './src/components/index'
4
+ export default TutorProUiVue
5
+ export * from './src/components/index'
1
6
  export {}
package/package.json CHANGED
@@ -1,60 +1,60 @@
1
- {
2
- "name": "tutor-pro-ui-vue",
3
- "private": false,
4
- "version": "1.0.17-beta",
5
- "type": "module",
6
- "main": "dist/tutor-pro-ui-vue.es.js",
7
- "module": "dist/tutor-pro-ui-vue.es.js",
8
- "files": [
9
- "dist"
10
- ],
11
- "exports": {
12
- ".": {
13
- "import": "./dist/tutor-pro-ui-vue.es.js"
14
- }
15
- },
16
- "scripts": {
17
- "dev": "vite",
18
- "build": "vue-tsc -b && vite build",
19
- "preview": "vite preview",
20
- "eslint": "npx eslint src/**",
21
- "commit": "git-cz",
22
- "docs:dev": "vitepress dev docs",
23
- "docs:build": "vitepress build docs",
24
- "docs:preview": "vitepress preview docs",
25
- "release": "npm publish"
26
- },
27
- "dependencies": {
28
- "@types/node": "^22.10.1",
29
- "@vitejs/plugin-vue-jsx": "^4.1.1",
30
- "@vueuse/core": "^12.2.0",
31
- "commitizen": "^4.3.1",
32
- "element-plus": "^2.9.1",
33
- "husky": "^9.1.7",
34
- "path": "^0.12.7",
35
- "vite-plugin-compression": "^0.5.1",
36
- "vite-plugin-vue-setup-extend": "^0.4.0",
37
- "vue": "^3.5.13",
38
- "vue-router": "^4.5.0"
39
- },
40
- "devDependencies": {
41
- "@eslint/js": "^9.16.0",
42
- "@vitejs/plugin-vue": "^5.2.1",
43
- "cz-git": "^1.11.0",
44
- "eslint": "^9.16.0",
45
- "eslint-plugin-vue": "^9.32.0",
46
- "globals": "^15.13.0",
47
- "less": "^4.2.1",
48
- "typescript": "~5.6.2",
49
- "typescript-eslint": "^8.18.0",
50
- "vite": "^6.0.1",
51
- "vite-plugin-dts": "^4.3.0",
52
- "vitepress": "^1.5.0",
53
- "vue-tsc": "^2.1.10"
54
- },
55
- "config": {
56
- "commitizen": {
57
- "path": "node_modules/cz-git"
58
- }
59
- }
60
- }
1
+ {
2
+ "name": "tutor-pro-ui-vue",
3
+ "private": false,
4
+ "version": "1.0.19-beta",
5
+ "type": "module",
6
+ "main": "dist/tutor-pro-ui-vue.es.js",
7
+ "module": "dist/tutor-pro-ui-vue.es.js",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/tutor-pro-ui-vue.es.js"
14
+ }
15
+ },
16
+ "scripts": {
17
+ "dev": "vite",
18
+ "build": "vue-tsc -b && vite build",
19
+ "preview": "vite preview",
20
+ "eslint": "npx eslint src/**",
21
+ "commit": "git-cz",
22
+ "docs:dev": "vitepress dev docs",
23
+ "docs:build": "vitepress build docs",
24
+ "docs:preview": "vitepress preview docs",
25
+ "release": "npm publish"
26
+ },
27
+ "dependencies": {
28
+ "@types/node": "^22.10.1",
29
+ "@vitejs/plugin-vue-jsx": "^4.1.1",
30
+ "@vueuse/core": "^12.2.0",
31
+ "commitizen": "^4.3.1",
32
+ "element-plus": "^2.9.1",
33
+ "husky": "^9.1.7",
34
+ "path": "^0.12.7",
35
+ "vite-plugin-compression": "^0.5.1",
36
+ "vite-plugin-vue-setup-extend": "^0.4.0",
37
+ "vue": "^3.5.13",
38
+ "vue-router": "^4.5.0"
39
+ },
40
+ "devDependencies": {
41
+ "@eslint/js": "^9.16.0",
42
+ "@vitejs/plugin-vue": "^5.2.1",
43
+ "cz-git": "^1.11.0",
44
+ "eslint": "^9.16.0",
45
+ "eslint-plugin-vue": "^9.32.0",
46
+ "globals": "^15.13.0",
47
+ "less": "^4.2.1",
48
+ "typescript": "~5.6.2",
49
+ "typescript-eslint": "^8.18.0",
50
+ "vite": "^6.0.1",
51
+ "vite-plugin-dts": "^4.3.0",
52
+ "vitepress": "^1.5.0",
53
+ "vue-tsc": "^2.1.10"
54
+ },
55
+ "config": {
56
+ "commitizen": {
57
+ "path": "node_modules/cz-git"
58
+ }
59
+ }
60
+ }