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.
Files changed (84) hide show
  1. package/dist/index.cjs.js +61 -63
  2. package/dist/index.esm.js +19978 -19906
  3. package/dist/index.umd.js +61 -63
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/components.d.ts +2 -0
  7. package/lib/components.js +3 -1
  8. package/lib/date-picker/index.js +1 -1
  9. package/lib/dialog/dialog.css +140 -80
  10. package/lib/dialog/dialog.d.ts +41 -121
  11. package/lib/dialog/dialog.less +10 -65
  12. package/lib/dialog/dialog.variable.css +140 -80
  13. package/lib/dialog/index.d.ts +105 -272
  14. package/lib/dialog/index.js +91 -100
  15. package/lib/dialog/props.d.ts +8 -48
  16. package/lib/info-box/index.d.ts +2 -2
  17. package/lib/info-box/index.js +312 -172
  18. package/lib/info-box/info-box.css +63 -7
  19. package/lib/info-box/info-box.d.ts +17 -16
  20. package/lib/info-box/info-box.less +76 -14
  21. package/lib/info-box/info-box.variable.css +63 -7
  22. package/lib/info-box/render-component.d.ts +4 -0
  23. package/lib/modal/hooks.d.ts +1 -1
  24. package/lib/modal/index.d.ts +48 -325
  25. package/lib/modal/index.js +195 -675
  26. package/lib/modal/mask.d.ts +6 -0
  27. package/lib/modal/modal.css +132 -34
  28. package/lib/modal/modal.d.ts +17 -126
  29. package/lib/modal/modal.less +88 -39
  30. package/lib/modal/modal.variable.css +132 -34
  31. package/lib/modal/props.mixin.d.ts +2 -53
  32. package/lib/scrollbar/index.d.ts +14 -0
  33. package/lib/scrollbar/index.js +18737 -0
  34. package/lib/{virtual-render → scrollbar}/scrollbar-core/index.d.ts +31 -8
  35. package/lib/{virtual-render/bk-scrollbar.css → scrollbar/scrollbar.css} +13 -13
  36. package/lib/{virtual-render/bk-scrollbar.less → scrollbar/scrollbar.less} +13 -13
  37. package/lib/{virtual-render/bk-scrollbar.variable.css → scrollbar/scrollbar.variable.css} +13 -13
  38. package/lib/search-select/index.d.ts +327 -12
  39. package/lib/search-select/index.js +620 -340
  40. package/lib/search-select/input.d.ts +6 -1
  41. package/lib/search-select/search-select.css +20 -6
  42. package/lib/search-select/search-select.d.ts +109 -4
  43. package/lib/search-select/search-select.less +16 -12
  44. package/lib/search-select/search-select.variable.css +20 -6
  45. package/lib/search-select/selected.d.ts +107 -5
  46. package/lib/search-select/utils.d.ts +13 -1
  47. package/lib/select/index.d.ts +23 -0
  48. package/lib/select/index.js +4 -1
  49. package/lib/select/select.d.ts +11 -0
  50. package/lib/shared/index.d.ts +0 -1
  51. package/lib/shared/index.js +1 -48
  52. package/lib/sideslider/index.d.ts +31 -222
  53. package/lib/sideslider/index.js +49 -36
  54. package/lib/sideslider/sideslider.css +4 -47
  55. package/lib/sideslider/sideslider.d.ts +14 -105
  56. package/lib/sideslider/sideslider.less +14 -65
  57. package/lib/sideslider/sideslider.variable.css +4 -47
  58. package/lib/table/index.js +37 -28
  59. package/lib/table/plugins/use-pagination.d.ts +3 -1
  60. package/lib/table/table.css +14 -13
  61. package/lib/table/table.less +2 -2
  62. package/lib/table/table.variable.css +14 -13
  63. package/lib/table/use-attributes.d.ts +1 -0
  64. package/lib/timeline/index.js +1 -0
  65. package/lib/tree/tree.css +13 -13
  66. package/lib/tree/tree.variable.css +13 -13
  67. package/lib/upload/index.d.ts +12 -0
  68. package/lib/upload/index.js +21 -30
  69. package/lib/upload/props.d.ts +3 -0
  70. package/lib/upload/upload-trigger.d.ts +6 -0
  71. package/lib/upload/upload.d.ts +6 -0
  72. package/lib/virtual-render/index.js +262 -2175
  73. package/lib/virtual-render/use-scrollbar.d.ts +2 -2
  74. package/lib/virtual-render/virtual-render.css +13 -13
  75. package/lib/virtual-render/virtual-render.less +2 -2
  76. package/lib/virtual-render/virtual-render.variable.css +13 -13
  77. package/package.json +2 -2
  78. package/lib/icon/image-fill.js +0 -191
  79. package/lib/shared/mask.d.ts +0 -11
  80. package/lib/virtual-render/bk-scrollbar.d.ts +0 -10
  81. /package/lib/{virtual-render → scrollbar}/scrollbar-core/can-use-dom.d.ts +0 -0
  82. /package/lib/{virtual-render → scrollbar}/scrollbar-core/helpers.d.ts +0 -0
  83. /package/lib/{virtual-render → scrollbar}/scrollbar-core/mouse-wheel.d.ts +0 -0
  84. /package/lib/{virtual-render → scrollbar}/scrollbar-core/scrollbar-width.d.ts +0 -0
