bkui-vue 1.0.3-beta.27 → 1.0.3-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.umd.js +1 -1
- package/lib/affix/index.js +15 -13
- package/lib/alert/index.js +24 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +22 -20
- package/lib/badge/index.js +21 -19
- package/lib/breadcrumb/index.js +26 -24
- package/lib/button/index.js +37 -28
- package/lib/card/index.js +43 -35
- package/lib/cascader/index.js +100 -80
- package/lib/checkbox/index.js +34 -32
- package/lib/code-diff/index.js +14 -12
- package/lib/collapse/index.js +41 -39
- package/lib/collapse-transition/index.js +9 -8
- package/lib/color-picker/index.js +50 -48
- package/lib/components.js +60 -505
- package/lib/config-provider/index.js +9 -8
- package/lib/container/index.js +21 -19
- package/lib/date-picker/index.js +73 -65
- package/lib/dialog/index.js +63 -49
- package/lib/directives/index.js +13 -12
- package/lib/dist.index.js +5 -62
- package/lib/divider/index.js +15 -13
- package/lib/dropdown/index.js +32 -24
- package/lib/exception/index.js +13 -11
- package/lib/fixed-navbar/index.js +15 -13
- package/lib/form/index.js +50 -48
- package/lib/hooks.js +1 -48
- package/lib/icon/index.js +1 -0
- package/lib/image/index.js +39 -38
- package/lib/index.js +7 -72
- package/lib/info-box/index.js +21 -13
- package/lib/input/index.js +61 -59
- package/lib/link/index.js +15 -13
- package/lib/loading/index.js +19 -17
- package/lib/locale/index.js +1 -0
- package/lib/menu/index.js +15 -13
- package/lib/message/index.js +40 -38
- package/lib/modal/index.js +43 -41
- package/lib/navigation/index.js +16 -14
- package/lib/notify/index.js +33 -31
- package/lib/overflow-title/index.js +22 -14
- package/lib/pagination/index.js +67 -51
- package/lib/plugin-popover/index.js +54 -53
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.js +42 -28
- package/lib/popover/index.js +54 -52
- package/lib/popover2/index.js +4 -3
- package/lib/preset.js +18 -64
- package/lib/process/index.js +27 -26
- package/lib/progress/index.js +28 -26
- package/lib/radio/index.js +34 -32
- package/lib/rate/index.js +24 -22
- package/lib/resize-layout/index.js +27 -25
- package/lib/search-select/index.js +68 -49
- package/lib/select/index.js +168 -129
- package/lib/shared/index.js +1 -0
- package/lib/sideslider/index.js +22 -14
- package/lib/slider/index.js +36 -22
- package/lib/steps/index.js +30 -28
- package/lib/swiper/index.js +16 -14
- package/lib/switcher/index.js +31 -29
- package/lib/tab/index.js +46 -44
- package/lib/table/index.js +207 -148
- package/lib/table-column/index.js +43 -42
- package/lib/tag/index.js +21 -19
- package/lib/tag-input/index.js +80 -65
- package/lib/time-picker/index.js +9 -7
- package/lib/timeline/index.js +13 -12
- package/lib/transfer/index.js +51 -36
- package/lib/tree/index.js +92 -72
- package/lib/upload/index.js +63 -48
- package/lib/virtual-render/index.js +35 -33
- package/package.json +1 -1
package/lib/menu/index.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./menu.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
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__3efece53__ from "../icon/";
|
5
7
|
/******/ // The require scope
|
6
8
|
/******/ var __webpack_require__ = {};
|
7
9
|
/******/
|
@@ -38,7 +40,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
38
40
|
;// CONCATENATED MODULE: external "../shared"
|
39
41
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
42
|
var y = x => () => x
|
41
|
-
const
|
43
|
+
const shared_namespaceObject = x({ ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
42
44
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
43
45
|
function _typeof(o) {
|
44
46
|
"@babel/helpers - typeof";
|
@@ -126,9 +128,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
126
128
|
var external_vue_y = x => () => x
|
127
129
|
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, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["watchEffect"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
128
130
|
;// CONCATENATED MODULE: external "../config-provider"
|
129
|
-
var
|
130
|
-
var
|
131
|
-
const
|
131
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
132
|
+
var config_provider_y = x => () => x
|
133
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
132
134
|
;// CONCATENATED MODULE: ../../packages/menu/src/utils.ts
|
133
135
|
|
134
136
|
/* eslint-disable no-param-reassign */
|
@@ -408,7 +410,7 @@ var menuProps = {
|
|
408
410
|
openedKeys: openedKeys,
|
409
411
|
menuStore: menuStore
|
410
412
|
});
|
411
|
-
var _usePrefix = (0,
|
413
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
412
414
|
resolveClassName = _usePrefix.resolveClassName;
|
413
415
|
return function () {
|
414
416
|
var _slots$default;
|
@@ -457,7 +459,7 @@ var menuProps = {
|
|
457
459
|
},
|
458
460
|
setup: function setup(props, _ref) {
|
459
461
|
var slots = _ref.slots;
|
460
|
-
var _usePrefix = (0,
|
462
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
461
463
|
resolveClassName = _usePrefix.resolveClassName;
|
462
464
|
return function () {
|
463
465
|
var _slots$default;
|
@@ -543,7 +545,7 @@ var menuProps = {
|
|
543
545
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
544
546
|
return unregisterMenuInfo(key);
|
545
547
|
});
|
546
|
-
var _usePrefix = (0,
|
548
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
547
549
|
resolveClassName = _usePrefix.resolveClassName;
|
548
550
|
return function () {
|
549
551
|
var _slots$icon, _slots$default;
|
@@ -563,7 +565,7 @@ var menuProps = {
|
|
563
565
|
;// CONCATENATED MODULE: external "../icon/"
|
564
566
|
var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
565
567
|
var _y = x => () => x
|
566
|
-
const _namespaceObject = _x({ ["AngleDown"]: () =>
|
568
|
+
const _namespaceObject = _x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleDown, ["TreeApplicationShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.TreeApplicationShape });
|
567
569
|
;// CONCATENATED MODULE: ../../packages/menu/src/submenu.tsx
|
568
570
|
|
569
571
|
|
@@ -645,7 +647,7 @@ var subMenuProps = {
|
|
645
647
|
handleOpenChange(key, !isShow.value);
|
646
648
|
emit('collapse', !isShow.value, instance);
|
647
649
|
};
|
648
|
-
var _usePrefix = (0,
|
650
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
649
651
|
resolveClassName = _usePrefix.resolveClassName;
|
650
652
|
return function () {
|
651
653
|
var _slots$icon, _slots$default;
|
@@ -709,7 +711,7 @@ var subMenuProps = {
|
|
709
711
|
|
710
712
|
|
711
713
|
|
712
|
-
var BkMenu = (0,
|
714
|
+
var BkMenu = (0,shared_namespaceObject.withInstallProps)(menu, {
|
713
715
|
Item: menu_item,
|
714
716
|
Submenu: submenu,
|
715
717
|
Group: menu_group
|
package/lib/message/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./message.less";
|
1
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
2
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
import * as
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
6
8
|
/******/ var __webpack_modules__ = ({
|
7
9
|
|
8
10
|
/***/ 7647:
|
@@ -1020,9 +1022,9 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1020
1022
|
var y = x => () => x
|
1021
1023
|
const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["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 });
|
1022
1024
|
;// CONCATENATED MODULE: external "../shared"
|
1023
|
-
var
|
1024
|
-
var
|
1025
|
-
const
|
1025
|
+
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1026
|
+
var shared_y = x => () => x
|
1027
|
+
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 });
|
1026
1028
|
;// CONCATENATED MODULE: ../../packages/hooks/use-message.ts
|
1027
1029
|
|
1028
1030
|
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; }
|
@@ -1113,7 +1115,7 @@ var Message = function Message(constructor, options) {
|
|
1113
1115
|
(0,external_vue_namespaceObject.render)(vm, container);
|
1114
1116
|
instances[position].push(vm);
|
1115
1117
|
var target;
|
1116
|
-
if (vm.props.getContainer && (0,
|
1118
|
+
if (vm.props.getContainer && (0,shared_namespaceObject.isElement)(vm.props.getContainer)) {
|
1117
1119
|
target = vm.props.getContainer;
|
1118
1120
|
} else {
|
1119
1121
|
target = document.body;
|
@@ -1187,13 +1189,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
1187
1189
|
var external_vue_types_y = x => () => x
|
1188
1190
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
1189
1191
|
;// CONCATENATED MODULE: external "../config-provider"
|
1190
|
-
var
|
1191
|
-
var
|
1192
|
-
const
|
1192
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1193
|
+
var config_provider_y = x => () => x
|
1194
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
1193
1195
|
;// CONCATENATED MODULE: external "../icon"
|
1194
|
-
var
|
1195
|
-
var
|
1196
|
-
const
|
1196
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1197
|
+
var icon_y = x => () => x
|
1198
|
+
const icon_namespaceObject = icon_x({ ["AngleDoubleDownLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDoubleDownLine, ["AngleDoubleUpLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDoubleUpLine, ["Assistant"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Assistant, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["CopyShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.CopyShape, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["FixLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.FixLine, ["FixShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.FixShape, ["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 });
|
1197
1199
|
;// CONCATENATED MODULE: ../../packages/message/src/messageConstructor.tsx
|
1198
1200
|
|
1199
1201
|
|
@@ -1265,19 +1267,19 @@ var IMessageActionType;
|
|
1265
1267
|
IMessageActionType["CLOSE"] = "close";
|
1266
1268
|
})(IMessageActionType || (IMessageActionType = {}));
|
1267
1269
|
var messageProps = {
|
1268
|
-
id:
|
1270
|
+
id: shared_namespaceObject.PropTypes.string.def(''),
|
1269
1271
|
message: (0,external_vue_types_namespaceObject.toType)('IMessage', {}),
|
1270
1272
|
theme: (0,external_vue_types_namespaceObject.toType)('messageTheme', {}).def(MessageThemeEnum.PRIMARY),
|
1271
|
-
delay:
|
1272
|
-
dismissable:
|
1273
|
-
offsetY:
|
1274
|
-
spacing:
|
1275
|
-
extCls:
|
1276
|
-
onClose:
|
1277
|
-
getContainer:
|
1278
|
-
width:
|
1279
|
-
minWidth:
|
1280
|
-
maxWidth:
|
1273
|
+
delay: shared_namespaceObject.PropTypes.number,
|
1274
|
+
dismissable: shared_namespaceObject.PropTypes.bool.def(true),
|
1275
|
+
offsetY: shared_namespaceObject.PropTypes.number.def(30),
|
1276
|
+
spacing: shared_namespaceObject.PropTypes.number.def(10),
|
1277
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
1278
|
+
onClose: shared_namespaceObject.PropTypes.func,
|
1279
|
+
getContainer: shared_namespaceObject.PropTypes.instanceOf(HTMLElement),
|
1280
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
1281
|
+
minWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(100),
|
1282
|
+
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def('100%'),
|
1281
1283
|
actions: (0,external_vue_types_namespaceObject.toType)('IMessageAction', {})
|
1282
1284
|
};
|
1283
1285
|
/* harmony default export */ const messageConstructor = ((0,external_vue_namespaceObject.defineComponent)({
|
@@ -1289,13 +1291,13 @@ var messageProps = {
|
|
1289
1291
|
var emit = _ref.emit,
|
1290
1292
|
slots = _ref.slots,
|
1291
1293
|
expose = _ref.expose;
|
1292
|
-
var t = (0,
|
1293
|
-
var _usePrefix = (0,
|
1294
|
+
var t = (0,config_provider_namespaceObject.useLocale)('message');
|
1295
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1294
1296
|
resolveClassName = _usePrefix.resolveClassName;
|
1295
1297
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
1296
1298
|
return ["".concat(resolveClassName('message')), "".concat(resolveClassName("message-".concat(props.theme))), "".concat(props.extCls)];
|
1297
1299
|
});
|
1298
|
-
var zIndex =
|
1300
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getMessageNextIndex();
|
1299
1301
|
var singleLineWidth = 560;
|
1300
1302
|
var advanceWidth = 800;
|
1301
1303
|
var singleLineDelay = 3000;
|
@@ -1340,7 +1342,7 @@ var messageProps = {
|
|
1340
1342
|
};
|
1341
1343
|
});
|
1342
1344
|
var isGetContainer = (0,external_vue_namespaceObject.computed)(function () {
|
1343
|
-
return props.getContainer && (0,
|
1345
|
+
return props.getContainer && (0,shared_namespaceObject.isElement)(props.getContainer);
|
1344
1346
|
});
|
1345
1347
|
var styles = (0,external_vue_namespaceObject.computed)(function () {
|
1346
1348
|
return Object.assign({
|
@@ -1515,7 +1517,7 @@ var messageProps = {
|
|
1515
1517
|
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, IMessageActionType.ASSISTANT, {
|
1516
1518
|
id: IMessageActionType.ASSISTANT,
|
1517
1519
|
icon: function icon() {
|
1518
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
1520
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Assistant, null, null);
|
1519
1521
|
},
|
1520
1522
|
text: function text() {
|
1521
1523
|
return t.value.assistant;
|
@@ -1526,7 +1528,7 @@ var messageProps = {
|
|
1526
1528
|
}), IMessageActionType.DETAILS, {
|
1527
1529
|
id: IMessageActionType.DETAILS,
|
1528
1530
|
icon: function icon() {
|
1529
|
-
return toolOperation.isDetailShow ? (0,external_vue_namespaceObject.createVNode)(
|
1531
|
+
return toolOperation.isDetailShow ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleDoubleUpLine, null, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleDoubleDownLine, null, null);
|
1530
1532
|
},
|
1531
1533
|
text: function text() {
|
1532
1534
|
return t.value.details;
|
@@ -1537,7 +1539,7 @@ var messageProps = {
|
|
1537
1539
|
}), IMessageActionType.FIX, {
|
1538
1540
|
id: IMessageActionType.FIX,
|
1539
1541
|
icon: function icon() {
|
1540
|
-
return toolOperation.isFix ? (0,external_vue_namespaceObject.createVNode)(
|
1542
|
+
return toolOperation.isFix ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.FixShape, null, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.FixLine, null, null);
|
1541
1543
|
},
|
1542
1544
|
classList: toolOperation.isFix ? 'fixed' : '',
|
1543
1545
|
onClick: function onClick(e) {
|
@@ -1547,7 +1549,7 @@ var messageProps = {
|
|
1547
1549
|
id: IMessageActionType.CLOSE,
|
1548
1550
|
classList: 'normal-color',
|
1549
1551
|
icon: function icon() {
|
1550
|
-
return props.dismissable && (0,external_vue_namespaceObject.createVNode)(
|
1552
|
+
return props.dismissable && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
1551
1553
|
"class": "".concat(resolveClassName('message-close')),
|
1552
1554
|
"onClick": close
|
1553
1555
|
}, null);
|
@@ -1682,10 +1684,10 @@ var messageProps = {
|
|
1682
1684
|
var _this2 = this;
|
1683
1685
|
var renderIcon = function renderIcon(theme) {
|
1684
1686
|
var iconMap = {
|
1685
|
-
primary: (0,external_vue_namespaceObject.createVNode)(
|
1686
|
-
warning: (0,external_vue_namespaceObject.createVNode)(
|
1687
|
-
success: (0,external_vue_namespaceObject.createVNode)(
|
1688
|
-
error: (0,external_vue_namespaceObject.createVNode)(
|
1687
|
+
primary: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Info, null, null),
|
1688
|
+
warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, null, null),
|
1689
|
+
success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, null, null),
|
1690
|
+
error: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)
|
1689
1691
|
};
|
1690
1692
|
return iconMap[theme !== null && theme !== void 0 ? theme : _this2.theme];
|
1691
1693
|
};
|
@@ -1722,7 +1724,7 @@ var messageProps = {
|
|
1722
1724
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1723
1725
|
"class": "message-copy",
|
1724
1726
|
"ref": "refCopyMsgDiv"
|
1725
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1727
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.CopyShape, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
1726
1728
|
"class": "copy-status",
|
1727
1729
|
"ref": "refCopyStatus"
|
1728
1730
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1736,7 +1738,7 @@ var messageProps = {
|
|
1736
1738
|
"class": "".concat(_this2.resolveClassName('message-content'))
|
1737
1739
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1738
1740
|
"class": "".concat(_this2.resolveClassName('message-icon'))
|
1739
|
-
}, [renderIcon()]), _this2.message]), _this2.dismissable && (0,external_vue_namespaceObject.createVNode)(
|
1741
|
+
}, [renderIcon()]), _this2.message]), _this2.dismissable && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
1740
1742
|
"class": "".concat(_this2.resolveClassName('message-close')),
|
1741
1743
|
"onClick": _this2.close
|
1742
1744
|
}, null)]);
|
package/lib/modal/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./modal.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
6
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
7
|
/******/ var __webpack_modules__ = ({
|
6
8
|
|
@@ -423,7 +425,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
423
425
|
;// CONCATENATED MODULE: external "../shared"
|
424
426
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
425
427
|
var y = x => () => x
|
426
|
-
const
|
428
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["getFullscreenRoot"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.getFullscreenRoot, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
427
429
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
428
430
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
429
431
|
try {
|
@@ -508,9 +510,9 @@ const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WE
|
|
508
510
|
var regenerator = __webpack_require__(2841);
|
509
511
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
510
512
|
;// CONCATENATED MODULE: external "../config-provider"
|
511
|
-
var
|
512
|
-
var
|
513
|
-
const
|
513
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
514
|
+
var config_provider_y = x => () => x
|
515
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
514
516
|
;// CONCATENATED MODULE: external "vue-types"
|
515
517
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
516
518
|
var external_vue_types_y = x => () => x
|
@@ -552,54 +554,54 @@ var ModalSizeEnum;
|
|
552
554
|
})(ModalSizeEnum || (ModalSizeEnum = {}));
|
553
555
|
var propsMixin = {
|
554
556
|
// 是否显示弹框
|
555
|
-
isShow:
|
556
|
-
width:
|
557
|
-
height:
|
557
|
+
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
558
|
+
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
|
559
|
+
height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
|
558
560
|
// 配置自定义样式类名
|
559
|
-
extCls:
|
561
|
+
extCls: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
|
560
562
|
// 弹框出现时,是否允许页面滚动
|
561
|
-
scrollable:
|
563
|
+
scrollable: shared_namespaceObject.PropTypes.bool.def(true),
|
562
564
|
// 是否允许出现遮罩
|
563
|
-
showMask:
|
565
|
+
showMask: shared_namespaceObject.PropTypes.bool.def(true),
|
564
566
|
// 是否显示右上角的关闭 icon
|
565
|
-
closeIcon:
|
567
|
+
closeIcon: shared_namespaceObject.PropTypes.bool.def(true),
|
566
568
|
// 是否允许 esc 按键关闭弹框
|
567
|
-
escClose:
|
569
|
+
escClose: shared_namespaceObject.PropTypes.bool.def(true),
|
568
570
|
// 是否全屏
|
569
|
-
fullscreen:
|
571
|
+
fullscreen: shared_namespaceObject.PropTypes.bool.def(false),
|
570
572
|
// 弹框尺寸
|
571
573
|
size: (0,external_vue_types_namespaceObject.toType)('size', {}),
|
572
574
|
// 是否可拖拽
|
573
|
-
draggable:
|
575
|
+
draggable: shared_namespaceObject.PropTypes.bool.def(true),
|
574
576
|
// 是否允许点击遮罩关闭弹窗
|
575
|
-
quickClose:
|
577
|
+
quickClose: shared_namespaceObject.PropTypes.bool.def(true),
|
576
578
|
// 是否显示在body内(即与id#app同级
|
577
|
-
transfer:
|
579
|
+
transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
|
578
580
|
// 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
|
579
|
-
zIndex:
|
581
|
+
zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
|
580
582
|
// 内容区最大高度
|
581
|
-
maxHeight:
|
583
|
+
maxHeight: shared_namespaceObject.PropTypes.string,
|
582
584
|
// 弹出方向
|
583
|
-
direction:
|
585
|
+
direction: shared_namespaceObject.PropTypes.string,
|
584
586
|
// title
|
585
|
-
title:
|
587
|
+
title: shared_namespaceObject.PropTypes.string.def(''),
|
586
588
|
// 动画类型
|
587
|
-
animateType:
|
589
|
+
animateType: shared_namespaceObject.PropTypes.string.def('slide'),
|
588
590
|
// 弹框的渲染方式
|
589
|
-
renderDirective: (0,
|
591
|
+
renderDirective: (0,shared_namespaceObject.renderDirectiveType)(),
|
590
592
|
// 关闭前回调
|
591
|
-
beforeClose:
|
593
|
+
beforeClose: shared_namespaceObject.PropTypes.custom(function () {
|
592
594
|
return true;
|
593
595
|
}),
|
594
596
|
// 对话框类型
|
595
|
-
dialogType: (0,
|
597
|
+
dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
|
596
598
|
// 是否允许多个弹框同时存在
|
597
|
-
multiInstance:
|
599
|
+
multiInstance: shared_namespaceObject.PropTypes.bool.def(true),
|
598
600
|
// info-box
|
599
|
-
infoType:
|
600
|
-
bodyClass:
|
601
|
-
left:
|
602
|
-
top:
|
601
|
+
infoType: shared_namespaceObject.PropTypes.theme(),
|
602
|
+
bodyClass: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
|
603
|
+
left: shared_namespaceObject.PropTypes.string,
|
604
|
+
top: shared_namespaceObject.PropTypes.string
|
603
605
|
};
|
604
606
|
;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
|
605
607
|
|
@@ -670,13 +672,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
670
672
|
var resolveTransfer = function resolveTransfer() {
|
671
673
|
if (props.transfer) {
|
672
674
|
if (typeof props.transfer === 'boolean') {
|
673
|
-
teleportTo.value = (0,
|
675
|
+
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
|
674
676
|
return;
|
675
677
|
}
|
676
|
-
teleportTo.value = (0,
|
678
|
+
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)(props.transfer);
|
677
679
|
}
|
678
680
|
};
|
679
|
-
var _usePrefix = (0,
|
681
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
680
682
|
resolveClassName = _usePrefix.resolveClassName;
|
681
683
|
var resolveClosetModal = function resolveClosetModal() {
|
682
684
|
var _refRoot$value;
|
@@ -687,7 +689,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
687
689
|
target === null || target === void 0 || target.appendChild(refRoot.value);
|
688
690
|
return;
|
689
691
|
}
|
690
|
-
if ((0,
|
692
|
+
if ((0,shared_namespaceObject.isElement)(teleportTo.value)) {
|
691
693
|
teleportTo.value.appendChild(refRoot.value);
|
692
694
|
return;
|
693
695
|
}
|
@@ -708,7 +710,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
708
710
|
};
|
709
711
|
});
|
710
712
|
var closeModal = function closeModal() {
|
711
|
-
|
713
|
+
shared_namespaceObject.mask.hideMask({
|
712
714
|
el: refRoot.value,
|
713
715
|
mask: refMask.value,
|
714
716
|
showMask: props.showMask,
|
@@ -730,13 +732,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
730
732
|
closeTimer && clearTimeout(closeTimer);
|
731
733
|
closeTimer = null;
|
732
734
|
if (!props.zIndex) {
|
733
|
-
zIndex.value =
|
735
|
+
zIndex.value = shared_namespaceObject.bkZIndexManager.getModalNextIndex();
|
734
736
|
}
|
735
737
|
visible.value = true;
|
736
738
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
737
739
|
ctx.emit('shown');
|
738
740
|
resolveClosetModal();
|
739
|
-
|
741
|
+
shared_namespaceObject.mask.showMask({
|
740
742
|
el: refRoot.value,
|
741
743
|
mask: refMask.value,
|
742
744
|
showMask: props.showMask,
|
@@ -762,7 +764,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
762
764
|
}
|
763
765
|
shouldClose = true;
|
764
766
|
execRet = props.beforeClose();
|
765
|
-
if (!(0,
|
767
|
+
if (!(0,shared_namespaceObject.isPromise)(execRet)) {
|
766
768
|
_context.next = 9;
|
767
769
|
break;
|
768
770
|
}
|
@@ -830,7 +832,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
830
832
|
_this$$slots$close2,
|
831
833
|
_this$$slots4,
|
832
834
|
_this = this;
|
833
|
-
var _usePrefix2 = (0,
|
835
|
+
var _usePrefix2 = (0,config_provider_namespaceObject.usePrefix)(),
|
834
836
|
resolveClassName = _usePrefix2.resolveClassName;
|
835
837
|
var maxHeight = this.maxHeight ? {
|
836
838
|
maxHeight: this.maxHeight
|
@@ -901,7 +903,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
901
903
|
|
902
904
|
|
903
905
|
|
904
|
-
var BkModal = (0,
|
906
|
+
var BkModal = (0,shared_namespaceObject.withInstallProps)(modal, {
|
905
907
|
propsMixin: propsMixin
|
906
908
|
}, true);
|
907
909
|
/* harmony default export */ const src = (BkModal);
|
package/lib/navigation/index.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./navigation.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
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";
|
5
7
|
/******/ // The require scope
|
6
8
|
/******/ var __webpack_require__ = {};
|
7
9
|
/******/
|
@@ -34,19 +36,19 @@ __webpack_require__.d(__webpack_exports__, {
|
|
34
36
|
;// CONCATENATED MODULE: external "../shared"
|
35
37
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
38
|
var y = x => () => x
|
37
|
-
const
|
39
|
+
const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
38
40
|
;// CONCATENATED MODULE: external "vue"
|
39
41
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
42
|
var external_vue_y = x => () => x
|
41
43
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
42
44
|
;// CONCATENATED MODULE: external "../config-provider"
|
43
|
-
var
|
44
|
-
var
|
45
|
-
const
|
45
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
46
|
+
var config_provider_y = x => () => x
|
47
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
46
48
|
;// CONCATENATED MODULE: external "../icon"
|
47
|
-
var
|
48
|
-
var
|
49
|
-
const
|
49
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
50
|
+
var icon_y = x => () => x
|
51
|
+
const icon_namespaceObject = icon_x({ ["CollapseLeft"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.CollapseLeft });
|
50
52
|
;// CONCATENATED MODULE: ../../packages/navigation/src/navigation-title.tsx
|
51
53
|
|
52
54
|
/*
|
@@ -92,7 +94,7 @@ var TitleProps = {
|
|
92
94
|
slots: Object,
|
93
95
|
setup: function setup(props, _ref) {
|
94
96
|
var slots = _ref.slots;
|
95
|
-
var _usePrefix = (0,
|
97
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
96
98
|
resolveClassName = _usePrefix.resolveClassName;
|
97
99
|
return function () {
|
98
100
|
var _slots$default, _slots$sideIcon;
|
@@ -240,7 +242,7 @@ var NavigationProps = {
|
|
240
242
|
emit('toggle', nav.hover);
|
241
243
|
emit('toggle-click', nav.hover);
|
242
244
|
};
|
243
|
-
var _usePrefix = (0,
|
245
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
244
246
|
resolveClassName = _usePrefix.resolveClassName;
|
245
247
|
return {
|
246
248
|
defaultHeaderTitle: defaultHeaderTitle,
|
@@ -304,7 +306,7 @@ var NavigationProps = {
|
|
304
306
|
'footer-icon': true
|
305
307
|
},
|
306
308
|
"onClick": this.handleClick
|
307
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
309
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.CollapseLeft, {
|
308
310
|
"class": "footer-icon-svg",
|
309
311
|
"style": {
|
310
312
|
transform: this.nav.click ? 'rotate(180deg)' : 'rotate(0deg)'
|
@@ -361,7 +363,7 @@ var NavigationProps = {
|
|
361
363
|
*/
|
362
364
|
|
363
365
|
|
364
|
-
var Navigation = (0,
|
366
|
+
var Navigation = (0,shared_namespaceObject.withInstall)(navigation);
|
365
367
|
/* harmony default export */ const src = (Navigation);
|
366
368
|
var __webpack_exports__default = __webpack_exports__["default"];
|
367
369
|
export { __webpack_exports__default as default };
|