bkui-vue 1.0.3-beta.40 → 1.0.3-beta.42

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;
@@ -150,7 +152,6 @@ declare const BkDialog: {
150
152
  moveHandler: (e: any) => boolean;
151
153
  handlePrevStep: () => void;
152
154
  handleNextStep: () => void;
153
- hasFooter: import("vue").ComputedRef<boolean>;
154
155
  isModalShow: import("vue").Ref<boolean>;
155
156
  localConfirmText: import("vue").ComputedRef<string>;
156
157
  localCancelText: import("vue").ComputedRef<string>;
@@ -158,12 +159,6 @@ declare const BkDialog: {
158
159
  localNextText: import("vue").ComputedRef<string>;
159
160
  resolveClassName: (cls: string) => string;
160
161
  }, 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
162
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
168
163
  default: string;
169
164
  };
@@ -209,6 +204,12 @@ declare const BkDialog: {
209
204
  } & {
210
205
  default: boolean;
211
206
  };
207
+ width: import("vue-types").VueTypeDef<string | number> & {
208
+ default: string | number;
209
+ };
210
+ height: import("vue-types").VueTypeDef<string | number> & {
211
+ default: string | number;
212
+ };
212
213
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
213
214
  default: string;
214
215
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -259,6 +260,8 @@ declare const BkDialog: {
259
260
  };
260
261
  direction: import("vue-types").VueTypeValidableDef<string> & {
261
262
  default: string;
263
+ } & {
264
+ default: string;
262
265
  };
263
266
  animateType: import("vue-types").VueTypeValidableDef<string> & {
264
267
  default: string;
@@ -307,12 +310,12 @@ declare const BkDialog: {
307
310
  transfer: string | boolean | HTMLElement;
308
311
  direction: string;
309
312
  renderDirective: "show" | "if";
310
- quickClose: boolean;
311
313
  scrollable: boolean;
312
314
  showMask: boolean;
313
315
  closeIcon: boolean;
314
316
  escClose: boolean;
315
317
  fullscreen: boolean;
318
+ quickClose: boolean;
316
319
  animateType: string;
317
320
  multiInstance: boolean;
318
321
  bodyClass: string | unknown[];
@@ -333,12 +336,6 @@ declare const BkDialog: {
333
336
  M: {};
334
337
  Defaults: {};
335
338
  }, 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
339
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
343
340
  default: string;
344
341
  };
@@ -384,6 +381,12 @@ declare const BkDialog: {
384
381
  } & {
385
382
  default: boolean;
386
383
  };
384
+ width: import("vue-types").VueTypeDef<string | number> & {
385
+ default: string | number;
386
+ };
387
+ height: import("vue-types").VueTypeDef<string | number> & {
388
+ default: string | number;
389
+ };
387
390
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
388
391
  default: string;
389
392
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -434,6 +437,8 @@ declare const BkDialog: {
434
437
  };
435
438
  direction: import("vue-types").VueTypeValidableDef<string> & {
436
439
  default: string;
440
+ } & {
441
+ default: string;
437
442
  };
438
443
  animateType: import("vue-types").VueTypeValidableDef<string> & {
439
444
  default: string;
@@ -483,7 +488,6 @@ declare const BkDialog: {
483
488
  moveHandler: (e: any) => boolean;
484
489
  handlePrevStep: () => void;
485
490
  handleNextStep: () => void;
486
- hasFooter: import("vue").ComputedRef<boolean>;
487
491
  isModalShow: import("vue").Ref<boolean>;
488
492
  localConfirmText: import("vue").ComputedRef<string>;
489
493
  localCancelText: import("vue").ComputedRef<string>;
@@ -504,12 +508,12 @@ declare const BkDialog: {
504
508
  transfer: string | boolean | HTMLElement;
505
509
  direction: string;
506
510
  renderDirective: "show" | "if";
507
- quickClose: boolean;
508
511
  scrollable: boolean;
509
512
  showMask: boolean;
510
513
  closeIcon: boolean;
511
514
  escClose: boolean;
512
515
  fullscreen: boolean;
516
+ quickClose: boolean;
513
517
  animateType: string;
514
518
  multiInstance: boolean;
515
519
  bodyClass: string | unknown[];
@@ -527,12 +531,6 @@ declare const BkDialog: {
527
531
  __isTeleport?: never;
528
532
  __isSuspense?: never;
529
533
  } & 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
534
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
537
535
  default: string;
538
536
  };
@@ -578,6 +576,12 @@ declare const BkDialog: {
578
576
  } & {
579
577
  default: boolean;
580
578
  };
579
+ width: import("vue-types").VueTypeDef<string | number> & {
580
+ default: string | number;
581
+ };
582
+ height: import("vue-types").VueTypeDef<string | number> & {
583
+ default: string | number;
584
+ };
581
585
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
582
586
  default: string;
583
587
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -628,6 +632,8 @@ declare const BkDialog: {
628
632
  };
629
633
  direction: import("vue-types").VueTypeValidableDef<string> & {
630
634
  default: string;
635
+ } & {
636
+ default: string;
631
637
  };
632
638
  animateType: import("vue-types").VueTypeValidableDef<string> & {
633
639
  default: string;
@@ -677,7 +683,6 @@ declare const BkDialog: {
677
683
  moveHandler: (e: any) => boolean;
678
684
  handlePrevStep: () => void;
679
685
  handleNextStep: () => void;
680
- hasFooter: import("vue").ComputedRef<boolean>;
681
686
  isModalShow: import("vue").Ref<boolean>;
682
687
  localConfirmText: import("vue").ComputedRef<string>;
683
688
  localCancelText: import("vue").ComputedRef<string>;
@@ -698,12 +703,12 @@ declare const BkDialog: {
698
703
  transfer: string | boolean | HTMLElement;
699
704
  direction: string;
700
705
  renderDirective: "show" | "if";
701
- quickClose: boolean;
702
706
  scrollable: boolean;
703
707
  showMask: boolean;
704
708
  closeIcon: boolean;
705
709
  escClose: boolean;
706
710
  fullscreen: boolean;
711
+ quickClose: boolean;
707
712
  animateType: string;
708
713
  multiInstance: boolean;
709
714
  bodyClass: string | unknown[];