@@ -0,0 +1,6 @@
1
+ export declare const mask: {
2
+ showMask: (maskEle: HTMLElement) => void;
3
+ hideMask: (maskEle: HTMLElement) => void;
4
+ destroyMask: (maskEle: HTMLElement) => void;
5
+ getMaskCount: () => number;
6
+ };
@@ -1,53 +1,83 @@
1
- .bk-info-wrapper .bk-modal-wrapper {
2
- width: 440px;
1
+ .bk-infobox {
2
+ font-size: 12px;
3
3
  }
4
- .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
4
+ .bk-infobox .bk-modal-wrapper {
5
+ top: 50%;
6
+ left: 50%;
7
+ transform: translate(-50%, -50%);
8
+ }
9
+ .bk-infobox-header {
10
+ padding-top: 24px;
11
+ }
12
+ .bk-infobox-type {
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ }
17
+ .bk-infobox-icon {
18
+ width: 42px;
19
+ height: 42px;
20
+ font-size: 42px;
21
+ }
22
+ .bk-infobox-icon.success {
23
+ color: #2dcb56;
24
+ }
25
+ .bk-infobox-icon.warning {
26
+ color: #ff9c01;
27
+ }
28
+ .bk-infobox-icon.danger {
29
+ color: #ea3636;
30
+ }
31
+ .bk-infobox-icon.loading {
32
+ color: #3a84ff;
33
+ }
34
+ .bk-infobox-title {
35
+ padding-right: 24px;
36
+ padding-left: 24px;
37
+ margin-top: 24px;
38
+ font-size: 20px;
39
+ line-height: 32px;
40
+ color: #313238;
41
+ }
42
+ .bk-infobox-content {
43
+ padding-right: 24px;
44
+ padding-left: 24px;
5
45
  margin-top: 16px;
6
46
  }
7
- .bk-info-wrapper .bk-dialog-footer button {
8
- min-width: 88px;
47
+ .bk-infobox-footer {
48
+ display: flex;
49
+ padding-right: 24px;
50
+ padding-bottom: 24px;
51
+ padding-left: 24px;
52
+ margin-top: 24px;
53
+ align-content: center;
9
54
  }
10
- .bk-info-sub-title {
11
- text-align: center;
12
- word-break: break-all;
55
+ .bk-infobox-footer.is-position-right {
56
+ justify-content: right;
13
57
  }
14
- .bk-modal-ctx {
15
- top: 0px;
16
- left: 0px;
17
- width: 100%;
18
- height: 100%;
19
- pointer-events: auto;
58
+ .bk-infobox-footer.is-position-center {
59
+ justify-content: center;
20
60
  }
21
- .bk-modal-ctx.--show {
22
- position: fixed;
61
+ .bk-infobox-footer.is-position-left {
62
+ justify-content: left;
23
63
  }
24
- .bk-modal-ctx.--show .bk-modal-ctx-mask {
25
- display: block;
64
+ .bk-infobox-footer .bk-button {
65
+ min-width: 88px;
26
66
  }
27
- .bk-modal-ctx.--hide {
28
- display: none;
67
+ .bk-infobox-footer .bk-button ~ .bk-button {
68
+ margin-left: 8px;
29
69
  }
30
70
  .bk-modal-ctx-mask {
71
+ position: fixed;
31
72
  top: 0;
32
73
  left: 0;
33
- display: none;
34
74
  width: 100%;
35
75
  height: 100%;
36
76
  background-color: rgba(0, 0, 0, 0.6);
37
77
  }
38
78
  .bk-modal-wrapper {
39
- position: absolute;
40
- top: 50%;
41
- left: 50%;
42
- border-radius: 2px;
43
- transform: translate(-50%, -50%);
44
- }
45
- .bk-modal-outside {
46
79
  position: fixed;
47
- top: 0;
48
- right: 0;
49
- bottom: 0;
50
- left: 0;
80
+ border-radius: 2px;
51
81
  }
52
82
  .bk-modal-body {
53
83
  height: 100%;
@@ -56,8 +86,12 @@
56
86
  border-radius: 2px;
57
87
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
58
88
  }
59
- .bk-modal-body {
60
- overflow: auto;
89
+ .bk-modal-content {
90
+ max-height: 100vh;
91
+ font-size: 0;
92
+ }
93
+ .bk-modal-content div {
94
+ font-size: 12px;
61
95
  }
62
96
  .bk-modal-close {
63
97
  position: absolute;
@@ -77,3 +111,67 @@
77
111
  .bk-modal-close:hover {
78
112
  background: #f0f1f5;
79
113
  }
114
+ .modal-fadein-enter-from {
115
+ opacity: 0;
116
+ }
117
+ .modal-fadein-enter-from .bk-modal-body {
118
+ transform: translateY(-20px);
119
+ }
120
+ .modal-fadein-enter-to {
121
+ opacity: 1;
122
+ }
123
+ .modal-fadein-enter-to .bk-modal-body {
124
+ transform: translateY(0);
125
+ }
126
+ .modal-fadein-leave-from {
127
+ opacity: 1;
128
+ }
129
+ .modal-fadein-leave-from .bk-modal-body {
130
+ transform: translateY(0);
131
+ }
132
+ .modal-fadein-leave-to {
133
+ opacity: 0;
134
+ }
135
+ .modal-fadein-leave-to .bk-modal-body {
136
+ transform: translateY(-20px);
137
+ }
138
+ .modal-fadein-enter-active,
139
+ .modal-fadein-leave-active {
140
+ transition: opacity 0.15s linear;
141
+ }
142
+ .modal-fadein-enter-active .bk-modal-body,
143
+ .modal-fadein-leave-active .bk-modal-body {
144
+ transition: transform 0.08s linear;
145
+ }
146
+ .modal-right-enter-from {
147
+ transform: translateX(100%);
148
+ }
149
+ .modal-right-enter-to {
150
+ transform: translateX(0);
151
+ }
152
+ .modal-right-leave-from {
153
+ transform: translateX(0);
154
+ }
155
+ .modal-right-leave-to {
156
+ transform: translateX(100%);
157
+ }
158
+ .modal-right-enter-active,
159
+ .modal-right-leave-active {
160
+ transition: transform 0.15s ease;
161
+ }
162
+ .modal-left-enter-from {
163
+ transform: translateX(-100%);
164
+ }
165
+ .modal-left-enter-to {
166
+ transform: translateX(0);
167
+ }
168
+ .modal-left-leave-from {
169
+ transform: translateX(0);
170
+ }
171
+ .modal-left-leave-to {
172
+ transform: translateX(-100%);
173
+ }
174
+ .modal-left-enter-active,
175
+ .modal-left-leave-active {
176
+ transition: transform 0.15s ease;
177
+ }
@@ -7,18 +7,8 @@ declare const _default: import("vue").DefineComponent<{
7
7
  } & {
8
8
  default: boolean;
9
9
  };
10
- width: import("vue-types").VueTypeDef<string | number> & {
11
- default: string | number;
12
- };
13
- height: import("vue-types").VueTypeDef<string | number> & {
14
- default: string | number;
15
- };
16
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
17
- default: string;
18
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
19
- default: () => unknown[];
20
- });
21
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
10
+ width: import("vue-types").VueTypeDef<string | number>;
11
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
22
12
  default: boolean;
23
13
  } & {
24
14
  default: boolean;
@@ -38,17 +28,6 @@ declare const _default: import("vue").DefineComponent<{
38
28
  } & {
39
29
  default: boolean;
40
30
  };
41
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
42
- default: boolean;
43
- } & {
44
- default: boolean;
45
- };
46
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
47
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
48
- default: boolean;
49
- } & {
50
- default: boolean;
51
- };
52
31
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
53
32
  default: boolean;
54
33
  } & {
@@ -58,19 +37,6 @@ declare const _default: import("vue").DefineComponent<{
58
37
  default: string | boolean | (() => HTMLElement);
59
38
  };
60
39
  zIndex: import("vue-types").VueTypeDef<string | number>;
61
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
62
- default: string;
63
- };
64
- direction: import("vue-types").VueTypeValidableDef<string> & {
65
- default: string;
66
- } & {
67
- default: string;
68
- };
69
- title: import("vue-types").VueTypeValidableDef<string> & {
70
- default: string;
71
- } & {
72
- default: string;
73
- };
74
40
  animateType: import("vue-types").VueTypeValidableDef<string> & {
75
41
  default: string;
76
42
  } & {
@@ -80,60 +46,38 @@ declare const _default: import("vue").DefineComponent<{
80
46
  default: "show" | "if";
81
47
  };
82
48
  beforeClose: import("vue-types").VueTypeDef<unknown>;
83
- dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
84
- multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
85
- default: boolean;
86
- } & {
87
- default: boolean;
88
- };
89
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
90
- bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
91
- default: string;
92
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
93
- default: () => unknown[];
94
- });
95
49
  left: import("vue-types").VueTypeValidableDef<string> & {
96
50
  default: string;
97
51
  };
98
52
  top: import("vue-types").VueTypeValidableDef<string> & {
99
53
  default: string;
100
54
  };
101
- hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
102
- default: number;
103
- } & {
104
- default: number;
105
- };
106
55
  }, {
56
+ rootRef: import("vue").Ref<HTMLElement>;
57
+ maskRef: import("vue").Ref<HTMLElement>;
58
+ localShow: import("vue").Ref<boolean>;
59
+ initRendered: import("vue").Ref<boolean>;
107
60
  zIndex: import("vue").Ref<string | number>;
108
- visible: import("vue").Ref<boolean>;
109
61
  contentStyles: import("vue").Ref<{}>;
110
62
  isContentScroll: import("vue").Ref<boolean>;
111
63
  modalWrapperStyles: import("vue").ComputedRef<{
112
- display: string;
64
+ zIndex: string | number;
65
+ width: string | number;
66
+ left: string;
67
+ top: string;
113
68
  }>;
114
- handleClickOutSide: (e: MouseEvent) => void;
115
- refRoot: import("vue").Ref<HTMLElement>;
116
- refMask: import("vue").Ref<HTMLElement>;
117
69
  resolveClassName: (cls: string) => string;
118
- close: () => void;
119
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quickClose" | "quick-close")[], "close" | "hidden" | "shown" | "quickClose" | "quick-close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
70
+ resizeTargetRef: import("vue").Ref<HTMLElement>;
71
+ handleClose: () => void;
72
+ handleClickOutSide: (e: MouseEvent) => void;
73
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close")[], "close" | "hidden" | "shown" | "quick-close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
120
74
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
121
75
  default: boolean;
122
76
  } & {
123
77
  default: boolean;
124
78
  };
