@cyberpunk-vue/components 1.7.14 → 1.8.2
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/dist/avatar/index.d.ts +115 -40
- package/dist/avatar/index.d.ts.map +1 -1
- package/dist/avatar/src/avatar-group.vue.d.ts +18 -1
- package/dist/avatar/src/avatar-group.vue.d.ts.map +1 -1
- package/dist/container/index.d.ts +4 -2
- package/dist/container/index.d.ts.map +1 -1
- package/dist/container/src/container.vue.d.ts +4 -2
- package/dist/container/src/container.vue.d.ts.map +1 -1
- package/dist/icon/src/icon.d.ts +1 -1
- package/dist/icon/src/icon.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2996 -2714
- package/dist/table-column/index.d.ts +99 -34
- package/dist/table-column/index.d.ts.map +1 -1
- package/dist/table-column/src/table-column.vue.d.ts +20 -1
- package/dist/table-column/src/table-column.vue.d.ts.map +1 -1
- package/dist/timeline/index.d.ts +134 -0
- package/dist/timeline/index.d.ts.map +1 -0
- package/dist/timeline/src/instance.d.ts +3 -0
- package/dist/timeline/src/instance.d.ts.map +1 -0
- package/dist/timeline/src/timeline.d.ts +98 -0
- package/dist/timeline/src/timeline.d.ts.map +1 -0
- package/dist/timeline/src/timeline.vue.d.ts +77 -0
- package/dist/timeline/src/timeline.vue.d.ts.map +1 -0
- package/dist/timeline-item/index.d.ts +260 -0
- package/dist/timeline-item/index.d.ts.map +1 -0
- package/dist/timeline-item/src/instance.d.ts +3 -0
- package/dist/timeline-item/src/instance.d.ts.map +1 -0
- package/dist/timeline-item/src/timeline-item.d.ts +161 -0
- package/dist/timeline-item/src/timeline-item.d.ts.map +1 -0
- package/dist/timeline-item/src/timeline-item.vue.d.ts +152 -0
- package/dist/timeline-item/src/timeline-item.vue.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -9,7 +9,95 @@
|
|
|
9
9
|
* <CpTableColumn type="selection" />
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
export declare const CpTableColumn: import('../utils').SFCWithInstall<
|
|
12
|
+
export declare const CpTableColumn: import('../utils').SFCWithInstall<{
|
|
13
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
readonly type: {
|
|
15
|
+
readonly type: import('vue').PropType<import('.').ColumnType>;
|
|
16
|
+
readonly default: "default";
|
|
17
|
+
};
|
|
18
|
+
readonly prop: {
|
|
19
|
+
readonly type: StringConstructor;
|
|
20
|
+
readonly default: "";
|
|
21
|
+
};
|
|
22
|
+
readonly label: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "";
|
|
25
|
+
};
|
|
26
|
+
readonly width: {
|
|
27
|
+
readonly type: import('vue').PropType<string | number>;
|
|
28
|
+
};
|
|
29
|
+
readonly minWidth: {
|
|
30
|
+
readonly type: import('vue').PropType<string | number>;
|
|
31
|
+
};
|
|
32
|
+
readonly sortable: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly align: {
|
|
37
|
+
readonly type: import('vue').PropType<"left" | "center" | "right">;
|
|
38
|
+
readonly default: "left";
|
|
39
|
+
};
|
|
40
|
+
readonly headerAlign: {
|
|
41
|
+
readonly type: import('vue').PropType<"left" | "center" | "right" | "">;
|
|
42
|
+
readonly default: "";
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
45
|
+
readonly type: import('.').ColumnType;
|
|
46
|
+
readonly label: string;
|
|
47
|
+
readonly align: "left" | "right" | "center";
|
|
48
|
+
readonly prop: string;
|
|
49
|
+
readonly sortable: boolean;
|
|
50
|
+
readonly headerAlign: "" | "left" | "right" | "center";
|
|
51
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
52
|
+
P: {};
|
|
53
|
+
B: {};
|
|
54
|
+
D: {};
|
|
55
|
+
C: {};
|
|
56
|
+
M: {};
|
|
57
|
+
Defaults: {};
|
|
58
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
+
readonly type: {
|
|
60
|
+
readonly type: import('vue').PropType<import('.').ColumnType>;
|
|
61
|
+
readonly default: "default";
|
|
62
|
+
};
|
|
63
|
+
readonly prop: {
|
|
64
|
+
readonly type: StringConstructor;
|
|
65
|
+
readonly default: "";
|
|
66
|
+
};
|
|
67
|
+
readonly label: {
|
|
68
|
+
readonly type: StringConstructor;
|
|
69
|
+
readonly default: "";
|
|
70
|
+
};
|
|
71
|
+
readonly width: {
|
|
72
|
+
readonly type: import('vue').PropType<string | number>;
|
|
73
|
+
};
|
|
74
|
+
readonly minWidth: {
|
|
75
|
+
readonly type: import('vue').PropType<string | number>;
|
|
76
|
+
};
|
|
77
|
+
readonly sortable: {
|
|
78
|
+
readonly type: BooleanConstructor;
|
|
79
|
+
readonly default: false;
|
|
80
|
+
};
|
|
81
|
+
readonly align: {
|
|
82
|
+
readonly type: import('vue').PropType<"left" | "center" | "right">;
|
|
83
|
+
readonly default: "left";
|
|
84
|
+
};
|
|
85
|
+
readonly headerAlign: {
|
|
86
|
+
readonly type: import('vue').PropType<"left" | "center" | "right" | "">;
|
|
87
|
+
readonly default: "";
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
90
|
+
readonly type: import('.').ColumnType;
|
|
91
|
+
readonly label: string;
|
|
92
|
+
readonly align: "left" | "right" | "center";
|
|
93
|
+
readonly prop: string;
|
|
94
|
+
readonly sortable: boolean;
|
|
95
|
+
readonly headerAlign: "" | "left" | "right" | "center";
|
|
96
|
+
}>;
|
|
97
|
+
__isFragment?: never;
|
|
98
|
+
__isTeleport?: never;
|
|
99
|
+
__isSuspense?: never;
|
|
100
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
13
101
|
readonly type: {
|
|
14
102
|
readonly type: import('vue').PropType<import('.').ColumnType>;
|
|
15
103
|
readonly default: "default";
|
|
@@ -40,45 +128,22 @@ export declare const CpTableColumn: import('../utils').SFCWithInstall<import('vu
|
|
|
40
128
|
readonly type: import('vue').PropType<"left" | "center" | "right" | "">;
|
|
41
129
|
readonly default: "";
|
|
42
130
|
};
|
|
43
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string,
|
|
44
|
-
readonly type: {
|
|
45
|
-
readonly type: import('vue').PropType<import('.').ColumnType>;
|
|
46
|
-
readonly default: "default";
|
|
47
|
-
};
|
|
48
|
-
readonly prop: {
|
|
49
|
-
readonly type: StringConstructor;
|
|
50
|
-
readonly default: "";
|
|
51
|
-
};
|
|
52
|
-
readonly label: {
|
|
53
|
-
readonly type: StringConstructor;
|
|
54
|
-
readonly default: "";
|
|
55
|
-
};
|
|
56
|
-
readonly width: {
|
|
57
|
-
readonly type: import('vue').PropType<string | number>;
|
|
58
|
-
};
|
|
59
|
-
readonly minWidth: {
|
|
60
|
-
readonly type: import('vue').PropType<string | number>;
|
|
61
|
-
};
|
|
62
|
-
readonly sortable: {
|
|
63
|
-
readonly type: BooleanConstructor;
|
|
64
|
-
readonly default: false;
|
|
65
|
-
};
|
|
66
|
-
readonly align: {
|
|
67
|
-
readonly type: import('vue').PropType<"left" | "center" | "right">;
|
|
68
|
-
readonly default: "left";
|
|
69
|
-
};
|
|
70
|
-
readonly headerAlign: {
|
|
71
|
-
readonly type: import('vue').PropType<"left" | "center" | "right" | "">;
|
|
72
|
-
readonly default: "";
|
|
73
|
-
};
|
|
74
|
-
}>> & Readonly<{}>, {
|
|
131
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
75
132
|
readonly type: import('.').ColumnType;
|
|
76
133
|
readonly label: string;
|
|
77
134
|
readonly align: "left" | "right" | "center";
|
|
78
135
|
readonly prop: string;
|
|
79
136
|
readonly sortable: boolean;
|
|
80
137
|
readonly headerAlign: "" | "left" | "right" | "center";
|
|
81
|
-
}, {},
|
|
138
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
139
|
+
$slots: Readonly<{
|
|
140
|
+
default?: (props: any) => any;
|
|
141
|
+
header?: (props: any) => any;
|
|
142
|
+
}> & {
|
|
143
|
+
default?: (props: any) => any;
|
|
144
|
+
header?: (props: any) => any;
|
|
145
|
+
};
|
|
146
|
+
})>;
|
|
82
147
|
export default CpTableColumn;
|
|
83
148
|
export * from './src/table-column';
|
|
84
149
|
export type { CpTableColumnInstance } from './src/instance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../table-column/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../table-column/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2B,CAAA;AAErD,eAAe,aAAa,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
default?: (props: any) => any;
|
|
5
|
+
header?: (props: any) => any;
|
|
6
|
+
}> & {
|
|
7
|
+
default?: (props: any) => any;
|
|
8
|
+
header?: (props: any) => any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
15
|
readonly type: {
|
|
3
16
|
readonly type: import('vue').PropType<import('./table-column').ColumnType>;
|
|
4
17
|
readonly default: "default";
|
|
@@ -68,5 +81,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
68
81
|
readonly sortable: boolean;
|
|
69
82
|
readonly headerAlign: "" | "left" | "right" | "center";
|
|
70
83
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
71
85
|
export default _default;
|
|
86
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
72
91
|
//# sourceMappingURL=table-column.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-column.vue.d.ts","sourceRoot":"","sources":["../../../table-column/src/table-column.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-column.vue.d.ts","sourceRoot":"","sources":["../../../table-column/src/table-column.vue"],"names":[],"mappings":"AA2GA,iBAAS,cAAc;WAeT,OAAO,IAA6B;;kBArDtC,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG;iBACpB,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG;;kBADlB,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG;iBACpB,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG;;;;EAyD7B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpTimeline 赛博朋克风格时间轴
|
|
3
|
+
*
|
|
4
|
+
* 垂直时间轴容器,用于事件记录、进度流程、日志展示等场景。
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```vue
|
|
8
|
+
* <CpTimeline>
|
|
9
|
+
* <CpTimelineItem timestamp="2024-01-01">事件一</CpTimelineItem>
|
|
10
|
+
* <CpTimelineItem timestamp="2024-02-01" active animation="pulse">事件二</CpTimelineItem>
|
|
11
|
+
* </CpTimeline>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @slot default - CpTimelineItem 列表
|
|
15
|
+
*/
|
|
16
|
+
export declare const CpTimeline: import('../utils').SFCWithInstall<{
|
|
17
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
readonly mode: {
|
|
19
|
+
readonly type: import('vue').PropType<import('.').TimelineMode>;
|
|
20
|
+
readonly default: "left";
|
|
21
|
+
};
|
|
22
|
+
readonly type: {
|
|
23
|
+
readonly type: import('vue').PropType<import('.').TimelineType>;
|
|
24
|
+
readonly default: "default";
|
|
25
|
+
};
|
|
26
|
+
readonly reverse: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly color: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "";
|
|
33
|
+
};
|
|
34
|
+
readonly lineStyle: {
|
|
35
|
+
readonly type: import('vue').PropType<import('.').TimelineLineStyle>;
|
|
36
|
+
readonly default: "solid";
|
|
37
|
+
};
|
|
38
|
+
readonly lineColor: {
|
|
39
|
+
readonly type: StringConstructor;
|
|
40
|
+
readonly default: "";
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
43
|
+
readonly reverse: boolean;
|
|
44
|
+
readonly mode: import('.').TimelineMode;
|
|
45
|
+
readonly type: import('.').TimelineType;
|
|
46
|
+
readonly color: string;
|
|
47
|
+
readonly lineStyle: import('.').TimelineLineStyle;
|
|
48
|
+
readonly lineColor: string;
|
|
49
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLUListElement, import('vue').ComponentProvideOptions, {
|
|
50
|
+
P: {};
|
|
51
|
+
B: {};
|
|
52
|
+
D: {};
|
|
53
|
+
C: {};
|
|
54
|
+
M: {};
|
|
55
|
+
Defaults: {};
|
|
56
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
57
|
+
readonly mode: {
|
|
58
|
+
readonly type: import('vue').PropType<import('.').TimelineMode>;
|
|
59
|
+
readonly default: "left";
|
|
60
|
+
};
|
|
61
|
+
readonly type: {
|
|
62
|
+
readonly type: import('vue').PropType<import('.').TimelineType>;
|
|
63
|
+
readonly default: "default";
|
|
64
|
+
};
|
|
65
|
+
readonly reverse: {
|
|
66
|
+
readonly type: BooleanConstructor;
|
|
67
|
+
readonly default: false;
|
|
68
|
+
};
|
|
69
|
+
readonly color: {
|
|
70
|
+
readonly type: StringConstructor;
|
|
71
|
+
readonly default: "";
|
|
72
|
+
};
|
|
73
|
+
readonly lineStyle: {
|
|
74
|
+
readonly type: import('vue').PropType<import('.').TimelineLineStyle>;
|
|
75
|
+
readonly default: "solid";
|
|
76
|
+
};
|
|
77
|
+
readonly lineColor: {
|
|
78
|
+
readonly type: StringConstructor;
|
|
79
|
+
readonly default: "";
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
82
|
+
readonly reverse: boolean;
|
|
83
|
+
readonly mode: import('.').TimelineMode;
|
|
84
|
+
readonly type: import('.').TimelineType;
|
|
85
|
+
readonly color: string;
|
|
86
|
+
readonly lineStyle: import('.').TimelineLineStyle;
|
|
87
|
+
readonly lineColor: string;
|
|
88
|
+
}>;
|
|
89
|
+
__isFragment?: never;
|
|
90
|
+
__isTeleport?: never;
|
|
91
|
+
__isSuspense?: never;
|
|
92
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
93
|
+
readonly mode: {
|
|
94
|
+
readonly type: import('vue').PropType<import('.').TimelineMode>;
|
|
95
|
+
readonly default: "left";
|
|
96
|
+
};
|
|
97
|
+
readonly type: {
|
|
98
|
+
readonly type: import('vue').PropType<import('.').TimelineType>;
|
|
99
|
+
readonly default: "default";
|
|
100
|
+
};
|
|
101
|
+
readonly reverse: {
|
|
102
|
+
readonly type: BooleanConstructor;
|
|
103
|
+
readonly default: false;
|
|
104
|
+
};
|
|
105
|
+
readonly color: {
|
|
106
|
+
readonly type: StringConstructor;
|
|
107
|
+
readonly default: "";
|
|
108
|
+
};
|
|
109
|
+
readonly lineStyle: {
|
|
110
|
+
readonly type: import('vue').PropType<import('.').TimelineLineStyle>;
|
|
111
|
+
readonly default: "solid";
|
|
112
|
+
};
|
|
113
|
+
readonly lineColor: {
|
|
114
|
+
readonly type: StringConstructor;
|
|
115
|
+
readonly default: "";
|
|
116
|
+
};
|
|
117
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
118
|
+
readonly reverse: boolean;
|
|
119
|
+
readonly mode: import('.').TimelineMode;
|
|
120
|
+
readonly type: import('.').TimelineType;
|
|
121
|
+
readonly color: string;
|
|
122
|
+
readonly lineStyle: import('.').TimelineLineStyle;
|
|
123
|
+
readonly lineColor: string;
|
|
124
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
125
|
+
$slots: Readonly<{
|
|
126
|
+
default?: () => any;
|
|
127
|
+
}> & {
|
|
128
|
+
default?: () => any;
|
|
129
|
+
};
|
|
130
|
+
})>;
|
|
131
|
+
export default CpTimeline;
|
|
132
|
+
export * from './src/timeline';
|
|
133
|
+
export type { TimelineInstance } from './src/instance';
|
|
134
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../timeline/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwB,CAAA;AAC/C,eAAe,UAAU,CAAA;AAEzB,cAAc,gBAAgB,CAAA;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../timeline/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,GAAG,OAAO,CAAA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ExtractPropTypes, InjectionKey, PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 时间轴内容排列模式
|
|
4
|
+
* - `left` - 内容在左侧(默认)
|
|
5
|
+
* - `right` - 内容在右侧
|
|
6
|
+
* - `alternate` - 内容左右交替排列
|
|
7
|
+
*/
|
|
8
|
+
export type TimelineMode = 'left' | 'right' | 'alternate';
|
|
9
|
+
/**
|
|
10
|
+
* 时间轴颜色类型
|
|
11
|
+
*/
|
|
12
|
+
export type TimelineType = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
13
|
+
/**
|
|
14
|
+
* 连线样式
|
|
15
|
+
*/
|
|
16
|
+
export type TimelineLineStyle = 'solid' | 'dashed' | 'dotted';
|
|
17
|
+
/**
|
|
18
|
+
* CpTimeline 注入上下文
|
|
19
|
+
*/
|
|
20
|
+
export interface TimelineContext {
|
|
21
|
+
mode: TimelineMode;
|
|
22
|
+
type: TimelineType;
|
|
23
|
+
color: string;
|
|
24
|
+
lineStyle: TimelineLineStyle;
|
|
25
|
+
lineColor: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* CpTimeline 注入 key
|
|
29
|
+
*/
|
|
30
|
+
export declare const TIMELINE_CONTEXT_KEY: InjectionKey<TimelineContext>;
|
|
31
|
+
/**
|
|
32
|
+
* CpTimeline 组件 Props 定义
|
|
33
|
+
*
|
|
34
|
+
* @description 赛博朋克风格时间轴容器组件,用于事件记录、进度流程、日志展示等场景。
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```vue
|
|
38
|
+
* <CpTimeline>
|
|
39
|
+
* <CpTimelineItem timestamp="2024-01-01">事件一</CpTimelineItem>
|
|
40
|
+
* <CpTimelineItem timestamp="2024-02-01">事件二</CpTimelineItem>
|
|
41
|
+
* </CpTimeline>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @slots
|
|
45
|
+
* - `default` - CpTimelineItem 列表
|
|
46
|
+
*/
|
|
47
|
+
export declare const timelineProps: {
|
|
48
|
+
/**
|
|
49
|
+
* 内容排列模式
|
|
50
|
+
* @default 'left'
|
|
51
|
+
*/
|
|
52
|
+
readonly mode: {
|
|
53
|
+
readonly type: PropType<TimelineMode>;
|
|
54
|
+
readonly default: "left";
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 全局颜色预设(子项可覆盖)
|
|
58
|
+
* @default 'default'
|
|
59
|
+
*/
|
|
60
|
+
readonly type: {
|
|
61
|
+
readonly type: PropType<TimelineType>;
|
|
62
|
+
readonly default: "default";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 是否倒序排列
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
readonly reverse: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 自定义全局颜色
|
|
74
|
+
* @default ''
|
|
75
|
+
*/
|
|
76
|
+
readonly color: {
|
|
77
|
+
readonly type: StringConstructor;
|
|
78
|
+
readonly default: "";
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 全局连线样式
|
|
82
|
+
* @default 'solid'
|
|
83
|
+
*/
|
|
84
|
+
readonly lineStyle: {
|
|
85
|
+
readonly type: PropType<TimelineLineStyle>;
|
|
86
|
+
readonly default: "solid";
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 全局连线颜色(默认跟随 type/color)
|
|
90
|
+
* @default ''
|
|
91
|
+
*/
|
|
92
|
+
readonly lineColor: {
|
|
93
|
+
readonly type: StringConstructor;
|
|
94
|
+
readonly default: "";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export type TimelineProps = ExtractPropTypes<typeof timelineProps>;
|
|
98
|
+
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../../timeline/src/timeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAA;AAEzD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAE3F;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE7D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,YAAY,CAAA;IAClB,IAAI,EAAE,YAAY,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,iBAAiB,CAAA;IAC5B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,eAAe,CAAiC,CAAA;AAEhG;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;IACxB;;;OAGG;;uBAEe,QAAQ,CAAC,YAAY,CAAC;;;IAGxC;;;OAGG;;uBAEe,QAAQ,CAAC,YAAY,CAAC;;;IAGxC;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;uBAEe,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C;;;OAGG;;;;;CAKK,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
default?: () => any;
|
|
5
|
+
}> & {
|
|
6
|
+
default?: () => any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLUListElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
readonly mode: {
|
|
14
|
+
readonly type: import('vue').PropType<import('./timeline').TimelineMode>;
|
|
15
|
+
readonly default: "left";
|
|
16
|
+
};
|
|
17
|
+
readonly type: {
|
|
18
|
+
readonly type: import('vue').PropType<import('./timeline').TimelineType>;
|
|
19
|
+
readonly default: "default";
|
|
20
|
+
};
|
|
21
|
+
readonly reverse: {
|
|
22
|
+
readonly type: BooleanConstructor;
|
|
23
|
+
readonly default: false;
|
|
24
|
+
};
|
|
25
|
+
readonly color: {
|
|
26
|
+
readonly type: StringConstructor;
|
|
27
|
+
readonly default: "";
|
|
28
|
+
};
|
|
29
|
+
readonly lineStyle: {
|
|
30
|
+
readonly type: import('vue').PropType<import('./timeline').TimelineLineStyle>;
|
|
31
|
+
readonly default: "solid";
|
|
32
|
+
};
|
|
33
|
+
readonly lineColor: {
|
|
34
|
+
readonly type: StringConstructor;
|
|
35
|
+
readonly default: "";
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
readonly mode: {
|
|
39
|
+
readonly type: import('vue').PropType<import('./timeline').TimelineMode>;
|
|
40
|
+
readonly default: "left";
|
|
41
|
+
};
|
|
42
|
+
readonly type: {
|
|
43
|
+
readonly type: import('vue').PropType<import('./timeline').TimelineType>;
|
|
44
|
+
readonly default: "default";
|
|
45
|
+
};
|
|
46
|
+
readonly reverse: {
|
|
47
|
+
readonly type: BooleanConstructor;
|
|
48
|
+
readonly default: false;
|
|
49
|
+
};
|
|
50
|
+
readonly color: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: "";
|
|
53
|
+
};
|
|
54
|
+
readonly lineStyle: {
|
|
55
|
+
readonly type: import('vue').PropType<import('./timeline').TimelineLineStyle>;
|
|
56
|
+
readonly default: "solid";
|
|
57
|
+
};
|
|
58
|
+
readonly lineColor: {
|
|
59
|
+
readonly type: StringConstructor;
|
|
60
|
+
readonly default: "";
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{}>, {
|
|
63
|
+
readonly reverse: boolean;
|
|
64
|
+
readonly mode: import('./timeline').TimelineMode;
|
|
65
|
+
readonly type: import('./timeline').TimelineType;
|
|
66
|
+
readonly color: string;
|
|
67
|
+
readonly lineStyle: import('./timeline').TimelineLineStyle;
|
|
68
|
+
readonly lineColor: string;
|
|
69
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
70
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
71
|
+
export default _default;
|
|
72
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=timeline.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.vue.d.ts","sourceRoot":"","sources":["../../../timeline/src/timeline.vue"],"names":[],"mappings":"AAmGA,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;kBAzDtC,MAAM,GAAG;;kBAAT,MAAM,GAAG;;;;EA8DpB;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|