bkui-vue 1.0.3-beta.53 → 1.0.3-beta.54
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +6 -7
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dialog/dialog.css +5 -8
- package/lib/dialog/dialog.variable.css +5 -8
- package/lib/modal/index.js +7 -5
- package/lib/modal/modal.css +5 -8
- package/lib/modal/modal.less +6 -10
- package/lib/modal/modal.variable.css +5 -8
- package/package.json +1 -1
package/lib/dialog/dialog.css
CHANGED
@@ -12,25 +12,21 @@
|
|
12
12
|
word-break: break-all;
|
13
13
|
}
|
14
14
|
.bk-modal-ctx {
|
15
|
+
position: fixed;
|
15
16
|
top: 0px;
|
16
17
|
left: 0px;
|
18
|
+
display: none;
|
17
19
|
width: 100%;
|
18
20
|
height: 100%;
|
19
21
|
pointer-events: auto;
|
20
22
|
}
|
21
|
-
.bk-modal-ctx
|
22
|
-
position: fixed;
|
23
|
-
}
|
24
|
-
.bk-modal-ctx.--show .bk-modal-ctx-mask {
|
23
|
+
.bk-modal-ctx.is-show {
|
25
24
|
display: block;
|
26
25
|
}
|
27
|
-
.bk-modal-ctx.--hide {
|
28
|
-
display: none;
|
29
|
-
}
|
30
26
|
.bk-modal-ctx-mask {
|
27
|
+
position: fixed;
|
31
28
|
top: 0;
|
32
29
|
left: 0;
|
33
|
-
display: none;
|
34
30
|
width: 100%;
|
35
31
|
height: 100%;
|
36
32
|
background-color: rgba(0, 0, 0, 0.6);
|
@@ -57,6 +53,7 @@
|
|
57
53
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
58
54
|
}
|
59
55
|
.bk-modal-content {
|
56
|
+
max-height: 100vh;
|
60
57
|
overflow: auto;
|
61
58
|
scrollbar-gutter: stable;
|
62
59
|
}
|
@@ -141,25 +141,21 @@
|
|
141
141
|
word-break: break-all;
|
142
142
|
}
|
143
143
|
.bk-modal-ctx {
|
144
|
+
position: fixed;
|
144
145
|
top: 0px;
|
145
146
|
left: 0px;
|
147
|
+
display: none;
|
146
148
|
width: 100%;
|
147
149
|
height: 100%;
|
148
150
|
pointer-events: auto;
|
149
151
|
}
|
150
|
-
.bk-modal-ctx
|
151
|
-
position: fixed;
|
152
|
-
}
|
153
|
-
.bk-modal-ctx.--show .bk-modal-ctx-mask {
|
152
|
+
.bk-modal-ctx.is-show {
|
154
153
|
display: block;
|
155
154
|
}
|
156
|
-
.bk-modal-ctx.--hide {
|
157
|
-
display: none;
|
158
|
-
}
|
159
155
|
.bk-modal-ctx-mask {
|
156
|
+
position: fixed;
|
160
157
|
top: 0;
|
161
158
|
left: 0;
|
162
|
-
display: none;
|
163
159
|
width: 100%;
|
164
160
|
height: 100%;
|
165
161
|
background-color: rgba(0, 0, 0, 0.6);
|
@@ -186,6 +182,7 @@
|
|
186
182
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
187
183
|
}
|
188
184
|
.bk-modal-content {
|
185
|
+
max-height: 100vh;
|
189
186
|
overflow: auto;
|
190
187
|
scrollbar-gutter: stable;
|
191
188
|
}
|
package/lib/modal/index.js
CHANGED
@@ -557,20 +557,22 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
|
|
557
557
|
var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
|
558
558
|
var _root$value$querySele = root.value.querySelector(".".concat(resolveClassName('modal-header'))).getBoundingClientRect(),
|
559
559
|
headerHeight = _root$value$querySele.height;
|
560
|
-
var _root$value$querySele2 = root.value.querySelector(".".concat(resolveClassName('modal-content'))).getBoundingClientRect(),
|
560
|
+
var _root$value$querySele2 = root.value.querySelector(".".concat(resolveClassName('modal-content'), " div")).getBoundingClientRect(),
|
561
561
|
contentHeight = _root$value$querySele2.height;
|
562
562
|
var _root$value$querySele3 = root.value.querySelector(".".concat(resolveClassName('modal-footer'))).getBoundingClientRect(),
|
563
563
|
footerHeight = _root$value$querySele3.height;
|
564
564
|
var windowInnerHeight = window.innerHeight;
|
565
|
-
isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight;
|
565
|
+
isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + 20;
|
566
566
|
if (isContentScroll.value || props.fullscreen) {
|
567
567
|
contentStyles.value = {
|
568
568
|
height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px")
|
569
569
|
};
|
570
|
+
// fullscreen 时默认为 true
|
571
|
+
isContentScroll.value = true;
|
570
572
|
} else {
|
571
573
|
contentStyles.value = {};
|
572
574
|
}
|
573
|
-
},
|
575
|
+
}, 30);
|
574
576
|
observer = new ResizeObserver(function () {
|
575
577
|
calcContentScroll();
|
576
578
|
});
|
@@ -932,7 +934,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
932
934
|
_this = this;
|
933
935
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
934
936
|
"ref": "refRoot",
|
935
|
-
"class": _defineProperty(_defineProperty(
|
937
|
+
"class": _defineProperty(_defineProperty({}, this.resolveClassName('modal-ctx'), true), 'is-show', this.visible),
|
936
938
|
"style": {
|
937
939
|
zIndex: this.zIndex
|
938
940
|
}
|
@@ -955,7 +957,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
955
957
|
"class": _this.resolveClassName('modal-content'),
|
956
958
|
"style": _this.contentStyles
|
957
959
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
958
|
-
"style": "position: relative; display:
|
960
|
+
"style": "position: relative; display: inline-block; width: 100%;"
|
959
961
|
}, [(_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2), (0,external_vue_namespaceObject.createVNode)("div", {
|
960
962
|
"ref": "resizeTargetRef",
|
961
963
|
"style": "position: absolute; top: 0; bottom: 0;"
|
package/lib/modal/modal.css
CHANGED
@@ -12,25 +12,21 @@
|
|
12
12
|
word-break: break-all;
|
13
13
|
}
|
14
14
|
.bk-modal-ctx {
|
15
|
+
position: fixed;
|
15
16
|
top: 0px;
|
16
17
|
left: 0px;
|
18
|
+
display: none;
|
17
19
|
width: 100%;
|
18
20
|
height: 100%;
|
19
21
|
pointer-events: auto;
|
20
22
|
}
|
21
|
-
.bk-modal-ctx
|
22
|
-
position: fixed;
|
23
|
-
}
|
24
|
-
.bk-modal-ctx.--show .bk-modal-ctx-mask {
|
23
|
+
.bk-modal-ctx.is-show {
|
25
24
|
display: block;
|
26
25
|
}
|
27
|
-
.bk-modal-ctx.--hide {
|
28
|
-
display: none;
|
29
|
-
}
|
30
26
|
.bk-modal-ctx-mask {
|
27
|
+
position: fixed;
|
31
28
|
top: 0;
|
32
29
|
left: 0;
|
33
|
-
display: none;
|
34
30
|
width: 100%;
|
35
31
|
height: 100%;
|
36
32
|
background-color: rgba(0, 0, 0, 0.6);
|
@@ -57,6 +53,7 @@
|
|
57
53
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
58
54
|
}
|
59
55
|
.bk-modal-content {
|
56
|
+
max-height: 100vh;
|
60
57
|
overflow: auto;
|
61
58
|
scrollbar-gutter: stable;
|
62
59
|
}
|
package/lib/modal/modal.less
CHANGED
@@ -2,28 +2,23 @@
|
|
2
2
|
@import '../info-box/info-box.less';
|
3
3
|
|
4
4
|
.@{bk-prefix}-modal-ctx {
|
5
|
+
position: fixed;
|
5
6
|
top: 0px;
|
6
7
|
left: 0px;
|
8
|
+
display: none;
|
7
9
|
width: 100%;
|
8
10
|
height: 100%;
|
9
11
|
pointer-events: auto;
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
.@{bk-prefix}-modal-ctx-mask {
|
14
|
-
display: block;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
&.--hide {
|
19
|
-
display: none;
|
13
|
+
&.is-show {
|
14
|
+
display: block;
|
20
15
|
}
|
21
16
|
}
|
22
17
|
|
23
18
|
.@{bk-prefix}-modal-ctx-mask {
|
19
|
+
position: fixed;
|
24
20
|
top: 0;
|
25
21
|
left: 0;
|
26
|
-
display: none;
|
27
22
|
width: 100%;
|
28
23
|
height: 100%;
|
29
24
|
background-color: rgba(0, 0, 0, 0.6);
|
@@ -54,6 +49,7 @@
|
|
54
49
|
}
|
55
50
|
|
56
51
|
.@{bk-prefix}-modal-content {
|
52
|
+
max-height: 100vh;
|
57
53
|
overflow: auto;
|
58
54
|
scrollbar-gutter: stable;
|
59
55
|
}
|
@@ -141,25 +141,21 @@
|
|
141
141
|
word-break: break-all;
|
142
142
|
}
|
143
143
|
.bk-modal-ctx {
|
144
|
+
position: fixed;
|
144
145
|
top: 0px;
|
145
146
|
left: 0px;
|
147
|
+
display: none;
|
146
148
|
width: 100%;
|
147
149
|
height: 100%;
|
148
150
|
pointer-events: auto;
|
149
151
|
}
|
150
|
-
.bk-modal-ctx
|
151
|
-
position: fixed;
|
152
|
-
}
|
153
|
-
.bk-modal-ctx.--show .bk-modal-ctx-mask {
|
152
|
+
.bk-modal-ctx.is-show {
|
154
153
|
display: block;
|
155
154
|
}
|
156
|
-
.bk-modal-ctx.--hide {
|
157
|
-
display: none;
|
158
|
-
}
|
159
155
|
.bk-modal-ctx-mask {
|
156
|
+
position: fixed;
|
160
157
|
top: 0;
|
161
158
|
left: 0;
|
162
|
-
display: none;
|
163
159
|
width: 100%;
|
164
160
|
height: 100%;
|
165
161
|
background-color: rgba(0, 0, 0, 0.6);
|
@@ -186,6 +182,7 @@
|
|
186
182
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
187
183
|
}
|
188
184
|
.bk-modal-content {
|
185
|
+
max-height: 100vh;
|
189
186
|
overflow: auto;
|
190
187
|
scrollbar-gutter: stable;
|
191
188
|
}
|