bkui-vue 1.0.3-beta.53 → 1.0.3-beta.55
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 +45 -47
- package/dist/index.esm.js +9612 -9562
- package/dist/index.umd.js +44 -46
- 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/lib/search-select/index.d.ts +18 -3
- package/lib/search-select/index.js +380 -211
- package/lib/search-select/input.d.ts +2 -1
- package/lib/search-select/search-select.css +19 -6
- package/lib/search-select/search-select.d.ts +6 -1
- package/lib/search-select/search-select.less +15 -12
- package/lib/search-select/search-select.variable.css +19 -6
- package/lib/search-select/selected.d.ts +2 -1
- package/lib/search-select/utils.d.ts +6 -1
- 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
|
}
|
@@ -97,8 +97,9 @@ declare const BkSearchSelect: {
|
|
97
97
|
};
|
98
98
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
99
99
|
handleClickOutside: (e: MouseEvent) => void;
|
100
|
-
handleInputFocus: (
|
100
|
+
handleInputFocus: () => void;
|
101
101
|
handleInputChange: (event: Event) => void;
|
102
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
102
103
|
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
103
104
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
104
105
|
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
@@ -169,6 +170,7 @@ declare const BkSearchSelect: {
|
|
169
170
|
}[];
|
170
171
|
condition: string;
|
171
172
|
logical: import("./utils").SearchLogical;
|
173
|
+
nameRenderkey: string;
|
172
174
|
searchItem: {
|
173
175
|
id: string;
|
174
176
|
name: string;
|
@@ -238,6 +240,9 @@ declare const BkSearchSelect: {
|
|
238
240
|
readonly showLogical: boolean;
|
239
241
|
isSpecialType: () => boolean;
|
240
242
|
addValue: (item: import("./utils").ICommonItem) => void;
|
243
|
+
str2Values: (str: string) => import("./utils").ICommonItem[];
|
244
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
245
|
+
getValue: (str: string) => import("./utils").ICommonItem;
|
241
246
|
toValue: () => import("./utils").ISearchValue;
|
242
247
|
toValueKey: () => string;
|
243
248
|
isInValueList: (item: import("./utils").ICommonItem) => boolean;
|
@@ -425,8 +430,9 @@ declare const BkSearchSelect: {
|
|
425
430
|
};
|
426
431
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
427
432
|
handleClickOutside: (e: MouseEvent) => void;
|
428
|
-
handleInputFocus: (
|
433
|
+
handleInputFocus: () => void;
|
429
434
|
handleInputChange: (event: Event) => void;
|
435
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
430
436
|
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
431
437
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
432
438
|
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
@@ -497,6 +503,7 @@ declare const BkSearchSelect: {
|
|
497
503
|
}[];
|
498
504
|
condition: string;
|
499
505
|
logical: import("./utils").SearchLogical;
|
506
|
+
nameRenderkey: string;
|
500
507
|
searchItem: {
|
501
508
|
id: string;
|
502
509
|
name: string;
|
@@ -566,6 +573,9 @@ declare const BkSearchSelect: {
|
|
566
573
|
readonly showLogical: boolean;
|
567
574
|
isSpecialType: () => boolean;
|
568
575
|
addValue: (item: import("./utils").ICommonItem) => void;
|
576
|
+
str2Values: (str: string) => import("./utils").ICommonItem[];
|
577
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
578
|
+
getValue: (str: string) => import("./utils").ICommonItem;
|
569
579
|
toValue: () => import("./utils").ISearchValue;
|
570
580
|
toValueKey: () => string;
|
571
581
|
isInValueList: (item: import("./utils").ICommonItem) => boolean;
|
@@ -706,8 +716,9 @@ declare const BkSearchSelect: {
|
|
706
716
|
};
|
707
717
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
708
718
|
handleClickOutside: (e: MouseEvent) => void;
|
709
|
-
handleInputFocus: (
|
719
|
+
handleInputFocus: () => void;
|
710
720
|
handleInputChange: (event: Event) => void;
|
721
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
711
722
|
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
712
723
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
713
724
|
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
@@ -778,6 +789,7 @@ declare const BkSearchSelect: {
|
|
778
789
|
}[];
|
779
790
|
condition: string;
|
780
791
|
logical: import("./utils").SearchLogical;
|
792
|
+
nameRenderkey: string;
|
781
793
|
searchItem: {
|
782
794
|
id: string;
|
783
795
|
name: string;
|
@@ -847,6 +859,9 @@ declare const BkSearchSelect: {
|
|
847
859
|
readonly showLogical: boolean;
|
848
860
|
isSpecialType: () => boolean;
|
849
861
|
addValue: (item: import("./utils").ICommonItem) => void;
|
862
|
+
str2Values: (str: string) => import("./utils").ICommonItem[];
|
863
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
864
|
+
getValue: (str: string) => import("./utils").ICommonItem;
|
850
865
|
toValue: () => import("./utils").ISearchValue;
|
851
866
|
toValueKey: () => string;
|
852
867
|
isInValueList: (item: import("./utils").ICommonItem) => boolean;
|