@touchvue/ui 1.0.0-beta.18 → 1.0.0-beta.19
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/es/components/box/src/box.vue.d.ts +1 -1
- package/es/components/card/src/Card.vue.d.ts +2 -2
- package/es/components/cascader/src/cascader.vue.d.ts +3 -1
- package/es/components/datepicker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/form/src/form.vue.d.ts +1 -1
- package/es/components/import/index.d.ts +1 -0
- package/es/components/import/src/import.vue.d.ts +2 -0
- package/es/components/import/src/instance.d.ts +2 -0
- package/es/components/index.d.ts +3 -1
- package/es/components/input/src/input.vue.d.ts +1 -1
- package/es/components/pic/index.d.ts +0 -1
- package/es/components/pic/src/PicViewer.vue.d.ts +0 -2
- package/es/components/segment/src/segment.vue.d.ts +4 -2
- package/es/components/select/src/select.vue.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +1 -1
- package/es/components/tab/src/tab.vue.d.ts +1 -1
- package/es/components/table/src/table-body.vue.d.ts +2 -0
- package/es/components/timeline/src/timeline.d.ts +2 -25
- package/es/components/timeline/src/timeline.vue.d.ts +9 -75
- package/es/components/tooltip/src/tooltip.d.ts +5 -6
- package/es/components/tooltip/src/tooltip.vue.d.ts +12 -15
- package/es/components/tree/src/tree.vue.d.ts +5 -0
- package/es/components/upload/src/upload.vue.d.ts +6 -0
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -1
- package/es/packages/components/cascader/src/cascader-item.vue2.mjs +18 -18
- package/es/packages/components/cascader/src/cascader-item.vue2.mjs.map +1 -1
- package/es/packages/components/cascader/src/cascader.vue2.mjs +34 -9
- package/es/packages/components/cascader/src/cascader.vue2.mjs.map +1 -1
- package/es/packages/components/import/index.mjs +7 -0
- package/es/packages/components/import/index.mjs.map +1 -0
- package/es/packages/components/import/src/import.vue.mjs +7 -0
- package/es/packages/components/import/src/import.vue.mjs.map +1 -0
- package/es/packages/components/import/src/import.vue2.mjs +17 -0
- package/es/packages/components/import/src/import.vue2.mjs.map +1 -0
- package/es/packages/components/import/src/instance.mjs +2 -0
- package/es/packages/components/import/src/instance.mjs.map +1 -0
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/components/index.mjs.map +1 -1
- package/es/packages/components/padding/src/padding.vue2.mjs +2 -2
- package/es/packages/components/padding/src/padding.vue2.mjs.map +1 -1
- package/es/packages/components/page/src/page.vue2.mjs +11 -5
- package/es/packages/components/page/src/page.vue2.mjs.map +1 -1
- package/es/packages/components/pic/src/Pic.vue2.mjs +0 -1
- package/es/packages/components/pic/src/Pic.vue2.mjs.map +1 -1
- package/es/packages/components/pic/src/PicViewer.vue2.mjs +18 -58
- package/es/packages/components/pic/src/PicViewer.vue2.mjs.map +1 -1
- package/es/packages/components/segment/src/segment.vue.mjs +4 -0
- package/es/packages/components/segment/src/segment.vue.mjs.map +1 -1
- package/es/packages/components/select/src/select.vue2.mjs +2 -2
- package/es/packages/components/select/src/select.vue2.mjs.map +1 -1
- package/es/packages/components/tab/src/tab.vue2.mjs +3 -2
- package/es/packages/components/tab/src/tab.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/table-body.vue2.mjs +23 -1
- package/es/packages/components/table/src/table-body.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/table.vue2.mjs +34 -3
- package/es/packages/components/table/src/table.vue2.mjs.map +1 -1
- package/es/packages/components/timeline/src/timeline.vue.mjs +114 -170
- package/es/packages/components/timeline/src/timeline.vue.mjs.map +1 -1
- package/es/packages/components/timeline/src/timeline.vue2.mjs +20 -112
- package/es/packages/components/timeline/src/timeline.vue2.mjs.map +1 -1
- package/es/packages/components/tooltip/src/tooltip.mjs +5 -6
- package/es/packages/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/packages/components/tooltip/src/tooltip.vue2.mjs +23 -30
- package/es/packages/components/tooltip/src/tooltip.vue2.mjs.map +1 -1
- package/es/packages/components/tree/src/tree-item.vue2.mjs +19 -4
- package/es/packages/components/tree/src/tree-item.vue2.mjs.map +1 -1
- package/es/packages/components/tree/src/tree.vue2.mjs +40 -2
- package/es/packages/components/tree/src/tree.vue2.mjs.map +1 -1
- package/es/packages/components/upload/src/upload.vue2.mjs +60 -8
- package/es/packages/components/upload/src/upload.vue2.mjs.map +1 -1
- package/es/packages/directives/tip/src/tip.mjs +5 -2
- package/es/packages/directives/tip/src/tip.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/components/box/src/box.vue.d.ts +1 -1
- package/lib/components/card/src/Card.vue.d.ts +2 -2
- package/lib/components/cascader/src/cascader.vue.d.ts +3 -1
- package/lib/components/datepicker/src/DatePicker.vue.d.ts +1 -1
- package/lib/components/form/src/form.vue.d.ts +1 -1
- package/lib/components/import/index.d.ts +1 -0
- package/lib/components/import/src/import.vue.d.ts +2 -0
- package/lib/components/import/src/instance.d.ts +2 -0
- package/lib/components/index.d.ts +3 -1
- package/lib/components/input/src/input.vue.d.ts +1 -1
- package/lib/components/pic/index.d.ts +0 -1
- package/lib/components/pic/src/PicViewer.vue.d.ts +0 -2
- package/lib/components/segment/src/segment.vue.d.ts +4 -2
- package/lib/components/select/src/select.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +1 -1
- package/lib/components/tab/src/tab.vue.d.ts +1 -1
- package/lib/components/table/src/table-body.vue.d.ts +2 -0
- package/lib/components/timeline/src/timeline.d.ts +2 -25
- package/lib/components/timeline/src/timeline.vue.d.ts +9 -75
- package/lib/components/tooltip/src/tooltip.d.ts +5 -6
- package/lib/components/tooltip/src/tooltip.vue.d.ts +12 -15
- package/lib/components/tree/src/tree.vue.d.ts +5 -0
- package/lib/components/upload/src/upload.vue.d.ts +6 -0
- package/lib/index.js +10 -8
- package/lib/index.js.map +1 -1
- package/lib/packages/components/cascader/src/cascader-item.vue2.js +18 -18
- package/lib/packages/components/cascader/src/cascader-item.vue2.js.map +1 -1
- package/lib/packages/components/cascader/src/cascader.vue2.js +33 -8
- package/lib/packages/components/cascader/src/cascader.vue2.js.map +1 -1
- package/lib/packages/components/import/index.js +9 -0
- package/lib/packages/components/import/index.js.map +1 -0
- package/lib/packages/components/import/src/import.vue.js +11 -0
- package/lib/packages/components/import/src/import.vue.js.map +1 -0
- package/lib/packages/components/import/src/import.vue2.js +21 -0
- package/lib/packages/components/import/src/import.vue2.js.map +1 -0
- package/lib/packages/components/import/src/instance.js +3 -0
- package/lib/packages/components/import/src/instance.js.map +1 -0
- package/lib/packages/components/index.js +2 -0
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/padding/src/padding.vue2.js +2 -2
- package/lib/packages/components/padding/src/padding.vue2.js.map +1 -1
- package/lib/packages/components/page/src/page.vue2.js +10 -4
- package/lib/packages/components/page/src/page.vue2.js.map +1 -1
- package/lib/packages/components/pic/src/Pic.vue2.js +0 -1
- package/lib/packages/components/pic/src/Pic.vue2.js.map +1 -1
- package/lib/packages/components/pic/src/PicViewer.vue2.js +17 -57
- package/lib/packages/components/pic/src/PicViewer.vue2.js.map +1 -1
- package/lib/packages/components/segment/src/segment.vue.js +4 -0
- package/lib/packages/components/segment/src/segment.vue.js.map +1 -1
- package/lib/packages/components/select/src/select.vue2.js +2 -2
- package/lib/packages/components/select/src/select.vue2.js.map +1 -1
- package/lib/packages/components/tab/src/tab.vue2.js +2 -1
- package/lib/packages/components/tab/src/tab.vue2.js.map +1 -1
- package/lib/packages/components/table/src/table-body.vue2.js +23 -1
- package/lib/packages/components/table/src/table-body.vue2.js.map +1 -1
- package/lib/packages/components/table/src/table.vue2.js +33 -2
- package/lib/packages/components/table/src/table.vue2.js.map +1 -1
- package/lib/packages/components/timeline/src/timeline.vue.js +113 -169
- package/lib/packages/components/timeline/src/timeline.vue.js.map +1 -1
- package/lib/packages/components/timeline/src/timeline.vue2.js +20 -112
- package/lib/packages/components/timeline/src/timeline.vue2.js.map +1 -1
- package/lib/packages/components/tooltip/src/tooltip.js +5 -6
- package/lib/packages/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/packages/components/tooltip/src/tooltip.vue2.js +23 -30
- package/lib/packages/components/tooltip/src/tooltip.vue2.js.map +1 -1
- package/lib/packages/components/tree/src/tree-item.vue2.js +19 -4
- package/lib/packages/components/tree/src/tree-item.vue2.js.map +1 -1
- package/lib/packages/components/tree/src/tree.vue2.js +40 -2
- package/lib/packages/components/tree/src/tree.vue2.js.map +1 -1
- package/lib/packages/components/upload/src/upload.vue2.js +59 -7
- package/lib/packages/components/upload/src/upload.vue2.js.map +1 -1
- package/lib/packages/directives/tip/src/tip.js +5 -2
- package/lib/packages/directives/tip/src/tip.js.map +1 -1
- package/package.json +1 -1
- package/theme/components/index.css +348 -474
- package/theme/index.css +348 -474
- package/theme/skin/default.css +348 -474
- package/types/global.d.ts +1 -0
|
@@ -16,8 +16,8 @@ declare function __VLS_template(): {
|
|
|
16
16
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
17
|
mode: string;
|
|
18
18
|
color: string;
|
|
19
|
-
shadow: boolean;
|
|
20
19
|
link: boolean;
|
|
20
|
+
shadow: boolean;
|
|
21
21
|
height: "" | "full" | number | string;
|
|
22
22
|
padding: string | number;
|
|
23
23
|
paddingPosition: string;
|
|
@@ -7,10 +7,10 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
7
7
|
$emit: (event: "click", ...args: any[]) => void;
|
|
8
8
|
mode: string;
|
|
9
9
|
color: string;
|
|
10
|
-
shadow: boolean;
|
|
11
10
|
width: string | number;
|
|
12
11
|
link: boolean;
|
|
13
12
|
type: string;
|
|
13
|
+
shadow: boolean;
|
|
14
14
|
padding: string | number;
|
|
15
15
|
checked: boolean;
|
|
16
16
|
fillet: string;
|
|
@@ -18,10 +18,10 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
18
18
|
$props: {
|
|
19
19
|
readonly mode?: string;
|
|
20
20
|
readonly color?: string;
|
|
21
|
-
readonly shadow?: boolean;
|
|
22
21
|
readonly width?: string | number;
|
|
23
22
|
readonly link?: boolean;
|
|
24
23
|
readonly type?: string;
|
|
24
|
+
readonly shadow?: boolean;
|
|
25
25
|
readonly padding?: string | number;
|
|
26
26
|
readonly checked?: boolean;
|
|
27
27
|
readonly fillet?: string;
|
|
@@ -27,12 +27,13 @@ export interface Props {
|
|
|
27
27
|
required?: boolean;
|
|
28
28
|
desc?: string;
|
|
29
29
|
prefix?: string;
|
|
30
|
+
showAllLevels?: boolean;
|
|
30
31
|
}
|
|
31
32
|
export interface ProvideProps {
|
|
32
33
|
props: Props;
|
|
33
34
|
setLevel: (level: number) => void;
|
|
34
35
|
close: () => void;
|
|
35
|
-
setParentCheckedByValue: (
|
|
36
|
+
setParentCheckedByValue: (value: string, level: number) => void;
|
|
36
37
|
store: Item[];
|
|
37
38
|
setViewData: () => void;
|
|
38
39
|
}
|
|
@@ -72,6 +73,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
72
73
|
comparable: boolean;
|
|
73
74
|
childrenText: string;
|
|
74
75
|
any: boolean;
|
|
76
|
+
showAllLevels: boolean;
|
|
75
77
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
76
78
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
77
79
|
export default _default;
|
|
@@ -265,6 +265,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
265
265
|
color: string;
|
|
266
266
|
width: string | number;
|
|
267
267
|
lazy: boolean;
|
|
268
|
+
readonly: boolean;
|
|
268
269
|
type: DatePickerType;
|
|
269
270
|
required: boolean;
|
|
270
271
|
time: string;
|
|
@@ -274,7 +275,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
274
275
|
spChars: string | boolean;
|
|
275
276
|
modelValue: DatePickerValue;
|
|
276
277
|
placeholder: string;
|
|
277
|
-
readonly: boolean;
|
|
278
278
|
inputable: boolean;
|
|
279
279
|
clearable: boolean;
|
|
280
280
|
fillet: string;
|
|
@@ -66,10 +66,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
66
|
readonly: BooleanConstructor;
|
|
67
67
|
}>> & Readonly<{}>, {
|
|
68
68
|
mode: string;
|
|
69
|
+
readonly: boolean;
|
|
69
70
|
type: string;
|
|
70
71
|
col: string | number;
|
|
71
72
|
dir: string;
|
|
72
|
-
readonly: boolean;
|
|
73
73
|
comparable: boolean;
|
|
74
74
|
labelWidth: string | number;
|
|
75
75
|
submitPosition: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ToImport: import("@touchvue/ui/es/utils").SFCWithInstall<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/es/components/index.d.ts
CHANGED
|
@@ -49,7 +49,8 @@ import { ToTimeline } from './timeline';
|
|
|
49
49
|
import { ToGuider } from './guider';
|
|
50
50
|
import { ToTransfer } from './transfer';
|
|
51
51
|
import { ToUpload } from './upload';
|
|
52
|
-
|
|
52
|
+
import { ToImport } from './import';
|
|
53
|
+
export { ToButton, ToIcon, ToArticle, ToBox, ToSelect, ToCalendar, ToGap, ToStep, ToForm, ToFormItem, ToGrid, ToGridItem, ToHeader, ToInput, ToDivider, ToMsg, ToPadding, ToPage, ToCard, ToCheckbox, ToCheckboxes, ToCenterScroll, ToDatePicker, ToDateRange, ToSwitch, ToTab, ToTabItem, ToTable, ToTableHead, ToTableBody, ToTableConfig, ToTag, ToText, ToTip, ToDialog, ToEllipsis, ToFix, ToFloat, ToTooltip, ToSegment, ToPic, ToParam, ToProgress, ToScroll, ToScrollPoint, ToSubmit, ToSlide, ToBreadcrumb, ToBreadcrumbItem, ToTree, ToCascader, ToTimeline, ToCollapse, ToCollapseItem, ToRange, ToGuider, ToTransfer, ToUpload, ToImport };
|
|
53
54
|
export * from '@touchvue/ui/es/directives';
|
|
54
55
|
export * from './button';
|
|
55
56
|
export * from './icon';
|
|
@@ -99,3 +100,4 @@ export * from './range';
|
|
|
99
100
|
export * from './guider';
|
|
100
101
|
export * from './transfer';
|
|
101
102
|
export * from './upload';
|
|
103
|
+
export * from './import';
|
|
@@ -398,6 +398,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
398
398
|
mode: string;
|
|
399
399
|
color: string;
|
|
400
400
|
width: string | number;
|
|
401
|
+
readonly: boolean;
|
|
401
402
|
trim: boolean;
|
|
402
403
|
link: boolean;
|
|
403
404
|
type: string;
|
|
@@ -414,7 +415,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
414
415
|
modelValue: string | number;
|
|
415
416
|
placeholder: string;
|
|
416
417
|
placeholderColor: string;
|
|
417
|
-
readonly: boolean;
|
|
418
418
|
clearable: boolean;
|
|
419
419
|
fillet: string;
|
|
420
420
|
filletPosition: string;
|
|
@@ -94,7 +94,6 @@ export declare const ToPic: import("@touchvue/ui/es/utils").SFCWithInstall<impor
|
|
|
94
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & import("vue").DefineComponent<import("./src/PicViewer.vue").Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./src/PicViewer.vue").Props> & Readonly<{}>, {
|
|
95
95
|
zIndex: number;
|
|
96
96
|
onClose: () => void;
|
|
97
|
-
appendToBody: boolean;
|
|
98
97
|
urlList: string[];
|
|
99
98
|
onSwitch: (index: number) => void;
|
|
100
99
|
initialIndex: number;
|
|
@@ -8,13 +8,11 @@ export interface Props {
|
|
|
8
8
|
onSwitch?: (index: number) => void;
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
initialIndex: number;
|
|
11
|
-
appendToBody: boolean;
|
|
12
11
|
maskClosable: boolean;
|
|
13
12
|
}
|
|
14
13
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
14
|
zIndex: number;
|
|
16
15
|
onClose: () => void;
|
|
17
|
-
appendToBody: boolean;
|
|
18
16
|
urlList: string[];
|
|
19
17
|
onSwitch: (index: number) => void;
|
|
20
18
|
initialIndex: number;
|
|
@@ -16,16 +16,17 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
16
16
|
mode: string;
|
|
17
17
|
color: string;
|
|
18
18
|
width: string | number;
|
|
19
|
+
readonly: boolean;
|
|
19
20
|
data: string | unknown[];
|
|
20
21
|
type: string;
|
|
21
22
|
required: boolean;
|
|
23
|
+
col: string | number;
|
|
22
24
|
rule: string | unknown[] | Record<string, any>;
|
|
23
25
|
desc: string;
|
|
24
26
|
id: string;
|
|
25
27
|
valueText: string;
|
|
26
28
|
labelText: string;
|
|
27
29
|
modelValue: string | number | boolean | unknown[];
|
|
28
|
-
readonly: boolean;
|
|
29
30
|
multiple: boolean;
|
|
30
31
|
clearable: boolean;
|
|
31
32
|
fillet: string;
|
|
@@ -46,16 +47,17 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
46
47
|
readonly mode?: string;
|
|
47
48
|
readonly color?: string;
|
|
48
49
|
readonly width?: string | number;
|
|
50
|
+
readonly readonly?: boolean;
|
|
49
51
|
readonly data?: string | unknown[];
|
|
50
52
|
readonly type?: string;
|
|
51
53
|
readonly required?: boolean;
|
|
54
|
+
readonly col?: string | number;
|
|
52
55
|
readonly rule?: string | unknown[] | Record<string, any>;
|
|
53
56
|
readonly desc?: string;
|
|
54
57
|
readonly id?: string;
|
|
55
58
|
readonly valueText?: string;
|
|
56
59
|
readonly labelText?: string;
|
|
57
60
|
readonly modelValue?: string | number | boolean | unknown[];
|
|
58
|
-
readonly readonly?: boolean;
|
|
59
61
|
readonly multiple?: boolean;
|
|
60
62
|
readonly clearable?: boolean;
|
|
61
63
|
readonly fillet?: string;
|
|
@@ -510,6 +510,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
510
510
|
color: string;
|
|
511
511
|
width: string | number;
|
|
512
512
|
lazy: boolean;
|
|
513
|
+
readonly: boolean;
|
|
513
514
|
trim: boolean;
|
|
514
515
|
data: string | SelectOptionsData[];
|
|
515
516
|
required: boolean;
|
|
@@ -530,7 +531,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
530
531
|
placeholderColor: string;
|
|
531
532
|
nomatchText: string;
|
|
532
533
|
nodataText: string;
|
|
533
|
-
readonly: boolean;
|
|
534
534
|
multiple: boolean;
|
|
535
535
|
filterable: boolean;
|
|
536
536
|
inputable: boolean;
|
|
@@ -129,8 +129,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
129
129
|
mode: string;
|
|
130
130
|
color: string;
|
|
131
131
|
width: string | number;
|
|
132
|
-
modelValue: string | number | boolean;
|
|
133
132
|
readonly: boolean;
|
|
133
|
+
modelValue: string | number | boolean;
|
|
134
134
|
comparable: boolean;
|
|
135
135
|
beforeChange: string | boolean | Function;
|
|
136
136
|
onValue: string | number | boolean;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_component: import("vue").DefineComponent<TabProps, {}, {}, {
|
|
|
50
50
|
onRemove?: (...args: any[]) => any;
|
|
51
51
|
}>, {
|
|
52
52
|
mode: string;
|
|
53
|
-
event: string;
|
|
54
53
|
position: "left" | "right" | "bottom" | "top" | "";
|
|
55
54
|
data: TabItem[] | string;
|
|
55
|
+
event: string;
|
|
56
56
|
title: string;
|
|
57
57
|
height: string | number;
|
|
58
58
|
modelValue: string | number;
|
|
@@ -20,6 +20,7 @@ interface FlatNode {
|
|
|
20
20
|
[key: string]: any;
|
|
21
21
|
}
|
|
22
22
|
declare function checkAll(boolean: any): void;
|
|
23
|
+
declare function setCheckData(ids: any, valueKeys: any): void;
|
|
23
24
|
declare function __VLS_template(): Partial<Record<string, (_: {
|
|
24
25
|
row: FlatNode;
|
|
25
26
|
column: {
|
|
@@ -57,6 +58,7 @@ declare function __VLS_template(): Partial<Record<string, (_: {
|
|
|
57
58
|
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
58
59
|
checkAll: typeof checkAll;
|
|
59
60
|
flatData: import("vue").ComputedRef<FlatNode[]>;
|
|
61
|
+
setCheckData: typeof setCheckData;
|
|
60
62
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
63
|
change: (...args: any[]) => void;
|
|
62
64
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -18,7 +18,7 @@ export interface TimelineItem {
|
|
|
18
18
|
/**
|
|
19
19
|
* 图标模式:plain, line, fill
|
|
20
20
|
*/
|
|
21
|
-
mode?:
|
|
21
|
+
mode?: string;
|
|
22
22
|
/**
|
|
23
23
|
* 图标文本
|
|
24
24
|
*/
|
|
@@ -73,12 +73,9 @@ export interface TimelineProps {
|
|
|
73
73
|
* v: 垂直布局
|
|
74
74
|
* h: 水平布局
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
dir?: TimelineDirection;
|
|
77
77
|
/**
|
|
78
78
|
* 全局图标模式
|
|
79
|
-
* plain: 普通模式
|
|
80
|
-
* line: 线框模式
|
|
81
|
-
* fill: 填充模式
|
|
82
79
|
* 优先级高于单个项目的mode设置
|
|
83
80
|
*/
|
|
84
81
|
mode?: TimelineMode;
|
|
@@ -99,26 +96,6 @@ export interface TimelineProps {
|
|
|
99
96
|
* 是否反转项目排序
|
|
100
97
|
*/
|
|
101
98
|
reverse?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* 是否展示连接线
|
|
104
|
-
*/
|
|
105
|
-
showLine?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* 线条颜色
|
|
108
|
-
*/
|
|
109
|
-
lineColor?: string;
|
|
110
|
-
/**
|
|
111
|
-
* 线条样式
|
|
112
|
-
*/
|
|
113
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
114
|
-
/**
|
|
115
|
-
* 自定义类名
|
|
116
|
-
*/
|
|
117
|
-
className?: string;
|
|
118
|
-
/**
|
|
119
|
-
* 自定义样式
|
|
120
|
-
*/
|
|
121
|
-
style?: Record<string, any>;
|
|
122
99
|
}
|
|
123
100
|
export interface TimelineEmits {
|
|
124
101
|
/**
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
default: string;
|
|
11
11
|
validator: (val: string) => boolean;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
dir: {
|
|
14
14
|
type: PropType<TimelineDirection>;
|
|
15
15
|
default: string;
|
|
16
16
|
validator: (val: string) => boolean;
|
|
@@ -18,7 +18,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
18
|
mode: {
|
|
19
19
|
type: PropType<TimelineMode>;
|
|
20
20
|
default: string;
|
|
21
|
-
validator: (val: string) => boolean;
|
|
22
21
|
};
|
|
23
22
|
align: {
|
|
24
23
|
type: PropType<TimelineAlign>;
|
|
@@ -33,54 +32,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
32
|
type: BooleanConstructor;
|
|
34
33
|
default: boolean;
|
|
35
34
|
};
|
|
36
|
-
|
|
37
|
-
type: BooleanConstructor;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
lineColor: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
lineStyle: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
validator: (val: string) => boolean;
|
|
48
|
-
};
|
|
49
|
-
className: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
style: {
|
|
54
|
-
type: ObjectConstructor;
|
|
55
|
-
default: () => {};
|
|
56
|
-
};
|
|
35
|
+
tail: BooleanConstructor;
|
|
57
36
|
}>, {
|
|
58
37
|
displayItems: import("vue").ComputedRef<TimelineItem[]>;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
nodeIconClass: import("vue").ComputedRef<string>;
|
|
63
|
-
lineClass: import("vue").ComputedRef<string>;
|
|
64
|
-
contentClass: import("vue").ComputedRef<string>;
|
|
65
|
-
getItemClass: (item: TimelineItem) => string[];
|
|
66
|
-
getIconMode: (item: TimelineItem) => "fill" | "plain" | "line";
|
|
67
|
-
getItemStyle: (item: TimelineItem) => Record<string, string>;
|
|
68
|
-
getLineStyle: (item: TimelineItem) => {
|
|
69
|
-
backgroundColor: string;
|
|
70
|
-
} | {
|
|
71
|
-
backgroundColor?: undefined;
|
|
72
|
-
};
|
|
73
|
-
getDotStyle: (item: TimelineItem) => {
|
|
74
|
-
backgroundColor: string;
|
|
75
|
-
boxShadow: string;
|
|
76
|
-
} | {
|
|
77
|
-
backgroundColor?: undefined;
|
|
78
|
-
boxShadow?: undefined;
|
|
79
|
-
};
|
|
38
|
+
getClass: import("vue").ComputedRef<any[]>;
|
|
39
|
+
getIconMode: (item: TimelineItem) => string;
|
|
40
|
+
getItemStyle: () => Record<string, string>;
|
|
80
41
|
showTimeOutside: (item: TimelineItem) => string;
|
|
81
42
|
showTimeInside: (item: TimelineItem) => string;
|
|
82
|
-
showItemLine: (item: TimelineItem) => boolean;
|
|
83
|
-
getSlotName: (index: number) => string;
|
|
84
43
|
handleItemClick: (item: TimelineItem, index: number) => void;
|
|
85
44
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "item-rendered")[], "click" | "item-rendered", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
45
|
data: {
|
|
@@ -92,7 +51,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
92
51
|
default: string;
|
|
93
52
|
validator: (val: string) => boolean;
|
|
94
53
|
};
|
|
95
|
-
|
|
54
|
+
dir: {
|
|
96
55
|
type: PropType<TimelineDirection>;
|
|
97
56
|
default: string;
|
|
98
57
|
validator: (val: string) => boolean;
|
|
@@ -100,7 +59,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
59
|
mode: {
|
|
101
60
|
type: PropType<TimelineMode>;
|
|
102
61
|
default: string;
|
|
103
|
-
validator: (val: string) => boolean;
|
|
104
62
|
};
|
|
105
63
|
align: {
|
|
106
64
|
type: PropType<TimelineAlign>;
|
|
@@ -115,27 +73,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
115
73
|
type: BooleanConstructor;
|
|
116
74
|
default: boolean;
|
|
117
75
|
};
|
|
118
|
-
|
|
119
|
-
type: BooleanConstructor;
|
|
120
|
-
default: boolean;
|
|
121
|
-
};
|
|
122
|
-
lineColor: {
|
|
123
|
-
type: StringConstructor;
|
|
124
|
-
default: string;
|
|
125
|
-
};
|
|
126
|
-
lineStyle: {
|
|
127
|
-
type: StringConstructor;
|
|
128
|
-
default: string;
|
|
129
|
-
validator: (val: string) => boolean;
|
|
130
|
-
};
|
|
131
|
-
className: {
|
|
132
|
-
type: StringConstructor;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
style: {
|
|
136
|
-
type: ObjectConstructor;
|
|
137
|
-
default: () => {};
|
|
138
|
-
};
|
|
76
|
+
tail: BooleanConstructor;
|
|
139
77
|
}>> & Readonly<{
|
|
140
78
|
onClick?: (...args: any[]) => any;
|
|
141
79
|
"onItem-rendered"?: (...args: any[]) => any;
|
|
@@ -144,14 +82,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
144
82
|
align: TimelineAlign;
|
|
145
83
|
reverse: boolean;
|
|
146
84
|
data: TimelineItem[];
|
|
147
|
-
|
|
148
|
-
style: Record<string, any>;
|
|
85
|
+
dir: TimelineDirection;
|
|
149
86
|
itemWidth: string | number;
|
|
150
|
-
|
|
87
|
+
tail: boolean;
|
|
151
88
|
timePosition: TimelineTimePosition;
|
|
152
|
-
showLine: boolean;
|
|
153
|
-
lineColor: string;
|
|
154
|
-
lineStyle: string;
|
|
155
89
|
}, {}, {
|
|
156
90
|
ToIcon: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
157
91
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@touchvue/ui/index.ts").Props> & Readonly<{
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare const tooltipProps: {
|
|
3
|
-
event: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
shadow: BooleanConstructor;
|
|
8
3
|
position: {
|
|
9
4
|
type: StringConstructor;
|
|
10
5
|
default: string;
|
|
@@ -29,7 +24,7 @@ export declare const tooltipProps: {
|
|
|
29
24
|
type: BooleanConstructor;
|
|
30
25
|
default: boolean;
|
|
31
26
|
};
|
|
32
|
-
|
|
27
|
+
closeOnScroll: {
|
|
33
28
|
type: BooleanConstructor;
|
|
34
29
|
default: boolean;
|
|
35
30
|
};
|
|
@@ -45,6 +40,10 @@ export declare const tooltipProps: {
|
|
|
45
40
|
type: NumberConstructor;
|
|
46
41
|
default: number;
|
|
47
42
|
};
|
|
43
|
+
readonly: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
48
47
|
};
|
|
49
48
|
export type TooltipPropsProps = ExtractPropTypes<typeof tooltipProps>;
|
|
50
49
|
export declare const tooltipEmits: string[];
|
|
@@ -2,11 +2,6 @@ declare function __VLS_template(): {
|
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
-
event: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
shadow: BooleanConstructor;
|
|
10
5
|
position: {
|
|
11
6
|
type: StringConstructor;
|
|
12
7
|
default: string;
|
|
@@ -31,7 +26,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
31
26
|
type: BooleanConstructor;
|
|
32
27
|
default: boolean;
|
|
33
28
|
};
|
|
34
|
-
|
|
29
|
+
closeOnScroll: {
|
|
35
30
|
type: BooleanConstructor;
|
|
36
31
|
default: boolean;
|
|
37
32
|
};
|
|
@@ -47,15 +42,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
47
42
|
type: NumberConstructor;
|
|
48
43
|
default: number;
|
|
49
44
|
};
|
|
45
|
+
readonly: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
50
49
|
}>, {
|
|
51
50
|
open: (by: any) => void;
|
|
52
51
|
close: () => void;
|
|
53
52
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
-
event: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
shadow: BooleanConstructor;
|
|
59
53
|
position: {
|
|
60
54
|
type: StringConstructor;
|
|
61
55
|
default: string;
|
|
@@ -80,7 +74,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
80
74
|
type: BooleanConstructor;
|
|
81
75
|
default: boolean;
|
|
82
76
|
};
|
|
83
|
-
|
|
77
|
+
closeOnScroll: {
|
|
84
78
|
type: BooleanConstructor;
|
|
85
79
|
default: boolean;
|
|
86
80
|
};
|
|
@@ -96,19 +90,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
96
90
|
type: NumberConstructor;
|
|
97
91
|
default: number;
|
|
98
92
|
};
|
|
93
|
+
readonly: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
99
97
|
}>> & Readonly<{}>, {
|
|
100
98
|
mode: string;
|
|
101
99
|
color: string;
|
|
102
100
|
align: string;
|
|
103
|
-
event: string;
|
|
104
|
-
shadow: boolean;
|
|
105
101
|
position: string;
|
|
106
102
|
width: string | number;
|
|
107
103
|
lazy: boolean;
|
|
108
104
|
closeOnBlur: boolean;
|
|
109
|
-
|
|
105
|
+
closeOnScroll: boolean;
|
|
110
106
|
delay: string | number;
|
|
111
107
|
zIndex: number;
|
|
108
|
+
readonly: boolean;
|
|
112
109
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
110
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
114
111
|
export default _default;
|
|
@@ -8,6 +8,8 @@ export interface Node {
|
|
|
8
8
|
isExpand?: boolean;
|
|
9
9
|
checked?: boolean;
|
|
10
10
|
isSelect?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
isLoad?: boolean;
|
|
11
13
|
[key: string]: any;
|
|
12
14
|
}
|
|
13
15
|
export interface Props {
|
|
@@ -25,6 +27,7 @@ export interface Props {
|
|
|
25
27
|
valueText?: string;
|
|
26
28
|
labelText?: string;
|
|
27
29
|
emptyText?: string;
|
|
30
|
+
load?: (node: any) => any;
|
|
28
31
|
}
|
|
29
32
|
export interface ProvideType {
|
|
30
33
|
setPropertyByValue: (value: string, setValue: boolean, prop: string) => void;
|
|
@@ -33,6 +36,7 @@ export interface ProvideType {
|
|
|
33
36
|
store: Node[];
|
|
34
37
|
change: (value: any, item: Node) => void;
|
|
35
38
|
setStopChange: (value: boolean) => void;
|
|
39
|
+
setChildren: (node: Node, children: Node[]) => void;
|
|
36
40
|
}
|
|
37
41
|
declare function __VLS_template(): {
|
|
38
42
|
default?(_: {
|
|
@@ -50,6 +54,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
50
54
|
}>, {
|
|
51
55
|
mode: string;
|
|
52
56
|
data: Node[];
|
|
57
|
+
load: (node: any) => any;
|
|
53
58
|
expand: boolean;
|
|
54
59
|
valueText: string;
|
|
55
60
|
labelText: string;
|
|
@@ -26,8 +26,11 @@ export interface FileProps {
|
|
|
26
26
|
beforeSelect?: ((fileList: any) => boolean | Promise<any>) | null;
|
|
27
27
|
beforeStart?: ((file: any) => boolean | Promise<any>) | null;
|
|
28
28
|
verifiable?: boolean;
|
|
29
|
+
showList?: boolean;
|
|
30
|
+
uploadText?: string;
|
|
29
31
|
}
|
|
30
32
|
declare function clear(): void;
|
|
33
|
+
declare function submit(): Promise<boolean>;
|
|
31
34
|
declare function __VLS_template(): {
|
|
32
35
|
default?(_: {
|
|
33
36
|
fileList: any[];
|
|
@@ -37,6 +40,7 @@ declare const __VLS_component: import("vue").DefineComponent<FileProps, {
|
|
|
37
40
|
clear: typeof clear;
|
|
38
41
|
errorTip: import("vue").Ref<string, string>;
|
|
39
42
|
errorType: import("vue").Ref<string, string>;
|
|
43
|
+
submit: typeof submit;
|
|
40
44
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
45
|
success: (...args: any[]) => void;
|
|
42
46
|
clear: (...args: any[]) => void;
|
|
@@ -82,6 +86,8 @@ declare const __VLS_component: import("vue").DefineComponent<FileProps, {
|
|
|
82
86
|
headers: object;
|
|
83
87
|
beforeSelect: ((fileList: any) => boolean | Promise<any>) | null;
|
|
84
88
|
beforeStart: ((file: any) => boolean | Promise<any>) | null;
|
|
89
|
+
showList: boolean;
|
|
90
|
+
uploadText: string;
|
|
85
91
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
86
92
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
87
93
|
export default _default;
|
package/es/index.mjs
CHANGED
|
@@ -74,6 +74,7 @@ export { ToRange } from './packages/components/range/index.mjs';
|
|
|
74
74
|
export { ToGuider } from './packages/components/guider/index.mjs';
|
|
75
75
|
export { ToTransfer } from './packages/components/transfer/index.mjs';
|
|
76
76
|
export { ToUpload } from './packages/components/upload/index.mjs';
|
|
77
|
+
export { ToImport } from './packages/components/import/index.mjs';
|
|
77
78
|
export { ToStep } from './packages/components/step/index.mjs';
|
|
78
79
|
export { md5 } from './packages/utils/md5.mjs';
|
|
79
80
|
export { isArray, isBoolean, isDateObj, isDefined, isFunction, isHtmlElement, isNumber, isNumeric, isObject, isPromise, isString, isUndefined, withInstall, withInstallFunction } from './packages/utils/types.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../packages/ui/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { setRatio, getEm, setMedia, getMedia } from '@touchvue/utils'\nimport * as TouchVueComponents from '@touchvue/components'\nimport InstallDirective from '@touchvue/directives'\n\nexport interface TouchVueUIOptions {\n\tratio?: {\n\t\tbase?: {\n\t\t\tpc?: number\n\t\t\tpad?: number\n\t\t\tphone?: number\n\t\t}\n\t}\n\tzIndex?: number\n}\n\n// 全局默认配置\nexport const defaultOptions: TouchVueUIOptions = {}\n\n// 全局配置\nexport let globalOptions = { ...defaultOptions }\n\n// 获取全局配置\nexport const getGlobalOptions = (): TouchVueUIOptions => {\n\treturn globalOptions\n}\n\nconst install = (app: App, options: TouchVueUIOptions = {}) => {\n\t// 合并配置项\n\tglobalOptions = {\n\t\t...defaultOptions,\n\t\t...options\n\t}\n\n\t// 将配置注入到应用实例中,可以通过app.config.globalProperties.$TOUCHVUE_CONFIG访问\n\t// 工具\n\tapp.config.globalProperties.$hello = () => console.log('Hello from plugin!')\n\tapp.config.globalProperties.$getEm = getEm\n\tapp.config.globalProperties.$setMedia = setMedia\n\tapp.config.globalProperties.$getMedia = getMedia\n\n\tconst media = getMedia()\n\tapp.config.globalProperties.$phone = media === 'phone'\n\tapp.config.globalProperties.$pad = media === 'pad'\n\tapp.config.globalProperties.$pc = media === 'pc'\n\n\t// 全局默认配置\n\tapp.config.globalProperties.$TouchUI = {\n\t\tzIndex: globalOptions.zIndex || 2000 // 全局zIndex基数\n\t}\n\t;(window as any).$TouchUI = {\n\t\tzIndex: 2000\n\t}\n\t// 初始化\n\tsetMedia(options)\n\tsetRatio(options)\n\n\t// 注册所有组件\n\tObject.values(TouchVueComponents).forEach(component => {\n\t\t// 确保是有效的Vue组件插件\n\t\tif (component && typeof component === 'object' && 'install' in component && typeof component.install === 'function') {\n\t\t\tapp.use(component as any)\n\t\t}\n\t})\n\n\tInstallDirective.install(app)\n}\n\n// export { install };\n\nexport default install\n\nexport * from '@touchvue/components'\nexport * from '@touchvue/directives'\nexport * from '@touchvue/locale'\nexport * from '@touchvue/utils'\nexport * from '@touchvue/hooks'\n"],"names":["TouchVueComponents"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../packages/ui/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { setRatio, getEm, setMedia, getMedia } from '@touchvue/utils'\nimport * as TouchVueComponents from '@touchvue/components'\nimport InstallDirective from '@touchvue/directives'\n\nexport interface TouchVueUIOptions {\n\tratio?: {\n\t\tbase?: {\n\t\t\tpc?: number\n\t\t\tpad?: number\n\t\t\tphone?: number\n\t\t}\n\t}\n\tzIndex?: number\n}\n\n// 全局默认配置\nexport const defaultOptions: TouchVueUIOptions = {}\n\n// 全局配置\nexport let globalOptions = { ...defaultOptions }\n\n// 获取全局配置\nexport const getGlobalOptions = (): TouchVueUIOptions => {\n\treturn globalOptions\n}\n\nconst install = (app: App, options: TouchVueUIOptions = {}) => {\n\t// 合并配置项\n\tglobalOptions = {\n\t\t...defaultOptions,\n\t\t...options\n\t}\n\n\t// 将配置注入到应用实例中,可以通过app.config.globalProperties.$TOUCHVUE_CONFIG访问\n\t// 工具\n\tapp.config.globalProperties.$hello = () => console.log('Hello from plugin!')\n\tapp.config.globalProperties.$getEm = getEm\n\tapp.config.globalProperties.$setMedia = setMedia\n\tapp.config.globalProperties.$getMedia = getMedia\n\n\tconst media = getMedia()\n\tapp.config.globalProperties.$phone = media === 'phone'\n\tapp.config.globalProperties.$pad = media === 'pad'\n\tapp.config.globalProperties.$pc = media === 'pc'\n\n\t// 全局默认配置\n\tapp.config.globalProperties.$TouchUI = {\n\t\tzIndex: globalOptions.zIndex || 2000 // 全局zIndex基数\n\t}\n\t;(window as any).$TouchUI = {\n\t\tzIndex: 2000\n\t}\n\t// 初始化\n\tsetMedia(options)\n\tsetRatio(options)\n\n\t// 注册所有组件\n\tObject.values(TouchVueComponents).forEach(component => {\n\t\t// 确保是有效的Vue组件插件\n\t\tif (component && typeof component === 'object' && 'install' in component && typeof component.install === 'function') {\n\t\t\tapp.use(component as any)\n\t\t}\n\t})\n\n\tInstallDirective.install(app)\n}\n\n// export { install };\n\nexport default install\n\nexport * from '@touchvue/components'\nexport * from '@touchvue/directives'\nexport * from '@touchvue/locale'\nexport * from '@touchvue/utils'\nexport * from '@touchvue/hooks'\n"],"names":["TouchVueComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBO,MAAM,iBAAoC,GAAC;AAGvC,IAAA,aAAA,GAAgB,EAAE,GAAG,cAAe,GAAA;AAGxC,MAAM,mBAAmB,MAAyB;AACxD,EAAO,OAAA,aAAA,CAAA;AACR,EAAA;AAEA,MAAM,OAAU,GAAA,CAAC,GAAU,EAAA,OAAA,GAA6B,EAAO,KAAA;AAE9D,EAAgB,aAAA,GAAA;AAAA,IACf,GAAG,cAAA;AAAA,IACH,GAAG,OAAA;AAAA,GACJ,CAAA;AAIA,EAAA,GAAA,CAAI,OAAO,gBAAiB,CAAA,MAAA,GAAS,MAAM,OAAA,CAAQ,IAAI,oBAAoB,CAAA,CAAA;AAC3E,EAAI,GAAA,CAAA,MAAA,CAAO,iBAAiB,MAAS,GAAA,KAAA,CAAA;AACrC,EAAI,GAAA,CAAA,MAAA,CAAO,iBAAiB,SAAY,GAAA,QAAA,CAAA;AACxC,EAAI,GAAA,CAAA,MAAA,CAAO,iBAAiB,SAAY,GAAA,QAAA,CAAA;AAExC,EAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,EAAI,GAAA,CAAA,MAAA,CAAO,gBAAiB,CAAA,MAAA,GAAS,KAAU,KAAA,OAAA,CAAA;AAC/C,EAAI,GAAA,CAAA,MAAA,CAAO,gBAAiB,CAAA,IAAA,GAAO,KAAU,KAAA,KAAA,CAAA;AAC7C,EAAI,GAAA,CAAA,MAAA,CAAO,gBAAiB,CAAA,GAAA,GAAM,KAAU,KAAA,IAAA,CAAA;AAG5C,EAAI,GAAA,CAAA,MAAA,CAAO,iBAAiB,QAAW,GAAA;AAAA,IACtC,MAAA,EAAQ,cAAc,MAAU,IAAA,GAAA;AAAA;AAAA,GACjC,CAAA;AACC,EAAC,OAAe,QAAW,GAAA;AAAA,IAC3B,MAAQ,EAAA,GAAA;AAAA,GACT,CAAA;AAEA,EAAA,QAAA,CAAS,OAAO,CAAA,CAAA;AAChB,EAAA,QAAA,CAAS,OAAO,CAAA,CAAA;AAGhB,EAAA,MAAA,CAAO,MAAO,CAAAA,KAAkB,CAAE,CAAA,OAAA,CAAQ,CAAa,SAAA,KAAA;AAEtD,IAAI,IAAA,SAAA,IAAa,OAAO,SAAc,KAAA,QAAA,IAAY,aAAa,SAAa,IAAA,OAAO,SAAU,CAAA,OAAA,KAAY,UAAY,EAAA;AACpH,MAAA,GAAA,CAAI,IAAI,SAAgB,CAAA,CAAA;AAAA,KACzB;AAAA,GACA,CAAA,CAAA;AAED,EAAA,gBAAA,CAAiB,QAAQ,GAAG,CAAA,CAAA;AAC7B;;;;"}
|