quasar-mars-ui 0.0.1
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 +52 -0
- package/dist/common.d.ts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -0
- package/dist/mars-alert/index.d.ts +3 -0
- package/dist/mars-button/index.vue.d.ts +13 -0
- package/dist/mars-color/index.vue.d.ts +14 -0
- package/dist/mars-color-picker/index.d.ts +30 -0
- package/dist/mars-date-picker/index.vue.d.ts +24 -0
- package/dist/mars-dialog/index.vue.d.ts +89 -0
- package/dist/mars-dropdown/index.d.ts +6 -0
- package/dist/mars-echarts/index.d.ts +1 -0
- package/dist/mars-gui/index.d.ts +30 -0
- package/dist/mars-gui/index.vue.d.ts +21 -0
- package/dist/mars-icon/index.vue.d.ts +10 -0
- package/dist/mars-input/index.vue.d.ts +25 -0
- package/dist/mars-input-group/index.vue.d.ts +13 -0
- package/dist/mars-input-number/index.vue.d.ts +25 -0
- package/dist/mars-loading/index.d.ts +4 -0
- package/dist/mars-message/index.d.ts +3 -0
- package/dist/mars-notify/index.d.ts +3 -0
- package/dist/mars-range-picker/index.vue.d.ts +28 -0
- package/dist/mars-select/index.vue.d.ts +32 -0
- package/dist/mars-slider/index.vue.d.ts +27 -0
- package/dist/mars-switch/index.vue.d.ts +18 -0
- package/dist/mars-table/index.vue.d.ts +24 -0
- package/dist/mars-textarea/index.vue.d.ts +25 -0
- package/dist/mars-tree/index.d.ts +67 -0
- package/dist/mars-util.d.ts +63 -0
- package/dist/themes/index.d.ts +0 -0
- package/package.json +49 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:value": (...args: any[]) => void;
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
value: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const MarsColorPicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
value: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
hiddenAlpha: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
value: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
hiddenAlpha: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
value: string;
|
|
27
|
+
hiddenAlpha: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export declare function install(app: App): App;
|
|
30
|
+
export default MarsColorPicker;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: string | number | Record<string, any>;
|
|
3
|
+
modelValue?: string | number | Record<string, any>;
|
|
4
|
+
format?: string;
|
|
5
|
+
valueFormat?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:value": (...args: any[]) => void;
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
change: (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
value: string | number | Record<string, any>;
|
|
18
|
+
modelValue: string | number | Record<string, any>;
|
|
19
|
+
format: string;
|
|
20
|
+
valueFormat: string;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
interface Position {
|
|
2
|
+
left?: number | string;
|
|
3
|
+
right?: number | string;
|
|
4
|
+
top?: number | string;
|
|
5
|
+
bottom?: number | string;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
warpper?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
show?: boolean;
|
|
12
|
+
draggable?: boolean;
|
|
13
|
+
closeable?: boolean;
|
|
14
|
+
closeButton?: boolean;
|
|
15
|
+
animation?: string | boolean;
|
|
16
|
+
width?: number | string;
|
|
17
|
+
height?: number | string;
|
|
18
|
+
left?: number | string;
|
|
19
|
+
right?: number | string;
|
|
20
|
+
top?: number | string;
|
|
21
|
+
bottom?: number | string;
|
|
22
|
+
nopadding?: boolean;
|
|
23
|
+
position?: Position;
|
|
24
|
+
handles?: boolean | string;
|
|
25
|
+
minWidth?: number;
|
|
26
|
+
minHeight?: number;
|
|
27
|
+
maxWidth?: number;
|
|
28
|
+
maxHeight?: number;
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
icon?: string;
|
|
31
|
+
customClass?: string;
|
|
32
|
+
defaultFold?: boolean;
|
|
33
|
+
thumbnail?: Position & {
|
|
34
|
+
icon?: string;
|
|
35
|
+
width?: number | string;
|
|
36
|
+
height?: number | string;
|
|
37
|
+
};
|
|
38
|
+
beforeClose?: () => Promise<any> | boolean | void;
|
|
39
|
+
}
|
|
40
|
+
declare var __VLS_11: {}, __VLS_13: {}, __VLS_29: {}, __VLS_31: {}, __VLS_33: {};
|
|
41
|
+
type __VLS_Slots = {} & {
|
|
42
|
+
icon?: (props: typeof __VLS_11) => any;
|
|
43
|
+
} & {
|
|
44
|
+
title?: (props: typeof __VLS_13) => any;
|
|
45
|
+
} & {
|
|
46
|
+
default?: (props: typeof __VLS_29) => any;
|
|
47
|
+
} & {
|
|
48
|
+
leftBar?: (props: typeof __VLS_31) => any;
|
|
49
|
+
} & {
|
|
50
|
+
footer?: (props: typeof __VLS_33) => any;
|
|
51
|
+
};
|
|
52
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {
|
|
53
|
+
expend(): void;
|
|
54
|
+
fold(): void;
|
|
55
|
+
toggle(): void;
|
|
56
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
resize: (...args: any[]) => void;
|
|
58
|
+
"update:visible": (...args: any[]) => void;
|
|
59
|
+
move: (...args: any[]) => void;
|
|
60
|
+
closed: (...args: any[]) => void;
|
|
61
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
62
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onMove?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
show: boolean;
|
|
68
|
+
visible: boolean;
|
|
69
|
+
draggable: boolean;
|
|
70
|
+
closeable: boolean;
|
|
71
|
+
closeButton: boolean;
|
|
72
|
+
animation: string | boolean;
|
|
73
|
+
nopadding: boolean;
|
|
74
|
+
handles: boolean | string;
|
|
75
|
+
minWidth: number;
|
|
76
|
+
minHeight: number;
|
|
77
|
+
maxWidth: number;
|
|
78
|
+
maxHeight: number;
|
|
79
|
+
zIndex: number;
|
|
80
|
+
defaultFold: boolean;
|
|
81
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
82
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
83
|
+
declare const _default: typeof __VLS_export;
|
|
84
|
+
export default _default;
|
|
85
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const MarsDropdown: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export declare function install(app: App): App;
|
|
6
|
+
export default MarsDropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const components: {
|
|
2
|
+
number: string;
|
|
3
|
+
switch: string;
|
|
4
|
+
radio: string;
|
|
5
|
+
checkbox: string;
|
|
6
|
+
slider: string;
|
|
7
|
+
color: string;
|
|
8
|
+
select: string;
|
|
9
|
+
textarea: string;
|
|
10
|
+
input: string;
|
|
11
|
+
inputGroup: string;
|
|
12
|
+
};
|
|
13
|
+
export interface GuiItem {
|
|
14
|
+
type: keyof typeof components;
|
|
15
|
+
field: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
extra?: any;
|
|
18
|
+
extraWidth?: number;
|
|
19
|
+
extraType?: "string" | "custom";
|
|
20
|
+
extraAfter?: string;
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
step?: number;
|
|
24
|
+
range?: boolean;
|
|
25
|
+
data?: any[];
|
|
26
|
+
value?: string | boolean | number | any;
|
|
27
|
+
units?: string[];
|
|
28
|
+
show?: boolean | ((data: any) => boolean);
|
|
29
|
+
change?: (value: any, dataObj: any) => any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GuiItem } from './index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: GuiItem[];
|
|
4
|
+
labelCol?: number;
|
|
5
|
+
noPadding?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
8
|
+
delete: (key: string | number) => void;
|
|
9
|
+
insert(index: number, ...args: GuiItem[]): void;
|
|
10
|
+
updateField(field: string, value: any): void;
|
|
11
|
+
updateExtra(field: string, value: any): void;
|
|
12
|
+
updateFields(fieldObj: any): void;
|
|
13
|
+
getValue(field: string): any;
|
|
14
|
+
getValues(): Record<string, any>;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
change: (...args: any[]) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
color?: string;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
width: string | number;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: string | number;
|
|
3
|
+
modelValue?: string | number;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_13: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_13) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:value": (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string[];
|
|
3
|
+
units: string[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:value": (...args: any[]) => void;
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: number | string;
|
|
3
|
+
modelValue?: number | string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_12: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_12) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:value": (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type RangeValue = {
|
|
2
|
+
from?: string;
|
|
3
|
+
to?: string;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
value?: unknown[] | RangeValue;
|
|
7
|
+
modelValue?: unknown[] | RangeValue;
|
|
8
|
+
format?: string;
|
|
9
|
+
valueFormat?: string;
|
|
10
|
+
placeholder?: string | string[];
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:value": (...args: any[]) => void;
|
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
|
15
|
+
change: (...args: any[]) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
value: unknown[] | RangeValue;
|
|
22
|
+
modelValue: unknown[] | RangeValue;
|
|
23
|
+
format: string;
|
|
24
|
+
valueFormat: string;
|
|
25
|
+
placeholder: string | string[];
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: string | number | boolean | unknown[] | Record<string, any>;
|
|
3
|
+
modelValue?: string | number | boolean | unknown[] | Record<string, any>;
|
|
4
|
+
options?: any[];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_12: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_12) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:value": (...args: any[]) => void;
|
|
12
|
+
"update:modelValue": (...args: any[]) => void;
|
|
13
|
+
change: (...args: any[]) => void;
|
|
14
|
+
dropdownVisibleChange: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onDropdownVisibleChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
value: string | number | boolean | unknown[] | Record<string, any>;
|
|
22
|
+
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
23
|
+
options: any[];
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: number | unknown[] | Record<string, any>;
|
|
3
|
+
modelValue?: number | unknown[] | Record<string, any>;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_10: {}, __VLS_27: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_27) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:value": (...args: any[]) => void;
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
change: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: boolean | string | number;
|
|
3
|
+
checked?: boolean | string | number;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:value": (...args: any[]) => void;
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
"update:checked": (...args: any[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
value: boolean | string | number;
|
|
15
|
+
checked: boolean | string | number;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
dataSource?: any[];
|
|
3
|
+
rows?: any[];
|
|
4
|
+
columns?: any[];
|
|
5
|
+
rowKey?: string | ((row: any) => string | number);
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_10: string, __VLS_11: any;
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
dataSource: any[];
|
|
13
|
+
rows: any[];
|
|
14
|
+
columns: any[];
|
|
15
|
+
rowKey: string | ((row: any) => string | number);
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: string | number;
|
|
3
|
+
modelValue?: string | number;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_11: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_11) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:value": (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const MarsTree: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
treeData: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
nodes: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
nodeKey: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
expandedKeys: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
checkedKeys: {
|
|
20
|
+
type: ArrayConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
checkable: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:expandedKeys" | "update:checkedKeys" | "check")[], "update:expandedKeys" | "update:checkedKeys" | "check", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
treeData: {
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
nodes: {
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
nodeKey: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
expandedKeys: {
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
checkedKeys: {
|
|
47
|
+
type: ArrayConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
checkable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{
|
|
55
|
+
"onUpdate:expandedKeys"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onUpdate:checkedKeys"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onCheck?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
treeData: unknown[];
|
|
60
|
+
nodes: unknown[];
|
|
61
|
+
nodeKey: string;
|
|
62
|
+
expandedKeys: unknown[];
|
|
63
|
+
checkedKeys: unknown[];
|
|
64
|
+
checkable: boolean;
|
|
65
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
export declare function install(app: App): App;
|
|
67
|
+
export default MarsTree;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 项目内通用 静态Util方法
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 判断是否 "经度,纬度" 字符串值
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @param {string} text 传入的字符串
|
|
9
|
+
* @return {boolean} 是否 经度,纬度
|
|
10
|
+
*/
|
|
11
|
+
export declare function isLonLat(text: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 设置自动高度值
|
|
14
|
+
* @param {function} callback 窗口大小变化时的回调,返回当前计算完成的高度
|
|
15
|
+
* @param {number} [lose=0] 窗口高度基础上减少的值
|
|
16
|
+
* @param {string} [container="sanbox-warpper"] 窗口id
|
|
17
|
+
* @return {void}
|
|
18
|
+
*/
|
|
19
|
+
export declare function setAutoHeight(callback: (v: number) => void, lose?: number, container?: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* 获取URL参数
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @param {string} parameter url值
|
|
25
|
+
* @param {string} [defaultVal] 默认值
|
|
26
|
+
* @return {string | null} 参数值
|
|
27
|
+
*/
|
|
28
|
+
export declare function getQueryString(parameter: string, defaultVal?: string): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* 将指定的异步方法转为Promise
|
|
31
|
+
*
|
|
32
|
+
* @param {*} context
|
|
33
|
+
* @param {string} apiName
|
|
34
|
+
* @param {string} [success="success"]
|
|
35
|
+
* @param {string} [error="error"]
|
|
36
|
+
* @return {*} Promise
|
|
37
|
+
*/
|
|
38
|
+
export declare function apiToSync(context: any, apiName: string, success?: string, error?: string): (options: any) => Promise<unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* 将指定的多个异步方法转为Promise
|
|
41
|
+
*
|
|
42
|
+
* @param {*} context
|
|
43
|
+
* @param {string[]} apiNames
|
|
44
|
+
* @param {string} [success="success"]
|
|
45
|
+
* @param {string} [error="error"]
|
|
46
|
+
* @return {*} Promise[]
|
|
47
|
+
*/
|
|
48
|
+
export declare function apiArrayToSync(context: any, apiNames: string[], success?: string, error?: string): ((options: any) => Promise<unknown>)[];
|
|
49
|
+
/**
|
|
50
|
+
* 请求服务返回JSON结果
|
|
51
|
+
*
|
|
52
|
+
* @param {object} options 请求参数
|
|
53
|
+
* @param {string} options.url 服务URL地址
|
|
54
|
+
* @return {Promise<object>} 返回Promise异步处理结果,对象为JSON数据
|
|
55
|
+
*/
|
|
56
|
+
export declare function fetchJson(options: any): Promise<any>;
|
|
57
|
+
export declare function logInfo(...sources: any[]): void;
|
|
58
|
+
export declare function logWarn(...sources: any[]): void;
|
|
59
|
+
export declare const aloneTypeStyle: {
|
|
60
|
+
fixedRoute: (string | string[])[];
|
|
61
|
+
route: (string | string[])[];
|
|
62
|
+
satellite: (string | string[])[];
|
|
63
|
+
};
|
|
File without changes
|