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