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.
@@ -1,37 +1,16 @@
1
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
1
+ .bk-info-wrapper .bk-modal-wrapper {
2
2
  width: 440px;
3
3
  }
4
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
5
- width: 440px;
6
- }
7
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
8
- width: 400px;
9
- }
10
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
11
- border-radius: 2px;
12
- }
13
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
4
+ .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
14
5
  margin-top: 16px;
15
6
  }
16
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
17
- height: initial;
18
- max-height: initial;
19
- min-height: initial;
20
- word-break: break-all;
7
+ .bk-info-wrapper .bk-dialog-footer button {
8
+ min-width: 88px;
21
9
  }
22
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
10
+ .bk-info-sub-title {
23
11
  text-align: center;
24
12
  word-break: break-all;
25
13
  }
26
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
27
- height: initial;
28
- margin-top: 24px;
29
- background-color: #fff;
30
- border-top: none;
31
- }
32
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
33
- min-width: 88px;
34
- }
35
14
  .bk-modal-ctx {
36
15
  top: 0px;
37
16
  left: 0px;
@@ -42,10 +21,13 @@
42
21
  .bk-modal-ctx.--show {
43
22
  position: fixed;
44
23
  }
24
+ .bk-modal-ctx.--show .bk-modal-ctx-mask {
25
+ display: block;
26
+ }
45
27
  .bk-modal-ctx.--hide {
46
28
  display: none;
47
29
  }
48
- .bk-modal-ctx .bk-modal-ctx-mask {
30
+ .bk-modal-ctx-mask {
49
31
  top: 0;
50
32
  left: 0;
51
33
  display: none;
@@ -53,44 +35,45 @@
53
35
  height: 100%;
54
36
  background-color: rgba(0, 0, 0, 0.6);
55
37
  }
56
- .bk-modal-ctx .bk-modal-ctx-mask.--show {
57
- position: fixed;
58
- display: inherit;
59
- }
60
38
  .bk-modal-wrapper {
61
39
  position: absolute;
62
40
  top: 50%;
63
41
  left: 50%;
64
- width: 480px;
65
42
  border-radius: 2px;
66
43
  transform: translate(-50%, -50%);
67
44
  }
68
- .bk-modal-wrapper .bk-modal-outside {
45
+ .bk-modal-outside {
69
46
  position: fixed;
70
47
  top: 0;
71
48
  right: 0;
72
49
  bottom: 0;
73
50
  left: 0;
74
51
  }
75
- .bk-modal-wrapper.normal {
76
- width: 480px;
77
- height: 240px;
78
- }
79
- .bk-modal-wrapper.small {
80
- width: 400px;
81
- height: 200px;
82
- }
83
- .bk-modal-wrapper.medium {
84
- width: 640px;
85
- height: 400px;
86
- }
87
- .bk-modal-wrapper.large {
88
- width: 960px;
89
- height: 720px;
90
- }
91
- .bk-modal-wrapper .bk-modal-body {
52
+ .bk-modal-body {
92
53
  height: 100%;
93
54
  overflow: hidden;
94
55
  background: #fff;
56
+ border-radius: 2px;
95
57
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
96
58
  }
59
+ .bk-modal-body {
60
+ overflow: auto;
61
+ }
62
+ .bk-modal-close {
63
+ position: absolute;
64
+ top: 6px;
65
+ right: 6px;
66
+ display: flex;
67
+ width: 32px;
68
+ height: 32px;
69
+ font-size: 18px;
70
+ color: #979ba5;
71
+ cursor: pointer;
72
+ align-items: center;
73
+ justify-content: center;
74
+ border-radius: 50%;
75
+ transition: 0.15s;
76
+ }
77
+ .bk-modal-close:hover {
78
+ background: #f0f1f5;
79
+ }
@@ -1,3 +1,6 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import { propsMixin } from './props.mixin';
3
+ export type ModalProps = Readonly<ExtractPropTypes<typeof propsMixin>>;
1
4
  declare const _default: import("vue").DefineComponent<{
2
5
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
3
6
  default: boolean;
@@ -60,6 +63,8 @@ declare const _default: import("vue").DefineComponent<{
60
63
  };
61
64
  direction: import("vue-types").VueTypeValidableDef<string> & {
62
65
  default: string;
66
+ } & {
67
+ default: string;
63
68
  };
64
69
  title: import("vue-types").VueTypeValidableDef<string> & {
65
70
  default: string;
@@ -93,27 +98,25 @@ declare const _default: import("vue").DefineComponent<{
93
98
  top: import("vue-types").VueTypeValidableDef<string> & {
94
99
  default: string;
95
100
  };
101
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
102
+ default: number;
103
+ } & {
104
+ default: number;
105
+ };
96
106
  }, {
107
+ zIndex: import("vue").Ref<string | number>;
97
108
  visible: import("vue").Ref<boolean>;
98
- compStyle: import("vue").ComputedRef<{
99
- [x: string]: string | number;
100
- width: string | number;
101
- height: string | number;
102
- minHeigth: string;
109
+ contentStyles: import("vue").Ref<{}>;
110
+ isContentScroll: import("vue").Ref<boolean>;
111
+ modalWrapperStyles: import("vue").ComputedRef<{
103
112
  display: string;
104
- zIndex: string | number;
105
- left: string;
106
- top: string;
107
- }>;
108
- fullscreenStyle: import("vue").ComputedRef<{
109
- width: string;
110
- height: string;
111
113
  }>;
112
114
  handleClickOutSide: (e: MouseEvent) => void;
113
115
  refRoot: import("vue").Ref<HTMLElement>;
114
116
  refMask: import("vue").Ref<HTMLElement>;
115
- showMask: boolean;
116
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], "close" | "hidden" | "shown" | "quick-close" | "quickClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
117
+ 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<{
117
120
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
118
121
  default: boolean;
119
122
  } & {
@@ -175,6 +178,8 @@ declare const _default: import("vue").DefineComponent<{
175
178
  };
176
179
  direction: import("vue-types").VueTypeValidableDef<string> & {
177
180
  default: string;
181
+ } & {
182
+ default: string;
178
183
  };
179
184
  title: import("vue-types").VueTypeValidableDef<string> & {
180
185
  default: string;
@@ -208,12 +213,17 @@ declare const _default: import("vue").DefineComponent<{
208
213
  top: import("vue-types").VueTypeValidableDef<string> & {
209
214
  default: string;
210
215
  };
216
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
217
+ default: number;
218
+ } & {
219
+ default: number;
220
+ };
211
221
  }>> & {
212
222
  onClose?: (...args: any[]) => any;
213
223
  onHidden?: (...args: any[]) => any;
214
224
  onShown?: (...args: any[]) => any;
215
- "onQuick-close"?: (...args: any[]) => any;
216
225
  onQuickClose?: (...args: any[]) => any;
226
+ "onQuick-close"?: (...args: any[]) => any;
217
227
  }, {
218
228
  title: string;
219
229
  width: string | number;
@@ -227,14 +237,15 @@ declare const _default: import("vue").DefineComponent<{
227
237
  transfer: string | boolean | HTMLElement;
228
238
  direction: string;
229
239
  renderDirective: "show" | "if";
230
- quickClose: boolean;
231
240
  scrollable: boolean;
232
241
  showMask: boolean;
233
242
  closeIcon: boolean;
234
243
  escClose: boolean;
235
244
  fullscreen: boolean;
245
+ quickClose: boolean;
236
246
  animateType: string;
237
247
  multiInstance: boolean;
238
248
  bodyClass: string | unknown[];
249
+ hiddenDelay: number;
239
250
  }, {}>;
240
251
  export default _default;
@@ -4,78 +4,78 @@
4
4
  .@{bk-prefix}-modal-ctx {
5
5
  top: 0px;
6
6
  left: 0px;
7
-
8
7
  width: 100%;
9
8
  height: 100%;
10
9
  pointer-events: auto;
11
10
 
12
11
  &.--show {
13
12
  position: fixed;
13
+ .@{bk-prefix}-modal-ctx-mask {
14
+ display: block;
15
+ }
14
16
  }
15
17
 
16
18
  &.--hide {
17
19
  display: none;
18
20
  }
19
-
20
- .@{bk-prefix}-modal-ctx-mask {
21
- top: 0;
22
- left: 0;
23
- display: none;
24
- width: 100%;
25
- height: 100%;
26
- background-color: rgba(0,0,0,.6);
27
-
28
- &.--show {
29
- position: fixed;
30
- display: inherit;
31
- }
32
- }
33
21
  }
34
22
 
35
-
23
+ .@{bk-prefix}-modal-ctx-mask {
24
+ top: 0;
25
+ left: 0;
26
+ display: none;
27
+ width: 100%;
28
+ height: 100%;
29
+ background-color: rgba(0,0,0,.6);
30
+ }
36
31
 
37
32
  .@{bk-prefix}-modal-wrapper {
38
33
  position: absolute;
39
34
  top: 50%;
40
35
  left: 50%;
41
- width: 480px;
42
36
  border-radius: 2px;
43
- // background: #fff;
44
37
  transform: translate(-50%, -50%);
45
38
 
46
- .@{bk-prefix}-modal-outside {
47
- position: fixed;
48
- top: 0;
49
- right: 0;
50
- bottom: 0;
51
- left: 0;
52
- }
53
39
 
54
- &.normal {
55
- width: 480px;
56
- height: 240px;
57
- }
40
+ }
58
41
 
59
- &.small {
60
- width: 400px;
61
- height: 200px;
62
- }
42
+ .@{bk-prefix}-modal-outside {
43
+ position: fixed;
44
+ top: 0;
45
+ right: 0;
46
+ bottom: 0;
47
+ left: 0;
48
+ }
63
49
 
64
- &.medium {
65
- width: 640px;
66
- height: 400px;
67
- }
50
+ .@{bk-prefix}-modal-body {
51
+ height: 100%;
52
+ overflow: hidden;
53
+ background: #fff;
54
+ border-radius: 2px;
55
+ box-shadow: 0 4px 12px rgba(0,0,0,.15);
56
+ }
68
57
 
69
- &.large {
70
- width: 960px;
71
- height: 720px;
72
- }
58
+ .@{bk-prefix}-modal-body {
59
+ overflow: auto;
60
+ }
73
61
 
74
- .@{bk-prefix}-modal-body {
75
- height: 100%;
76
- overflow: hidden;
77
- background: #fff;
78
- box-shadow: 0 4px 12px rgba(0,0,0,.15);
62
+ .@{bk-prefix}-modal-close {
63
+ position: absolute;
64
+ top: 6px;
65
+ right: 6px;
66
+ display: flex;
67
+ width: 32px;
68
+ height: 32px;
69
+ font-size: 18px;
70
+ color: #979ba5;
71
+ cursor: pointer;
72
+ align-items: center;
73
+ justify-content: center;
74
+ border-radius: 50%;
75
+ transition: .15s;
76
+
77
+ &:hover {
78
+ background: #f0f1f5;
79
79
  }
80
80
  }
81
81
 
@@ -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,44 +164,45 @@
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
+ }
@@ -60,6 +60,8 @@ export declare const propsMixin: {
60
60
  };
61
61
  direction: import("vue-types").VueTypeValidableDef<string> & {
62
62
  default: string;
63
+ } & {
64
+ default: string;
63
65
  };
64
66
  title: import("vue-types").VueTypeValidableDef<string> & {
65
67
  default: string;
@@ -93,4 +95,9 @@ export declare const propsMixin: {
93
95
  top: import("vue-types").VueTypeValidableDef<string> & {
94
96
  default: string;
95
97
  };
98
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
99
+ default: number;
100
+ } & {
101
+ default: number;
102
+ };
96
103
  };
@@ -1336,6 +1336,9 @@ var isFullScreenContainsElement = function isFullScreenContainsElement(target) {
1336
1336
  * @returns
1337
1337
  */
1338
1338
  var getFullscreenRoot = function getFullscreenRoot(selector) {
1339
+ if (!selector) {
1340
+ return 'body';
1341
+ }
1339
1342
  if (helper_isElement(selector)) {
1340
1343
  if (isFullScreenContainsElement(selector)) {
1341
1344
  return selector;
@@ -1353,7 +1356,7 @@ var getFullscreenRoot = function getFullscreenRoot(selector) {
1353
1356
  }
1354
1357
  return document.fullscreenElement;
1355
1358
  }
1356
- return document.body;
1359
+ return helper_isElement(document.body) ? document.body : 'body';
1357
1360
  };
1358
1361
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1359
1362
  function _assertThisInitialized(self) {
@@ -96,6 +96,11 @@ declare const BkSideslider: {
96
96
  top: import("vue-types").VueTypeValidableDef<string> & {
97
97
  default: string;
98
98
  };
99
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
100
+ default: number;
101
+ } & {
102
+ default: number;
103
+ };
99
104
  }>> & {
100
105
  onHidden?: (...args: any[]) => any;
101
106
  onShown?: (...args: any[]) => any;
@@ -199,6 +204,11 @@ declare const BkSideslider: {
199
204
  top: import("vue-types").VueTypeValidableDef<string> & {
200
205
  default: string;
201
206
  };
207
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
208
+ default: number;
209
+ } & {
210
+ default: number;
211
+ };
202
212
  }>> & {
203
213
  onHidden?: (...args: any[]) => any;
204
214
  onShown?: (...args: any[]) => any;
@@ -218,15 +228,16 @@ declare const BkSideslider: {
218
228
  transfer: string | boolean | HTMLElement;
219
229
  direction: string;
220
230
  renderDirective: "show" | "if";
221
- quickClose: boolean;
222
231
  scrollable: boolean;
223
232
  showMask: boolean;
224
233
  closeIcon: boolean;
225
234
  escClose: boolean;
226
235
  fullscreen: boolean;
236
+ quickClose: boolean;
227
237
  animateType: string;
228
238
  multiInstance: boolean;
229
239
  bodyClass: string | unknown[];
240
+ hiddenDelay: number;
230
241
  }, true, {}, {}, {
231
242
  P: {};
232
243
  B: {};
@@ -331,6 +342,11 @@ declare const BkSideslider: {
331
342
  top: import("vue-types").VueTypeValidableDef<string> & {
332
343
  default: string;
333
344
  };
345
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
346
+ default: number;
347
+ } & {
348
+ default: number;
349
+ };
334
350
  }>> & {
335
351
  onHidden?: (...args: any[]) => any;
336
352
  onShown?: (...args: any[]) => any;
@@ -350,15 +366,16 @@ declare const BkSideslider: {
350
366
  transfer: string | boolean | HTMLElement;
351
367
  direction: string;
352
368
  renderDirective: "show" | "if";
353
- quickClose: boolean;
354
369
  scrollable: boolean;
355
370
  showMask: boolean;
356
371
  closeIcon: boolean;
357
372
  escClose: boolean;
358
373
  fullscreen: boolean;
374
+ quickClose: boolean;
359
375
  animateType: string;
360
376
  multiInstance: boolean;
361
377
  bodyClass: string | unknown[];
378
+ hiddenDelay: number;
362
379
  }>;
363
380
  __isFragment?: never;
364
381
  __isTeleport?: never;
@@ -460,6 +477,11 @@ declare const BkSideslider: {
460
477
  top: import("vue-types").VueTypeValidableDef<string> & {
461
478
  default: string;
462
479
  };
480
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
481
+ default: number;
482
+ } & {
483
+ default: number;
484
+ };
463
485
  }>> & {
464
486
  onHidden?: (...args: any[]) => any;
465
487
  onShown?: (...args: any[]) => any;
@@ -479,14 +501,15 @@ declare const BkSideslider: {
479
501
  transfer: string | boolean | HTMLElement;
480
502
  direction: string;
481
503
  renderDirective: "show" | "if";
482
- quickClose: boolean;
483
504
  scrollable: boolean;
484
505
  showMask: boolean;
485
506
  closeIcon: boolean;
486
507
  escClose: boolean;
487
508
  fullscreen: boolean;
509
+ quickClose: boolean;
488
510
  animateType: string;
489
511
  multiInstance: boolean;
490
512
  bodyClass: string | unknown[];
513
+ hiddenDelay: number;
491
514
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
492
515
  export default BkSideslider;