bkui-vue 1.0.3-beta.41 → 1.0.3-beta.43

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.
@@ -127,40 +127,19 @@
127
127
  --select-active-color: #e1ecff;
128
128
  --select-hover-color: #f5f7fa;
129
129
  }
130
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
130
+ .bk-info-wrapper .bk-modal-wrapper {
131
131
  width: 440px;
132
132
  }
133
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
134
- width: 440px;
135
- }
136
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
137
- width: 400px;
138
- }
139
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
140
- border-radius: 2px;
141
- }
142
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
133
+ .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
143
134
  margin-top: 16px;
144
135
  }
145
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
146
- height: initial;
147
- max-height: initial;
148
- min-height: initial;
149
- word-break: break-all;
136
+ .bk-info-wrapper .bk-dialog-footer button {
137
+ min-width: 88px;
150
138
  }
151
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
139
+ .bk-info-sub-title {
152
140
  text-align: center;
153
141
  word-break: break-all;
154
142
  }
155
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
156
- height: initial;
157
- margin-top: 24px;
158
- background-color: #fff;
159
- border-top: none;
160
- }
161
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
162
- min-width: 88px;
163
- }
164
143
  .bk-modal-ctx {
165
144
  top: 0px;
166
145
  left: 0px;
@@ -171,10 +150,13 @@
171
150
  .bk-modal-ctx.--show {
172
151
  position: fixed;
173
152
  }
153
+ .bk-modal-ctx.--show .bk-modal-ctx-mask {
154
+ display: block;
155
+ }
174
156
  .bk-modal-ctx.--hide {
175
157
  display: none;
176
158
  }
177
- .bk-modal-ctx .bk-modal-ctx-mask {
159
+ .bk-modal-ctx-mask {
178
160
  top: 0;
179
161
  left: 0;
180
162
  display: none;
@@ -182,47 +164,65 @@
182
164
  height: 100%;
183
165
  background-color: rgba(0, 0, 0, 0.6);
184
166
  }
185
- .bk-modal-ctx .bk-modal-ctx-mask.--show {
186
- position: fixed;
187
- display: inherit;
188
- }
189
167
  .bk-modal-wrapper {
190
168
  position: absolute;
191
169
  top: 50%;
192
170
  left: 50%;
193
- width: 480px;
194
171
  border-radius: 2px;
195
172
  transform: translate(-50%, -50%);
196
173
  }
197
- .bk-modal-wrapper .bk-modal-outside {
174
+ .bk-modal-outside {
198
175
  position: fixed;
199
176
  top: 0;
200
177
  right: 0;
201
178
  bottom: 0;
202
179
  left: 0;
203
180
  }
204
- .bk-modal-wrapper.normal {
205
- width: 480px;
206
- height: 240px;
207
- }
208
- .bk-modal-wrapper.small {
209
- width: 400px;
210
- height: 200px;
211
- }
212
- .bk-modal-wrapper.medium {
213
- width: 640px;
214
- height: 400px;
215
- }
216
- .bk-modal-wrapper.large {
217
- width: 960px;
218
- height: 720px;
219
- }
220
- .bk-modal-wrapper .bk-modal-body {
181
+ .bk-modal-body {
221
182
  height: 100%;
222
183
  overflow: hidden;
223
184
  background: #fff;
185
+ border-radius: 2px;
224
186
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
225
187
  }
188
+ .bk-modal-body {
189
+ overflow: auto;
190
+ }
191
+ .bk-modal-close {
192
+ position: absolute;
193
+ top: 6px;
194
+ right: 6px;
195
+ display: flex;
196
+ width: 32px;
197
+ height: 32px;
198
+ font-size: 18px;
199
+ color: #979ba5;
200
+ cursor: pointer;
201
+ align-items: center;
202
+ justify-content: center;
203
+ border-radius: 50%;
204
+ transition: 0.15s;
205
+ }
206
+ .bk-modal-close:hover {
207
+ background: #f0f1f5;
208
+ }
209
+ .bk-dialog {
210
+ font-size: 14px;
211
+ }
212
+ .bk-dialog.is-fullscreen {
213
+ top: 0;
214
+ right: 0 ;
215
+ bottom: 0;
216
+ left: 0;
217
+ transform: translate(0, 0);
218
+ }
219
+ .bk-dialog.is-fullscreen .bk-modal-wrapper {
220
+ top: 0;
221
+ right: 0;
222
+ bottom: 0;
223
+ left: 0;
224
+ transform: translate(0, 0);
225
+ }
226
226
  .bk-dialog-wrapper .bk-modal-wrapper {
227
227
  position: relative;
228
228
  }
@@ -236,41 +236,37 @@
236
236
  .bk-dialog-wrapper .bk-modal-wrapper.multi-instance {
237
237
  position: absolute;
238
238
  }
239
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-tool {
240
- position: absolute;
241
- top: 0;
242
- right: 0;
243
- left: 0;
244
- height: 18px;
239
+ .bk-dialog-wrapper .bk-modal-wrapper.fullscreen .bk-modal-content {
240
+ max-height: calc(100vh - 137px);
245
241
  }
246
- .bk-dialog-wrapper .bk-modal-wrapper .move {
247
- cursor: move;
242
+ .bk-dialog-wrapper .bk-modal-wrapper.fullscreen.no-footer {
243
+ max-height: calc(100vh - 79px);
248
244
  }
249
- .bk-dialog-wrapper .bk-modal-wrapper .content-dragging {
250
- user-select: none;
245
+ .bk-dialog-wrapper .bk-modal-wrapper.no-footer .bk-modal-body {
246
+ padding-bottom: 0;
251
247
  }
252
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header {
248
+ .bk-dialog-header {
253
249
  padding: 16px 24px 0;
254
250
  font-size: 20px;
255
251
  line-height: 1;
256
252
  }
257
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon {
253
+ .bk-dialog-header-icon {
258
254
  display: flex;
259
255
  justify-content: center;
260
256
  }
261
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon {
257
+ .bk-dialog-header-icon .bk-info-icon {
262
258
  font-size: 48px;
263
259
  }
264
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon.success {
260
+ .bk-dialog-header-icon .bk-info-icon.success {
265
261
  color: #2dcb56;
266
262
  }
267
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon.warning {
263
+ .bk-dialog-header-icon .bk-info-icon.warning {
268
264
  color: #ff9c01;
269
265
  }
270
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon.danger {
266
+ .bk-dialog-header-icon .bk-info-icon.danger {
271
267
  color: #ea3636;
272
268
  }
273
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
269
+ .bk-dialog-title {
274
270
  display: inline-block;
275
271
  width: 100%;
276
272
  overflow: hidden;
@@ -278,58 +274,38 @@
278
274
  text-overflow: ellipsis;
279
275
  white-space: nowrap;
280
276
  }
281
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-content {
282
- height: calc(100% - 79px);
277
+ .bk-dialog-tool {
278
+ position: absolute;
279
+ top: 0;
280
+ right: 0;
281
+ left: 0;
282
+ height: 18px;
283
+ }
284
+ .bk-dialog-tool.move {
285
+ cursor: move;
286
+ }
287
+ .bk-dialog-tool.content-dragging {
288
+ user-select: none;
289
+ }
290
+ .bk-dialog-content {
283
291
  max-height: calc(100vh - 300px);
284
- min-height: 141px;
285
292
  padding: 0 24px;
286
293
  margin-top: 16px;
287
294
  margin-bottom: 24px;
288
- font-size: 14px;
289
- line-height: 1.5;
290
295
  color: #63656e;
291
296
  }
292
- .bk-dialog-wrapper .bk-modal-wrapper.fullscreen .bk-modal-content {
293
- max-height: calc(100vh - 137px);
294
- }
295
- .bk-dialog-wrapper .bk-modal-wrapper.fullscreen.no-footer {
296
- max-height: calc(100vh - 79px);
297
- }
298
- .bk-dialog-wrapper .bk-modal-wrapper.no-footer .bk-modal-body {
299
- padding-bottom: 0;
300
- }
301
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer {
302
- padding: 0 24px;
303
- margin: 24px 0 ;
297
+ .bk-dialog-footer {
298
+ padding: 8px 24px;
304
299
  background-color: #fafbfd;
305
300
  border-top: 1px solid #dcdee5;
306
- border-radius: 2px;
307
301
  }
308
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-perv {
302
+ .bk-dialog-footer .bk-dialog-perv {
309
303
  float: left;
310
304
  margin-right: 8px;
311
305
  }
312
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-next {
306
+ .bk-dialog-footer .bk-dialog-next {
313
307
  float: left;
314
308
  }
315
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-cancel {
309
+ .bk-dialog-footer .bk-dialog-cancel {
316
310
  margin-left: 8px;
317
311
  }
318
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-close {
319
- position: absolute;
320
- top: 6px;
321
- right: 6px;
322
- display: flex;
323
- width: 32px;
324
- height: 32px;
325
- font-size: 18px;
326
- color: #979ba5;
327
- cursor: pointer;
328
- align-items: center;
329
- justify-content: center;
330
- border-radius: 50%;
331
- transition: 0.15s;
332
- }
333
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-close:hover {
334
- background: #f0f1f5;
335
- }
@@ -1,11 +1,5 @@
1
1
  declare const BkDialog: {
2
2
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
- width: import("vue-types").VueTypeDef<string | number> & {
4
- default: string | number;
5
- };
6
- height: import("vue-types").VueTypeDef<string | number> & {
7
- default: string | number;
8
- };
9
3
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
10
4
  default: string;
11
5
  };
@@ -51,6 +45,12 @@ declare const BkDialog: {
51
45
  } & {
52
46
  default: boolean;
53
47
  };
48
+ width: import("vue-types").VueTypeDef<string | number> & {
49
+ default: string | number;
50
+ };
51
+ height: import("vue-types").VueTypeDef<string | number> & {
52
+ default: string | number;
53
+ };
54
54
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
55
55
  default: string;
56
56
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -101,6 +101,8 @@ declare const BkDialog: {
101
101
  };
102
102
  direction: import("vue-types").VueTypeValidableDef<string> & {
103
103
  default: string;
104
+ } & {
105
+ default: string;
104
106
  };
105
107
  animateType: import("vue-types").VueTypeValidableDef<string> & {
106
108
  default: string;
@@ -128,6 +130,11 @@ declare const BkDialog: {
128
130
  top: import("vue-types").VueTypeValidableDef<string> & {
129
131
  default: string;
130
132
  };
133
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
134
+ default: number;
135
+ } & {
136
+ default: number;
137
+ };
131
138
  }>> & {
132
139
  onConfirm?: (...args: any[]) => any;
133
140
  onPrev?: (...args: any[]) => any;
@@ -150,7 +157,6 @@ declare const BkDialog: {
150
157
  moveHandler: (e: any) => boolean;
151
158
  handlePrevStep: () => void;
152
159
  handleNextStep: () => void;
153
- hasFooter: import("vue").ComputedRef<boolean>;
154
160
  isModalShow: import("vue").Ref<boolean>;
155
161
  localConfirmText: import("vue").ComputedRef<string>;
156
162
  localCancelText: import("vue").ComputedRef<string>;
@@ -158,12 +164,6 @@ declare const BkDialog: {
158
164
  localNextText: import("vue").ComputedRef<string>;
159
165
  resolveClassName: (cls: string) => string;
160
166
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
161
- width: import("vue-types").VueTypeDef<string | number> & {
162
- default: string | number;
163
- };
164
- height: import("vue-types").VueTypeDef<string | number> & {
165
- default: string | number;
166
- };
167
167
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
168
168
  default: string;
169
169
  };
@@ -209,6 +209,12 @@ declare const BkDialog: {
209
209
  } & {
210
210
  default: boolean;
211
211
  };
212
+ width: import("vue-types").VueTypeDef<string | number> & {
213
+ default: string | number;
214
+ };
215
+ height: import("vue-types").VueTypeDef<string | number> & {
216
+ default: string | number;
217
+ };
212
218
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
213
219
  default: string;
214
220
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -259,6 +265,8 @@ declare const BkDialog: {
259
265
  };
260
266
  direction: import("vue-types").VueTypeValidableDef<string> & {
261
267
  default: string;
268
+ } & {
269
+ default: string;
262
270
  };
263
271
  animateType: import("vue-types").VueTypeValidableDef<string> & {
264
272
  default: string;
@@ -286,6 +294,11 @@ declare const BkDialog: {
286
294
  top: import("vue-types").VueTypeValidableDef<string> & {
287
295
  default: string;
288
296
  };
297
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
298
+ default: number;
299
+ } & {
300
+ default: number;
301
+ };
289
302
  }>> & {
290
303
  onConfirm?: (...args: any[]) => any;
291
304
  onPrev?: (...args: any[]) => any;
@@ -307,15 +320,16 @@ declare const BkDialog: {
307
320
  transfer: string | boolean | HTMLElement;
308
321
  direction: string;
309
322
  renderDirective: "show" | "if";
310
- quickClose: boolean;
311
323
  scrollable: boolean;
312
324
  showMask: boolean;
313
325
  closeIcon: boolean;
314
326
  escClose: boolean;
315
327
  fullscreen: boolean;
328
+ quickClose: boolean;
316
329
  animateType: string;
317
330
  multiInstance: boolean;
318
331
  bodyClass: string | unknown[];
332
+ hiddenDelay: number;
319
333
  confirmText: string;
320
334
  cancelText: string;
321
335
  prevText: string;
@@ -333,12 +347,6 @@ declare const BkDialog: {
333
347
  M: {};
334
348
  Defaults: {};
335
349
  }, Readonly<import("vue").ExtractPropTypes<{
336
- width: import("vue-types").VueTypeDef<string | number> & {
337
- default: string | number;
338
- };
339
- height: import("vue-types").VueTypeDef<string | number> & {
340
- default: string | number;
341
- };
342
350
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
343
351
  default: string;
344
352
  };
@@ -384,6 +392,12 @@ declare const BkDialog: {
384
392
  } & {
385
393
  default: boolean;
386
394
  };
395
+ width: import("vue-types").VueTypeDef<string | number> & {
396
+ default: string | number;
397
+ };
398
+ height: import("vue-types").VueTypeDef<string | number> & {
399
+ default: string | number;
400
+ };
387
401
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
388
402
  default: string;
389
403
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -434,6 +448,8 @@ declare const BkDialog: {
434
448
  };
435
449
  direction: import("vue-types").VueTypeValidableDef<string> & {
436
450
  default: string;
451
+ } & {
452
+ default: string;
437
453
  };
438
454
  animateType: import("vue-types").VueTypeValidableDef<string> & {
439
455
  default: string;
@@ -461,6 +477,11 @@ declare const BkDialog: {
461
477
  top: import("vue-types").VueTypeValidableDef<string> & {
462
478
  default: string;
463
479
  };
480
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
481
+ default: number;
482
+ } & {
483
+ default: number;
484
+ };
464
485
  }>> & {
465
486
  onConfirm?: (...args: any[]) => any;
466
487
  onPrev?: (...args: any[]) => any;
@@ -483,7 +504,6 @@ declare const BkDialog: {
483
504
  moveHandler: (e: any) => boolean;
484
505
  handlePrevStep: () => void;
485
506
  handleNextStep: () => void;
486
- hasFooter: import("vue").ComputedRef<boolean>;
487
507
  isModalShow: import("vue").Ref<boolean>;
488
508
  localConfirmText: import("vue").ComputedRef<string>;
489
509
  localCancelText: import("vue").ComputedRef<string>;
@@ -504,15 +524,16 @@ declare const BkDialog: {
504
524
  transfer: string | boolean | HTMLElement;
505
525
  direction: string;
506
526
  renderDirective: "show" | "if";
507
- quickClose: boolean;
508
527
  scrollable: boolean;
509
528
  showMask: boolean;
510
529
  closeIcon: boolean;
511
530
  escClose: boolean;
512
531
  fullscreen: boolean;
532
+ quickClose: boolean;
513
533
  animateType: string;
514
534
  multiInstance: boolean;
515
535
  bodyClass: string | unknown[];
536
+ hiddenDelay: number;
516
537
  confirmText: string;
517
538
  cancelText: string;
518
539
  prevText: string;
@@ -527,12 +548,6 @@ declare const BkDialog: {
527
548
  __isTeleport?: never;
528
549
  __isSuspense?: never;
529
550
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
530
- width: import("vue-types").VueTypeDef<string | number> & {
531
- default: string | number;
532
- };
533
- height: import("vue-types").VueTypeDef<string | number> & {
534
- default: string | number;
535
- };
536
551
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
537
552
  default: string;
538
553
  };
@@ -578,6 +593,12 @@ declare const BkDialog: {
578
593
  } & {
579
594
  default: boolean;
580
595
  };
596
+ width: import("vue-types").VueTypeDef<string | number> & {
597
+ default: string | number;
598
+ };
599
+ height: import("vue-types").VueTypeDef<string | number> & {
600
+ default: string | number;
601
+ };
581
602
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
582
603
  default: string;
583
604
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -628,6 +649,8 @@ declare const BkDialog: {
628
649
  };
629
650
  direction: import("vue-types").VueTypeValidableDef<string> & {
630
651
  default: string;
652
+ } & {
653
+ default: string;
631
654
  };
632
655
  animateType: import("vue-types").VueTypeValidableDef<string> & {
633
656
  default: string;
@@ -655,6 +678,11 @@ declare const BkDialog: {
655
678
  top: import("vue-types").VueTypeValidableDef<string> & {
656
679
  default: string;
657
680
  };
681
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
682
+ default: number;
683
+ } & {
684
+ default: number;
685
+ };
658
686
  }>> & {
659
687
  onConfirm?: (...args: any[]) => any;
660
688
  onPrev?: (...args: any[]) => any;
@@ -677,7 +705,6 @@ declare const BkDialog: {
677
705
  moveHandler: (e: any) => boolean;
678
706
  handlePrevStep: () => void;
679
707
  handleNextStep: () => void;
680
- hasFooter: import("vue").ComputedRef<boolean>;
681
708
  isModalShow: import("vue").Ref<boolean>;
682
709
  localConfirmText: import("vue").ComputedRef<string>;
683
710
  localCancelText: import("vue").ComputedRef<string>;
@@ -698,15 +725,16 @@ declare const BkDialog: {
698
725
  transfer: string | boolean | HTMLElement;
699
726
  direction: string;
700
727
  renderDirective: "show" | "if";
701
- quickClose: boolean;
702
728
  scrollable: boolean;
703
729
  showMask: boolean;
704
730
  closeIcon: boolean;
705
731
  escClose: boolean;
706
732
  fullscreen: boolean;
733
+ quickClose: boolean;
707
734
  animateType: string;
708
735
  multiInstance: boolean;
709
736
  bodyClass: string | unknown[];
737
+ hiddenDelay: number;
710
738
  confirmText: string;
711
739
  cancelText: string;
712
740
  prevText: string;