vxe-pc-ui 4.20.32 → 4.20.34
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/all.esm.js +788 -584
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +127 -2
- package/dist/style.mini.css +1 -1
- package/es/dynamics/index.d.ts +1 -0
- package/es/icon/style.css +1 -1
- package/es/icon/style.mini.css +1 -1
- package/es/modal/index.d.ts +38 -0
- package/es/modal/src/modal.d.ts +9 -0
- package/es/modal/src/modal.js +66 -44
- package/es/select/src/option.js +2 -1
- package/es/select/src/select.js +25 -20
- package/es/style.css +127 -2
- package/es/style.mini.css +1 -1
- package/es/timeline/index.d.ts +92 -0
- package/es/timeline/src/timeline-info.d.ts +6 -0
- package/es/timeline/src/timeline-info.js +19 -0
- package/es/timeline/src/timeline-item.d.ts +11 -8
- package/es/timeline/src/timeline-item.js +33 -45
- package/es/timeline/src/timeline.d.ts +22 -0
- package/es/timeline/src/timeline.js +182 -48
- package/es/timeline/src/util.d.ts +7 -0
- package/es/timeline/src/util.js +41 -0
- package/es/timeline/style.css +122 -0
- package/es/timeline/style.mini.css +1 -0
- package/es/timeline-item/index.d.ts +42 -34
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-icon/style.css +1 -1
- package/es/vxe-icon/style.mini.css +1 -1
- package/es/vxe-timeline/style.css +122 -0
- package/es/vxe-timeline/style.mini.css +1 -0
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.mini.css +1 -1
- package/lib/index.umd.js +976 -771
- package/lib/index.umd.min.js +3 -3
- package/lib/modal/src/modal.js +66 -44
- package/lib/select/src/option.js +2 -1
- package/lib/select/src/select.js +25 -20
- package/lib/style.css +127 -2
- package/lib/style.mini.css +1 -1
- package/lib/timeline/src/timeline-info.js +48 -0
- package/lib/timeline/src/timeline-item.js +32 -54
- package/lib/timeline/src/timeline.js +181 -47
- package/lib/timeline/src/util.js +71 -0
- package/lib/timeline/style/style.css +122 -0
- package/lib/timeline/style/style.mini.css +1 -0
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/vxe-icon/style/style.css +1 -1
- package/lib/vxe-icon/style/style.mini.css +1 -1
- package/lib/vxe-timeline/style/style.css +122 -0
- package/lib/vxe-timeline/style/style.mini.css +1 -0
- package/package.json +10 -3
- package/packages/modal/src/modal.ts +90 -47
- package/packages/select/src/option.ts +3 -1
- package/packages/select/src/select.ts +25 -20
- package/packages/slider/src/slider.ts +1 -16
- package/packages/timeline/src/timeline-info.ts +17 -0
- package/packages/timeline/src/timeline-item.ts +25 -50
- package/packages/timeline/src/timeline.ts +154 -15
- package/packages/timeline/src/util.ts +41 -0
- package/styles/components/timeline.scss +133 -0
- package/styles/theme/dark.scss +2 -1
- package/styles/theme/light.scss +1 -0
- package/styles/variable.scss +2 -1
- package/types/components/modal.d.ts +2 -0
- package/types/components/optgroup.d.ts +0 -1
- package/types/components/option.d.ts +0 -1
- package/types/components/timeline-item.d.ts +21 -17
- package/types/components/timeline.d.ts +41 -8
- /package/dist/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/dist/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/dist/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
- /package/es/icon/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/es/icon/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/es/icon/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
- /package/es/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/es/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/es/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
- /package/es/vxe-icon/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/es/vxe-icon/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/es/vxe-icon/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/lib/icon/style/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
- /package/lib/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/lib/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/lib/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793082793047.ttf → iconfont.1793330162657.ttf} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793082793047.woff → iconfont.1793330162657.woff} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793082793047.woff2 → iconfont.1793330162657.woff2} +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// 局部变量
|
|
2
|
+
.vxe-timeline {
|
|
3
|
+
--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-default);
|
|
4
|
+
--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-default);
|
|
5
|
+
&.size--xlarge {
|
|
6
|
+
--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-xlarge);
|
|
7
|
+
--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-xlarge);
|
|
8
|
+
}
|
|
9
|
+
&.size--large {
|
|
10
|
+
--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-large);
|
|
11
|
+
--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-large);
|
|
12
|
+
}
|
|
13
|
+
&.size--medium {
|
|
14
|
+
--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-medium);
|
|
15
|
+
--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-medium);
|
|
16
|
+
}
|
|
17
|
+
&.size--small {
|
|
18
|
+
--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-small);
|
|
19
|
+
--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-small);
|
|
20
|
+
}
|
|
21
|
+
&.size--mini {
|
|
22
|
+
--vxe-ui-timeline-current-font-size: var(--vxe-ui-font-size-mini);
|
|
23
|
+
--vxe-ui-timeline-current-padding: var(--vxe-ui-form-item-padding-mini);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.vxe-timeline {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
padding: var(--vxe-ui-timeline-current-padding) 0;
|
|
31
|
+
font-size: var(--vxe-ui-timeline-current-font-size);
|
|
32
|
+
color: var(--vxe-ui-font-color);
|
|
33
|
+
.vxe-timeline--body {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
}
|
|
37
|
+
.vxe-timeline--item {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
padding-bottom: 1.25em;
|
|
41
|
+
&:last-child {
|
|
42
|
+
padding-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
&.is--last {
|
|
45
|
+
.vxe-timeline--item-line {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// 竖线
|
|
52
|
+
.vxe-timeline--item-line {
|
|
53
|
+
position: absolute;
|
|
54
|
+
left: calc(0.5em - 0.0625em);
|
|
55
|
+
top: 1.125em;
|
|
56
|
+
bottom: 0;
|
|
57
|
+
width: 0.125em;
|
|
58
|
+
background-color: var(--vxe-ui-base-border-color);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// 节点圆点
|
|
62
|
+
.vxe-timeline--item-node {
|
|
63
|
+
position: relative;
|
|
64
|
+
z-index: 1;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
width: 1em;
|
|
67
|
+
height: 1em;
|
|
68
|
+
margin-top: 0.25em;
|
|
69
|
+
margin-right: 0.75em;
|
|
70
|
+
border: 0.125em solid var(--vxe-ui-font-primary-color);
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
.vxe-timeline--item-wrapper {
|
|
76
|
+
flex: 1;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
padding-top: 0.0625em;
|
|
79
|
+
}
|
|
80
|
+
.vxe-timeline--item-title {
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
line-height: 1.4;
|
|
83
|
+
color: var(--vxe-ui-font-color);
|
|
84
|
+
}
|
|
85
|
+
.vxe-timeline--item-content {
|
|
86
|
+
margin-top: 0.25em;
|
|
87
|
+
line-height: 1.5;
|
|
88
|
+
color: var(--vxe-ui-font-lighten-color);
|
|
89
|
+
word-break: break-word;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// 横向
|
|
93
|
+
&.is--horizontal {
|
|
94
|
+
.vxe-timeline--body {
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
}
|
|
98
|
+
.vxe-timeline--item {
|
|
99
|
+
flex: 1;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
align-items: center;
|
|
102
|
+
padding-bottom: 0;
|
|
103
|
+
padding-right: 1.25em;
|
|
104
|
+
text-align: center;
|
|
105
|
+
&:last-child {
|
|
106
|
+
padding-right: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.vxe-timeline--item-line {
|
|
110
|
+
left: 50%;
|
|
111
|
+
top: calc(0.5em - 0.0625em);
|
|
112
|
+
right: -50%;
|
|
113
|
+
bottom: auto;
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 0.125em;
|
|
116
|
+
}
|
|
117
|
+
.vxe-timeline--item-node {
|
|
118
|
+
margin-top: 0;
|
|
119
|
+
margin-right: 0;
|
|
120
|
+
margin-bottom: 0.5em;
|
|
121
|
+
}
|
|
122
|
+
.vxe-timeline--item-wrapper {
|
|
123
|
+
padding-top: 0;
|
|
124
|
+
}
|
|
125
|
+
.vxe-timeline--item-content {
|
|
126
|
+
margin-top: 0.125em;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.vxe-timeline--slots {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
package/styles/theme/dark.scss
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
--vxe-ui-status-error-disabled-color: #f5a8a8;
|
|
50
50
|
|
|
51
51
|
/*base*/
|
|
52
|
+
--vxe-ui-base-border-color: #424242;
|
|
52
53
|
--vxe-ui-base-popup-border-color: #424242;
|
|
53
54
|
--vxe-ui-base-popup-box-shadow: 0px 12px 30px 8px rgba(0, 0, 0, 0.5);
|
|
54
55
|
--vxe-ui-base-drag-background-color: #2e3741;
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
--vxe-ui-layout-background-color: #121212;
|
|
60
61
|
|
|
61
62
|
/*input*/
|
|
62
|
-
--vxe-ui-input-border-color:
|
|
63
|
+
--vxe-ui-input-border-color: var(--vxe-ui-base-border-color);
|
|
63
64
|
--vxe-ui-input-placeholder-color: #3c3d3e;
|
|
64
65
|
--vxe-ui-input-disabled-background-color: #262727;
|
|
65
66
|
|
package/styles/theme/light.scss
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
--vxe-ui-status-error-disabled-color: #{light_variable.$vxe-ui-status-error-disabled-color};
|
|
49
49
|
|
|
50
50
|
/*base*/
|
|
51
|
+
--vxe-ui-base-border-color: #{light_variable.$vxe-ui-base-border-color};
|
|
51
52
|
--vxe-ui-base-popup-border-color: #{light_variable.$vxe-ui-base-popup-border-color};
|
|
52
53
|
--vxe-ui-base-popup-box-shadow: #{light_variable.$vxe-ui-base-popup-box-shadow};
|
|
53
54
|
--vxe-ui-base-drag-background-color: #{light_variable.$vxe-ui-base-drag-background-color};
|
package/styles/variable.scss
CHANGED
|
@@ -44,6 +44,7 @@ $vxe-ui-status-error-disabled-color: #f5a8a8 !default;
|
|
|
44
44
|
$vxe-ui-status-danger-disabled-color: $vxe-ui-status-error-disabled-color !default;
|
|
45
45
|
|
|
46
46
|
/*base*/
|
|
47
|
+
$vxe-ui-base-border-color: #dcdfe6 !default;
|
|
47
48
|
$vxe-ui-base-popup-border-color: #DADCE0 !default;
|
|
48
49
|
$vxe-ui-base-popup-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.16) !default;
|
|
49
50
|
$vxe-ui-base-drag-background-color: #dde9fd !default;
|
|
@@ -54,7 +55,7 @@ $vxe-ui-base-hover-background-color: rgba(0, 0, 0, 0.06) !default;
|
|
|
54
55
|
$vxe-ui-layout-background-color: #ffffff !default;
|
|
55
56
|
|
|
56
57
|
/*input*/
|
|
57
|
-
$vxe-ui-input-border-color:
|
|
58
|
+
$vxe-ui-input-border-color: $vxe-ui-base-border-color !default;
|
|
58
59
|
$vxe-ui-input-placeholder-color: #C0C4CC !default;
|
|
59
60
|
$vxe-ui-input-disabled-background-color: #f3f3f3 !default;
|
|
60
61
|
|
|
@@ -116,6 +116,7 @@ export namespace VxeModalPropTypes {
|
|
|
116
116
|
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
117
117
|
export type IsWithinAppendTo = boolean
|
|
118
118
|
export type Storage = boolean
|
|
119
|
+
export type StoreDriver = 'indexedDB' | 'localStorage'
|
|
119
120
|
export type StorageKey = string
|
|
120
121
|
export type Animat = boolean
|
|
121
122
|
export type Padding = boolean
|
|
@@ -196,6 +197,7 @@ export interface VxeModalProps {
|
|
|
196
197
|
*/
|
|
197
198
|
isWithinAppendTo?: VxeModalPropTypes.IsWithinAppendTo
|
|
198
199
|
storage?: VxeModalPropTypes.Storage
|
|
200
|
+
storeDriver?: VxeModalPropTypes.StoreDriver
|
|
199
201
|
storageKey?: VxeModalPropTypes.StorageKey
|
|
200
202
|
animat?: VxeModalPropTypes.Animat
|
|
201
203
|
padding?: VxeModalPropTypes.Padding
|
|
@@ -12,7 +12,6 @@ export type VxeOptgroupInstance = DefineVxeComponentInstance<VxeOptgroupProps, V
|
|
|
12
12
|
export interface VxeOptgroupConstructor extends VxeComponentBaseOptions, VxeOptgroupMethods {
|
|
13
13
|
props: VxeOptgroupProps
|
|
14
14
|
context: SetupContext<VxeOptgroupEmits>
|
|
15
|
-
reactData: OptgroupReactData
|
|
16
15
|
getRefMaps(): OptgroupPrivateRef
|
|
17
16
|
getComputeMaps(): OptgroupPrivateComputed
|
|
18
17
|
renderVN: RenderFunction
|
|
@@ -12,7 +12,6 @@ export type VxeOptionInstance = DefineVxeComponentInstance<VxeOptionProps, VxeOp
|
|
|
12
12
|
export interface VxeOptionConstructor extends VxeComponentBaseOptions, VxeOptionMethods {
|
|
13
13
|
props: VxeOptionProps
|
|
14
14
|
context: SetupContext<VxeOptionEmits>
|
|
15
|
-
reactData: OptionReactData
|
|
16
15
|
getRefMaps(): OptionPrivateRef
|
|
17
16
|
getComputeMaps(): OptionPrivateComputed
|
|
18
17
|
renderVN: RenderFunction
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core'
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
5
|
|
|
@@ -11,9 +11,8 @@ export type VxeTimelineItemInstance = DefineVxeComponentInstance<VxeTimelineItem
|
|
|
11
11
|
export interface VxeTimelineItemConstructor extends VxeComponentBaseOptions, VxeTimelineItemMethods {
|
|
12
12
|
props: VxeTimelineItemProps
|
|
13
13
|
context: SetupContext<VxeTimelineItemEmits>
|
|
14
|
-
reactData: TimelineItemReactData
|
|
15
14
|
getRefMaps(): TimelineItemPrivateRef
|
|
16
|
-
getComputeMaps():
|
|
15
|
+
getComputeMaps(): VxeTimelineItemPrivateComputed
|
|
17
16
|
renderVN: RenderFunction
|
|
18
17
|
}
|
|
19
18
|
|
|
@@ -22,18 +21,20 @@ export interface TimelineItemPrivateRef {
|
|
|
22
21
|
}
|
|
23
22
|
export interface VxeTimelineItemPrivateRef extends TimelineItemPrivateRef {}
|
|
24
23
|
|
|
25
|
-
export namespace VxeTimelineItemPropTypes {
|
|
24
|
+
export namespace VxeTimelineItemPropTypes {
|
|
25
|
+
export type Title = string | number
|
|
26
|
+
export type Content = string | number
|
|
27
|
+
}
|
|
26
28
|
|
|
27
|
-
export
|
|
29
|
+
export interface VxeTimelineItemProps {
|
|
30
|
+
title?: VxeTimelineItemPropTypes.Title
|
|
31
|
+
content?: VxeTimelineItemPropTypes.Content
|
|
32
|
+
}
|
|
28
33
|
|
|
29
34
|
export interface TimelineItemPrivateComputed {}
|
|
30
35
|
export interface VxeTimelineItemPrivateComputed extends TimelineItemPrivateComputed {}
|
|
31
36
|
|
|
32
|
-
export interface
|
|
33
|
-
|
|
34
|
-
export interface TimelineItemMethods {
|
|
35
|
-
dispatchEvent(type: ValueOf<VxeTimelineItemEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
36
|
-
}
|
|
37
|
+
export interface TimelineItemMethods {}
|
|
37
38
|
export interface VxeTimelineItemMethods extends TimelineItemMethods {}
|
|
38
39
|
|
|
39
40
|
export interface TimelineItemPrivateMethods {}
|
|
@@ -45,22 +46,25 @@ export namespace VxeTimelineItemDefines {
|
|
|
45
46
|
export interface TimelineItemEventParams extends VxeComponentEventParams {
|
|
46
47
|
$timelineItem: VxeTimelineItemConstructor
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
export interface ClickEventParams extends TimelineItemEventParams {}
|
|
50
|
-
export interface CloseEventParams extends TimelineItemEventParams {}
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export type VxeTimelineItemEventProps = {}
|
|
54
52
|
|
|
55
53
|
export interface VxeTimelineItemListeners {}
|
|
56
54
|
|
|
57
|
-
export namespace VxeTimelineItemEvents {}
|
|
58
|
-
|
|
59
55
|
export namespace VxeTimelineItemSlotTypes {
|
|
60
|
-
export interface DefaultSlotParams {
|
|
56
|
+
export interface DefaultSlotParams {
|
|
57
|
+
item: any
|
|
58
|
+
}
|
|
59
|
+
export interface TitleSlotParams {
|
|
60
|
+
item: any
|
|
61
|
+
}
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
export interface VxeTimelineItemSlots {
|
|
64
|
+
export interface VxeTimelineItemSlots {
|
|
65
|
+
default?: (params: VxeTimelineItemSlotTypes.DefaultSlotParams) => any
|
|
66
|
+
title?: (params: VxeTimelineItemSlotTypes.TitleSlotParams) => any
|
|
67
|
+
}
|
|
64
68
|
|
|
65
69
|
export const TimelineItem: typeof VxeTimelineItem
|
|
66
70
|
export default VxeTimelineItem
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions,
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, ValueOf, DefineVxeComponentInstance, VxeComponentSizeType, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core'
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
5
|
|
|
@@ -12,6 +12,7 @@ export interface VxeTimelineConstructor extends VxeComponentBaseOptions, VxeTime
|
|
|
12
12
|
props: VxeTimelineProps
|
|
13
13
|
context: SetupContext<VxeTimelineEmits>
|
|
14
14
|
reactData: TimelineReactData
|
|
15
|
+
internalData: TimelineInternalData
|
|
15
16
|
getRefMaps(): TimelinePrivateRef
|
|
16
17
|
getComputeMaps(): TimelinePrivateComputed
|
|
17
18
|
renderVN: RenderFunction
|
|
@@ -24,16 +25,35 @@ export interface VxeTimelinePrivateRef extends TimelinePrivateRef {}
|
|
|
24
25
|
|
|
25
26
|
export namespace VxeTimelinePropTypes {
|
|
26
27
|
export type Size = VxeComponentSizeType
|
|
28
|
+
export type Reverse = boolean
|
|
29
|
+
export type Vertical = boolean
|
|
30
|
+
export interface OptionProps {
|
|
31
|
+
title?: string
|
|
32
|
+
content?: string
|
|
33
|
+
}
|
|
34
|
+
type Option = Record<string, any>
|
|
35
|
+
export type Options = Option[]
|
|
27
36
|
}
|
|
28
37
|
|
|
29
|
-
export
|
|
38
|
+
export interface VxeTimelineProps {
|
|
30
39
|
size?: VxeTimelinePropTypes.Size
|
|
40
|
+
options?: VxeTimelinePropTypes.Options
|
|
41
|
+
reverse?: VxeTimelinePropTypes.Reverse
|
|
42
|
+
vertical?: VxeTimelinePropTypes.Vertical
|
|
43
|
+
optionProps?: VxeTimelinePropTypes.OptionProps
|
|
31
44
|
}
|
|
32
45
|
|
|
33
46
|
export interface TimelinePrivateComputed {}
|
|
34
47
|
export interface VxeTimelinePrivateComputed extends TimelinePrivateComputed {}
|
|
35
48
|
|
|
36
|
-
export interface TimelineReactData {
|
|
49
|
+
export interface TimelineReactData {
|
|
50
|
+
itemList: any[]
|
|
51
|
+
staticItems: VxeTimelineDefines.ItemInfo[]
|
|
52
|
+
isOptConf: boolean
|
|
53
|
+
}
|
|
54
|
+
export interface TimelineInternalData {
|
|
55
|
+
fullData: any[]
|
|
56
|
+
}
|
|
37
57
|
|
|
38
58
|
export interface TimelineMethods {
|
|
39
59
|
dispatchEvent(type: ValueOf<VxeTimelineEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
@@ -46,12 +66,16 @@ export interface VxeTimelinePrivateMethods extends TimelinePrivateMethods {}
|
|
|
46
66
|
export type VxeTimelineEmits = []
|
|
47
67
|
|
|
48
68
|
export namespace VxeTimelineDefines {
|
|
69
|
+
export interface ItemInfo {
|
|
70
|
+
id: string
|
|
71
|
+
title?: string | number
|
|
72
|
+
content?: string | number
|
|
73
|
+
[key: string]: any
|
|
74
|
+
}
|
|
75
|
+
|
|
49
76
|
export interface TimelineEventParams extends VxeComponentEventParams {
|
|
50
77
|
$timeline: VxeTimelineConstructor
|
|
51
78
|
}
|
|
52
|
-
|
|
53
|
-
export interface ClickEventParams extends TimelineEventParams {}
|
|
54
|
-
export interface CloseEventParams extends TimelineEventParams {}
|
|
55
79
|
}
|
|
56
80
|
|
|
57
81
|
export type VxeTimelineEventProps = {}
|
|
@@ -61,10 +85,19 @@ export interface VxeTimelineListeners {}
|
|
|
61
85
|
export namespace VxeTimelineEvents {}
|
|
62
86
|
|
|
63
87
|
export namespace VxeTimelineSlotTypes {
|
|
64
|
-
export interface
|
|
88
|
+
export interface TitleSlotParams {
|
|
89
|
+
item: any
|
|
90
|
+
}
|
|
91
|
+
export interface ContentSlotParams {
|
|
92
|
+
item: any
|
|
93
|
+
}
|
|
65
94
|
}
|
|
66
95
|
|
|
67
|
-
export interface VxeTimelineSlots {
|
|
96
|
+
export interface VxeTimelineSlots {
|
|
97
|
+
default?: (params: Record<string, any>) => any
|
|
98
|
+
title?: (params: VxeTimelineSlotTypes.TitleSlotParams) => any
|
|
99
|
+
content?: (params: VxeTimelineSlotTypes.ContentSlotParams) => any
|
|
100
|
+
}
|
|
68
101
|
|
|
69
102
|
export const Timeline: typeof VxeTimeline
|
|
70
103
|
export default VxeTimeline
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|