125
- width: import("vue-types").VueTypeDef<string | number> & {
126
- default: string | number;
127
- };
128
- height: import("vue-types").VueTypeDef<string | number> & {
129
- default: string | number;
130
- };
131
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
132
- default: string;
133
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
134
- default: () => unknown[];
135
- });
136
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
79
+ width: import("vue-types").VueTypeDef<string | number>;
80
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
137
81
  default: boolean;
138
82
  } & {
139
83
  default: boolean;
@@ -153,17 +97,6 @@ declare const _default: import("vue").DefineComponent<{
153
97
  } & {
154
98
  default: boolean;
155
99
  };
156
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
157
- default: boolean;
158
- } & {
159
- default: boolean;
160
- };
161
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
162
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
163
- default: boolean;
164
- } & {
165
- default: boolean;
166
- };
167
100
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
168
101
  default: boolean;
169
102
  } & {
@@ -173,19 +106,6 @@ declare const _default: import("vue").DefineComponent<{
173
106
  default: string | boolean | (() => HTMLElement);
174
107
  };
175
108
  zIndex: import("vue-types").VueTypeDef<string | number>;
176
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
177
- default: string;
178
- };
179
- direction: import("vue-types").VueTypeValidableDef<string> & {
180
- default: string;
181
- } & {
182
- default: string;
183
- };
184
- title: import("vue-types").VueTypeValidableDef<string> & {
185
- default: string;
186
- } & {
187
- default: string;
188
- };
189
109
  animateType: import("vue-types").VueTypeValidableDef<string> & {
190
110
  default: string;
191
111
  } & {
@@ -195,57 +115,28 @@ declare const _default: import("vue").DefineComponent<{
195
115
  default: "show" | "if";
196
116
  };
197
117
  beforeClose: import("vue-types").VueTypeDef<unknown>;
198
- dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
199
- multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
200
- default: boolean;
201
- } & {
202
- default: boolean;
203
- };
204
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
205
- bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
206
- default: string;
207
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
208
- default: () => unknown[];
209
- });
210
118
  left: import("vue-types").VueTypeValidableDef<string> & {
211
119
  default: string;
212
120
  };
