bkui-vue 1.0.3-beta.60.scrollbar.4 → 1.0.3-beta.61
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 +50 -52
- package/dist/index.esm.js +13994 -14680
- package/dist/index.umd.js +50 -52
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +7 -8
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/index.js +1 -1
- package/lib/card/index.js +1 -1
- package/lib/cascader/index.js +38 -42
- package/lib/checkbox/index.js +6 -7
- package/lib/collapse/index.js +11 -12
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +10 -13
- package/lib/components.d.ts +1 -0
- package/lib/components.js +2 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/container/index.js +10 -12
- package/lib/date-picker/index.js +2 -2
- package/lib/dialog/dialog.css +7 -9
- package/lib/dialog/dialog.variable.css +7 -9
- package/lib/dialog/index.js +4 -4
- package/lib/directives/index.js +1 -1
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +6 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/grag-fill.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-all.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/index.js +10 -11
- package/lib/info-box/index.js +5 -4
- package/lib/input/index.js +4 -4
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +11 -12
- package/lib/menu/index.js +2 -3
- package/lib/message/index.js +1 -1
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +3 -0
- package/lib/modal/index.js +25 -26
- package/lib/modal/modal.css +7 -9
- package/lib/modal/modal.d.ts +1 -0
- package/lib/modal/modal.less +11 -18
- package/lib/modal/modal.variable.css +7 -9
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +1 -1
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +1 -1
- package/lib/plugin-popover/index.js +26 -30
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +26 -30
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +4 -4
- package/lib/progress/index.js +5 -6
- package/lib/radio/index.js +6 -7
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/search-select/index.d.ts +327 -12
- package/lib/search-select/index.js +630 -353
- package/lib/search-select/input.d.ts +6 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +109 -4
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +20 -6
- package/lib/search-select/selected.d.ts +107 -5
- package/lib/search-select/utils.d.ts +13 -1
- package/lib/select/index.d.ts +56 -0
- package/lib/select/index.js +12 -7
- package/lib/select/select.css +19 -5
- package/lib/select/select.d.ts +22 -0
- package/lib/select/select.less +26 -6
- package/lib/select/select.variable.css +19 -5
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/shared/index.js +5 -8
- package/lib/sideslider/index.js +4 -4
- package/lib/sideslider/sideslider.css +0 -5
- package/lib/sideslider/sideslider.less +8 -14
- package/lib/sideslider/sideslider.variable.css +0 -5
- package/lib/slider/index.js +19 -20
- package/lib/steps/index.js +4 -4
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/tab/index.js +3 -4
- package/lib/table/const.d.ts +1 -1
- package/lib/table/index.js +24 -26
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/table.css +42 -96
- package/lib/table/table.less +56 -41
- package/lib/table/table.variable.css +42 -96
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table-column/index.js +2 -2
- package/lib/tag/index.js +1 -1
- package/lib/tag-input/index.js +3 -4
- package/lib/timeline/index.js +1 -0
- package/lib/tree/index.js +10 -12
- package/lib/tree/tree.css +2 -75
- package/lib/tree/tree.variable.css +2 -75
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +25 -34
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/virtual-render/index.d.ts +0 -4
- package/lib/virtual-render/index.js +235 -2436
- package/lib/virtual-render/props.d.ts +0 -7
- package/lib/virtual-render/use-fix-top.d.ts +7 -2
- package/lib/virtual-render/v-virtual-render.d.ts +1 -2
- package/lib/virtual-render/virtual-render.css +2 -75
- package/lib/virtual-render/virtual-render.d.ts +0 -2
- package/lib/virtual-render/virtual-render.less +2 -2
- package/lib/virtual-render/virtual-render.variable.css +2 -75
- package/package.json +1 -5
- package/lib/virtual-render/bk-scrollbar.css +0 -74
- package/lib/virtual-render/bk-scrollbar.d.ts +0 -10
- package/lib/virtual-render/bk-scrollbar.less +0 -93
- package/lib/virtual-render/bk-scrollbar.variable.css +0 -203
- package/lib/virtual-render/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/virtual-render/scrollbar-core/helpers.d.ts +0 -5
- package/lib/virtual-render/scrollbar-core/index.d.ts +0 -213
- package/lib/virtual-render/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/virtual-render/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/virtual-render/use-scrollbar.d.ts +0 -23
package/lib/image/index.js
CHANGED
@@ -44,7 +44,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
44
44
|
;// CONCATENATED MODULE: external "vue"
|
45
45
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
46
46
|
var external_vue_y = x => () => x
|
47
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["effectScope"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.effectScope, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["
|
47
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["effectScope"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.effectScope, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
48
48
|
;// CONCATENATED MODULE: external "../config-provider"
|
49
49
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
50
50
|
var config_provider_y = x => () => x
|
@@ -123,8 +123,7 @@ var propsImageViever = {
|
|
123
123
|
|
124
124
|
|
125
125
|
|
126
|
-
|
127
|
-
/* harmony default export */ const src_image = ((0,external_vue_namespaceObject.defineComponent)({
|
126
|
+
/* harmony default export */ const src_image = (defineComponent({
|
128
127
|
// eslint-disable-next-line vue/no-reserved-component-names
|
129
128
|
name: 'Image',
|
130
129
|
props: propsImage,
|
@@ -132,18 +131,18 @@ var propsImageViever = {
|
|
132
131
|
setup: function setup(props, _ref) {
|
133
132
|
var emit = _ref.emit,
|
134
133
|
slots = _ref.slots;
|
135
|
-
var loading =
|
136
|
-
var hasError =
|
137
|
-
var isShowViewer =
|
138
|
-
var prevOverflow =
|
139
|
-
var imageSrc =
|
134
|
+
var loading = ref(true);
|
135
|
+
var hasError = ref(true);
|
136
|
+
var isShowViewer = ref(false);
|
137
|
+
var prevOverflow = ref('');
|
138
|
+
var imageSrc = ref('');
|
140
139
|
function clickHandler() {}
|
141
|
-
|
140
|
+
watch(function () {
|
142
141
|
return props.src;
|
143
142
|
}, function () {
|
144
143
|
loadImage();
|
145
144
|
});
|
146
|
-
var preview =
|
145
|
+
var preview = computed(function () {
|
147
146
|
var _props$urlList;
|
148
147
|
return (props === null || props === void 0 || (_props$urlList = props.urlList) === null || _props$urlList === void 0 ? void 0 : _props$urlList.length) > 0;
|
149
148
|
});
|
@@ -230,7 +229,7 @@ function toPrimitive(t, r) {
|
|
230
229
|
|
231
230
|
function toPropertyKey(t) {
|
232
231
|
var i = toPrimitive(t, "string");
|
233
|
-
return "symbol" == _typeof(i) ? i :
|
232
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
234
233
|
}
|
235
234
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
236
235
|
|
package/lib/info-box/index.js
CHANGED
@@ -120,7 +120,7 @@ function _regeneratorRuntime() {
|
|
120
120
|
function makeInvokeMethod(e, r, n) {
|
121
121
|
var o = h;
|
122
122
|
return function (i, a) {
|
123
|
-
if (o === f) throw
|
123
|
+
if (o === f) throw Error("Generator is already running");
|
124
124
|
if (o === s) {
|
125
125
|
if ("throw" === i) throw a;
|
126
126
|
return {
|
@@ -262,7 +262,7 @@ function _regeneratorRuntime() {
|
|
262
262
|
} else if (c) {
|
263
263
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
264
|
} else {
|
265
|
-
if (!u) throw
|
265
|
+
if (!u) throw Error("try statement without catch or finally");
|
266
266
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
267
|
}
|
268
268
|
}
|
@@ -302,7 +302,7 @@ function _regeneratorRuntime() {
|
|
302
302
|
return o;
|
303
303
|
}
|
304
304
|
}
|
305
|
-
throw
|
305
|
+
throw Error("illegal catch attempt");
|
306
306
|
},
|
307
307
|
delegateYield: function delegateYield(e, r, n) {
|
308
308
|
return this.delegate = {
|
@@ -452,7 +452,7 @@ function toPrimitive(t, r) {
|
|
452
452
|
|
453
453
|
function toPropertyKey(t) {
|
454
454
|
var i = toPrimitive(t, "string");
|
455
|
-
return "symbol" == _typeof(i) ? i :
|
455
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
456
456
|
}
|
457
457
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
458
458
|
|
@@ -688,6 +688,7 @@ var InfoBox = function InfoBox(config) {
|
|
688
688
|
}, modalFuncProps.value), {}, {
|
689
689
|
isShow: isShow.value,
|
690
690
|
transfer: false,
|
691
|
+
quickClose: false,
|
691
692
|
onClosed: onClosed,
|
692
693
|
onConfirm: onConfirm,
|
693
694
|
onHidden: onHidden
|
package/lib/input/index.js
CHANGED
@@ -120,7 +120,7 @@ function _regeneratorRuntime() {
|
|
120
120
|
function makeInvokeMethod(e, r, n) {
|
121
121
|
var o = h;
|
122
122
|
return function (i, a) {
|
123
|
-
if (o === f) throw
|
123
|
+
if (o === f) throw Error("Generator is already running");
|
124
124
|
if (o === s) {
|
125
125
|
if ("throw" === i) throw a;
|
126
126
|
return {
|
@@ -262,7 +262,7 @@ function _regeneratorRuntime() {
|
|
262
262
|
} else if (c) {
|
263
263
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
264
|
} else {
|
265
|
-
if (!u) throw
|
265
|
+
if (!u) throw Error("try statement without catch or finally");
|
266
266
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
267
|
}
|
268
268
|
}
|
@@ -302,7 +302,7 @@ function _regeneratorRuntime() {
|
|
302
302
|
return o;
|
303
303
|
}
|
304
304
|
}
|
305
|
-
throw
|
305
|
+
throw Error("illegal catch attempt");
|
306
306
|
},
|
307
307
|
delegateYield: function delegateYield(e, r, n) {
|
308
308
|
return this.delegate = {
|
@@ -573,7 +573,7 @@ function toPrimitive(t, r) {
|
|
573
573
|
|
574
574
|
function toPropertyKey(t) {
|
575
575
|
var i = toPrimitive(t, "string");
|
576
|
-
return "symbol" == _typeof(i) ? i :
|
576
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
577
577
|
}
|
578
578
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
579
579
|
|
package/lib/link/index.js
CHANGED
@@ -40,7 +40,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
40
40
|
;// CONCATENATED MODULE: external "vue"
|
41
41
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
42
42
|
var external_vue_y = x => () => x
|
43
|
-
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode
|
43
|
+
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode });
|
44
44
|
;// CONCATENATED MODULE: external "vue-types"
|
45
45
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
46
46
|
var external_vue_types_y = x => () => x
|
@@ -88,7 +88,7 @@ var LinkThemeEnum;
|
|
88
88
|
LinkThemeEnum["WARNING"] = "warning";
|
89
89
|
LinkThemeEnum["DEFAULT"] = "default";
|
90
90
|
})(LinkThemeEnum || (LinkThemeEnum = {}));
|
91
|
-
/* harmony default export */ const src_link = (
|
91
|
+
/* harmony default export */ const src_link = (defineComponent({
|
92
92
|
name: 'Link',
|
93
93
|
props: {
|
94
94
|
theme: (0,external_vue_types_namespaceObject.toType)('linkTheme', {}).def(LinkThemeEnum.DEFAULT),
|
package/lib/loading/index.js
CHANGED
@@ -43,7 +43,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
43
43
|
;// CONCATENATED MODULE: external "vue"
|
44
44
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
45
|
var external_vue_y = x => () => x
|
46
|
-
const external_vue_namespaceObject = external_vue_x({ ["
|
46
|
+
const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive });
|
47
47
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
48
48
|
function _typeof(o) {
|
49
49
|
"@babel/helpers - typeof";
|
@@ -71,7 +71,7 @@ function toPrimitive(t, r) {
|
|
71
71
|
|
72
72
|
function toPropertyKey(t) {
|
73
73
|
var i = toPrimitive(t, "string");
|
74
|
-
return "symbol" == _typeof(i) ? i :
|
74
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
75
75
|
}
|
76
76
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
77
77
|
|
@@ -95,9 +95,6 @@ var config_provider_y = x => () => x
|
|
95
95
|
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
96
96
|
;// CONCATENATED MODULE: ../../packages/loading/src/loading.tsx
|
97
97
|
|
98
|
-
|
99
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
100
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
101
98
|
/*
|
102
99
|
* Tencent is pleased to support the open source community by making
|
103
100
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -124,6 +121,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
124
121
|
* IN THE SOFTWARE.
|
125
122
|
*/
|
126
123
|
|
124
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
125
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
127
126
|
|
128
127
|
|
129
128
|
var BkLoadingMode;
|
@@ -167,7 +166,7 @@ var loadingTypes = {
|
|
167
166
|
zIndex: shared_namespaceObject.PropTypes.number.def(1),
|
168
167
|
isDirective: shared_namespaceObject.PropTypes.bool.def(false)
|
169
168
|
};
|
170
|
-
/* harmony default export */ const loading = (
|
169
|
+
/* harmony default export */ const loading = (defineComponent({
|
171
170
|
name: 'Loading',
|
172
171
|
props: loadingTypes,
|
173
172
|
setup: function setup(props, ctx) {
|
@@ -187,27 +186,27 @@ var loadingTypes = {
|
|
187
186
|
"class": "oval oval-".concat(i)
|
188
187
|
}, null);
|
189
188
|
})]);
|
190
|
-
var zIndexStyle =
|
189
|
+
var zIndexStyle = computed(function () {
|
191
190
|
return {
|
192
191
|
zIndex: props.zIndex
|
193
192
|
};
|
194
193
|
});
|
195
|
-
var maskStyle =
|
194
|
+
var maskStyle = computed(function () {
|
196
195
|
return _objectSpread({
|
197
196
|
opacity: props.opacity,
|
198
197
|
backgroundColor: props.color
|
199
198
|
}, zIndexStyle.value);
|
200
199
|
});
|
201
|
-
var loadingWrapperCls =
|
200
|
+
var loadingWrapperCls = computed(function () {
|
202
201
|
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('loading-wrapper')), props.loading), "".concat(resolveClassName('nested-loading')), !!ctx.slots["default"]), "".concat(resolveClassName('directive-loading')), props.isDirective));
|
203
202
|
});
|
204
|
-
var containerCls =
|
203
|
+
var containerCls = computed(function () {
|
205
204
|
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(resolveClassName("loading-size-".concat(props.size))), !!props.size), "".concat(resolveClassName("loading-".concat(props.theme))), !!props.theme), resolveClassName('loading-indicator'));
|
206
205
|
});
|
207
|
-
var hasTitle =
|
206
|
+
var hasTitle = computed(function () {
|
208
207
|
return !!props.title;
|
209
208
|
});
|
210
|
-
var indicator =
|
209
|
+
var indicator = computed(function () {
|
211
210
|
var isSpinMode = props.mode === BkLoadingMode.Spin;
|
212
211
|
if (typeof props.indicator === 'function') {
|
213
212
|
return (0,external_vue_namespaceObject.createVNode)(props.indicator, null, null);
|
package/lib/menu/index.js
CHANGED
@@ -68,7 +68,7 @@ function toPrimitive(t, r) {
|
|
68
68
|
|
69
69
|
function toPropertyKey(t) {
|
70
70
|
var i = toPrimitive(t, "string");
|
71
|
-
return "symbol" == _typeof(i) ? i :
|
71
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
72
72
|
}
|
73
73
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
74
74
|
|
@@ -448,8 +448,7 @@ var menuProps = {
|
|
448
448
|
* IN THE SOFTWARE.
|
449
449
|
*/
|
450
450
|
|
451
|
-
|
452
|
-
/* harmony default export */ const menu_group = ((0,external_vue_namespaceObject.defineComponent)({
|
451
|
+
/* harmony default export */ const menu_group = (defineComponent({
|
453
452
|
name: 'MenuGroup',
|
454
453
|
props: {
|
455
454
|
name: {
|
package/lib/message/index.js
CHANGED
@@ -999,7 +999,7 @@ function toPrimitive(t, r) {
|
|
999
999
|
|
1000
1000
|
function toPropertyKey(t) {
|
1001
1001
|
var i = toPrimitive(t, "string");
|
1002
|
-
return "symbol" == _typeof(i) ? i :
|
1002
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
1003
1003
|
}
|
1004
1004
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1005
1005
|
|
package/lib/modal/hooks.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type Ref } from 'vue';
|
2
2
|
import type { ModalProps } from './modal';
|
3
|
-
export declare const useContentResize: (root: Ref<HTMLElement>, props: ModalProps) => {
|
3
|
+
export declare const useContentResize: (root: Ref<HTMLElement>, resizeTarget: Ref<HTMLElement>, props: ModalProps) => {
|
4
4
|
contentStyles: Ref<{}>;
|
5
5
|
isContentScroll: Ref<boolean>;
|
6
6
|
};
|
package/lib/modal/index.d.ts
CHANGED
@@ -121,6 +121,7 @@ declare const BkModal: {
|
|
121
121
|
refMask: import("vue").Ref<HTMLElement>;
|
122
122
|
resolveClassName: (cls: string) => string;
|
123
123
|
close: () => void;
|
124
|
+
resizeTargetRef: import("vue").Ref<HTMLElement>;
|
124
125
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quickClose" | "quick-close")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
125
126
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
126
127
|
default: boolean;
|
@@ -380,6 +381,7 @@ declare const BkModal: {
|
|
380
381
|
refMask: import("vue").Ref<HTMLElement>;
|
381
382
|
resolveClassName: (cls: string) => string;
|
382
383
|
close: () => void;
|
384
|
+
resizeTargetRef: import("vue").Ref<HTMLElement>;
|
383
385
|
}, {}, {}, {}, {
|
384
386
|
title: string;
|
385
387
|
width: string | number;
|
@@ -528,6 +530,7 @@ declare const BkModal: {
|
|
528
530
|
refMask: import("vue").Ref<HTMLElement>;
|
529
531
|
resolveClassName: (cls: string) => string;
|
530
532
|
close: () => void;
|
533
|
+
resizeTargetRef: import("vue").Ref<HTMLElement>;
|
531
534
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quickClose" | "quick-close")[], "close" | "hidden" | "shown" | "quickClose" | "quick-close", {
|
532
535
|
title: string;
|
533
536
|
width: string | number;
|
package/lib/modal/index.js
CHANGED
@@ -120,7 +120,7 @@ function _regeneratorRuntime() {
|
|
120
120
|
function makeInvokeMethod(e, r, n) {
|
121
121
|
var o = h;
|
122
122
|
return function (i, a) {
|
123
|
-
if (o === f) throw
|
123
|
+
if (o === f) throw Error("Generator is already running");
|
124
124
|
if (o === s) {
|
125
125
|
if ("throw" === i) throw a;
|
126
126
|
return {
|
@@ -262,7 +262,7 @@ function _regeneratorRuntime() {
|
|
262
262
|
} else if (c) {
|
263
263
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
264
|
} else {
|
265
|
-
if (!u) throw
|
265
|
+
if (!u) throw Error("try statement without catch or finally");
|
266
266
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
267
|
}
|
268
268
|
}
|
@@ -302,7 +302,7 @@ function _regeneratorRuntime() {
|
|
302
302
|
return o;
|
303
303
|
}
|
304
304
|
}
|
305
|
-
throw
|
305
|
+
throw Error("illegal catch attempt");
|
306
306
|
},
|
307
307
|
delegateYield: function delegateYield(e, r, n) {
|
308
308
|
return this.delegate = {
|
@@ -485,7 +485,7 @@ function toPrimitive(t, r) {
|
|
485
485
|
|
486
486
|
function toPropertyKey(t) {
|
487
487
|
var i = toPrimitive(t, "string");
|
488
|
-
return "symbol" == _typeof(i) ? i :
|
488
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
489
489
|
}
|
490
490
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
491
491
|
|
@@ -506,7 +506,7 @@ function _defineProperty(obj, key, value) {
|
|
506
506
|
;// CONCATENATED MODULE: external "vue"
|
507
507
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
508
508
|
var external_vue_y = x => () => x
|
509
|
-
const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["
|
509
|
+
const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
510
510
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
511
511
|
var regenerator = __webpack_require__(2841);
|
512
512
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
@@ -547,43 +547,36 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
547
547
|
|
548
548
|
|
549
549
|
|
550
|
-
var useContentResize = function useContentResize(root, props) {
|
550
|
+
var useContentResize = function useContentResize(root, resizeTarget, props) {
|
551
551
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
552
552
|
resolveClassName = _usePrefix.resolveClassName;
|
553
|
-
var slots = (0,external_vue_namespaceObject.useSlots)();
|
554
553
|
var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
|
555
554
|
var contentStyles = (0,external_vue_namespaceObject.ref)({});
|
556
555
|
var observer;
|
557
556
|
var handleContentBoxChange = function handleContentBoxChange() {
|
558
|
-
if (!slots.footer) {
|
559
|
-
return;
|
560
|
-
}
|
561
557
|
var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
|
562
558
|
var _root$value$querySele = root.value.querySelector(".".concat(resolveClassName('modal-header'))).getBoundingClientRect(),
|
563
559
|
headerHeight = _root$value$querySele.height;
|
564
|
-
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(),
|
565
561
|
contentHeight = _root$value$querySele2.height;
|
566
562
|
var _root$value$querySele3 = root.value.querySelector(".".concat(resolveClassName('modal-footer'))).getBoundingClientRect(),
|
567
563
|
footerHeight = _root$value$querySele3.height;
|
568
564
|
var windowInnerHeight = window.innerHeight;
|
569
|
-
isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight;
|
565
|
+
isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + 20;
|
570
566
|
if (isContentScroll.value || props.fullscreen) {
|
571
567
|
contentStyles.value = {
|
572
|
-
height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px")
|
573
|
-
overflow: 'scroll'
|
568
|
+
height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px")
|
574
569
|
};
|
570
|
+
// fullscreen 时默认为 true
|
571
|
+
isContentScroll.value = true;
|
575
572
|
} else {
|
576
573
|
contentStyles.value = {};
|
577
574
|
}
|
578
|
-
},
|
579
|
-
observer = new
|
575
|
+
}, 30);
|
576
|
+
observer = new ResizeObserver(function () {
|
580
577
|
calcContentScroll();
|
581
578
|
});
|
582
|
-
observer.observe(
|
583
|
-
subtree: true,
|
584
|
-
attributes: true,
|
585
|
-
childList: true
|
586
|
-
});
|
579
|
+
observer.observe(resizeTarget.value);
|
587
580
|
calcContentScroll();
|
588
581
|
};
|
589
582
|
(0,external_vue_namespaceObject.watch)(function () {
|
@@ -595,7 +588,6 @@ var useContentResize = function useContentResize(root, props) {
|
|
595
588
|
}, 100);
|
596
589
|
} else {
|
597
590
|
if (observer) {
|
598
|
-
observer.takeRecords();
|
599
591
|
observer.disconnect();
|
600
592
|
observer = null;
|
601
593
|
}
|
@@ -743,13 +735,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
743
735
|
setup: function setup(props, ctx) {
|
744
736
|
var refRoot = (0,external_vue_namespaceObject.ref)();
|
745
737
|
var refMask = (0,external_vue_namespaceObject.ref)();
|
738
|
+
var resizeTargetRef = (0,external_vue_namespaceObject.ref)();
|
746
739
|
var teleportTo = (0,external_vue_namespaceObject.ref)('body');
|
747
740
|
var visible = (0,external_vue_namespaceObject.ref)(false);
|
748
741
|
var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
|
749
742
|
var enableTeleport = (0,external_vue_namespaceObject.ref)(!!props.transfer);
|
750
743
|
var backgroundColor = (0,external_vue_namespaceObject.ref)('rgba(0,0,0,0.6)');
|
751
744
|
var closeTimer;
|
752
|
-
var _useContentResize = useContentResize(refRoot, props),
|
745
|
+
var _useContentResize = useContentResize(refRoot, resizeTargetRef, props),
|
753
746
|
contentStyles = _useContentResize.contentStyles,
|
754
747
|
isContentScroll = _useContentResize.isContentScroll;
|
755
748
|
var modalWrapperStyles = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -925,7 +918,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
925
918
|
refRoot: refRoot,
|
926
919
|
refMask: refMask,
|
927
920
|
resolveClassName: resolveClassName,
|
928
|
-
close: close
|
921
|
+
close: close,
|
922
|
+
resizeTargetRef: resizeTargetRef
|
929
923
|
};
|
930
924
|
},
|
931
925
|
render: function render() {
|
@@ -940,7 +934,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
940
934
|
_this = this;
|
941
935
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
942
936
|
"ref": "refRoot",
|
943
|
-
"class": _defineProperty(_defineProperty(
|
937
|
+
"class": _defineProperty(_defineProperty({}, this.resolveClassName('modal-ctx'), true), 'is-show', this.visible),
|
944
938
|
"style": {
|
945
939
|
zIndex: this.zIndex
|
946
940
|
}
|
@@ -962,7 +956,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
962
956
|
}, [(_this$$slots$header = (_this$$slots = _this.$slots).header) === null || _this$$slots$header === void 0 ? void 0 : _this$$slots$header.call(_this$$slots)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
963
957
|
"class": _this.resolveClassName('modal-content'),
|
964
958
|
"style": _this.contentStyles
|
965
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div",
|
959
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
960
|
+
"style": "position: relative; display: inline-block; width: 100%;"
|
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", {
|
962
|
+
"ref": "resizeTargetRef",
|
963
|
+
"style": "position: absolute; top: 0; bottom: 0;"
|
964
|
+
}, null)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
966
965
|
"class": _defineProperty(_defineProperty({}, _this.resolveClassName('modal-footer'), true), 'is-fixed', _this.isContentScroll)
|
967
966
|
}, [(_this$$slots$footer = (_this$$slots3 = _this.$slots).footer) === null || _this$$slots$footer === void 0 ? void 0 : _this$$slots$footer.call(_this$$slots3)]), _this.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
|
968
967
|
"class": _this.resolveClassName('modal-close')
|
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);
|
@@ -56,8 +52,10 @@
|
|
56
52
|
border-radius: 2px;
|
57
53
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
58
54
|
}
|
59
|
-
.bk-modal-
|
55
|
+
.bk-modal-content {
|
56
|
+
max-height: 100vh;
|
60
57
|
overflow: auto;
|
58
|
+
scrollbar-gutter: stable;
|
61
59
|
}
|
62
60
|
.bk-modal-close {
|
63
61
|
position: absolute;
|
package/lib/modal/modal.d.ts
CHANGED
@@ -116,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
116
116
|
refMask: import("vue").Ref<HTMLElement>;
|
117
117
|
resolveClassName: (cls: string) => string;
|
118
118
|
close: () => void;
|
119
|
+
resizeTargetRef: import("vue").Ref<HTMLElement>;
|
119
120
|
}, 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<{
|
120
121
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
121
122
|
default: boolean;
|
package/lib/modal/modal.less
CHANGED
@@ -2,31 +2,26 @@
|
|
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
|
-
background-color: rgba(0,0,0
|
24
|
+
background-color: rgba(0, 0, 0, 0.6);
|
30
25
|
}
|
31
26
|
|
32
27
|
.@{bk-prefix}-modal-wrapper {
|
@@ -35,8 +30,6 @@
|
|
35
30
|
left: 50%;
|
36
31
|
border-radius: 2px;
|
37
32
|
transform: translate(-50%, -50%);
|
38
|
-
|
39
|
-
|
40
33
|
}
|
41
34
|
|
42
35
|
.@{bk-prefix}-modal-outside {
|
@@ -52,11 +45,13 @@
|
|
52
45
|
overflow: hidden;
|
53
46
|
background: #fff;
|
54
47
|
border-radius: 2px;
|
55
|
-
box-shadow: 0 4px 12px rgba(0,0,0
|
48
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
56
49
|
}
|
57
50
|
|
58
|
-
.@{bk-prefix}-modal-
|
51
|
+
.@{bk-prefix}-modal-content {
|
52
|
+
max-height: 100vh;
|
59
53
|
overflow: auto;
|
54
|
+
scrollbar-gutter: stable;
|
60
55
|
}
|
61
56
|
|
62
57
|
.@{bk-prefix}-modal-close {
|
@@ -72,11 +67,9 @@
|
|
72
67
|
align-items: center;
|
73
68
|
justify-content: center;
|
74
69
|
border-radius: 50%;
|
75
|
-
transition: .15s;
|
70
|
+
transition: 0.15s;
|
76
71
|
|
77
72
|
&:hover {
|
78
73
|
background: #f0f1f5;
|
79
74
|
}
|
80
75
|
}
|
81
|
-
|
82
|
-
|
@@ -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);
|
@@ -185,8 +181,10 @@
|
|
185
181
|
border-radius: 2px;
|
186
182
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
187
183
|
}
|
188
|
-
.bk-modal-
|
184
|
+
.bk-modal-content {
|
185
|
+
max-height: 100vh;
|
189
186
|
overflow: auto;
|
187
|
+
scrollbar-gutter: stable;
|
190
188
|
}
|
191
189
|
.bk-modal-close {
|
192
190
|
position: absolute;
|