bkui-vue 1.0.3-beta.25 → 1.0.3-beta.27
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 +13 -15
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/index.js +20 -22
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/index.js +28 -37
- package/lib/card/index.js +35 -43
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/index.js +8 -9
- package/lib/container/index.js +19 -21
- package/lib/date-picker/index.js +65 -73
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/input/index.js +59 -61
- package/lib/link/index.js +13 -15
- package/lib/loading/index.js +17 -19
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/message/index.js +38 -40
- package/lib/modal/index.js +41 -43
- package/lib/navigation/index.js +14 -16
- package/lib/notify/index.js +31 -33
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/popover/index.js +52 -54
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/progress/index.js +26 -28
- package/lib/radio/index.js +32 -34
- package/lib/rate/index.js +22 -24
- package/lib/resize-layout/index.js +25 -27
- package/lib/search-select/index.js +49 -68
- package/lib/select/index.js +129 -168
- package/lib/shared/index.js +0 -1
- package/lib/sideslider/index.js +14 -22
- package/lib/slider/index.js +22 -36
- package/lib/steps/index.js +28 -30
- package/lib/swiper/index.js +14 -16
- package/lib/switcher/index.js +29 -31
- package/lib/tab/index.js +44 -46
- package/lib/table/index.js +148 -207
- package/lib/table-column/index.js +42 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag-input/index.js +65 -80
- package/lib/time-picker/index.js +7 -9
- package/lib/timeline/index.js +12 -13
- package/lib/transfer/index.js +36 -51
- package/lib/tree/index.js +72 -92
- package/lib/upload/index.js +48 -63
- package/lib/virtual-render/index.js +33 -35
- package/package.json +1 -1
package/lib/notify/index.js
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
import "../styles/reset.css";
|
2
|
-
import "./notify.less";
|
3
1
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
-
import * as
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
5
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
6
|
-
import * as
|
7
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
8
6
|
/******/ // The require scope
|
9
7
|
/******/ var __webpack_require__ = {};
|
10
8
|
/******/
|
@@ -84,9 +82,9 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
84
82
|
var y = x => () => x
|
85
83
|
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 });
|
86
84
|
;// CONCATENATED MODULE: external "../shared"
|
87
|
-
var
|
88
|
-
var
|
89
|
-
const
|
85
|
+
var external_shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
86
|
+
var external_shared_y = x => () => x
|
87
|
+
const external_shared_namespaceObject = external_shared_x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.isElement });
|
90
88
|
;// CONCATENATED MODULE: ../../packages/hooks/use-message.ts
|
91
89
|
|
92
90
|
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; }
|
@@ -177,7 +175,7 @@ var Message = function Message(constructor, options) {
|
|
177
175
|
(0,external_vue_namespaceObject.render)(vm, container);
|
178
176
|
instances[position].push(vm);
|
179
177
|
var target;
|
180
|
-
if (vm.props.getContainer && (0,
|
178
|
+
if (vm.props.getContainer && (0,external_shared_namespaceObject.isElement)(vm.props.getContainer)) {
|
181
179
|
target = vm.props.getContainer;
|
182
180
|
} else {
|
183
181
|
target = document.body;
|
@@ -208,13 +206,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
208
206
|
var external_vue_types_y = x => () => x
|
209
207
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
210
208
|
;// CONCATENATED MODULE: external "../config-provider"
|
211
|
-
var
|
212
|
-
var
|
213
|
-
const
|
209
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
210
|
+
var external_config_provider_y = x => () => x
|
211
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
214
212
|
;// CONCATENATED MODULE: external "../icon"
|
215
|
-
var
|
216
|
-
var
|
217
|
-
const
|
213
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
214
|
+
var external_icon_y = x => () => x
|
215
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error, ["Info"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Info, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
|
218
216
|
;// CONCATENATED MODULE: ../../packages/notify/src/notifyConstructor.tsx
|
219
217
|
|
220
218
|
|
@@ -256,18 +254,18 @@ var NotifyThemeEnum;
|
|
256
254
|
NotifyThemeEnum["ERROR"] = "error";
|
257
255
|
})(NotifyThemeEnum || (NotifyThemeEnum = {}));
|
258
256
|
var notifyProps = {
|
259
|
-
id:
|
260
|
-
title:
|
261
|
-
message:
|
257
|
+
id: external_shared_namespaceObject.PropTypes.string.def(''),
|
258
|
+
title: external_shared_namespaceObject.PropTypes.string.def(''),
|
259
|
+
message: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.func]).def(''),
|
262
260
|
theme: (0,external_vue_types_namespaceObject.toType)('notifyTheme', {}).def(NotifyThemeEnum.PRIMARY),
|
263
|
-
position:
|
264
|
-
delay:
|
265
|
-
dismissable:
|
266
|
-
offsetX:
|
267
|
-
offsetY:
|
268
|
-
spacing:
|
269
|
-
extCls:
|
270
|
-
onClose:
|
261
|
+
position: external_shared_namespaceObject.PropTypes.position().def('top-right'),
|
262
|
+
delay: external_shared_namespaceObject.PropTypes.number.def(5000),
|
263
|
+
dismissable: external_shared_namespaceObject.PropTypes.bool.def(true),
|
264
|
+
offsetX: external_shared_namespaceObject.PropTypes.number.def(100),
|
265
|
+
offsetY: external_shared_namespaceObject.PropTypes.number.def(30),
|
266
|
+
spacing: external_shared_namespaceObject.PropTypes.number.def(10),
|
267
|
+
extCls: external_shared_namespaceObject.PropTypes.string.def(''),
|
268
|
+
onClose: external_shared_namespaceObject.PropTypes.func
|
271
269
|
};
|
272
270
|
/* harmony default export */ const notifyConstructor = ((0,external_vue_namespaceObject.defineComponent)({
|
273
271
|
name: 'Notify',
|
@@ -275,7 +273,7 @@ var notifyProps = {
|
|
275
273
|
emits: ['destroy'],
|
276
274
|
setup: function setup(props, _ref) {
|
277
275
|
var emit = _ref.emit;
|
278
|
-
var zIndex =
|
276
|
+
var zIndex = external_shared_namespaceObject.bkZIndexManager.getMessageNextIndex();
|
279
277
|
var horizontalClass = (0,external_vue_namespaceObject.computed)(function () {
|
280
278
|
return props.position.indexOf('right') > 1 ? 'right' : 'left';
|
281
279
|
});
|
@@ -285,7 +283,7 @@ var notifyProps = {
|
|
285
283
|
var styles = (0,external_vue_namespaceObject.computed)(function () {
|
286
284
|
return _defineProperty(_defineProperty(_defineProperty({}, horizontalClass.value, "".concat(props.offsetX, "px")), verticalProperty.value, "".concat(props.offsetY, "px")), "zIndex", zIndex);
|
287
285
|
});
|
288
|
-
var _usePrefix = (0,
|
286
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
289
287
|
resolveClassName = _usePrefix.resolveClassName;
|
290
288
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
291
289
|
return [resolveClassName('notify'), resolveClassName("notify-".concat(props.theme)), horizontalClass.value];
|
@@ -331,10 +329,10 @@ var notifyProps = {
|
|
331
329
|
var _this = this;
|
332
330
|
var renderIcon = function renderIcon() {
|
333
331
|
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)(
|
332
|
+
primary: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Info, null, null),
|
333
|
+
warning: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Warn, null, null),
|
334
|
+
success: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Success, null, null),
|
335
|
+
error: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, null, null)
|
338
336
|
};
|
339
337
|
return iconMap[_this.theme];
|
340
338
|
};
|
@@ -353,7 +351,7 @@ var notifyProps = {
|
|
353
351
|
"class": "".concat(_this.resolveClassName('notify-content-header'))
|
354
352
|
}, [_this.title]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
355
353
|
"class": "".concat(_this.resolveClassName('notify-content-text'))
|
356
|
-
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(
|
354
|
+
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
357
355
|
"class": "".concat(_this.resolveClassName('notify-icon'), " ").concat(_this.resolveClassName('notify-close')),
|
358
356
|
"onClick": _this.handleClose
|
359
357
|
}, null)]), [[external_vue_namespaceObject.vShow, _this.visible]])];
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import "../
|
2
|
-
import "./overflow-title.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import "../popover/popover.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
7
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
8
5
|
/******/ // The require scope
|
9
6
|
/******/ var __webpack_require__ = {};
|
@@ -41,19 +38,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
41
38
|
;// CONCATENATED MODULE: external "../shared"
|
42
39
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
40
|
var y = x => () => x
|
44
|
-
const
|
41
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
45
42
|
;// CONCATENATED MODULE: external "vue"
|
46
43
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
44
|
var external_vue_y = x => () => x
|
48
45
|
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 });
|
49
46
|
;// CONCATENATED MODULE: external "../popover"
|
50
|
-
var
|
51
|
-
var
|
52
|
-
const
|
53
|
-
;// CONCATENATED MODULE: external "../popover/popover.less"
|
54
|
-
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
|
-
var popover_less_y = x => () => x
|
56
|
-
const popover_less_namespaceObject = popover_less_x({ });
|
47
|
+
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
48
|
+
var external_popover_y = x => () => x
|
49
|
+
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
57
50
|
;// CONCATENATED MODULE: external "vue-types"
|
58
51
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
59
52
|
var external_vue_types_y = x => () => x
|
@@ -83,12 +76,12 @@ function placementType() {
|
|
83
76
|
return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
|
84
77
|
}
|
85
78
|
/* harmony default export */ const props = ({
|
86
|
-
content:
|
87
|
-
type:
|
88
|
-
calType:
|
89
|
-
boundary:
|
79
|
+
content: external_shared_namespaceObject.PropTypes.string,
|
80
|
+
type: external_shared_namespaceObject.PropTypes.oneOf(['tips', 'title']).def('title'),
|
81
|
+
calType: external_shared_namespaceObject.PropTypes.oneOf(['dom', 'canvas']).def('dom'),
|
82
|
+
boundary: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('parent'), external_shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def(document.body),
|
90
83
|
placement: placementType().def(PlacementEnum.TOP_START),
|
91
|
-
resizeable:
|
84
|
+
resizeable: external_shared_namespaceObject.PropTypes.bool,
|
92
85
|
popoverOptions: Object // popover属性
|
93
86
|
});
|
94
87
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
|
@@ -131,7 +124,6 @@ function getActualWidthByDom(text, options) {
|
|
131
124
|
|
132
125
|
|
133
126
|
|
134
|
-
|
135
127
|
/* harmony default export */ const overflow_title = ((0,external_vue_namespaceObject.defineComponent)({
|
136
128
|
name: 'OverflowTitle',
|
137
129
|
props: props,
|
@@ -150,7 +142,7 @@ function getActualWidthByDom(text, options) {
|
|
150
142
|
});
|
151
143
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
152
144
|
var clientWidth = boxRef.value.clientWidth;
|
153
|
-
var resizeHandler = (0,
|
145
|
+
var resizeHandler = (0,external_shared_namespaceObject.debounce)(500, function () {
|
154
146
|
isShowTips.value = false;
|
155
147
|
textProps.value = {};
|
156
148
|
var textWidth = 0;
|
@@ -199,7 +191,7 @@ function getActualWidthByDom(text, options) {
|
|
199
191
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
200
192
|
"ref": "boxRef",
|
201
193
|
"class": "position-relative"
|
202
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
194
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
203
195
|
"placement": this.placement,
|
204
196
|
"boundary": this.boundary || document.body,
|
205
197
|
"popoverDelay": [200, 0]
|
@@ -282,7 +274,7 @@ var overflowTitle = {
|
|
282
274
|
|
283
275
|
|
284
276
|
|
285
|
-
var BkOverflowTitle = (0,
|
277
|
+
var BkOverflowTitle = (0,external_shared_namespaceObject.withInstall)(overflow_title);
|
286
278
|
|
287
279
|
/* harmony default export */ const src = (BkOverflowTitle);
|
288
280
|
var __webpack_exports__OverflowTitle = __webpack_exports__.OverflowTitle;
|
package/lib/pagination/index.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
import "../
|
2
|
-
import "./pagination.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import * as
|
7
|
-
import "../
|
8
|
-
import * as
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
10
|
-
import "../popover/popover.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__select_22a14f69__ from "../select";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
11
7
|
/******/ // The require scope
|
12
8
|
/******/ var __webpack_require__ = {};
|
13
9
|
/******/
|
@@ -41,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
41
37
|
;// CONCATENATED MODULE: external "../shared"
|
42
38
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
39
|
var y = x => () => x
|
44
|
-
const
|
40
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
45
41
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
46
42
|
function _typeof(o) {
|
47
43
|
"@babel/helpers - typeof";
|
@@ -152,17 +148,13 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
152
148
|
var external_vue_y = x => () => x
|
153
149
|
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 });
|
154
150
|
;// CONCATENATED MODULE: external "../config-provider"
|
155
|
-
var
|
156
|
-
var
|
157
|
-
const
|
151
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
152
|
+
var external_config_provider_y = x => () => x
|
153
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
158
154
|
;// CONCATENATED MODULE: external "../select"
|
159
|
-
var
|
160
|
-
var
|
161
|
-
const
|
162
|
-
;// CONCATENATED MODULE: external "../select/select.less"
|
163
|
-
var select_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
164
|
-
var select_less_y = x => () => x
|
165
|
-
const select_less_namespaceObject = select_less_x({ });
|
155
|
+
var external_select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
156
|
+
var external_select_y = x => () => x
|
157
|
+
const external_select_namespaceObject = external_select_x({ ["BkOption"]: () => __WEBPACK_EXTERNAL_MODULE__select_22a14f69__.BkOption, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__select_22a14f69__["default"] });
|
166
158
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-limit.tsx
|
167
159
|
|
168
160
|
|
@@ -195,8 +187,6 @@ const select_less_namespaceObject = select_less_x({ });
|
|
195
187
|
|
196
188
|
|
197
189
|
|
198
|
-
|
199
|
-
|
200
190
|
function _isSlot(s) {
|
201
191
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
202
192
|
}
|
@@ -233,7 +223,7 @@ function _isSlot(s) {
|
|
233
223
|
var handleLimitChange = function handleLimitChange(limit) {
|
234
224
|
localLimit.value = limit;
|
235
225
|
};
|
236
|
-
var _usePrefix = (0,
|
226
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
237
227
|
resolveClassName = _usePrefix.resolveClassName;
|
238
228
|
var render = function render(_ref) {
|
239
229
|
var _slot;
|
@@ -246,7 +236,7 @@ function _isSlot(s) {
|
|
246
236
|
"class": _defineProperty(_defineProperty(_defineProperty({}, resolveClassName('pagination-limit'), true), 'is-first', isFirst), 'is-last', isLast)
|
247
237
|
}, {
|
248
238
|
disabled: proxy.disabled
|
249
|
-
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(
|
239
|
+
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(external_select_namespaceObject["default"], {
|
250
240
|
"class": "".concat(resolveClassName('pagination-limit-select')),
|
251
241
|
"clearable": false,
|
252
242
|
"size": "small",
|
@@ -255,7 +245,7 @@ function _isSlot(s) {
|
|
255
245
|
"onChange": handleLimitChange,
|
256
246
|
"disabled": proxy.disabled
|
257
247
|
}, _isSlot(_slot = proxy.limitList.map(function (num, index) {
|
258
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
248
|
+
return (0,external_vue_namespaceObject.createVNode)(external_select_namespaceObject.BkOption, {
|
259
249
|
"id": num,
|
260
250
|
"name": "".concat(num),
|
261
251
|
"key": "".concat(index, "_").concat(num)
|
@@ -272,9 +262,9 @@ function _isSlot(s) {
|
|
272
262
|
};
|
273
263
|
});
|
274
264
|
;// CONCATENATED MODULE: external "../icon"
|
275
|
-
var
|
276
|
-
var
|
277
|
-
const
|
265
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
266
|
+
var external_icon_y = x => () => x
|
267
|
+
const external_icon_namespaceObject = external_icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleLeft, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleRight, ["Ellipsis"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Ellipsis });
|
278
268
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-list.tsx
|
279
269
|
|
280
270
|
|
@@ -406,7 +396,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
406
396
|
var handleNextBatch = function handleNextBatch() {
|
407
397
|
localCurrent.value = Math.min(proxy.totalPageNum, localCurrent.value + PAGE_ITEMS_NUM);
|
408
398
|
};
|
409
|
-
var _usePrefix = (0,
|
399
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
410
400
|
resolveClassName = _usePrefix.resolveClassName;
|
411
401
|
var render = function render(_ref) {
|
412
402
|
var isFirst = _ref.isFirst,
|
@@ -416,7 +406,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
416
406
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
417
407
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
418
408
|
"onClick": handlePrePage
|
419
|
-
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(
|
409
|
+
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
420
410
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === 1),
|
421
411
|
"key": "1",
|
422
412
|
"onClick": function onClick() {
|
@@ -426,7 +416,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
426
416
|
"key": "pre-batch",
|
427
417
|
"class": "".concat(resolveClassName('pagination-list-pre-batch')),
|
428
418
|
"onClick": handlePreBatch
|
429
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
419
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Ellipsis, null, null)]), list.value.map(function (num) {
|
430
420
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
431
421
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === num),
|
432
422
|
"key": num,
|
@@ -438,7 +428,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
438
428
|
"key": "next-batch",
|
439
429
|
"class": "".concat(resolveClassName('pagination-list-next-batch')),
|
440
430
|
"onClick": handleNextBatch
|
441
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
431
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Ellipsis, null, null)]), proxy.totalPageNum > 1 && (0,external_vue_namespaceObject.createVNode)("div", {
|
442
432
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === proxy.totalPageNum),
|
443
433
|
"key": "last",
|
444
434
|
"onClick": function onClick() {
|
@@ -447,7 +437,7 @@ var PAGE_ITEMS_NUM = 5;
|
|
447
437
|
}, [proxy.totalPageNum]), (0,external_vue_namespaceObject.createVNode)("div", {
|
448
438
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPageNextDisabled.value),
|
449
439
|
"onClick": handleNextPage
|
450
|
-
}, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(
|
440
|
+
}, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, null, null)])]);
|
451
441
|
};
|
452
442
|
return {
|
453
443
|
current: localCurrent,
|
@@ -455,13 +445,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
455
445
|
};
|
456
446
|
});
|
457
447
|
;// CONCATENATED MODULE: external "../popover"
|
458
|
-
var
|
459
|
-
var
|
460
|
-
const
|
461
|
-
;// CONCATENATED MODULE: external "../popover/popover.less"
|
462
|
-
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
463
|
-
var popover_less_y = x => () => x
|
464
|
-
const popover_less_namespaceObject = popover_less_x({ });
|
448
|
+
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
449
|
+
var external_popover_y = x => () => x
|
450
|
+
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
465
451
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-small-list.tsx
|
466
452
|
|
467
453
|
|
@@ -494,7 +480,6 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
494
480
|
|
495
481
|
|
496
482
|
|
497
|
-
|
498
483
|
/* harmony default export */ const use_small_list = (function () {
|
499
484
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
500
485
|
proxy = _getCurrentInstance.proxy;
|
@@ -608,7 +593,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
608
593
|
inputMemo = item;
|
609
594
|
handlePageEditorBlur();
|
610
595
|
};
|
611
|
-
var _usePrefix = (0,
|
596
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
612
597
|
resolveClassName = _usePrefix.resolveClassName;
|
613
598
|
var render = function render() {
|
614
599
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -616,7 +601,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
616
601
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
617
602
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
618
603
|
"onClick": handlePrePage
|
619
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
604
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
|
620
605
|
"theme": "light",
|
621
606
|
"trigger": "click",
|
622
607
|
"arrow": false,
|
@@ -659,7 +644,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
659
644
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
660
645
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-next')), true), 'is-disabled', isPageNextDisabled.value),
|
661
646
|
"onClick": handleNextPage
|
662
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
647
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, null, null)])]);
|
663
648
|
};
|
664
649
|
return {
|
665
650
|
current: localCurrent,
|
@@ -705,7 +690,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
705
690
|
if (!props.showTotalCount) {
|
706
691
|
return null;
|
707
692
|
}
|
708
|
-
var _usePrefix = (0,
|
693
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
709
694
|
resolveClassName = _usePrefix.resolveClassName;
|
710
695
|
return (0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
711
696
|
"class": _defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-total')), true), 'is-first', isFirst), 'is-last', isLast)
|
@@ -753,22 +738,22 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
753
738
|
|
754
739
|
|
755
740
|
var paginationProps = {
|
756
|
-
modelValue:
|
757
|
-
count:
|
758
|
-
limit:
|
759
|
-
limitList:
|
760
|
-
showLimit:
|
761
|
-
type:
|
762
|
-
location:
|
763
|
-
align:
|
764
|
-
size:
|
765
|
-
small:
|
766
|
-
showTotalCount:
|
767
|
-
prevText:
|
768
|
-
nextText:
|
769
|
-
disabled:
|
770
|
-
beforeChange:
|
771
|
-
layout:
|
741
|
+
modelValue: external_shared_namespaceObject.PropTypes.number.def(1),
|
742
|
+
count: external_shared_namespaceObject.PropTypes.number.def(0).isRequired,
|
743
|
+
limit: external_shared_namespaceObject.PropTypes.number.def(10),
|
744
|
+
limitList: external_shared_namespaceObject.PropTypes.arrayOf(Number).def([10, 20, 50, 100]),
|
745
|
+
showLimit: external_shared_namespaceObject.PropTypes.bool.def(true),
|
746
|
+
type: external_shared_namespaceObject.PropTypes.oneOf(['default', 'compact']).def('default'),
|
747
|
+
location: external_shared_namespaceObject.PropTypes.oneOf(['left', 'right']).def('right'),
|
748
|
+
align: external_shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']).def('left'),
|
749
|
+
size: external_shared_namespaceObject.PropTypes.size(),
|
750
|
+
small: external_shared_namespaceObject.PropTypes.bool.def(false),
|
751
|
+
showTotalCount: external_shared_namespaceObject.PropTypes.bool.def(true),
|
752
|
+
prevText: external_shared_namespaceObject.PropTypes.string,
|
753
|
+
nextText: external_shared_namespaceObject.PropTypes.string,
|
754
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
755
|
+
beforeChange: external_shared_namespaceObject.PropTypes.func,
|
756
|
+
layout: external_shared_namespaceObject.PropTypes.custom(function (value) {
|
772
757
|
var layoutNameMap = {
|
773
758
|
total: true,
|
774
759
|
list: true,
|
@@ -784,7 +769,7 @@ var paginationProps = {
|
|
784
769
|
props: paginationProps,
|
785
770
|
emits: ['update:modelValue', 'change', 'update:limit', 'limitChange'],
|
786
771
|
setup: function setup(props, context) {
|
787
|
-
var t = (0,
|
772
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('pagination');
|
788
773
|
var totalPageNum = (0,external_vue_namespaceObject.ref)(0);
|
789
774
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
790
775
|
count = _toRefs.count,
|
@@ -822,7 +807,7 @@ var paginationProps = {
|
|
822
807
|
(0,external_vue_namespaceObject.watch)(localLimit, function (localLimit) {
|
823
808
|
context.emit('limitChange', localLimit);
|
824
809
|
});
|
825
|
-
var _usePrefix = (0,
|
810
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
826
811
|
resolveClassName = _usePrefix.resolveClassName;
|
827
812
|
return {
|
828
813
|
totalPageNum: totalPageNum,
|
@@ -835,7 +820,7 @@ var paginationProps = {
|
|
835
820
|
},
|
836
821
|
render: function render() {
|
837
822
|
var _this = this;
|
838
|
-
var paginationClass = (0,
|
823
|
+
var paginationClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('pagination')), true), "".concat(this.resolveClassName("pagination--".concat(this.size))), true), "is-align-".concat(this.align), true));
|
839
824
|
var layoutMap = {
|
840
825
|
total: this.renderTotal,
|
841
826
|
list: this.small ? this.renderSmallList : this.renderList,
|
@@ -879,7 +864,7 @@ var paginationProps = {
|
|
879
864
|
*/
|
880
865
|
|
881
866
|
|
882
|
-
var BkPagination = (0,
|
867
|
+
var BkPagination = (0,external_shared_namespaceObject.withInstall)(pagination);
|
883
868
|
/* harmony default export */ const src = (BkPagination);
|
884
869
|
|
885
870
|
var __webpack_exports__BkPagination = __webpack_exports__.BkPagination;
|