213
121
  top: import("vue-types").VueTypeValidableDef<string> & {
214
122
  default: string;
215
123
  };
216
- hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
217
- default: number;
218
- } & {
219
- default: number;
220
- };
221
124
  }>> & {
222
125
  onClose?: (...args: any[]) => any;
223
126
  onHidden?: (...args: any[]) => any;
224
127
  onShown?: (...args: any[]) => any;
225
- onQuickClose?: (...args: any[]) => any;
226
128
  "onQuick-close"?: (...args: any[]) => any;
227
129
  }, {
228
- title: string;
229
- width: string | number;
230
- height: string | number;
231
- maxHeight: string;
232
- extCls: string | unknown[];
233
130
  top: string;
234
131
  left: string;
235
132
  isShow: boolean;
236
- draggable: boolean;
237
133
  transfer: string | boolean | HTMLElement;
238
- direction: string;
239
134
  renderDirective: "show" | "if";
240
- scrollable: boolean;
135
+ fullscreen: boolean;
241
136
  showMask: boolean;
242
137
  closeIcon: boolean;
243
138
  escClose: boolean;
244
- fullscreen: boolean;
245
139
  quickClose: boolean;
246
140
  animateType: string;
247
- multiInstance: boolean;
248
- bodyClass: string | unknown[];
249
- hiddenDelay: number;
250
141
  }, {}>;
