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
@@ -127,56 +127,86 @@
127
127
  --select-active-color: #e1ecff;
128
128
  --select-hover-color: #f5f7fa;
129
129
  }
130
- .bk-info-wrapper .bk-modal-wrapper {
131
- width: 440px;
130
+ .bk-infobox {
131
+ font-size: 12px;
132
132
  }
133
- .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
133
+ .bk-infobox .bk-modal-wrapper {
134
+ top: 50%;
135
+ left: 50%;
136
+ transform: translate(-50%, -50%);
137
+ }
138
+ .bk-infobox-header {
139
+ padding-top: 24px;
140
+ }
141
+ .bk-infobox-type {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ }
146
+ .bk-infobox-icon {
147
+ width: 42px;
148
+ height: 42px;
149
+ font-size: 42px;
150
+ }
151
+ .bk-infobox-icon.success {
152
+ color: #2dcb56;
153
+ }
154
+ .bk-infobox-icon.warning {
155
+ color: #ff9c01;
156
+ }
157
+ .bk-infobox-icon.danger {
158
+ color: #ea3636;
159
+ }
160
+ .bk-infobox-icon.loading {
161
+ color: #3a84ff;
162
+ }
163
+ .bk-infobox-title {
164
+ padding-right: 24px;
165
+ padding-left: 24px;
166
+ margin-top: 24px;
167
+ font-size: 20px;
168
+ line-height: 32px;
169
+ color: #313238;
170
+ }
171
+ .bk-infobox-content {
172
+ padding-right: 24px;
173
+ padding-left: 24px;
134
174
  margin-top: 16px;
135
175
  }
136
- .bk-info-wrapper .bk-dialog-footer button {
137
- min-width: 88px;
176
+ .bk-infobox-footer {
177
+ display: flex;
178
+ padding-right: 24px;
179
+ padding-bottom: 24px;
180
+ padding-left: 24px;
181
+ margin-top: 24px;
182
+ align-content: center;
138
183
  }
139
- .bk-info-sub-title {
140
- text-align: center;
141
- word-break: break-all;
184
+ .bk-infobox-footer.is-position-right {
185
+ justify-content: right;
142
186
  }
143
- .bk-modal-ctx {
144
- top: 0px;
145
- left: 0px;
146
- width: 100%;
147
- height: 100%;
148
- pointer-events: auto;
187
+ .bk-infobox-footer.is-position-center {
188
+ justify-content: center;
149
189
  }
150
- .bk-modal-ctx.--show {
151
- position: fixed;
190
+ .bk-infobox-footer.is-position-left {
191
+ justify-content: left;
152
192
  }
153
- .bk-modal-ctx.--show .bk-modal-ctx-mask {
154
- display: block;
193
+ .bk-infobox-footer .bk-button {
194
+ min-width: 88px;
155
195
  }
156
- .bk-modal-ctx.--hide {
157
- display: none;
196
+ .bk-infobox-footer .bk-button ~ .bk-button {
197
+ margin-left: 8px;
158
198
  }
159
199
  .bk-modal-ctx-mask {
200
+ position: fixed;
160
201
  top: 0;
161
202
  left: 0;
162
- display: none;
163
203
  width: 100%;
164
204
  height: 100%;
165
205
  background-color: rgba(0, 0, 0, 0.6);
166
206
  }
167
207
  .bk-modal-wrapper {
168
- position: absolute;
169
- top: 50%;
170
- left: 50%;
171
- border-radius: 2px;
172
- transform: translate(-50%, -50%);
173
- }
174
- .bk-modal-outside {
175
208
  position: fixed;
176
- top: 0;
177
- right: 0;
178
- bottom: 0;
179
- left: 0;
209
+ border-radius: 2px;
180
210
  }
181
211
  .bk-modal-body {
182
212
  height: 100%;
@@ -185,8 +215,12 @@
185
215
  border-radius: 2px;
186
216
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
187
217
  }
188
- .bk-modal-body {
189
- overflow: auto;
218
+ .bk-modal-content {
219
+ max-height: 100vh;
220
+ font-size: 0;
221
+ }
222
+ .bk-modal-content div {
223
+ font-size: 12px;
190
224
  }
191
225
  .bk-modal-close {
192
226
  position: absolute;
@@ -206,3 +240,67 @@
206
240
  .bk-modal-close:hover {
207
241
  background: #f0f1f5;
208
242
  }
243
+ .modal-fadein-enter-from {
244
+ opacity: 0;
245
+ }
246
+ .modal-fadein-enter-from .bk-modal-body {
247
+ transform: translateY(-20px);
248
+ }
249
+ .modal-fadein-enter-to {
250
+ opacity: 1;
251
+ }
252
+ .modal-fadein-enter-to .bk-modal-body {
253
+ transform: translateY(0);
254
+ }
255
+ .modal-fadein-leave-from {
256
+ opacity: 1;
257
+ }
258
+ .modal-fadein-leave-from .bk-modal-body {
259
+ transform: translateY(0);
260
+ }
261
+ .modal-fadein-leave-to {
262
+ opacity: 0;
263
+ }
264
+ .modal-fadein-leave-to .bk-modal-body {
265
+ transform: translateY(-20px);
266
+ }
267
+ .modal-fadein-enter-active,
268
+ .modal-fadein-leave-active {
269
+ transition: opacity 0.15s linear;
270
+ }
271
+ .modal-fadein-enter-active .bk-modal-body,
272
+ .modal-fadein-leave-active .bk-modal-body {
273
+ transition: transform 0.08s linear;
274
+ }
275
+ .modal-right-enter-from {
276
+ transform: translateX(100%);
277
+ }
278
+ .modal-right-enter-to {
279
+ transform: translateX(0);
280
+ }
281
+ .modal-right-leave-from {
282
+ transform: translateX(0);
283
+ }
284
+ .modal-right-leave-to {
285
+ transform: translateX(100%);
286
+ }
287
+ .modal-right-enter-active,
288
+ .modal-right-leave-active {
289
+ transition: transform 0.15s ease;
290
+ }
291
+ .modal-left-enter-from {
292
+ transform: translateX(-100%);
293
+ }
294
+ .modal-left-enter-to {
295
+ transform: translateX(0);
296
+ }
297
+ .modal-left-leave-from {
298
+ transform: translateX(0);
299
+ }
300
+ .modal-left-leave-to {
301
+ transform: translateX(-100%);
302
+ }
303
+ .modal-left-enter-active,
304
+ .modal-left-leave-active {
305
+ transition: transform 0.15s ease;
306
+ }
@@ -4,18 +4,8 @@ export declare const propsMixin: {
4
4
  } & {
5
5
  default: boolean;
6
6
  };
7
- width: import("vue-types").VueTypeDef<string | number> & {
8
- default: string | number;
9
- };
10
- height: import("vue-types").VueTypeDef<string | number> & {
11
- default: string | number;
12
- };
13
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
14
- default: string;
15
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
16
- default: () => unknown[];
17
- });
18
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
7
+ width: import("vue-types").VueTypeDef<string | number>;
8
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
19
9
  default: boolean;
20
10
  } & {
21
11
  default: boolean;
@@ -35,17 +25,6 @@ export declare const propsMixin: {
35
25
  } & {
36
26
  default: boolean;
37
27
  };
38
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
39
- default: boolean;
40
- } & {
41
- default: boolean;
42
- };
43
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
44
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
45
- default: boolean;
46
- } & {
47
- default: boolean;
48
- };
49
28
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
50
29
  default: boolean;
51
30
  } & {
@@ -55,19 +34,6 @@ export declare const propsMixin: {
55
34
  default: string | boolean | (() => HTMLElement);
56
35
  };
57
36
  zIndex: import("vue-types").VueTypeDef<string | number>;
58
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
59
- default: string;
60
- };
61
- direction: import("vue-types").VueTypeValidableDef<string> & {
62
- default: string;
63
- } & {
64
- default: string;
65
- };
66
- title: import("vue-types").VueTypeValidableDef<string> & {
67
- default: string;
68
- } & {
69
- default: string;
70
- };
71
37
  animateType: import("vue-types").VueTypeValidableDef<string> & {
72
38
  default: string;
73
39
  } & {
@@ -77,27 +43,10 @@ export declare const propsMixin: {
77
43
  default: "show" | "if";
78
44
  };
79
45
  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
46
  left: import("vue-types").VueTypeValidableDef<string> & {
93
47
  default: string;
94
48
  };
95
49
  top: import("vue-types").VueTypeValidableDef<string> & {
96
50
  default: string;
97
51
  };
98
- hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
99
- default: number;
100
- } & {
101
- default: number;
102
- };
103
52
  };
@@ -0,0 +1,14 @@
1
+ import BkScrollbarCore from './scrollbar-core';
2
+ export default class BkScrollBar extends BkScrollbarCore {
3
+ static globalObserver: MutationObserver;
4
+ static instances: WeakMap<object, any>;
5
+ static removeObserver(): void;
6
+ constructor(...args: ConstructorParameters<typeof BkScrollbarCore>);
7
+ initDOM(): void;
8
+ unMount(): void;
9
+ scrollTo({ left, top }: {
10
+ left?: number;
11
+ top?: number;
12
+ }): void;
13
+ private createScrollElement;
14
+ }