bkui-vue 0.0.1-beta.391 → 0.0.1-beta.392
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/lib/affix/index.js +128 -60
- package/lib/alert/index.js +124 -56
- package/lib/animate-number/index.js +106 -42
- package/lib/backtop/index.js +133 -61
- package/lib/badge/index.js +114 -50
- package/lib/breadcrumb/index.js +133 -67
- package/lib/button/index.js +147 -68
- package/lib/card/index.js +154 -69
- package/lib/cascader/index.js +242 -168
- package/lib/checkbox/index.js +139 -77
- package/lib/code-diff/index.js +121 -79
- package/lib/collapse/index.js +150 -84
- package/lib/color-picker/index.js +245 -193
- package/lib/components.js +671 -434
- package/lib/container/index.js +125 -64
- package/lib/date-picker/index.js +563 -462
- package/lib/dialog/index.js +198 -108
- package/lib/directives/index.js +138 -92
- package/lib/dist.index.js +133 -48
- package/lib/divider/index.js +118 -50
- package/lib/dropdown/index.js +155 -73
- package/lib/exception/index.js +145 -97
- package/lib/fixed-navbar/index.js +107 -43
- package/lib/form/index.js +193 -107
- package/lib/icon/angle-double-down-line.js +90 -30
- package/lib/icon/angle-double-left-line.js +90 -30
- package/lib/icon/angle-double-left.js +90 -30
- package/lib/icon/angle-double-right-line.js +90 -30
- package/lib/icon/angle-double-right.js +90 -30
- package/lib/icon/angle-double-up-line.js +90 -30
- package/lib/icon/angle-down-fill.js +90 -30
- package/lib/icon/angle-down-line.js +90 -30
- package/lib/icon/angle-down.js +90 -30
- package/lib/icon/angle-left.js +90 -30
- package/lib/icon/angle-right.js +90 -30
- package/lib/icon/angle-up-fill.js +90 -30
- package/lib/icon/angle-up.js +90 -30
- package/lib/icon/archive-fill.js +90 -30
- package/lib/icon/arrows-left.js +90 -30
- package/lib/icon/arrows-right.js +90 -30
- package/lib/icon/audio-fill.js +90 -30
- package/lib/icon/bk.js +90 -30
- package/lib/icon/circle.js +90 -30
- package/lib/icon/close-line.js +90 -30
- package/lib/icon/close.js +90 -30
- package/lib/icon/code.js +90 -30
- package/lib/icon/cog-shape.js +90 -30
- package/lib/icon/collapse-left.js +90 -30
- package/lib/icon/copy.js +90 -30
- package/lib/icon/data-shape.js +90 -30
- package/lib/icon/del.js +90 -30
- package/lib/icon/doc-fill.js +90 -30
- package/lib/icon/done.js +90 -30
- package/lib/icon/down-shape.js +90 -30
- package/lib/icon/down-small.js +90 -30
- package/lib/icon/edit-line.js +90 -30
- package/lib/icon/ellipsis.js +90 -30
- package/lib/icon/enlarge-line.js +90 -30
- package/lib/icon/error.js +90 -30
- package/lib/icon/excel-fill.js +90 -30
- package/lib/icon/exclamation-circle-shape.js +90 -30
- package/lib/icon/eye.js +90 -30
- package/lib/icon/filliscreen-line.js +90 -30
- package/lib/icon/folder-open.js +90 -30
- package/lib/icon/folder-shape-open.js +90 -30
- package/lib/icon/folder-shape.js +90 -30
- package/lib/icon/folder.js +90 -30
- package/lib/icon/funnel.js +90 -30
- package/lib/icon/help-document-fill.js +90 -30
- package/lib/icon/help-fill.js +90 -30
- package/lib/icon/help.js +90 -30
- package/lib/icon/image-fill.js +90 -30
- package/lib/icon/img-placehoulder.js +88 -52
- package/lib/icon/index.js +255 -267
- package/lib/icon/info-line.js +88 -52
- package/lib/icon/info.js +88 -52
- package/lib/icon/left-shape.js +88 -52
- package/lib/icon/left-turn-line.js +88 -52
- package/lib/icon/narrow-line.js +88 -52
- package/lib/icon/original.js +88 -52
- package/lib/icon/pdf-fill.js +88 -52
- package/lib/icon/play-shape.js +88 -52
- package/lib/icon/plus.js +88 -52
- package/lib/icon/ppt-fill.js +88 -52
- package/lib/icon/qq.js +88 -52
- package/lib/icon/right-shape.js +88 -52
- package/lib/icon/right-turn-line.js +88 -52
- package/lib/icon/search.js +88 -52
- package/lib/icon/share.js +88 -52
- package/lib/icon/spinner.js +88 -52
- package/lib/icon/success.js +88 -52
- package/lib/icon/switcher-loading.js +88 -52
- package/lib/icon/text-file.js +88 -52
- package/lib/icon/text-fill.js +88 -52
- package/lib/icon/transfer.js +88 -52
- package/lib/icon/tree-application-shape.js +88 -52
- package/lib/icon/unfull-screen.js +88 -52
- package/lib/icon/unvisible.js +88 -52
- package/lib/icon/up-shape.js +88 -52
- package/lib/icon/upload.js +88 -52
- package/lib/icon/video-fill.js +88 -52
- package/lib/icon/warn.js +88 -52
- package/lib/icon/weixin.js +88 -52
- package/lib/image/index.js +213 -164
- package/lib/index.js +134 -50
- package/lib/info-box/index.js +206 -152
- package/lib/input/index.js +167 -99
- package/lib/link/index.js +115 -47
- package/lib/loading/index.js +127 -67
- package/lib/menu/index.js +156 -92
- package/lib/message/index.js +148 -76
- package/lib/modal/index.js +151 -85
- package/lib/navigation/index.js +134 -66
- package/lib/notify/index.js +153 -81
- package/lib/overflow-title/index.js +128 -92
- package/lib/pagination/index.js +220 -131
- package/lib/plugin-popover/index.js +190 -143
- package/lib/plugins/index.js +100 -33
- package/lib/popover/index.js +193 -148
- package/lib/popover2/index.js +99 -35
- package/lib/preset.js +104 -37
- package/lib/process/index.js +134 -92
- package/lib/progress/index.js +127 -63
- package/lib/radio/index.js +142 -81
- package/lib/rate/index.js +127 -63
- package/lib/resize-layout/index.js +147 -79
- package/lib/search-select/index.js +220 -168
- package/lib/select/index.js +394 -315
- package/lib/shared/index.js +203 -228
- package/lib/sideslider/index.js +137 -88
- package/lib/slider/index.js +196 -147
- package/lib/steps/index.js +152 -105
- package/lib/swiper/index.js +126 -62
- package/lib/switcher/index.js +133 -65
- package/lib/tab/index.js +188 -118
- package/lib/table/index.js +572 -457
- package/lib/table-column/index.js +197 -129
- package/lib/tag/index.js +130 -58
- package/lib/tag-input/index.js +277 -175
- package/lib/time-picker/index.js +111 -40
- package/lib/timeline/index.js +114 -50
- package/lib/transfer/index.js +174 -89
- package/lib/tree/index.js +235 -158
- package/lib/upload/index.js +227 -173
- package/lib/virtual-render/index.js +154 -86
- package/package.json +1 -1
package/lib/info-box/index.js
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory(require("../shared"), require("vue"), require("../button"), require("../icon"), require("../modal"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["../shared", "vue", "../button", "../icon", "../modal"], factory);
|
6
|
+
else {
|
7
|
+
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../button"), require("../icon"), require("../modal")) : factory(root["../shared"], root["vue"], root["../button"], root["../icon"], root["../modal"]);
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
+
}
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__6870__, __WEBPACK_EXTERNAL_MODULE__8014__) => {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ var __webpack_modules__ = ({
|
7
13
|
|
8
14
|
/***/ 7162:
|
9
15
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
@@ -772,78 +778,130 @@ try {
|
|
772
778
|
}
|
773
779
|
|
774
780
|
|
781
|
+
/***/ }),
|
782
|
+
|
783
|
+
/***/ 4976:
|
784
|
+
/***/ ((module) => {
|
785
|
+
|
786
|
+
"use strict";
|
787
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
|
788
|
+
|
789
|
+
/***/ }),
|
790
|
+
|
791
|
+
/***/ 6870:
|
792
|
+
/***/ ((module) => {
|
793
|
+
|
794
|
+
"use strict";
|
795
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
|
796
|
+
|
797
|
+
/***/ }),
|
798
|
+
|
799
|
+
/***/ 8014:
|
800
|
+
/***/ ((module) => {
|
801
|
+
|
802
|
+
"use strict";
|
803
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8014__;
|
804
|
+
|
805
|
+
/***/ }),
|
806
|
+
|
807
|
+
/***/ 4212:
|
808
|
+
/***/ ((module) => {
|
809
|
+
|
810
|
+
"use strict";
|
811
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
812
|
+
|
813
|
+
/***/ }),
|
814
|
+
|
815
|
+
/***/ 748:
|
816
|
+
/***/ ((module) => {
|
817
|
+
|
818
|
+
"use strict";
|
819
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
820
|
+
|
775
821
|
/***/ })
|
776
822
|
|
777
|
-
/******/
|
823
|
+
/******/ });
|
778
824
|
/************************************************************************/
|
779
|
-
/******/
|
780
|
-
/******/
|
781
|
-
/******/
|
782
|
-
/******/
|
783
|
-
/******/
|
784
|
-
/******/
|
785
|
-
/******/
|
786
|
-
/******/
|
787
|
-
/******/
|
825
|
+
/******/ // The module cache
|
826
|
+
/******/ var __webpack_module_cache__ = {};
|
827
|
+
/******/
|
828
|
+
/******/ // The require function
|
829
|
+
/******/ function __webpack_require__(moduleId) {
|
830
|
+
/******/ // Check if module is in cache
|
831
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
832
|
+
/******/ if (cachedModule !== undefined) {
|
833
|
+
/******/ return cachedModule.exports;
|
834
|
+
/******/ }
|
835
|
+
/******/ // Create a new module (and put it into the cache)
|
836
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
837
|
+
/******/ // no module.id needed
|
838
|
+
/******/ // no module.loaded needed
|
839
|
+
/******/ exports: {}
|
840
|
+
/******/ };
|
841
|
+
/******/
|
842
|
+
/******/ // Execute the module function
|
843
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
844
|
+
/******/
|
845
|
+
/******/ // Return the exports of the module
|
846
|
+
/******/ return module.exports;
|
788
847
|
/******/ }
|
789
|
-
/******/
|
790
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
791
|
-
/******/ // no module.id needed
|
792
|
-
/******/ // no module.loaded needed
|
793
|
-
/******/ exports: {}
|
794
|
-
/******/ };
|
795
|
-
/******/
|
796
|
-
/******/ // Execute the module function
|
797
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
798
|
-
/******/
|
799
|
-
/******/ // Return the exports of the module
|
800
|
-
/******/ return module.exports;
|
801
|
-
/******/ }
|
802
|
-
/******/
|
848
|
+
/******/
|
803
849
|
/************************************************************************/
|
804
|
-
/******/
|
805
|
-
/******/
|
806
|
-
/******/
|
807
|
-
/******/
|
808
|
-
/******/
|
809
|
-
/******/
|
810
|
-
/******/
|
811
|
-
/******/
|
812
|
-
/******/
|
813
|
-
/******/
|
814
|
-
/******/
|
815
|
-
/******/
|
816
|
-
/******/
|
817
|
-
/******/
|
818
|
-
/******/
|
819
|
-
/******/
|
820
|
-
/******/
|
821
|
-
/******/
|
822
|
-
/******/
|
850
|
+
/******/ /* webpack/runtime/compat get default export */
|
851
|
+
/******/ (() => {
|
852
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
853
|
+
/******/ __webpack_require__.n = (module) => {
|
854
|
+
/******/ var getter = module && module.__esModule ?
|
855
|
+
/******/ () => (module['default']) :
|
856
|
+
/******/ () => (module);
|
857
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
858
|
+
/******/ return getter;
|
859
|
+
/******/ };
|
860
|
+
/******/ })();
|
861
|
+
/******/
|
862
|
+
/******/ /* webpack/runtime/define property getters */
|
863
|
+
/******/ (() => {
|
864
|
+
/******/ // define getter functions for harmony exports
|
865
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
866
|
+
/******/ for(var key in definition) {
|
867
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
868
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
869
|
+
/******/ }
|
823
870
|
/******/ }
|
824
|
-
/******/ }
|
825
|
-
/******/ };
|
826
|
-
/******/
|
827
|
-
/******/
|
828
|
-
/******/
|
829
|
-
/******/ (
|
830
|
-
/******/
|
831
|
-
/******/
|
832
|
-
/******/
|
871
|
+
/******/ };
|
872
|
+
/******/ })();
|
873
|
+
/******/
|
874
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
875
|
+
/******/ (() => {
|
876
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
877
|
+
/******/ })();
|
878
|
+
/******/
|
879
|
+
/******/ /* webpack/runtime/make namespace object */
|
880
|
+
/******/ (() => {
|
881
|
+
/******/ // define __esModule on exports
|
882
|
+
/******/ __webpack_require__.r = (exports) => {
|
883
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
884
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
885
|
+
/******/ }
|
886
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
887
|
+
/******/ };
|
888
|
+
/******/ })();
|
889
|
+
/******/
|
833
890
|
/************************************************************************/
|
834
891
|
var __webpack_exports__ = {};
|
835
|
-
// This entry need to be wrapped in an IIFE because it need to be
|
892
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
836
893
|
(() => {
|
894
|
+
"use strict";
|
895
|
+
// ESM COMPAT FLAG
|
896
|
+
__webpack_require__.r(__webpack_exports__);
|
837
897
|
|
838
898
|
// EXPORTS
|
839
899
|
__webpack_require__.d(__webpack_exports__, {
|
840
|
-
"
|
900
|
+
"default": () => (/* binding */ src)
|
841
901
|
});
|
842
902
|
|
843
|
-
|
844
|
-
var
|
845
|
-
var y = x => () => x
|
846
|
-
const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
903
|
+
// EXTERNAL MODULE: external "../shared"
|
904
|
+
var external_shared_ = __webpack_require__(4212);
|
847
905
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
848
906
|
function _typeof(obj) {
|
849
907
|
"@babel/helpers - typeof";
|
@@ -1107,22 +1165,16 @@ function __classPrivateFieldIn(state, receiver) {
|
|
1107
1165
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
1108
1166
|
}
|
1109
1167
|
|
1110
|
-
|
1111
|
-
var
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
var
|
1117
|
-
|
1118
|
-
|
1119
|
-
var
|
1120
|
-
var external_icon_y = x => () => x
|
1121
|
-
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
|
1122
|
-
;// CONCATENATED MODULE: external "../modal"
|
1123
|
-
var external_modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1124
|
-
var external_modal_y = x => () => x
|
1125
|
-
const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__.propsMixin });
|
1168
|
+
// EXTERNAL MODULE: external "vue"
|
1169
|
+
var external_vue_ = __webpack_require__(748);
|
1170
|
+
// EXTERNAL MODULE: external "../button"
|
1171
|
+
var external_button_ = __webpack_require__(4976);
|
1172
|
+
var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
|
1173
|
+
// EXTERNAL MODULE: external "../icon"
|
1174
|
+
var external_icon_ = __webpack_require__(6870);
|
1175
|
+
// EXTERNAL MODULE: external "../modal"
|
1176
|
+
var external_modal_ = __webpack_require__(8014);
|
1177
|
+
var external_modal_default = /*#__PURE__*/__webpack_require__.n(external_modal_);
|
1126
1178
|
;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
|
1127
1179
|
/*
|
1128
1180
|
* Tencent is pleased to support the open source community by making
|
@@ -1151,32 +1203,32 @@ const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __W
|
|
1151
1203
|
*/
|
1152
1204
|
|
1153
1205
|
|
1154
|
-
var props = Object.assign(Object.assign({},
|
1155
|
-
width:
|
1156
|
-
height:
|
1206
|
+
var props = Object.assign(Object.assign({}, external_modal_.propsMixin), {
|
1207
|
+
width: external_shared_.PropTypes.oneOfType([String, Number]).def(''),
|
1208
|
+
height: external_shared_.PropTypes.oneOfType([String, Number]).def(''),
|
1157
1209
|
// 确认按钮文字
|
1158
|
-
confirmText:
|
1210
|
+
confirmText: external_shared_.PropTypes.string.def('确定'),
|
1159
1211
|
// 取消按钮文字
|
1160
|
-
cancelText:
|
1212
|
+
cancelText: external_shared_.PropTypes.string.def('取消'),
|
1161
1213
|
// 步骤按钮文字
|
1162
|
-
prevText:
|
1163
|
-
nextText:
|
1214
|
+
prevText: external_shared_.PropTypes.string.def('上一步'),
|
1215
|
+
nextText: external_shared_.PropTypes.string.def('下一步'),
|
1164
1216
|
// 当前步骤
|
1165
|
-
current:
|
1217
|
+
current: external_shared_.PropTypes.number.def(1),
|
1166
1218
|
// 总步数
|
1167
|
-
totalStep:
|
1219
|
+
totalStep: external_shared_.PropTypes.number,
|
1168
1220
|
// 弹框的标题
|
1169
|
-
title:
|
1221
|
+
title: external_shared_.PropTypes.string.def('title'),
|
1170
1222
|
// 显示 header 的位置
|
1171
|
-
headerAlign: (0,
|
1223
|
+
headerAlign: (0,external_shared_.alignType)().def(external_shared_.AlignEnum.LEFT),
|
1172
1224
|
// 显示 footer 的位置
|
1173
|
-
footerAlign: (0,
|
1225
|
+
footerAlign: (0,external_shared_.alignType)().def(external_shared_.AlignEnum.RIGHT),
|
1174
1226
|
// 颜色 按钮类型
|
1175
|
-
theme:
|
1227
|
+
theme: external_shared_.PropTypes.theme().def(external_shared_.ThemeEnum.PRIMARY),
|
1176
1228
|
// 对话框类型
|
1177
|
-
dialogType: (0,
|
1229
|
+
dialogType: (0,external_shared_.dialogTypeUnion)(),
|
1178
1230
|
// 按钮loading
|
1179
|
-
isLoading:
|
1231
|
+
isLoading: external_shared_.PropTypes.bool.def(false)
|
1180
1232
|
});
|
1181
1233
|
/* harmony default export */ const src_props = (props);
|
1182
1234
|
;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
|
@@ -1215,20 +1267,20 @@ var props = Object.assign(Object.assign({}, external_modal_namespaceObject.props
|
|
1215
1267
|
|
1216
1268
|
|
1217
1269
|
function _isSlot(s) {
|
1218
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,
|
1270
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_.isVNode)(s);
|
1219
1271
|
}
|
1220
1272
|
|
1221
|
-
/* harmony default export */ const src_dialog = ((0,
|
1273
|
+
/* harmony default export */ const src_dialog = ((0,external_vue_.defineComponent)({
|
1222
1274
|
name: 'Dialog',
|
1223
1275
|
components: {
|
1224
|
-
BkModal:
|
1225
|
-
BkButton:
|
1276
|
+
BkModal: (external_modal_default()),
|
1277
|
+
BkButton: (external_button_default())
|
1226
1278
|
},
|
1227
1279
|
props: src_props,
|
1228
1280
|
emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
|
1229
1281
|
setup: function setup(props, _ref) {
|
1230
1282
|
var emit = _ref.emit;
|
1231
|
-
var data = (0,
|
1283
|
+
var data = (0,external_vue_.reactive)({
|
1232
1284
|
positionX: 0,
|
1233
1285
|
positionY: 0,
|
1234
1286
|
moveStyle: {
|
@@ -1236,18 +1288,18 @@ function _isSlot(s) {
|
|
1236
1288
|
left: ''
|
1237
1289
|
}
|
1238
1290
|
});
|
1239
|
-
var isModalShow = (0,
|
1240
|
-
(0,
|
1291
|
+
var isModalShow = (0,external_vue_.ref)(props.isShow);
|
1292
|
+
(0,external_vue_.onMounted)(function () {
|
1241
1293
|
if (props.escClose) {
|
1242
1294
|
addEventListener('keydown', escCloseHandler);
|
1243
1295
|
}
|
1244
1296
|
});
|
1245
|
-
(0,
|
1297
|
+
(0,external_vue_.onBeforeUnmount)(function () {
|
1246
1298
|
if (props.escClose) {
|
1247
1299
|
removeEventListener('keydown', escCloseHandler);
|
1248
1300
|
}
|
1249
1301
|
});
|
1250
|
-
(0,
|
1302
|
+
(0,external_vue_.watch)(function () {
|
1251
1303
|
return props.isShow;
|
1252
1304
|
}, function (val) {
|
1253
1305
|
if (!val) {
|
@@ -1278,7 +1330,7 @@ function _isSlot(s) {
|
|
1278
1330
|
emit('confirm'); // isModalShow.value = false; 影响异步关闭
|
1279
1331
|
};
|
1280
1332
|
|
1281
|
-
var hasFooter = (0,
|
1333
|
+
var hasFooter = (0,external_vue_.computed)(function () {
|
1282
1334
|
return ['process', 'operation', 'confirm'].includes(props.dialogType);
|
1283
1335
|
}); // 按 esc 关闭弹框
|
1284
1336
|
|
@@ -1371,17 +1423,17 @@ function _isSlot(s) {
|
|
1371
1423
|
|
1372
1424
|
var renderIcon = function renderIcon() {
|
1373
1425
|
var iconMap = {
|
1374
|
-
loading: (0,
|
1375
|
-
"class": [(0,
|
1426
|
+
loading: (0,external_vue_.createVNode)(external_icon_.Spinner, {
|
1427
|
+
"class": [(0,external_shared_.resolveClassName)('info-icon'), 'primary']
|
1376
1428
|
}, null),
|
1377
|
-
warning: (0,
|
1378
|
-
"class": [(0,
|
1429
|
+
warning: (0,external_vue_.createVNode)(external_icon_.Warn, {
|
1430
|
+
"class": [(0,external_shared_.resolveClassName)('info-icon'), 'warning']
|
1379
1431
|
}, null),
|
1380
|
-
success: (0,
|
1381
|
-
"class": [(0,
|
1432
|
+
success: (0,external_vue_.createVNode)(external_icon_.Success, {
|
1433
|
+
"class": [(0,external_shared_.resolveClassName)('info-icon'), 'success']
|
1382
1434
|
}, null),
|
1383
|
-
danger: (0,
|
1384
|
-
"class": [(0,
|
1435
|
+
danger: (0,external_vue_.createVNode)(external_icon_.Close, {
|
1436
|
+
"class": [(0,external_shared_.resolveClassName)('info-icon'), 'danger']
|
1385
1437
|
}, null)
|
1386
1438
|
};
|
1387
1439
|
return iconMap[_this.infoType];
|
@@ -1391,17 +1443,17 @@ function _isSlot(s) {
|
|
1391
1443
|
header: function header() {
|
1392
1444
|
var _a, _b, _c, _d, _e, _f;
|
1393
1445
|
|
1394
|
-
return [(0,
|
1395
|
-
"class": [(0,
|
1446
|
+
return [(0,external_vue_.createVNode)("div", {
|
1447
|
+
"class": [(0,external_shared_.resolveClassName)('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
|
1396
1448
|
"onMousedown": _this.moveHandler
|
1397
|
-
}, [(_c = (_b = (_a = _this.$slots).tools) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']), (0,
|
1398
|
-
"class": (0,
|
1399
|
-
}, [(0,
|
1400
|
-
"class": (0,
|
1401
|
-
}, [_this.infoType ? renderIcon() : (0,
|
1449
|
+
}, [(_c = (_b = (_a = _this.$slots).tools) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']), (0,external_vue_.createVNode)("div", {
|
1450
|
+
"class": (0,external_shared_.resolveClassName)('dialog-header')
|
1451
|
+
}, [(0,external_vue_.createVNode)("div", {
|
1452
|
+
"class": (0,external_shared_.resolveClassName)('header-icon')
|
1453
|
+
}, [_this.infoType ? renderIcon() : (0,external_vue_.createVNode)("slot", {
|
1402
1454
|
"name": "info-icon"
|
1403
|
-
}, null)]), (0,
|
1404
|
-
"class": (0,
|
1455
|
+
}, null)]), (0,external_vue_.createVNode)("span", {
|
1456
|
+
"class": (0,external_shared_.resolveClassName)('dialog-title'),
|
1405
1457
|
"style": "text-align: ".concat(_this.headerAlign)
|
1406
1458
|
}, [(_f = (_e = (_d = _this.$slots).header) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : _this.title])])];
|
1407
1459
|
},
|
@@ -1413,24 +1465,24 @@ function _isSlot(s) {
|
|
1413
1465
|
footer: function footer() {
|
1414
1466
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
1415
1467
|
|
1416
|
-
return (0,
|
1417
|
-
"class": (0,
|
1468
|
+
return (0,external_vue_.createVNode)("div", {
|
1469
|
+
"class": (0,external_shared_.resolveClassName)('dialog-footer'),
|
1418
1470
|
"style": "text-align: ".concat(_this.footerAlign)
|
1419
|
-
}, [_this.dialogType === 'process' ? (_c = (_b = (_a = _this.$slots).footer) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,
|
1420
|
-
"class": (0,
|
1471
|
+
}, [_this.dialogType === 'process' ? (_c = (_b = (_a = _this.$slots).footer) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_.createVNode)((external_button_default()), {
|
1472
|
+
"class": (0,external_shared_.resolveClassName)('dialog-perv'),
|
1421
1473
|
"onClick": _this.handlePrevStep
|
1422
1474
|
}, {
|
1423
1475
|
"default": function _default() {
|
1424
1476
|
return [_this.prevText];
|
1425
1477
|
}
|
1426
|
-
}), _this.current === _this.totalStep ? '' : (0,
|
1427
|
-
"class": (0,
|
1478
|
+
}), _this.current === _this.totalStep ? '' : (0,external_vue_.createVNode)((external_button_default()), {
|
1479
|
+
"class": (0,external_shared_.resolveClassName)('dialog-next'),
|
1428
1480
|
"onClick": _this.handleNextStep
|
1429
1481
|
}, {
|
1430
1482
|
"default": function _default() {
|
1431
1483
|
return [_this.nextText];
|
1432
1484
|
}
|
1433
|
-
}), _this.current === _this.totalStep ? (0,
|
1485
|
+
}), _this.current === _this.totalStep ? (0,external_vue_.createVNode)((external_button_default()), {
|
1434
1486
|
"onClick": _this.handleConfirm,
|
1435
1487
|
"theme": _this.theme,
|
1436
1488
|
"loading": _this.isLoading
|
@@ -1438,15 +1490,15 @@ function _isSlot(s) {
|
|
1438
1490
|
"default": function _default() {
|
1439
1491
|
return [_this.confirmText];
|
1440
1492
|
}
|
1441
|
-
}) : '', (0,
|
1442
|
-
"class": (0,
|
1493
|
+
}) : '', (0,external_vue_.createVNode)((external_button_default()), {
|
1494
|
+
"class": (0,external_shared_.resolveClassName)('dialog-cancel'),
|
1443
1495
|
"onClick": _this.handleClose,
|
1444
1496
|
"disabled": _this.isLoading
|
1445
1497
|
}, {
|
1446
1498
|
"default": function _default() {
|
1447
1499
|
return [_this.cancelText];
|
1448
1500
|
}
|
1449
|
-
})]) : '', _this.dialogType === 'operation' ? (_f = (_e = (_d = _this.$slots).footer) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : (0,
|
1501
|
+
})]) : '', _this.dialogType === 'operation' ? (_f = (_e = (_d = _this.$slots).footer) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(0,external_vue_.createVNode)((external_button_default()), {
|
1450
1502
|
"onClick": _this.handleConfirm,
|
1451
1503
|
"theme": _this.theme,
|
1452
1504
|
"loading": _this.isLoading
|
@@ -1454,15 +1506,15 @@ function _isSlot(s) {
|
|
1454
1506
|
"default": function _default() {
|
1455
1507
|
return [_this.confirmText];
|
1456
1508
|
}
|
1457
|
-
}), (0,
|
1458
|
-
"class": (0,
|
1509
|
+
}), (0,external_vue_.createVNode)((external_button_default()), {
|
1510
|
+
"class": (0,external_shared_.resolveClassName)('dialog-cancel'),
|
1459
1511
|
"onClick": _this.handleClose,
|
1460
1512
|
"disabled": _this.isLoading
|
1461
1513
|
}, {
|
1462
1514
|
"default": function _default() {
|
1463
1515
|
return [_this.cancelText];
|
1464
1516
|
}
|
1465
|
-
})]) : '', _this.dialogType === 'confirm' ? (_j = (_h = (_g = _this.$slots).footer) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : (0,
|
1517
|
+
})]) : '', _this.dialogType === 'confirm' ? (_j = (_h = (_g = _this.$slots).footer) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(0,external_vue_.createVNode)((external_button_default()), {
|
1466
1518
|
"onClick": _this.handleConfirm,
|
1467
1519
|
"theme": _this.theme,
|
1468
1520
|
"loading": _this.isLoading
|
@@ -1473,14 +1525,14 @@ function _isSlot(s) {
|
|
1473
1525
|
})]) : '']);
|
1474
1526
|
},
|
1475
1527
|
close: function close() {
|
1476
|
-
return (0,
|
1477
|
-
"class": (0,
|
1528
|
+
return (0,external_vue_.createVNode)("span", {
|
1529
|
+
"class": (0,external_shared_.resolveClassName)('dialog-close'),
|
1478
1530
|
"onClick": _this.handleClose
|
1479
|
-
}, [(0,
|
1531
|
+
}, [(0,external_vue_.createTextVNode)("+")]);
|
1480
1532
|
}
|
1481
1533
|
};
|
1482
|
-
var className = "".concat((0,
|
1483
|
-
return (0,
|
1534
|
+
var className = "".concat((0,external_shared_.resolveClassName)('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
|
1535
|
+
return (0,external_vue_.createVNode)((external_modal_default()), (0,external_vue_.mergeProps)(this.$props, {
|
1484
1536
|
"class": className,
|
1485
1537
|
"onClose": this.handleClose,
|
1486
1538
|
"isShow": this.isModalShow,
|
@@ -1554,15 +1606,15 @@ function _isSlot(s) {
|
|
1554
1606
|
|
1555
1607
|
var InfoBox = function InfoBox(config) {
|
1556
1608
|
var container = document.createElement('div');
|
1557
|
-
var isShow = (0,
|
1558
|
-
var modalFuncProps = (0,
|
1559
|
-
var dialog = (0,
|
1609
|
+
var isShow = (0,external_vue_.ref)(false);
|
1610
|
+
var modalFuncProps = (0,external_vue_.shallowRef)(config);
|
1611
|
+
var dialog = (0,external_vue_.defineComponent)({
|
1560
1612
|
name: 'DialogConfirm',
|
1561
1613
|
setup: function setup(_props, _ref) {
|
1562
1614
|
var _this = this;
|
1563
1615
|
|
1564
1616
|
var expose = _ref.expose;
|
1565
|
-
(0,
|
1617
|
+
(0,external_vue_.onMounted)(function () {
|
1566
1618
|
var dom = document.activeElement || document.body;
|
1567
1619
|
dom.blur();
|
1568
1620
|
|
@@ -1656,8 +1708,8 @@ var InfoBox = function InfoBox(config) {
|
|
1656
1708
|
}
|
1657
1709
|
|
1658
1710
|
if (children.length) {
|
1659
|
-
subTitleBox.push((0,
|
1660
|
-
"class": (0,
|
1711
|
+
subTitleBox.push((0,external_vue_.h)('div', {
|
1712
|
+
"class": (0,external_shared_.resolveClassName)('info-sub-title'),
|
1661
1713
|
style: "text-Align:".concat(modalFuncProps.value.contentAlign || 'center')
|
1662
1714
|
}, children));
|
1663
1715
|
}
|
@@ -1666,8 +1718,8 @@ var InfoBox = function InfoBox(config) {
|
|
1666
1718
|
};
|
1667
1719
|
|
1668
1720
|
return function () {
|
1669
|
-
return (0,
|
1670
|
-
"class": (0,
|
1721
|
+
return (0,external_vue_.createVNode)(src_dialog, Object.assign(Object.assign({
|
1722
|
+
"class": (0,external_shared_.resolveClassName)('info-wrapper'),
|
1671
1723
|
headerAlign: 'center',
|
1672
1724
|
footerAlign: 'center'
|
1673
1725
|
}, modalFuncProps.value), {
|
@@ -1678,7 +1730,7 @@ var InfoBox = function InfoBox(config) {
|
|
1678
1730
|
};
|
1679
1731
|
}
|
1680
1732
|
});
|
1681
|
-
var app = (0,
|
1733
|
+
var app = (0,external_vue_.createApp)(dialog).mount(container);
|
1682
1734
|
var instance = {
|
1683
1735
|
show: function show() {
|
1684
1736
|
isShow.value = true;
|
@@ -1722,9 +1774,11 @@ var InfoBox = function InfoBox(config) {
|
|
1722
1774
|
*/
|
1723
1775
|
|
1724
1776
|
|
1725
|
-
var BkInfoBox = (0,
|
1777
|
+
var BkInfoBox = (0,external_shared_.withInstall)(info_box);
|
1726
1778
|
/* harmony default export */ const src = (BkInfoBox);
|
1727
1779
|
})();
|
1728
1780
|
|
1729
|
-
|
1730
|
-
|
1781
|
+
/******/ return __webpack_exports__;
|
1782
|
+
/******/ })()
|
1783
|
+
;
|
1784
|
+
});
|