251
142
  export default _default;
@@ -1,50 +1,18 @@
1
1
  @import '../styles/themes/themes.less';
2
2
  @import '../info-box/info-box.less';
3
3
 
4
- .@{bk-prefix}-modal-ctx {
5
- top: 0px;
6
- left: 0px;
7
- width: 100%;
8
- height: 100%;
9
- pointer-events: auto;
10
-
11
- &.--show {
12
- position: fixed;
13
- .@{bk-prefix}-modal-ctx-mask {
14
- display: block;
15
- }
16
- }
17
-
18
- &.--hide {
19
- display: none;
20
- }
21
- }
22
-
23
4
  .@{bk-prefix}-modal-ctx-mask {
5
+ position: fixed;
24
6
  top: 0;
25
7
  left: 0;
26
- display: none;
27
8
  width: 100%;
28
9
  height: 100%;
29
- background-color: rgba(0,0,0,.6);
10
+ background-color: rgba(0, 0, 0, 0.6);
30
11
  }
31
12
 
32
13
  .@{bk-prefix}-modal-wrapper {
33
- position: absolute;
34
- top: 50%;
35
- left: 50%;
36
- border-radius: 2px;
37
- transform: translate(-50%, -50%);
38
-
39
-
40
- }
41
-
42
- .@{bk-prefix}-modal-outside {
43
14
  position: fixed;
44
- top: 0;
45
- right: 0;
46
- bottom: 0;
47
- left: 0;
15
+ border-radius: 2px;
48
16
  }
