bkui-vue 0.0.3-beta.6 → 1.0.1
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/README.md +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +164 -170
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +310 -293
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +427 -392
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
package/lib/notify/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import "./notify.less";
|
1
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
2
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
6
7
|
/******/ // The require scope
|
7
8
|
/******/ var __webpack_require__ = {};
|
8
9
|
/******/
|
@@ -29,42 +30,42 @@ var __webpack_exports__ = {};
|
|
29
30
|
|
30
31
|
// EXPORTS
|
31
32
|
__webpack_require__.d(__webpack_exports__, {
|
32
|
-
|
33
|
+
"default": () => (/* binding */ src)
|
33
34
|
});
|
34
35
|
|
35
36
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
36
|
-
function _typeof(
|
37
|
+
function _typeof(o) {
|
37
38
|
"@babel/helpers - typeof";
|
38
39
|
|
39
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
40
|
-
return typeof
|
41
|
-
} : function (
|
42
|
-
return
|
43
|
-
}, _typeof(
|
40
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
41
|
+
return typeof o;
|
42
|
+
} : function (o) {
|
43
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
44
|
+
}, _typeof(o);
|
44
45
|
}
|
45
46
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
46
47
|
|
47
|
-
function
|
48
|
-
if (
|
49
|
-
var
|
50
|
-
if (
|
51
|
-
var
|
52
|
-
if (
|
48
|
+
function toPrimitive(t, r) {
|
49
|
+
if ("object" != _typeof(t) || !t) return t;
|
50
|
+
var e = t[Symbol.toPrimitive];
|
51
|
+
if (void 0 !== e) {
|
52
|
+
var i = e.call(t, r || "default");
|
53
|
+
if ("object" != _typeof(i)) return i;
|
53
54
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
54
55
|
}
|
55
|
-
return (
|
56
|
+
return ("string" === r ? String : Number)(t);
|
56
57
|
}
|
57
58
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
58
59
|
|
59
60
|
|
60
|
-
function
|
61
|
-
var
|
62
|
-
return _typeof(
|
61
|
+
function toPropertyKey(t) {
|
62
|
+
var i = toPrimitive(t, "string");
|
63
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
63
64
|
}
|
64
65
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
65
66
|
|
66
67
|
function _defineProperty(obj, key, value) {
|
67
|
-
key =
|
68
|
+
key = toPropertyKey(key);
|
68
69
|
if (key in obj) {
|
69
70
|
Object.defineProperty(obj, key, {
|
70
71
|
value: value,
|
@@ -82,13 +83,13 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
82
83
|
var y = x => () => x
|
83
84
|
const external_vue_namespaceObject = 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, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
84
85
|
;// CONCATENATED MODULE: external "../shared"
|
85
|
-
var
|
86
|
-
var
|
87
|
-
const
|
86
|
+
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
|
+
var shared_y = x => () => x
|
88
|
+
const shared_namespaceObject = shared_x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement });
|
88
89
|
;// CONCATENATED MODULE: ../../packages/hooks/use-message.ts
|
89
90
|
|
90
|
-
function ownKeys(
|
91
|
-
function _objectSpread(
|
91
|
+
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; }
|
92
|
+
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; }
|
92
93
|
/*
|
93
94
|
* Tencent is pleased to support the open source community by making
|
94
95
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -164,7 +165,7 @@ var Message = function Message(constructor, options) {
|
|
164
165
|
instances[position].forEach(function (item) {
|
165
166
|
if (item.props.id !== id) {
|
166
167
|
var _item$component;
|
167
|
-
(_item$component = item.component) === null || _item$component === void 0 || (_item$component = _item$component.exposed) === null || _item$component === void 0
|
168
|
+
(_item$component = item.component) === null || _item$component === void 0 || (_item$component = _item$component.exposed) === null || _item$component === void 0 || _item$component.setDetailsShow(null, false);
|
168
169
|
}
|
169
170
|
});
|
170
171
|
// setTimeout(() => {
|
@@ -172,11 +173,10 @@ var Message = function Message(constructor, options) {
|
|
172
173
|
// updateModalPosition();
|
173
174
|
// });
|
174
175
|
};
|
175
|
-
|
176
176
|
(0,external_vue_namespaceObject.render)(vm, container);
|
177
177
|
instances[position].push(vm);
|
178
178
|
var target;
|
179
|
-
if (vm.props.getContainer && (0,
|
179
|
+
if (vm.props.getContainer && (0,shared_namespaceObject.isElement)(vm.props.getContainer)) {
|
180
180
|
target = vm.props.getContainer;
|
181
181
|
} else {
|
182
182
|
target = document.body;
|
@@ -184,7 +184,7 @@ var Message = function Message(constructor, options) {
|
|
184
184
|
target.appendChild(container.firstElementChild);
|
185
185
|
};
|
186
186
|
function use_message_close(id, position, spacing, userOnClose) {
|
187
|
-
userOnClose === null || userOnClose === void 0
|
187
|
+
userOnClose === null || userOnClose === void 0 || userOnClose();
|
188
188
|
var verticalProperty = position.startsWith('top') ? 'top' : 'bottom';
|
189
189
|
var instanceIndex = -1;
|
190
190
|
instances[position].forEach(function (item, index) {
|
@@ -207,13 +207,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
207
207
|
var external_vue_types_y = x => () => x
|
208
208
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
209
209
|
;// CONCATENATED MODULE: external "../config-provider"
|
210
|
-
var
|
211
|
-
var
|
212
|
-
const
|
210
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
211
|
+
var config_provider_y = x => () => x
|
212
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
213
213
|
;// CONCATENATED MODULE: external "../icon"
|
214
|
-
var
|
215
|
-
var
|
216
|
-
const
|
214
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
215
|
+
var icon_y = x => () => x
|
216
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Info"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Info, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Warn });
|
217
217
|
;// CONCATENATED MODULE: ../../packages/notify/src/notifyConstructor.tsx
|
218
218
|
|
219
219
|
|
@@ -255,18 +255,18 @@ var NotifyThemeEnum;
|
|
255
255
|
NotifyThemeEnum["ERROR"] = "error";
|
256
256
|
})(NotifyThemeEnum || (NotifyThemeEnum = {}));
|
257
257
|
var notifyProps = {
|
258
|
-
id:
|
259
|
-
title:
|
260
|
-
message:
|
258
|
+
id: shared_namespaceObject.PropTypes.string.def(''),
|
259
|
+
title: shared_namespaceObject.PropTypes.string.def(''),
|
260
|
+
message: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func]).def(''),
|
261
261
|
theme: (0,external_vue_types_namespaceObject.toType)('notifyTheme', {}).def(NotifyThemeEnum.PRIMARY),
|
262
|
-
position:
|
263
|
-
delay:
|
264
|
-
dismissable:
|
265
|
-
offsetX:
|
266
|
-
offsetY:
|
267
|
-
spacing:
|
268
|
-
extCls:
|
269
|
-
onClose:
|
262
|
+
position: shared_namespaceObject.PropTypes.position().def('top-right'),
|
263
|
+
delay: shared_namespaceObject.PropTypes.number.def(5000),
|
264
|
+
dismissable: shared_namespaceObject.PropTypes.bool.def(true),
|
265
|
+
offsetX: shared_namespaceObject.PropTypes.number.def(100),
|
266
|
+
offsetY: shared_namespaceObject.PropTypes.number.def(30),
|
267
|
+
spacing: shared_namespaceObject.PropTypes.number.def(10),
|
268
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
269
|
+
onClose: shared_namespaceObject.PropTypes.func
|
270
270
|
};
|
271
271
|
/* harmony default export */ const notifyConstructor = ((0,external_vue_namespaceObject.defineComponent)({
|
272
272
|
name: 'Notify',
|
@@ -274,7 +274,7 @@ var notifyProps = {
|
|
274
274
|
emits: ['destroy'],
|
275
275
|
setup: function setup(props, _ref) {
|
276
276
|
var emit = _ref.emit;
|
277
|
-
var zIndex =
|
277
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getMessageNextIndex();
|
278
278
|
var horizontalClass = (0,external_vue_namespaceObject.computed)(function () {
|
279
279
|
return props.position.indexOf('right') > 1 ? 'right' : 'left';
|
280
280
|
});
|
@@ -282,10 +282,9 @@ var notifyProps = {
|
|
282
282
|
return props.position.startsWith('top') ? 'top' : 'bottom';
|
283
283
|
});
|
284
284
|
var styles = (0,external_vue_namespaceObject.computed)(function () {
|
285
|
-
|
286
|
-
return _ref2 = {}, _defineProperty(_ref2, horizontalClass.value, "".concat(props.offsetX, "px")), _defineProperty(_ref2, verticalProperty.value, "".concat(props.offsetY, "px")), _defineProperty(_ref2, "zIndex", zIndex), _ref2;
|
285
|
+
return _defineProperty(_defineProperty(_defineProperty({}, horizontalClass.value, "".concat(props.offsetX, "px")), verticalProperty.value, "".concat(props.offsetY, "px")), "zIndex", zIndex);
|
287
286
|
});
|
288
|
-
var _usePrefix = (0,
|
287
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
289
288
|
resolveClassName = _usePrefix.resolveClassName;
|
290
289
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
291
290
|
return [resolveClassName('notify'), resolveClassName("notify-".concat(props.theme)), horizontalClass.value];
|
@@ -331,10 +330,10 @@ var notifyProps = {
|
|
331
330
|
var _this = this;
|
332
331
|
var renderIcon = function renderIcon() {
|
333
332
|
var iconMap = {
|
334
|
-
primary: (0,external_vue_namespaceObject.createVNode)(
|
335
|
-
warning: (0,external_vue_namespaceObject.createVNode)(
|
336
|
-
success: (0,external_vue_namespaceObject.createVNode)(
|
337
|
-
error: (0,external_vue_namespaceObject.createVNode)(
|
333
|
+
primary: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Info, null, null),
|
334
|
+
warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, null, null),
|
335
|
+
success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, null, null),
|
336
|
+
error: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)
|
338
337
|
};
|
339
338
|
return iconMap[_this.theme];
|
340
339
|
};
|
@@ -353,7 +352,7 @@ var notifyProps = {
|
|
353
352
|
"class": "".concat(_this.resolveClassName('notify-content-header'))
|
354
353
|
}, [_this.title]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
355
354
|
"class": "".concat(_this.resolveClassName('notify-content-text'))
|
356
|
-
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(
|
355
|
+
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
357
356
|
"class": "".concat(_this.resolveClassName('notify-icon'), " ").concat(_this.resolveClassName('notify-close')),
|
358
357
|
"onClick": _this.handleClose
|
359
358
|
}, null)]), [[external_vue_namespaceObject.vShow, _this.visible]])];
|
@@ -393,5 +392,5 @@ var Notify = function Notify(options) {
|
|
393
392
|
use_message(notifyConstructor, options);
|
394
393
|
};
|
395
394
|
/* harmony default export */ const src = (Notify);
|
396
|
-
var __webpack_exports__default = __webpack_exports__
|
395
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
397
396
|
export { __webpack_exports__default as default };
|
@@ -121,8 +121,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
121
121
|
extCls: string;
|
122
122
|
theme: "error" | "success" | "warning" | "primary";
|
123
123
|
id: string;
|
124
|
-
message: any;
|
125
124
|
position: string;
|
125
|
+
message: any;
|
126
126
|
onClose: (...args: any[]) => any;
|
127
127
|
delay: number;
|
128
128
|
offsetX: number;
|