jmash-core 0.0.116 → 0.0.117
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/dts/src/api/index.d.ts +1 -1
- package/dts/src/components/DictRadio/index.vue.d.ts +32 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +50 -0
- package/dts/src/components/Pagination/index.vue.d.ts +88 -0
- package/dts/src/components/Table/index.vue.d.ts +64 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
- package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
- package/dts/src/components/Upload/index.vue.d.ts +18 -0
- package/package.json +13 -13
package/dts/src/api/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class CustomBizDict {
|
|
|
26
26
|
values: import("vue").Reactive<Entry[]>;
|
|
27
27
|
query: any;
|
|
28
28
|
constructor(results: any, query: any);
|
|
29
|
-
getValue(key: string): string;
|
|
29
|
+
getValue(key: string | boolean): string;
|
|
30
30
|
}
|
|
31
31
|
export declare abstract class BizLayDict {
|
|
32
32
|
values: LayEntry[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
currentInterface: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
dictType: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
dictValue: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
currentInterface: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
dictType: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
dictValue: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>>, {
|
|
28
|
+
currentInterface: string;
|
|
29
|
+
dictValue: string;
|
|
30
|
+
dictType: string;
|
|
31
|
+
}, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
currentInterface: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
dictValue: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
dictType: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
clearable: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
23
|
+
currentInterface: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
dictValue: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
dictType: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
placeholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
clearable: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
}>>, {
|
|
44
|
+
placeholder: string;
|
|
45
|
+
clearable: boolean;
|
|
46
|
+
currentInterface: string;
|
|
47
|
+
dictValue: string;
|
|
48
|
+
dictType: string;
|
|
49
|
+
}, {}>;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
total: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: PropType<number>;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
page: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
limit: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
pageSizes: {
|
|
17
|
+
type: PropType<number[]>;
|
|
18
|
+
default(): number[];
|
|
19
|
+
};
|
|
20
|
+
layout: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
background: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
autoScroll: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
hidden: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
pagination: (...args: any[]) => void;
|
|
38
|
+
"update:page": (...args: any[]) => void;
|
|
39
|
+
"update:limit": (...args: any[]) => void;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
41
|
+
total: {
|
|
42
|
+
required: true;
|
|
43
|
+
type: PropType<number>;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
page: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
limit: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
pageSizes: {
|
|
55
|
+
type: PropType<number[]>;
|
|
56
|
+
default(): number[];
|
|
57
|
+
};
|
|
58
|
+
layout: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
background: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
autoScroll: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
hidden: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
}>> & {
|
|
75
|
+
onPagination?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
"onUpdate:page"?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
"onUpdate:limit"?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
hidden: boolean;
|
|
80
|
+
layout: string;
|
|
81
|
+
pageSizes: number[];
|
|
82
|
+
total: number;
|
|
83
|
+
page: number;
|
|
84
|
+
limit: number;
|
|
85
|
+
background: boolean;
|
|
86
|
+
autoScroll: boolean;
|
|
87
|
+
}, {}>;
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { TableColumn } from "@/types/index";
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
tableData: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
tableLabel: {
|
|
8
|
+
type: globalThis.PropType<TableColumn[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
listLoading: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
rowKeys: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
isSelection: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
tableSelection: () => Promise<false | undefined>;
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
tableSelected: (value: any) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
28
|
+
tableData: {
|
|
29
|
+
type: ArrayConstructor;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
tableLabel: {
|
|
33
|
+
type: globalThis.PropType<TableColumn[]>;
|
|
34
|
+
default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
listLoading: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
rowKeys: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
isSelection: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
onTableSelected?: ((value: any) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
tableLabel: TableColumn[];
|
|
52
|
+
isSelection: boolean;
|
|
53
|
+
tableData: unknown[];
|
|
54
|
+
listLoading: boolean;
|
|
55
|
+
rowKeys: string;
|
|
56
|
+
}, {}>, Partial<Record<string, (_: {
|
|
57
|
+
data: any;
|
|
58
|
+
}) => any>>>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* 文件路径集合
|
|
4
|
+
*/
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: {
|
|
7
|
+
(arrayLength: number): string[];
|
|
8
|
+
(...items: string[]): string[];
|
|
9
|
+
new (arrayLength: number): string[];
|
|
10
|
+
new (...items: string[]): string[];
|
|
11
|
+
isArray(arg: any): arg is any[];
|
|
12
|
+
readonly prototype: any[];
|
|
13
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
14
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
15
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
16
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
17
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
18
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
19
|
+
};
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 文件上传数量限制
|
|
24
|
+
*/
|
|
25
|
+
limit: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (...args: any[]) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
32
|
+
/**
|
|
33
|
+
* 文件路径集合
|
|
34
|
+
*/
|
|
35
|
+
modelValue: {
|
|
36
|
+
type: {
|
|
37
|
+
(arrayLength: number): string[];
|
|
38
|
+
(...items: string[]): string[];
|
|
39
|
+
new (arrayLength: number): string[];
|
|
40
|
+
new (...items: string[]): string[];
|
|
41
|
+
isArray(arg: any): arg is any[];
|
|
42
|
+
readonly prototype: any[];
|
|
43
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
44
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
45
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
46
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
47
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
48
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
49
|
+
};
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 文件上传数量限制
|
|
54
|
+
*/
|
|
55
|
+
limit: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
}>> & {
|
|
60
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
modelValue: string[];
|
|
63
|
+
limit: number;
|
|
64
|
+
}, {}>;
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: string;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
uploadVisible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
templateTitle: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
templateDown: (...args: any[]) => void;
|
|
12
|
+
importEvents: (...args: any[]) => void;
|
|
13
|
+
uploadClosed: (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
uploadVisible: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: () => boolean;
|
|
18
|
+
};
|
|
19
|
+
templateTitle: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
onTemplateDown?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onImportEvents?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onUploadClosed?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
uploadVisible: boolean;
|
|
29
|
+
templateTitle: string;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
pictureUrl: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
imageSrc: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
9
|
+
pictureUrl: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
onImageSrc?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
pictureUrl: string;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmash-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.117",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dts/src/index.d.ts",
|
|
@@ -8,17 +8,6 @@
|
|
|
8
8
|
"dist",
|
|
9
9
|
"dts/src"
|
|
10
10
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "pnpm build:generate && vite serve --mode development",
|
|
13
|
-
"build": "pnpm build:generate && vite build && pnpm build:dts",
|
|
14
|
-
"build:generate": "tsx build/generate.ts",
|
|
15
|
-
"preview": "vite preview",
|
|
16
|
-
"build-only": "vite build",
|
|
17
|
-
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
18
|
-
"type-check": "vue-tsc --build --force",
|
|
19
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
20
|
-
"format": "prettier --write src/"
|
|
21
|
-
},
|
|
22
11
|
"devDependencies": {
|
|
23
12
|
"@eslint/js": "^9.11.0",
|
|
24
13
|
"@iconify-json/ep": "^1.1.15",
|
|
@@ -83,5 +72,16 @@
|
|
|
83
72
|
"qs": "^6.12.0",
|
|
84
73
|
"sm-crypto": "^0.3.13",
|
|
85
74
|
"sortablejs": "^1.15.2"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"dev": "pnpm build:generate && vite serve --mode development",
|
|
78
|
+
"build": "pnpm build:generate && vite build && pnpm build:dts",
|
|
79
|
+
"build:generate": "tsx build/generate.ts",
|
|
80
|
+
"preview": "vite preview",
|
|
81
|
+
"build-only": "vite build",
|
|
82
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
83
|
+
"type-check": "vue-tsc --build --force",
|
|
84
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
85
|
+
"format": "prettier --write src/"
|
|
86
86
|
}
|
|
87
|
-
}
|
|
87
|
+
}
|