49
17
 
50
18
  .@{bk-prefix}-modal-body {
@@ -52,11 +20,16 @@
52
20
  overflow: hidden;
53
21
  background: #fff;
54
22
  border-radius: 2px;
55
- box-shadow: 0 4px 12px rgba(0,0,0,.15);
23
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
56
24
  }
57
25
 
58
- .@{bk-prefix}-modal-body {
59
- overflow: auto;
26
+ .@{bk-prefix}-modal-content {
27
+ max-height: 100vh;
28
+ font-size: 0;
29
+
30
+ div {
31
+ font-size: 12px;
32
+ }
60
33
  }
61
34
 
62
35
  .@{bk-prefix}-modal-close {
@@ -72,11 +45,87 @@
72
45
  align-items: center;
73
46
  justify-content: center;
74
47
  border-radius: 50%;
75
- transition: .15s;
48
+ transition: 0.15s;
76
49
 
77
50
  &:hover {
78
51
  background: #f0f1f5;
79
52
  }
80
53
  }
81
54
 
55
+ .modal-fadein-enter-from {
56
+ opacity: 0;
57
+ .@{bk-prefix}-modal-body {
58
+ transform: translateY(-20px);
59
+ }
60
+ }
61
+
62
+ .modal-fadein-enter-to {
63
+ opacity: 1;
64
+ .@{bk-prefix}-modal-body {
65
+ transform: translateY(0);
66
+ }
67
+ }
68
+
69
+ .modal-fadein-leave-from {
70
+ opacity: 1;
71
+ .@{bk-prefix}-modal-body {
72
+ transform: translateY(0);
73
+ }
74
+ }
75
+
76
+ .modal-fadein-leave-to {
77
+ opacity: 0;
78
+ .@{bk-prefix}-modal-body {
79
+ transform: translateY(-20px);
80
+ }
81
+ }
82
+
83
+ .modal-fadein-enter-active,
84
+ .modal-fadein-leave-active {
85
+ transition: opacity 0.15s linear;
86
+ .@{bk-prefix}-modal-body {
87
+ transition: transform 0.08s linear;
88
+ }
89
+ }
90
+
91
+ .modal-right-enter-from {
92
+ transform: translateX(100%);
93
+ }
94
+
95
+ .modal-right-enter-to {
96
+ transform: translateX(0);
97
+ }
98
+
99
+ .modal-right-leave-from {
100
+ transform: translateX(0);
101
+ }
82
102
 
103
+ .modal-right-leave-to {
104
+ transform: translateX(100%);
105
+ }
106
+
107
+ .modal-right-enter-active,
108
+ .modal-right-leave-active {
109
+ transition: transform 0.15s ease;
110
+ }
111
+
112
+ .modal-left-enter-from {
113
+ transform: translateX(-100%);
114
+ }
115
+
116
+ .modal-left-enter-to {
117
+ transform: translateX(0);
118
+ }
119
+
120
+ .modal-left-leave-from {
121
+ transform: translateX(0);
122
+ }
123
+
124
+ .modal-left-leave-to {
125
+ transform: translateX(-100%);
126
+ }
127
+
128
+ .modal-left-enter-active,
129
+ .modal-left-leave-active {
130
+ transition: transform 0.15s ease;
131
+ }