bkui-vue 1.0.3-beta.60.scrollbar.5 → 1.0.3-beta.61.dialog.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/dist/index.cjs.js +61 -63
- package/dist/index.esm.js +19978 -19906
- package/dist/index.umd.js +61 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/components.js +3 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.css +140 -80
- package/lib/dialog/dialog.d.ts +41 -121
- package/lib/dialog/dialog.less +10 -65
- package/lib/dialog/dialog.variable.css +140 -80
- package/lib/dialog/index.d.ts +105 -272
- package/lib/dialog/index.js +91 -100
- package/lib/dialog/props.d.ts +8 -48
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +312 -172
- package/lib/info-box/info-box.css +63 -7
- package/lib/info-box/info-box.d.ts +17 -16
- package/lib/info-box/info-box.less +76 -14
- package/lib/info-box/info-box.variable.css +63 -7
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +48 -325
- package/lib/modal/index.js +195 -675
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +132 -34
- package/lib/modal/modal.d.ts +17 -126
- package/lib/modal/modal.less +88 -39
- package/lib/modal/modal.variable.css +132 -34
- package/lib/modal/props.mixin.d.ts +2 -53
- package/lib/scrollbar/index.d.ts +14 -0
- package/lib/scrollbar/index.js +18737 -0
- package/lib/{virtual-render → scrollbar}/scrollbar-core/index.d.ts +31 -8
- package/lib/{virtual-render/bk-scrollbar.css → scrollbar/scrollbar.css} +13 -13
- package/lib/{virtual-render/bk-scrollbar.less → scrollbar/scrollbar.less} +13 -13
- package/lib/{virtual-render/bk-scrollbar.variable.css → scrollbar/scrollbar.variable.css} +13 -13
- package/lib/search-select/index.d.ts +327 -12
- package/lib/search-select/index.js +620 -340
- package/lib/search-select/input.d.ts +6 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +109 -4
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +20 -6
- package/lib/search-select/selected.d.ts +107 -5
- package/lib/search-select/utils.d.ts +13 -1
- package/lib/select/index.d.ts +23 -0
- package/lib/select/index.js +4 -1
- package/lib/select/select.d.ts +11 -0
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -48
- package/lib/sideslider/index.d.ts +31 -222
- package/lib/sideslider/index.js +49 -36
- package/lib/sideslider/sideslider.css +4 -47
- package/lib/sideslider/sideslider.d.ts +14 -105
- package/lib/sideslider/sideslider.less +14 -65
- package/lib/sideslider/sideslider.variable.css +4 -47
- package/lib/table/index.js +37 -28
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/table.css +14 -13
- package/lib/table/table.less +2 -2
- package/lib/table/table.variable.css +14 -13
- package/lib/table/use-attributes.d.ts +1 -0
- package/lib/timeline/index.js +1 -0
- package/lib/tree/tree.css +13 -13
- package/lib/tree/tree.variable.css +13 -13
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/virtual-render/index.js +262 -2175
- package/lib/virtual-render/use-scrollbar.d.ts +2 -2
- package/lib/virtual-render/virtual-render.css +13 -13
- package/lib/virtual-render/virtual-render.less +2 -2
- package/lib/virtual-render/virtual-render.variable.css +13 -13
- package/package.json +2 -2
- package/lib/icon/image-fill.js +0 -191
- package/lib/shared/mask.d.ts +0 -11
- package/lib/virtual-render/bk-scrollbar.d.ts +0 -10
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/can-use-dom.d.ts +0 -0
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/helpers.d.ts +0 -0
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/mouse-wheel.d.ts +0 -0
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/scrollbar-width.d.ts +0 -0
@@ -1,19 +1,13 @@
|
|
1
|
-
.bk-sideslider {
|
2
|
-
position: fixed;
|
3
|
-
top: 0;
|
1
|
+
.bk-sideslider.is-position-right .bk-modal-wrapper {
|
4
2
|
right: 0;
|
5
|
-
|
3
|
+
}
|
4
|
+
.bk-sideslider.is-position-left .bk-modal-wrapper {
|
6
5
|
left: 0;
|
7
6
|
}
|
8
7
|
.bk-sideslider .bk-modal-wrapper {
|
9
|
-
position:
|
8
|
+
position: fixed;
|
10
9
|
top: 0;
|
11
10
|
bottom: 0;
|
12
|
-
left: auto;
|
13
|
-
transform: initial;
|
14
|
-
}
|
15
|
-
.bk-sideslider .bk-modal-wrapper.scroll-able .bk-modal-content {
|
16
|
-
overflow: auto;
|
17
11
|
}
|
18
12
|
.bk-sideslider .bk-modal-footer.is-fixed .bk-sideslider-footer {
|
19
13
|
height: 54px;
|
@@ -79,11 +73,6 @@
|
|
79
73
|
width: 100%;
|
80
74
|
padding: 0 0 0 46px;
|
81
75
|
}
|
82
|
-
.bk-sideslider-content {
|
83
|
-
padding-right: 24px;
|
84
|
-
padding-left: 24px;
|
85
|
-
overflow-y: scroll;
|
86
|
-
}
|
87
76
|
.bk-sideslider-footer {
|
88
77
|
display: flex;
|
89
78
|
width: 100%;
|
@@ -93,35 +82,3 @@
|
|
93
82
|
background: #fff;
|
94
83
|
align-items: center;
|
95
84
|
}
|
96
|
-
/* fade-center */
|
97
|
-
/* slide过渡动画 */
|
98
|
-
.slide-enter-active,
|
99
|
-
.slide-leave-active,
|
100
|
-
.bk-modal-body {
|
101
|
-
transform: translateX(0);
|
102
|
-
transition: transform 0.25s;
|
103
|
-
}
|
104
|
-
.slide-enter-active {
|
105
|
-
animation: slider-fade-in 0.25s;
|
106
|
-
}
|
107
|
-
.slide-leave-active {
|
108
|
-
animation: slider-fade-in 0.25s reverse;
|
109
|
-
}
|
110
|
-
.slide-enter-from.left,
|
111
|
-
.slide-leave-to.left {
|
112
|
-
transform: translateX(-100%);
|
113
|
-
transition: transform 0.25s;
|
114
|
-
}
|
115
|
-
.slide-enter-from.right,
|
116
|
-
.slide-leave-to.right {
|
117
|
-
transform: translateX(100%);
|
118
|
-
transition: transform 0.25s;
|
119
|
-
}
|
120
|
-
@keyframes slider-fade-in {
|
121
|
-
0% {
|
122
|
-
opacity: 0;
|
123
|
-
}
|
124
|
-
100% {
|
125
|
-
opacity: 1;
|
126
|
-
}
|
127
|
-
}
|
@@ -1,4 +1,9 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
3
|
+
default: string;
|
4
|
+
} & {
|
5
|
+
default: string;
|
6
|
+
};
|
2
7
|
direction: {
|
3
8
|
type: StringConstructor;
|
4
9
|
default: string;
|
@@ -9,18 +14,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
9
14
|
} & {
|
10
15
|
default: boolean;
|
11
16
|
};
|
12
|
-
width: import("vue-types").VueTypeDef<string | number
|
13
|
-
|
14
|
-
};
|
15
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
16
|
-
default: string | number;
|
17
|
-
};
|
18
|
-
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
19
|
-
default: string;
|
20
|
-
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
21
|
-
default: () => unknown[];
|
22
|
-
});
|
23
|
-
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
17
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
18
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
24
19
|
default: boolean;
|
25
20
|
} & {
|
26
21
|
default: boolean;
|
@@ -40,17 +35,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
35
|
} & {
|
41
36
|
default: boolean;
|
42
37
|
};
|
43
|
-
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
44
|
-
default: boolean;
|
45
|
-
} & {
|
46
|
-
default: boolean;
|
47
|
-
};
|
48
|
-
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
49
|
-
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
50
|
-
default: boolean;
|
51
|
-
} & {
|
52
|
-
default: boolean;
|
53
|
-
};
|
54
38
|
quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
55
39
|
default: boolean;
|
56
40
|
} & {
|
@@ -60,14 +44,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
44
|
default: string | boolean | (() => HTMLElement);
|
61
45
|
};
|
62
46
|
zIndex: import("vue-types").VueTypeDef<string | number>;
|
63
|
-
maxHeight: import("vue-types").VueTypeValidableDef<string> & {
|
64
|
-
default: string;
|
65
|
-
};
|
66
|
-
title: import("vue-types").VueTypeValidableDef<string> & {
|
67
|
-
default: string;
|
68
|
-
} & {
|
69
|
-
default: string;
|
70
|
-
};
|
71
47
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
72
48
|
default: string;
|
73
49
|
} & {
|
@@ -77,30 +53,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
53
|
default: "show" | "if";
|
78
54
|
};
|
79
55
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
80
|
-
dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
|
81
|
-
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
82
|
-
default: boolean;
|
83
|
-
} & {
|
84
|
-
default: boolean;
|
85
|
-
};
|
86
|
-
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
87
|
-
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
88
|
-
default: string;
|
89
|
-
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
90
|
-
default: () => unknown[];
|
91
|
-
});
|
92
56
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
93
57
|
default: string;
|
94
58
|
};
|
95
59
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
96
60
|
default: string;
|
97
61
|
};
|
98
|
-
|
99
|
-
|
62
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "hidden" | "shown" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
63
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
64
|
+
default: string;
|
100
65
|
} & {
|
101
|
-
default:
|
66
|
+
default: string;
|
102
67
|
};
|
103
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "hidden" | "shown" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
104
68
|
direction: {
|
105
69
|
type: StringConstructor;
|
106
70
|
default: string;
|
@@ -111,18 +75,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
111
75
|
} & {
|
112
76
|
default: boolean;
|
113
77
|
};
|
114
|
-
width: import("vue-types").VueTypeDef<string | number
|
115
|
-
|
116
|
-
};
|
117
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
118
|
-
default: string | number;
|
119
|
-
};
|
120
|
-
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
121
|
-
default: string;
|
122
|
-
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
123
|
-
default: () => unknown[];
|
124
|
-
});
|
125
|
-
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
79
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
126
80
|
default: boolean;
|
127
81
|
} & {
|
128
82
|
default: boolean;
|
@@ -142,17 +96,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
142
96
|
} & {
|
143
97
|
default: boolean;
|
144
98
|
};
|
145
|
-
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
|
-
default: boolean;
|
147
|
-
} & {
|
148
|
-
default: boolean;
|
149
|
-
};
|
150
|
-
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
151
|
-
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
152
|
-
default: boolean;
|
153
|
-
} & {
|
154
|
-
default: boolean;
|
155
|
-
};
|
156
99
|
quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
157
100
|
default: boolean;
|
158
101
|
} & {
|
@@ -162,14 +105,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
162
105
|
default: string | boolean | (() => HTMLElement);
|
163
106
|
};
|
164
107
|
zIndex: import("vue-types").VueTypeDef<string | number>;
|
165
|
-
maxHeight: import("vue-types").VueTypeValidableDef<string> & {
|
166
|
-
default: string;
|
167
|
-
};
|
168
|
-
title: import("vue-types").VueTypeValidableDef<string> & {
|
169
|
-
default: string;
|
170
|
-
} & {
|
171
|
-
default: string;
|
172
|
-
};
|
173
108
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
174
109
|
default: string;
|
175
110
|
} & {
|
@@ -179,29 +114,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
179
114
|
default: "show" | "if";
|
180
115
|
};
|
181
116
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
182
|
-
dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
|
183
|
-
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
184
|
-
default: boolean;
|
185
|
-
} & {
|
186
|
-
default: boolean;
|
187
|
-
};
|
188
|
-
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
189
|
-
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
190
|
-
default: string;
|
191
|
-
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
192
|
-
default: () => unknown[];
|
193
|
-
});
|
194
117
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
195
118
|
default: string;
|
196
119
|
};
|
197
120
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
198
121
|
default: string;
|
199
122
|
};
|
200
|
-
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
201
|
-
default: number;
|
202
|
-
} & {
|
203
|
-
default: number;
|
204
|
-
};
|
205
123
|
}>> & {
|
206
124
|
onHidden?: (...args: any[]) => any;
|
207
125
|
onShown?: (...args: any[]) => any;
|
@@ -210,26 +128,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
210
128
|
"onAnimation-end"?: (...args: any[]) => any;
|
211
129
|
}, {
|
212
130
|
title: string;
|
213
|
-
width: string | number;
|
214
|
-
height: string | number;
|
215
|
-
maxHeight: string;
|
216
|
-
extCls: string | unknown[];
|
217
131
|
top: string;
|
218
132
|
left: string;
|
219
133
|
isShow: boolean;
|
220
|
-
draggable: boolean;
|
221
134
|
transfer: string | boolean | HTMLElement;
|
222
135
|
direction: string;
|
223
136
|
renderDirective: "show" | "if";
|
224
|
-
|
137
|
+
fullscreen: boolean;
|
225
138
|
showMask: boolean;
|
226
139
|
closeIcon: boolean;
|
227
140
|
escClose: boolean;
|
228
|
-
fullscreen: boolean;
|
229
141
|
quickClose: boolean;
|
230
142
|
animateType: string;
|
231
|
-
multiInstance: boolean;
|
232
|
-
bodyClass: string | unknown[];
|
233
|
-
hiddenDelay: number;
|
234
143
|
}, {}>;
|
235
144
|
export default _default;
|
@@ -1,30 +1,29 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
3
|
.@{bk-prefix}-sideslider {
|
4
|
-
position
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
&.is-position-right {
|
5
|
+
.@{bk-prefix}-modal-wrapper {
|
6
|
+
right: 0;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
&.is-position-left {
|
11
|
+
.@{bk-prefix}-modal-wrapper {
|
12
|
+
left: 0;
|
13
|
+
}
|
14
|
+
}
|
9
15
|
|
10
16
|
.@{bk-prefix}-modal-wrapper {
|
11
|
-
position:
|
17
|
+
position: fixed;
|
12
18
|
top: 0;
|
13
19
|
bottom: 0;
|
14
|
-
left: auto;
|
15
|
-
transform: initial;
|
16
|
-
|
17
|
-
&.scroll-able {
|
18
|
-
.@{bk-prefix}-modal-content {
|
19
|
-
overflow: auto;
|
20
|
-
}
|
21
|
-
}
|
22
20
|
}
|
21
|
+
|
23
22
|
.@{bk-prefix}-modal-footer {
|
24
23
|
&.is-fixed {
|
25
24
|
.@{bk-prefix}-sideslider-footer {
|
26
25
|
height: 54px;
|
27
|
-
margin: 0
|
26
|
+
margin: 0;
|
28
27
|
border-top: 1px solid transparent;
|
29
28
|
box-shadow: rgb(0 0 0 / 6%) 0 -2px 4px 0;
|
30
29
|
}
|
@@ -98,12 +97,6 @@
|
|
98
97
|
}
|
99
98
|
}
|
100
99
|
|
101
|
-
.@{bk-prefix}-sideslider-content {
|
102
|
-
padding-right: 24px;
|
103
|
-
padding-left: 24px;
|
104
|
-
overflow-y: scroll;
|
105
|
-
}
|
106
|
-
|
107
100
|
.@{bk-prefix}-sideslider-footer {
|
108
101
|
display: flex;
|
109
102
|
width: 100%;
|
@@ -113,47 +106,3 @@
|
|
113
106
|
background: #fff;
|
114
107
|
align-items: center;
|
115
108
|
}
|
116
|
-
|
117
|
-
/* fade-center */
|
118
|
-
|
119
|
-
/* slide过渡动画 */
|
120
|
-
.slide-enter-active,
|
121
|
-
.slide-leave-active,
|
122
|
-
.@{bk-prefix}-modal-body {
|
123
|
-
transform: translateX(0);
|
124
|
-
transition: transform .25s;
|
125
|
-
}
|
126
|
-
|
127
|
-
.slide-enter-active {
|
128
|
-
animation: slider-fade-in .25s;
|
129
|
-
}
|
130
|
-
|
131
|
-
.slide-leave-active {
|
132
|
-
animation: slider-fade-in .25s reverse;
|
133
|
-
}
|
134
|
-
|
135
|
-
.slide-enter-from,
|
136
|
-
.slide-leave-to {
|
137
|
-
&.left {
|
138
|
-
transform: translateX(-100%);
|
139
|
-
transition: transform .25s;
|
140
|
-
}
|
141
|
-
|
142
|
-
&.right {
|
143
|
-
transform: translateX(100%);
|
144
|
-
transition: transform .25s;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
@keyframes slider-fade-in {
|
149
|
-
0% {
|
150
|
-
opacity: 0;
|
151
|
-
}
|
152
|
-
|
153
|
-
100% {
|
154
|
-
opacity: 1;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
|
159
|
-
|
@@ -127,22 +127,16 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
.bk-sideslider {
|
131
|
-
position: fixed;
|
132
|
-
top: 0;
|
130
|
+
.bk-sideslider.is-position-right .bk-modal-wrapper {
|
133
131
|
right: 0;
|
134
|
-
|
132
|
+
}
|
133
|
+
.bk-sideslider.is-position-left .bk-modal-wrapper {
|
135
134
|
left: 0;
|
136
135
|
}
|
137
136
|
.bk-sideslider .bk-modal-wrapper {
|
138
|
-
position:
|
137
|
+
position: fixed;
|
139
138
|
top: 0;
|
140
139
|
bottom: 0;
|
141
|
-
left: auto;
|
142
|
-
transform: initial;
|
143
|
-
}
|
144
|
-
.bk-sideslider .bk-modal-wrapper.scroll-able .bk-modal-content {
|
145
|
-
overflow: auto;
|
146
140
|
}
|
147
141
|
.bk-sideslider .bk-modal-footer.is-fixed .bk-sideslider-footer {
|
148
142
|
height: 54px;
|
@@ -208,11 +202,6 @@
|
|
208
202
|
width: 100%;
|
209
203
|
padding: 0 0 0 46px;
|
210
204
|
}
|
211
|
-
.bk-sideslider-content {
|
212
|
-
padding-right: 24px;
|
213
|
-
padding-left: 24px;
|
214
|
-
overflow-y: scroll;
|
215
|
-
}
|
216
205
|
.bk-sideslider-footer {
|
217
206
|
display: flex;
|
218
207
|
width: 100%;
|
@@ -222,35 +211,3 @@
|
|
222
211
|
background: #fff;
|
223
212
|
align-items: center;
|
224
213
|
}
|
225
|
-
/* fade-center */
|
226
|
-
/* slide过渡动画 */
|
227
|
-
.slide-enter-active,
|
228
|
-
.slide-leave-active,
|
229
|
-
.bk-modal-body {
|
230
|
-
transform: translateX(0);
|
231
|
-
transition: transform 0.25s;
|
232
|
-
}
|
233
|
-
.slide-enter-active {
|
234
|
-
animation: slider-fade-in 0.25s;
|
235
|
-
}
|
236
|
-
.slide-leave-active {
|
237
|
-
animation: slider-fade-in 0.25s reverse;
|
238
|
-
}
|
239
|
-
.slide-enter-from.left,
|
240
|
-
.slide-leave-to.left {
|
241
|
-
transform: translateX(-100%);
|
242
|
-
transition: transform 0.25s;
|
243
|
-
}
|
244
|
-
.slide-enter-from.right,
|
245
|
-
.slide-leave-to.right {
|
246
|
-
transform: translateX(100%);
|
247
|
-
transition: transform 0.25s;
|
248
|
-
}
|
249
|
-
@keyframes slider-fade-in {
|
250
|
-
0% {
|
251
|
-
opacity: 0;
|
252
|
-
}
|
253
|
-
100% {
|
254
|
-
opacity: 1;
|
255
|
-
}
|
256
|
-
}
|
package/lib/table/index.js
CHANGED
@@ -3196,6 +3196,7 @@ const loading_less_namespaceObject = loading_less_x({ });
|
|
3196
3196
|
return refScrollLoading.value !== null && (typeof refScrollLoading.value === 'boolean' && refScrollLoading.value || typeof_typeof(refScrollLoading.value) === 'object');
|
3197
3197
|
});
|
3198
3198
|
var renderScrollLoading = function renderScrollLoading() {
|
3199
|
+
var _ctx$slots$fixedBotto3, _ctx$slots$fixedBotto4, _ctx$slots2;
|
3199
3200
|
if (isRender.value) {
|
3200
3201
|
var _ctx$slots$fixedBotto, _ctx$slots$fixedBotto2, _ctx$slots;
|
3201
3202
|
var _getLoadingOption = getLoadingOption(),
|
@@ -3214,6 +3215,7 @@ const loading_less_namespaceObject = loading_less_x({ });
|
|
3214
3215
|
indicator: indicator
|
3215
3216
|
}, null);
|
3216
3217
|
}
|
3218
|
+
return (_ctx$slots$fixedBotto3 = (_ctx$slots$fixedBotto4 = (_ctx$slots2 = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto4 === void 0 ? void 0 : _ctx$slots$fixedBotto4.call(_ctx$slots2)) !== null && _ctx$slots$fixedBotto3 !== void 0 ? _ctx$slots$fixedBotto3 : null;
|
3217
3219
|
};
|
3218
3220
|
return {
|
3219
3221
|
renderScrollLoading: renderScrollLoading
|
@@ -3301,9 +3303,9 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
3301
3303
|
if (!props.pagination) {
|
3302
3304
|
return;
|
3303
3305
|
}
|
3304
|
-
localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread(
|
3306
|
+
localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread({
|
3305
3307
|
count: indexData.length
|
3306
|
-
});
|
3308
|
+
}, pagination);
|
3307
3309
|
};
|
3308
3310
|
/**
|
3309
3311
|
* 重置当前分页开始位置 & 结束位置
|
@@ -3368,35 +3370,35 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
3368
3370
|
}
|
3369
3371
|
pageData.length = 0;
|
3370
3372
|
pageData.push.apply(pageData, _toConsumableArray(sourceData.slice(startIndex.value, endIndex.value)));
|
3371
|
-
|
3373
|
+
if (Array.isArray(filterFn)) {
|
3374
|
+
multiFilter(filterFn, pageData);
|
3375
|
+
} else {
|
3376
|
+
filter(pageData, filterFn);
|
3377
|
+
}
|
3372
3378
|
sort(pageData, sortFn, column, type, sortScope);
|
3373
3379
|
resolveLocalPagination();
|
3374
3380
|
};
|
3375
3381
|
var resolvePageDataBySortList = function resolvePageDataBySortList(multiCol) {
|
3376
3382
|
resolvePageData(null, null, null, null, null, multiCol);
|
3377
3383
|
};
|
3378
|
-
var
|
3379
|
-
|
3384
|
+
var getCurrentPageData = function getCurrentPageData() {
|
3385
|
+
return indexData.slice(startIndex.value, endIndex.value);
|
3386
|
+
};
|
3387
|
+
var multiFilter = function multiFilter(filterFnList, origin) {
|
3388
|
+
var sourceData = (origin !== null && origin !== void 0 ? origin : indexData).slice();
|
3380
3389
|
var target = filterFnList.reduce(function (result, fn) {
|
3381
3390
|
return filter(result, fn);
|
3382
3391
|
}, sourceData);
|
3383
3392
|
pageData.length = 0;
|
3384
3393
|
pageData.push.apply(pageData, _toConsumableArray(getRawData(target)));
|
3385
3394
|
};
|
3386
|
-
var handlePaginationChange = function handlePaginationChange() {
|
3395
|
+
var handlePaginationChange = function handlePaginationChange(filterFn, sortFn) {
|
3387
3396
|
pagination = resolvePaginationOption(props.pagination, pagination);
|
3388
3397
|
resolveLocalPagination();
|
3389
3398
|
resetStartEndIndex();
|
3390
|
-
resolvePageData();
|
3399
|
+
resolvePageData(filterFn, sortFn);
|
3391
3400
|
};
|
3392
3401
|
handlePaginationChange();
|
3393
|
-
(0,external_vue_namespaceObject.watch)(function () {
|
3394
|
-
return [props.pagination];
|
3395
|
-
}, function () {
|
3396
|
-
handlePaginationChange();
|
3397
|
-
}, {
|
3398
|
-
deep: true
|
3399
|
-
});
|
3400
3402
|
return {
|
3401
3403
|
pageData: pageData,
|
3402
3404
|
indexData: indexData,
|
@@ -3404,7 +3406,9 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
3404
3406
|
resolvePageData: resolvePageData,
|
3405
3407
|
resolveIndexData: resolveIndexData,
|
3406
3408
|
resolvePageDataBySortList: resolvePageDataBySortList,
|
3409
|
+
handlePaginationChange: handlePaginationChange,
|
3407
3410
|
resetStartEndIndex: resetStartEndIndex,
|
3411
|
+
getCurrentPageData: getCurrentPageData,
|
3408
3412
|
multiFilter: multiFilter,
|
3409
3413
|
sort: sort
|
3410
3414
|
};
|
@@ -3483,6 +3487,8 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
3483
3487
|
localPagination = _usePagination.localPagination,
|
3484
3488
|
resolvePageData = _usePagination.resolvePageData,
|
3485
3489
|
resolvePageDataBySortList = _usePagination.resolvePageDataBySortList,
|
3490
|
+
handlePaginationChange = _usePagination.handlePaginationChange,
|
3491
|
+
getCurrentPageData = _usePagination.getCurrentPageData,
|
3486
3492
|
multiFilter = _usePagination.multiFilter,
|
3487
3493
|
sort = _usePagination.sort,
|
3488
3494
|
resetStartEndIndex = _usePagination.resetStartEndIndex,
|
@@ -3605,13 +3611,15 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
3605
3611
|
var getColumnFilterFn = function getColumnFilterFn(col) {
|
3606
3612
|
return getColumnAttribute(col, COLUMN_ATTRIBUTE.COL_FILTER_FN);
|
3607
3613
|
};
|
3608
|
-
var
|
3609
|
-
|
3614
|
+
var getFilterFnList = function getFilterFnList() {
|
3615
|
+
return formatData.columns.filter(function (col) {
|
3610
3616
|
return !isHiddenColumn(col) && typeof getColumnFilterFn(col) === 'function';
|
3611
3617
|
}).map(function (col) {
|
3612
3618
|
return getColumnFilterFn(col);
|
3613
3619
|
});
|
3614
|
-
|
3620
|
+
};
|
3621
|
+
var filter = function filter() {
|
3622
|
+
multiFilter(getFilterFnList(), getCurrentPageData());
|
3615
3623
|
};
|
3616
3624
|
/**
|
3617
3625
|
* 按照指定列排序
|
@@ -4072,6 +4080,13 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
4072
4080
|
var setIndexData = function setIndexData() {
|
4073
4081
|
return resolveIndexData();
|
4074
4082
|
};
|
4083
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
4084
|
+
return [props.pagination];
|
4085
|
+
}, function () {
|
4086
|
+
handlePaginationChange(getFilterFnList());
|
4087
|
+
}, {
|
4088
|
+
deep: true
|
4089
|
+
});
|
4075
4090
|
return {
|
4076
4091
|
formatColumns: formatColumns,
|
4077
4092
|
formatDataSchema: formatDataSchema,
|
@@ -4109,7 +4124,8 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
4109
4124
|
pageData: pageData,
|
4110
4125
|
localPagination: localPagination,
|
4111
4126
|
formatData: formatData,
|
4112
|
-
setIndexData: setIndexData
|
4127
|
+
setIndexData: setIndexData,
|
4128
|
+
getFilterFnList: getFilterFnList
|
4113
4129
|
};
|
4114
4130
|
};
|
4115
4131
|
/* harmony default export */ const use_attributes = (tableSchemaResponse);
|
@@ -6827,17 +6843,12 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6827
6843
|
updateFixClass = _useFixedColumn.updateFixClass;
|
6828
6844
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
6829
6845
|
resolveClassName = _usePrefix.resolveClassName;
|
6830
|
-
// const styleRef = computed(() => ({
|
6831
|
-
// hasScrollY: hasScrollYRef.value,
|
6832
|
-
// }));
|
6833
6846
|
use_observer_resize(root, function () {
|
6834
6847
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
6835
6848
|
resolveFixedColumns(tableOffsetRight.value);
|
6836
6849
|
});
|
6837
6850
|
});
|
6838
|
-
var _useRender = use_render(props, ctx, tableSchema,
|
6839
|
-
// styleRef,
|
6840
|
-
head, root, resetTableHeight),
|
6851
|
+
var _useRender = use_render(props, ctx, tableSchema, head, root, resetTableHeight),
|
6841
6852
|
renderTableBodySchema = _useRender.renderTableBodySchema,
|
6842
6853
|
renderTableFooter = _useRender.renderTableFooter,
|
6843
6854
|
renderTableHeadSchema = _useRender.renderTableHeadSchema;
|
@@ -6859,13 +6870,12 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6859
6870
|
tableSchema.formatColumns(columns);
|
6860
6871
|
resolveFixedColumns(tableOffsetRight.value);
|
6861
6872
|
tableSchema.setIndexData().then(function () {
|
6862
|
-
// tableSchema.formatDataSchema(props.data);
|
6863
6873
|
tableSchema.resetStartEndIndex();
|
6864
6874
|
if (isFirstLoad.value) {
|
6865
6875
|
tableSchema.resolveByDefColumns();
|
6866
6876
|
isFirstLoad.value = false;
|
6867
6877
|
} else {
|
6868
|
-
tableSchema.resolvePageData();
|
6878
|
+
tableSchema.resolvePageData(tableSchema.getFilterFnList());
|
6869
6879
|
}
|
6870
6880
|
registerResizeEvent();
|
6871
6881
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -6992,8 +7002,7 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6992
7002
|
return renderTableBodySchema(scope.data);
|
6993
7003
|
},
|
6994
7004
|
afterSection: function afterSection() {
|
6995
|
-
return [
|
6996
|
-
(0,external_vue_namespaceObject.createVNode)("div", {
|
7005
|
+
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
6997
7006
|
"class": resizeColumnClass,
|
6998
7007
|
"style": resizeColumnStyle.value
|
6999
7008
|
}, null)];
|
@@ -14,8 +14,10 @@ declare const _default: (props: TablePropTypes) => {
|
|
14
14
|
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
15
|
resolveIndexData: () => Promise<void>;
|
16
16
|
resolvePageDataBySortList: (multiCol?: any) => void;
|
17
|
+
handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
|
17
18
|
resetStartEndIndex: () => void;
|
18
|
-
|
19
|
+
getCurrentPageData: () => any[];
|
20
|
+
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
|
19
21
|
sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
|
20
22
|
};
|
21
23
|
export default _default;
|