bkui-vue 0.0.2-beta.138 → 0.0.2-beta.139
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 +14 -13
- package/lib/alert/index.js +23 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +21 -20
- package/lib/badge/index.js +20 -19
- package/lib/breadcrumb/index.js +25 -24
- package/lib/button/index.js +36 -28
- package/lib/card/index.js +42 -35
- package/lib/cascader/index.js +99 -80
- package/lib/checkbox/index.js +33 -32
- package/lib/code-diff/index.js +13 -12
- package/lib/collapse/index.js +40 -39
- package/lib/collapse-transition/index.js +8 -8
- package/lib/color-picker/index.js +49 -48
- package/lib/config-provider/index.js +8 -8
- package/lib/container/index.js +20 -19
- package/lib/date-picker/index.js +68 -61
- package/lib/dialog/index.js +62 -49
- package/lib/directives/index.js +12 -12
- package/lib/dist.index.js +3 -3
- package/lib/divider/index.js +14 -13
- package/lib/dropdown/index.js +31 -24
- package/lib/exception/index.js +12 -11
- package/lib/fixed-navbar/index.js +14 -13
- package/lib/form/index.js +49 -48
- package/lib/image/index.js +37 -37
- package/lib/index.js +6 -6
- package/lib/info-box/index.js +63 -50
- package/lib/input/index.js +60 -59
- package/lib/link/index.js +14 -13
- package/lib/loading/index.js +18 -17
- package/lib/menu/index.js +14 -13
- package/lib/message/index.js +39 -38
- package/lib/modal/index.js +32 -31
- package/lib/navigation/index.js +15 -14
- package/lib/notify/index.js +32 -31
- package/lib/overflow-title/index.js +21 -14
- package/lib/pagination/index.js +64 -50
- package/lib/plugin-popover/index.js +53 -53
- package/lib/pop-confirm/index.js +41 -28
- package/lib/popover/index.js +53 -52
- package/lib/popover2/index.js +3 -3
- package/lib/preset.js +4 -4
- package/lib/process/index.js +26 -26
- package/lib/progress/index.js +27 -26
- package/lib/radio/index.js +33 -32
- package/lib/rate/index.js +23 -22
- package/lib/resize-layout/index.js +26 -25
- package/lib/search-select/index.js +67 -49
- package/lib/select/index.js +164 -126
- package/lib/sideslider/index.js +21 -14
- package/lib/slider/index.js +35 -22
- package/lib/steps/index.js +29 -28
- package/lib/swiper/index.js +15 -14
- package/lib/switcher/index.js +30 -29
- package/lib/tab/index.js +45 -44
- package/lib/table/index.js +189 -137
- package/lib/table-column/index.js +40 -40
- package/lib/tag/index.js +21 -20
- package/lib/tag-input/index.js +78 -64
- package/lib/time-picker/index.js +8 -7
- package/lib/timeline/index.js +12 -12
- package/lib/transfer/index.js +50 -36
- package/lib/tree/index.js +91 -72
- package/lib/upload/index.js +62 -48
- package/lib/virtual-render/index.js +34 -33
- package/package.json +1 -1
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
|
/******/
|
@@ -82,9 +83,9 @@ 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
91
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
@@ -176,7 +177,7 @@ var Message = function Message(constructor, options) {
|
|
176
177
|
(0,external_vue_namespaceObject.render)(vm, container);
|
177
178
|
instances[position].push(vm);
|
178
179
|
var target;
|
179
|
-
if (vm.props.getContainer && (0,
|
180
|
+
if (vm.props.getContainer && (0,shared_namespaceObject.isElement)(vm.props.getContainer)) {
|
180
181
|
target = vm.props.getContainer;
|
181
182
|
} else {
|
182
183
|
target = document.body;
|
@@ -207,13 +208,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
207
208
|
var external_vue_types_y = x => () => x
|
208
209
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
209
210
|
;// CONCATENATED MODULE: external "../config-provider"
|
210
|
-
var
|
211
|
-
var
|
212
|
-
const
|
211
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
212
|
+
var config_provider_y = x => () => x
|
213
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
213
214
|
;// CONCATENATED MODULE: external "../icon"
|
214
|
-
var
|
215
|
-
var
|
216
|
-
const
|
215
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
216
|
+
var icon_y = x => () => x
|
217
|
+
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
218
|
;// CONCATENATED MODULE: ../../packages/notify/src/notifyConstructor.tsx
|
218
219
|
|
219
220
|
|
@@ -255,18 +256,18 @@ var NotifyThemeEnum;
|
|
255
256
|
NotifyThemeEnum["ERROR"] = "error";
|
256
257
|
})(NotifyThemeEnum || (NotifyThemeEnum = {}));
|
257
258
|
var notifyProps = {
|
258
|
-
id:
|
259
|
-
title:
|
260
|
-
message:
|
259
|
+
id: shared_namespaceObject.PropTypes.string.def(''),
|
260
|
+
title: shared_namespaceObject.PropTypes.string.def(''),
|
261
|
+
message: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func]).def(''),
|
261
262
|
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:
|
263
|
+
position: shared_namespaceObject.PropTypes.position().def('top-right'),
|
264
|
+
delay: shared_namespaceObject.PropTypes.number.def(5000),
|
265
|
+
dismissable: shared_namespaceObject.PropTypes.bool.def(true),
|
266
|
+
offsetX: shared_namespaceObject.PropTypes.number.def(100),
|
267
|
+
offsetY: shared_namespaceObject.PropTypes.number.def(30),
|
268
|
+
spacing: shared_namespaceObject.PropTypes.number.def(10),
|
269
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
270
|
+
onClose: shared_namespaceObject.PropTypes.func
|
270
271
|
};
|
271
272
|
/* harmony default export */ const notifyConstructor = ((0,external_vue_namespaceObject.defineComponent)({
|
272
273
|
name: 'Notify',
|
@@ -274,7 +275,7 @@ var notifyProps = {
|
|
274
275
|
emits: ['destroy'],
|
275
276
|
setup: function setup(props, _ref) {
|
276
277
|
var emit = _ref.emit;
|
277
|
-
var zIndex =
|
278
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getMessageNextIndex();
|
278
279
|
var horizontalClass = (0,external_vue_namespaceObject.computed)(function () {
|
279
280
|
return props.position.indexOf('right') > 1 ? 'right' : 'left';
|
280
281
|
});
|
@@ -285,7 +286,7 @@ var notifyProps = {
|
|
285
286
|
var _ref2;
|
286
287
|
return _ref2 = {}, _defineProperty(_ref2, horizontalClass.value, "".concat(props.offsetX, "px")), _defineProperty(_ref2, verticalProperty.value, "".concat(props.offsetY, "px")), _defineProperty(_ref2, "zIndex", zIndex), _ref2;
|
287
288
|
});
|
288
|
-
var _usePrefix = (0,
|
289
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
289
290
|
resolveClassName = _usePrefix.resolveClassName;
|
290
291
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
291
292
|
return [resolveClassName('notify'), resolveClassName("notify-".concat(props.theme)), horizontalClass.value];
|
@@ -331,10 +332,10 @@ var notifyProps = {
|
|
331
332
|
var _this = this;
|
332
333
|
var renderIcon = function renderIcon() {
|
333
334
|
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)(
|
335
|
+
primary: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Info, null, null),
|
336
|
+
warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, null, null),
|
337
|
+
success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, null, null),
|
338
|
+
error: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)
|
338
339
|
};
|
339
340
|
return iconMap[_this.theme];
|
340
341
|
};
|
@@ -353,7 +354,7 @@ var notifyProps = {
|
|
353
354
|
"class": "".concat(_this.resolveClassName('notify-content-header'))
|
354
355
|
}, [_this.title]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
355
356
|
"class": "".concat(_this.resolveClassName('notify-content-text'))
|
356
|
-
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(
|
357
|
+
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
357
358
|
"class": "".concat(_this.resolveClassName('notify-icon'), " ").concat(_this.resolveClassName('notify-close')),
|
358
359
|
"onClick": _this.handleClose
|
359
360
|
}, null)]), [[external_vue_namespaceObject.vShow, _this.visible]])];
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "./overflow-title.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
5
|
+
import "../popover/popover.less";
|
4
6
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
7
|
/******/ // The require scope
|
6
8
|
/******/ var __webpack_require__ = {};
|
@@ -38,15 +40,19 @@ __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({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
42
44
|
;// CONCATENATED MODULE: external "vue"
|
43
45
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
44
46
|
var external_vue_y = x => () => x
|
45
47
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef });
|
46
48
|
;// CONCATENATED MODULE: external "../popover"
|
47
|
-
var
|
48
|
-
var
|
49
|
-
const
|
49
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
50
|
+
var popover_y = x => () => x
|
51
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
52
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
53
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
54
|
+
var popover_less_y = x => () => x
|
55
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
50
56
|
;// CONCATENATED MODULE: external "vue-types"
|
51
57
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
52
58
|
var external_vue_types_y = x => () => x
|
@@ -76,12 +82,12 @@ function placementType() {
|
|
76
82
|
return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
|
77
83
|
}
|
78
84
|
/* harmony default export */ const props = ({
|
79
|
-
content:
|
80
|
-
type:
|
81
|
-
calType:
|
82
|
-
boundary:
|
85
|
+
content: shared_namespaceObject.PropTypes.string,
|
86
|
+
type: shared_namespaceObject.PropTypes.oneOf(['tips', 'title']).def('title'),
|
87
|
+
calType: shared_namespaceObject.PropTypes.oneOf(['dom', 'canvas']).def('dom'),
|
88
|
+
boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def(document.body),
|
83
89
|
placement: placementType().def(PlacementEnum.TOP_START),
|
84
|
-
resizeable:
|
90
|
+
resizeable: shared_namespaceObject.PropTypes.bool,
|
85
91
|
popoverOptions: Object // popover属性
|
86
92
|
});
|
87
93
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
|
@@ -124,6 +130,7 @@ function getActualWidthByDom(text, options) {
|
|
124
130
|
|
125
131
|
|
126
132
|
|
133
|
+
|
127
134
|
/* harmony default export */ const overflow_title = ((0,external_vue_namespaceObject.defineComponent)({
|
128
135
|
name: 'OverflowTitle',
|
129
136
|
props: props,
|
@@ -142,7 +149,7 @@ function getActualWidthByDom(text, options) {
|
|
142
149
|
});
|
143
150
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
144
151
|
var clientWidth = boxRef.value.clientWidth;
|
145
|
-
var resizeHandler = (0,
|
152
|
+
var resizeHandler = (0,shared_namespaceObject.debounce)(500, function () {
|
146
153
|
isShowTips.value = false;
|
147
154
|
textProps.value = {};
|
148
155
|
var textWidth = 0;
|
@@ -191,7 +198,7 @@ function getActualWidthByDom(text, options) {
|
|
191
198
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
192
199
|
"ref": "boxRef",
|
193
200
|
"class": "position-relative"
|
194
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
201
|
+
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
195
202
|
"placement": this.placement,
|
196
203
|
"boundary": this.boundary || document.body,
|
197
204
|
"popoverDelay": [200, 0]
|
@@ -274,7 +281,7 @@ var overflowTitle = {
|
|
274
281
|
|
275
282
|
|
276
283
|
|
277
|
-
var BkOverflowTitle = (0,
|
284
|
+
var BkOverflowTitle = (0,shared_namespaceObject.withInstall)(overflow_title);
|
278
285
|
|
279
286
|
/* harmony default export */ const src = (BkOverflowTitle);
|
280
287
|
var __webpack_exports__OverflowTitle = __webpack_exports__.p1;
|
package/lib/pagination/index.js
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
import
|
1
|
+
import "./pagination.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
5
|
-
import
|
6
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../select";
|
6
|
+
import "../select/select.less";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
9
|
+
import "../popover/popover.less";
|
7
10
|
/******/ // The require scope
|
8
11
|
/******/ var __webpack_require__ = {};
|
9
12
|
/******/
|
@@ -37,7 +40,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
37
40
|
;// CONCATENATED MODULE: external "../shared"
|
38
41
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
42
|
var y = x => () => x
|
40
|
-
const
|
43
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
41
44
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
42
45
|
function _typeof(obj) {
|
43
46
|
"@babel/helpers - typeof";
|
@@ -148,13 +151,17 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
148
151
|
var external_vue_y = x => () => x
|
149
152
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
150
153
|
;// CONCATENATED MODULE: external "../config-provider"
|
151
|
-
var
|
152
|
-
var
|
153
|
-
const
|
154
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
155
|
+
var config_provider_y = x => () => x
|
156
|
+
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 });
|
154
157
|
;// CONCATENATED MODULE: external "../select"
|
155
|
-
var
|
156
|
-
var
|
157
|
-
const
|
158
|
+
var select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
159
|
+
var select_y = x => () => x
|
160
|
+
const select_namespaceObject = select_x({ ["BkOption"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.BkOption, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__["default"] });
|
161
|
+
;// CONCATENATED MODULE: external "../select/select.less"
|
162
|
+
var select_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
163
|
+
var select_less_y = x => () => x
|
164
|
+
const select_less_namespaceObject = select_less_x({ });
|
158
165
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-limit.tsx
|
159
166
|
|
160
167
|
|
@@ -187,6 +194,8 @@ const external_select_namespaceObject = external_select_x({ ["BkOption"]: () =>
|
|
187
194
|
|
188
195
|
|
189
196
|
|
197
|
+
|
198
|
+
|
190
199
|
function _isSlot(s) {
|
191
200
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
192
201
|
}
|
@@ -223,7 +232,7 @@ function _isSlot(s) {
|
|
223
232
|
var handleLimitChange = function handleLimitChange(limit) {
|
224
233
|
localLimit.value = limit;
|
225
234
|
};
|
226
|
-
var _usePrefix = (0,
|
235
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
227
236
|
resolveClassName = _usePrefix.resolveClassName;
|
228
237
|
var render = function render(_ref) {
|
229
238
|
var _slot;
|
@@ -237,7 +246,7 @@ function _isSlot(s) {
|
|
237
246
|
"class": (_ref2 = {}, _defineProperty(_ref2, resolveClassName('pagination-limit'), true), _defineProperty(_ref2, 'is-first', isFirst), _defineProperty(_ref2, 'is-last', isLast), _ref2)
|
238
247
|
}, {
|
239
248
|
disabled: proxy.disabled
|
240
|
-
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(
|
249
|
+
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(select_namespaceObject["default"], {
|
241
250
|
"class": "".concat(resolveClassName('pagination-limit-select')),
|
242
251
|
"clearable": false,
|
243
252
|
"size": "small",
|
@@ -246,7 +255,7 @@ function _isSlot(s) {
|
|
246
255
|
"onChange": handleLimitChange,
|
247
256
|
"disabled": proxy.disabled
|
248
257
|
}, _isSlot(_slot = proxy.limitList.map(function (num, index) {
|
249
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
258
|
+
return (0,external_vue_namespaceObject.createVNode)(select_namespaceObject.BkOption, {
|
250
259
|
"id": num,
|
251
260
|
"name": "".concat(num),
|
252
261
|
"key": "".concat(index, "_").concat(num)
|
@@ -263,9 +272,9 @@ function _isSlot(s) {
|
|
263
272
|
};
|
264
273
|
});
|
265
274
|
;// CONCATENATED MODULE: external "../icon"
|
266
|
-
var
|
267
|
-
var
|
268
|
-
const
|
275
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
276
|
+
var icon_y = x => () => x
|
277
|
+
const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleLeft, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["Ellipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Ellipsis });
|
269
278
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-list.tsx
|
270
279
|
|
271
280
|
|
@@ -397,7 +406,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
397
406
|
var handleNextBatch = function handleNextBatch() {
|
398
407
|
localCurrent.value = Math.min(proxy.totalPageNum, localCurrent.value + PAGE_ITEMS_NUM);
|
399
408
|
};
|
400
|
-
var _usePrefix = (0,
|
409
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
401
410
|
resolveClassName = _usePrefix.resolveClassName;
|
402
411
|
var render = function render(_ref) {
|
403
412
|
var _ref2, _ref3, _ref4, _ref6, _ref7;
|
@@ -408,7 +417,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
408
417
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
409
418
|
"class": (_ref3 = {}, _defineProperty(_ref3, "".concat(resolveClassName('pagination-list-pre')), true), _defineProperty(_ref3, 'is-disabled', isPagePreDisabled.value), _ref3),
|
410
419
|
"onClick": handlePrePage
|
411
|
-
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(
|
420
|
+
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
412
421
|
"class": (_ref4 = {}, _defineProperty(_ref4, "".concat(resolveClassName('pagination-list-item')), true), _defineProperty(_ref4, 'is-active', localCurrent.value === 1), _ref4),
|
413
422
|
"key": "1",
|
414
423
|
"onClick": function onClick() {
|
@@ -418,7 +427,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
418
427
|
"key": "pre-batch",
|
419
428
|
"class": "".concat(resolveClassName('pagination-list-pre-batch')),
|
420
429
|
"onClick": handlePreBatch
|
421
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
430
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), list.value.map(function (num) {
|
422
431
|
var _ref5;
|
423
432
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
424
433
|
"class": (_ref5 = {}, _defineProperty(_ref5, "".concat(resolveClassName('pagination-list-item')), true), _defineProperty(_ref5, 'is-active', localCurrent.value === num), _ref5),
|
@@ -431,7 +440,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
431
440
|
"key": "next-batch",
|
432
441
|
"class": "".concat(resolveClassName('pagination-list-next-batch')),
|
433
442
|
"onClick": handleNextBatch
|
434
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
443
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), proxy.totalPageNum > 1 && (0,external_vue_namespaceObject.createVNode)("div", {
|
435
444
|
"class": (_ref6 = {}, _defineProperty(_ref6, "".concat(resolveClassName('pagination-list-item')), true), _defineProperty(_ref6, 'is-active', localCurrent.value === proxy.totalPageNum), _ref6),
|
436
445
|
"key": "last",
|
437
446
|
"onClick": function onClick() {
|
@@ -440,7 +449,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
440
449
|
}, [proxy.totalPageNum]), (0,external_vue_namespaceObject.createVNode)("div", {
|
441
450
|
"class": (_ref7 = {}, _defineProperty(_ref7, "".concat(resolveClassName('pagination-list-pre')), true), _defineProperty(_ref7, 'is-disabled', isPageNextDisabled.value), _ref7),
|
442
451
|
"onClick": handleNextPage
|
443
|
-
}, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(
|
452
|
+
}, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)])]);
|
444
453
|
};
|
445
454
|
return {
|
446
455
|
current: localCurrent,
|
@@ -448,9 +457,13 @@ var PAGE_ITEMS_NUM = 5;
|
|
448
457
|
};
|
449
458
|
});
|
450
459
|
;// CONCATENATED MODULE: external "../popover"
|
451
|
-
var
|
452
|
-
var
|
453
|
-
const
|
460
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
461
|
+
var popover_y = x => () => x
|
462
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
463
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
464
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
465
|
+
var popover_less_y = x => () => x
|
466
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
454
467
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-small-list.tsx
|
455
468
|
|
456
469
|
|
@@ -483,6 +496,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
483
496
|
|
484
497
|
|
485
498
|
|
499
|
+
|
486
500
|
/* harmony default export */ const use_small_list = (function () {
|
487
501
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
488
502
|
proxy = _getCurrentInstance.proxy;
|
@@ -597,7 +611,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
597
611
|
inputMemo = item;
|
598
612
|
handlePageEditorBlur();
|
599
613
|
};
|
600
|
-
var _usePrefix = (0,
|
614
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
601
615
|
resolveClassName = _usePrefix.resolveClassName;
|
602
616
|
var render = function render() {
|
603
617
|
var _ref, _ref3;
|
@@ -606,7 +620,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
606
620
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
607
621
|
"class": (_ref = {}, _defineProperty(_ref, "".concat(resolveClassName('pagination-btn-pre')), true), _defineProperty(_ref, 'is-disabled', isPagePreDisabled.value), _ref),
|
608
622
|
"onClick": handlePrePage
|
609
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
623
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
610
624
|
"theme": "light",
|
611
625
|
"trigger": "click",
|
612
626
|
"arrow": false,
|
@@ -650,7 +664,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
650
664
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
651
665
|
"class": (_ref3 = {}, _defineProperty(_ref3, "".concat(resolveClassName('pagination-btn-next')), true), _defineProperty(_ref3, 'is-disabled', isPageNextDisabled.value), _ref3),
|
652
666
|
"onClick": handleNextPage
|
653
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
667
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)])]);
|
654
668
|
};
|
655
669
|
return {
|
656
670
|
current: localCurrent,
|
@@ -697,7 +711,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
697
711
|
if (!props.showTotalCount) {
|
698
712
|
return null;
|
699
713
|
}
|
700
|
-
var _usePrefix = (0,
|
714
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
701
715
|
resolveClassName = _usePrefix.resolveClassName;
|
702
716
|
return (0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
703
717
|
"class": (_ref2 = {}, _defineProperty(_ref2, "".concat(resolveClassName('pagination-total')), true), _defineProperty(_ref2, 'is-first', isFirst), _defineProperty(_ref2, 'is-last', isLast), _ref2)
|
@@ -745,22 +759,22 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
745
759
|
|
746
760
|
|
747
761
|
var paginationProps = {
|
748
|
-
modelValue:
|
749
|
-
count:
|
750
|
-
limit:
|
751
|
-
limitList:
|
752
|
-
showLimit:
|
753
|
-
type:
|
754
|
-
location:
|
755
|
-
align:
|
756
|
-
size:
|
757
|
-
small:
|
758
|
-
showTotalCount:
|
759
|
-
prevText:
|
760
|
-
nextText:
|
761
|
-
disabled:
|
762
|
-
beforeChange:
|
763
|
-
layout:
|
762
|
+
modelValue: shared_namespaceObject.PropTypes.number.def(1),
|
763
|
+
count: shared_namespaceObject.PropTypes.number.def(0).isRequired,
|
764
|
+
limit: shared_namespaceObject.PropTypes.number.def(10),
|
765
|
+
limitList: shared_namespaceObject.PropTypes.arrayOf(Number).def([10, 20, 50, 100]),
|
766
|
+
showLimit: shared_namespaceObject.PropTypes.bool.def(true),
|
767
|
+
type: shared_namespaceObject.PropTypes.oneOf(['default', 'compact']).def('default'),
|
768
|
+
location: shared_namespaceObject.PropTypes.oneOf(['left', 'right']).def('right'),
|
769
|
+
align: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']).def('left'),
|
770
|
+
size: shared_namespaceObject.PropTypes.size(),
|
771
|
+
small: shared_namespaceObject.PropTypes.bool.def(false),
|
772
|
+
showTotalCount: shared_namespaceObject.PropTypes.bool.def(true),
|
773
|
+
prevText: shared_namespaceObject.PropTypes.string,
|
774
|
+
nextText: shared_namespaceObject.PropTypes.string,
|
775
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
776
|
+
beforeChange: shared_namespaceObject.PropTypes.func,
|
777
|
+
layout: shared_namespaceObject.PropTypes.custom(function (value) {
|
764
778
|
var layoutNameMap = {
|
765
779
|
total: true,
|
766
780
|
list: true,
|
@@ -776,7 +790,7 @@ var paginationProps = {
|
|
776
790
|
props: paginationProps,
|
777
791
|
emits: ['update:modelValue', 'change', 'update:limit', 'limitChange'],
|
778
792
|
setup: function setup(props, context) {
|
779
|
-
var t = (0,
|
793
|
+
var t = (0,config_provider_namespaceObject.useLocale)('pagination');
|
780
794
|
var totalPageNum = (0,external_vue_namespaceObject.ref)(0);
|
781
795
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
782
796
|
count = _toRefs.count,
|
@@ -814,7 +828,7 @@ var paginationProps = {
|
|
814
828
|
(0,external_vue_namespaceObject.watch)(localLimit, function (localLimit) {
|
815
829
|
context.emit('limitChange', localLimit);
|
816
830
|
});
|
817
|
-
var _usePrefix = (0,
|
831
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
818
832
|
resolveClassName = _usePrefix.resolveClassName;
|
819
833
|
return {
|
820
834
|
totalPageNum: totalPageNum,
|
@@ -828,7 +842,7 @@ var paginationProps = {
|
|
828
842
|
render: function render() {
|
829
843
|
var _classes,
|
830
844
|
_this = this;
|
831
|
-
var paginationClass = (0,
|
845
|
+
var paginationClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('pagination')), true), _defineProperty(_classes, "".concat(this.resolveClassName("pagination--".concat(this.size))), true), _defineProperty(_classes, "is-align-".concat(this.align), true), _classes));
|
832
846
|
var layoutMap = {
|
833
847
|
total: this.renderTotal,
|
834
848
|
list: this.small ? this.renderSmallList : this.renderList,
|
@@ -872,7 +886,7 @@ var paginationProps = {
|
|
872
886
|
*/
|
873
887
|
|
874
888
|
|
875
|
-
var BkPagination = (0,
|
889
|
+
var BkPagination = (0,shared_namespaceObject.withInstall)(pagination);
|
876
890
|
/* harmony default export */ const src = (BkPagination);
|
877
891
|
|
878
892
|
var __webpack_exports__BkPagination = __webpack_exports__.h;
|