bkui-vue 0.0.3-beta.6 → 1.0.1
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/README.md +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +164 -170
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +310 -293
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +427 -392
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
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
|
/******/
|
@@ -30,47 +33,47 @@ var __webpack_exports__ = {};
|
|
30
33
|
|
31
34
|
// EXPORTS
|
32
35
|
__webpack_require__.d(__webpack_exports__, {
|
33
|
-
|
34
|
-
|
36
|
+
BkPagination: () => (/* binding */ BkPagination),
|
37
|
+
"default": () => (/* binding */ src)
|
35
38
|
});
|
36
39
|
|
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
|
-
function _typeof(
|
45
|
+
function _typeof(o) {
|
43
46
|
"@babel/helpers - typeof";
|
44
47
|
|
45
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
46
|
-
return typeof
|
47
|
-
} : function (
|
48
|
-
return
|
49
|
-
}, _typeof(
|
48
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
49
|
+
return typeof o;
|
50
|
+
} : function (o) {
|
51
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
52
|
+
}, _typeof(o);
|
50
53
|
}
|
51
54
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
52
55
|
|
53
|
-
function
|
54
|
-
if (
|
55
|
-
var
|
56
|
-
if (
|
57
|
-
var
|
58
|
-
if (
|
56
|
+
function toPrimitive(t, r) {
|
57
|
+
if ("object" != _typeof(t) || !t) return t;
|
58
|
+
var e = t[Symbol.toPrimitive];
|
59
|
+
if (void 0 !== e) {
|
60
|
+
var i = e.call(t, r || "default");
|
61
|
+
if ("object" != _typeof(i)) return i;
|
59
62
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
60
63
|
}
|
61
|
-
return (
|
64
|
+
return ("string" === r ? String : Number)(t);
|
62
65
|
}
|
63
66
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
64
67
|
|
65
68
|
|
66
|
-
function
|
67
|
-
var
|
68
|
-
return _typeof(
|
69
|
+
function toPropertyKey(t) {
|
70
|
+
var i = toPrimitive(t, "string");
|
71
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
69
72
|
}
|
70
73
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
71
74
|
|
72
75
|
function _defineProperty(obj, key, value) {
|
73
|
-
key =
|
76
|
+
key = toPropertyKey(key);
|
74
77
|
if (key in obj) {
|
75
78
|
Object.defineProperty(obj, key, {
|
76
79
|
value: value,
|
@@ -88,31 +91,31 @@ function _arrayWithHoles(arr) {
|
|
88
91
|
if (Array.isArray(arr)) return arr;
|
89
92
|
}
|
90
93
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
91
|
-
function _iterableToArrayLimit(
|
92
|
-
var
|
93
|
-
if (null !=
|
94
|
-
var
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
94
|
+
function _iterableToArrayLimit(r, l) {
|
95
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
96
|
+
if (null != t) {
|
97
|
+
var e,
|
98
|
+
n,
|
99
|
+
i,
|
100
|
+
u,
|
101
|
+
a = [],
|
102
|
+
f = !0,
|
103
|
+
o = !1;
|
101
104
|
try {
|
102
|
-
if (
|
103
|
-
if (Object(
|
104
|
-
|
105
|
-
} else for (; !(
|
106
|
-
} catch (
|
107
|
-
|
105
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
106
|
+
if (Object(t) !== t) return;
|
107
|
+
f = !1;
|
108
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
109
|
+
} catch (r) {
|
110
|
+
o = !0, n = r;
|
108
111
|
} finally {
|
109
112
|
try {
|
110
|
-
if (!
|
113
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
111
114
|
} finally {
|
112
|
-
if (
|
115
|
+
if (o) throw n;
|
113
116
|
}
|
114
117
|
}
|
115
|
-
return
|
118
|
+
return a;
|
116
119
|
}
|
117
120
|
}
|
118
121
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -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,21 +232,20 @@ 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;
|
230
|
-
var _ref2;
|
231
239
|
var isFirst = _ref.isFirst,
|
232
240
|
isLast = _ref.isLast;
|
233
241
|
if (!proxy.showLimit) {
|
234
242
|
return null;
|
235
243
|
}
|
236
244
|
return (0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
237
|
-
"class": (
|
245
|
+
"class": _defineProperty(_defineProperty(_defineProperty({}, resolveClassName('pagination-limit'), true), 'is-first', isFirst), 'is-last', isLast)
|
238
246
|
}, {
|
239
247
|
disabled: proxy.disabled
|
240
|
-
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(
|
248
|
+
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(select_namespaceObject["default"], {
|
241
249
|
"class": "".concat(resolveClassName('pagination-limit-select')),
|
242
250
|
"clearable": false,
|
243
251
|
"size": "small",
|
@@ -246,7 +254,7 @@ function _isSlot(s) {
|
|
246
254
|
"onChange": handleLimitChange,
|
247
255
|
"disabled": proxy.disabled
|
248
256
|
}, _isSlot(_slot = proxy.limitList.map(function (num, index) {
|
249
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
257
|
+
return (0,external_vue_namespaceObject.createVNode)(select_namespaceObject.BkOption, {
|
250
258
|
"id": num,
|
251
259
|
"name": "".concat(num),
|
252
260
|
"key": "".concat(index, "_").concat(num)
|
@@ -263,9 +271,9 @@ function _isSlot(s) {
|
|
263
271
|
};
|
264
272
|
});
|
265
273
|
;// CONCATENATED MODULE: external "../icon"
|
266
|
-
var
|
267
|
-
var
|
268
|
-
const
|
274
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
275
|
+
var icon_y = x => () => x
|
276
|
+
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
277
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-list.tsx
|
270
278
|
|
271
279
|
|
@@ -397,19 +405,18 @@ var PAGE_ITEMS_NUM = 5;
|
|
397
405
|
var handleNextBatch = function handleNextBatch() {
|
398
406
|
localCurrent.value = Math.min(proxy.totalPageNum, localCurrent.value + PAGE_ITEMS_NUM);
|
399
407
|
};
|
400
|
-
var _usePrefix = (0,
|
408
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
401
409
|
resolveClassName = _usePrefix.resolveClassName;
|
402
410
|
var render = function render(_ref) {
|
403
|
-
var _ref2, _ref3, _ref4, _ref6, _ref7;
|
404
411
|
var isFirst = _ref.isFirst,
|
405
412
|
isLast = _ref.isLast;
|
406
413
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
407
|
-
"class": (
|
414
|
+
"class": _defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list')), true), 'is-first', isFirst), 'is-last', isLast)
|
408
415
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
409
|
-
"class": (
|
416
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
410
417
|
"onClick": handlePrePage
|
411
|
-
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(
|
412
|
-
"class": (
|
418
|
+
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
419
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === 1),
|
413
420
|
"key": "1",
|
414
421
|
"onClick": function onClick() {
|
415
422
|
return handleItemClick(1);
|
@@ -418,10 +425,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
418
425
|
"key": "pre-batch",
|
419
426
|
"class": "".concat(resolveClassName('pagination-list-pre-batch')),
|
420
427
|
"onClick": handlePreBatch
|
421
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
422
|
-
var _ref5;
|
428
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), list.value.map(function (num) {
|
423
429
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
424
|
-
"class": (
|
430
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === num),
|
425
431
|
"key": num,
|
426
432
|
"onClick": function onClick() {
|
427
433
|
return handleItemClick(num);
|
@@ -431,16 +437,16 @@ var PAGE_ITEMS_NUM = 5;
|
|
431
437
|
"key": "next-batch",
|
432
438
|
"class": "".concat(resolveClassName('pagination-list-next-batch')),
|
433
439
|
"onClick": handleNextBatch
|
434
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
435
|
-
"class": (
|
440
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), proxy.totalPageNum > 1 && (0,external_vue_namespaceObject.createVNode)("div", {
|
441
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === proxy.totalPageNum),
|
436
442
|
"key": "last",
|
437
443
|
"onClick": function onClick() {
|
438
444
|
return handleItemClick(proxy.totalPageNum);
|
439
445
|
}
|
440
446
|
}, [proxy.totalPageNum]), (0,external_vue_namespaceObject.createVNode)("div", {
|
441
|
-
"class": (
|
447
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPageNextDisabled.value),
|
442
448
|
"onClick": handleNextPage
|
443
|
-
}, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(
|
449
|
+
}, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)])]);
|
444
450
|
};
|
445
451
|
return {
|
446
452
|
current: localCurrent,
|
@@ -448,9 +454,13 @@ var PAGE_ITEMS_NUM = 5;
|
|
448
454
|
};
|
449
455
|
});
|
450
456
|
;// CONCATENATED MODULE: external "../popover"
|
451
|
-
var
|
452
|
-
var
|
453
|
-
const
|
457
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
458
|
+
var popover_y = x => () => x
|
459
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
460
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
461
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
462
|
+
var popover_less_y = x => () => x
|
463
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
454
464
|
;// CONCATENATED MODULE: ../../packages/pagination/src/use-small-list.tsx
|
455
465
|
|
456
466
|
|
@@ -483,6 +493,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
483
493
|
|
484
494
|
|
485
495
|
|
496
|
+
|
486
497
|
/* harmony default export */ const use_small_list = (function () {
|
487
498
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
488
499
|
proxy = _getCurrentInstance.proxy;
|
@@ -597,16 +608,15 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
597
608
|
inputMemo = item;
|
598
609
|
handlePageEditorBlur();
|
599
610
|
};
|
600
|
-
var _usePrefix = (0,
|
611
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
601
612
|
resolveClassName = _usePrefix.resolveClassName;
|
602
613
|
var render = function render() {
|
603
|
-
var _ref, _ref3;
|
604
614
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
605
615
|
"class": "".concat(resolveClassName('pagination-small-list'))
|
606
616
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
607
|
-
"class": (
|
617
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
608
618
|
"onClick": handlePrePage
|
609
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
619
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
610
620
|
"theme": "light",
|
611
621
|
"trigger": "click",
|
612
622
|
"arrow": false,
|
@@ -615,9 +625,8 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
615
625
|
"placement": "bottom"
|
616
626
|
}, {
|
617
627
|
"default": function _default() {
|
618
|
-
var _ref2;
|
619
628
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
620
|
-
"class": (
|
629
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-picker')), true), 'is-focused', isFocused.value)
|
621
630
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
622
631
|
"ref": inputRef,
|
623
632
|
"class": "".concat(resolveClassName('pagination-editor')),
|
@@ -648,9 +657,9 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
648
657
|
})]);
|
649
658
|
}
|
650
659
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
651
|
-
"class": (
|
660
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-next')), true), 'is-disabled', isPageNextDisabled.value),
|
652
661
|
"onClick": handleNextPage
|
653
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
662
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)])]);
|
654
663
|
};
|
655
664
|
return {
|
656
665
|
current: localCurrent,
|
@@ -689,7 +698,6 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
689
698
|
|
690
699
|
/* harmony default export */ const use_total = (function (t) {
|
691
700
|
return function (_ref) {
|
692
|
-
var _ref2;
|
693
701
|
var isFirst = _ref.isFirst,
|
694
702
|
isLast = _ref.isLast;
|
695
703
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
@@ -697,10 +705,10 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
697
705
|
if (!props.showTotalCount) {
|
698
706
|
return null;
|
699
707
|
}
|
700
|
-
var _usePrefix = (0,
|
708
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
701
709
|
resolveClassName = _usePrefix.resolveClassName;
|
702
710
|
return (0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
703
|
-
"class": (
|
711
|
+
"class": _defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-total')), true), 'is-first', isFirst), 'is-last', isLast)
|
704
712
|
}, {
|
705
713
|
disabled: props.disabled
|
706
714
|
}), [t.value.total, (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -745,22 +753,22 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
745
753
|
|
746
754
|
|
747
755
|
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:
|
756
|
+
modelValue: shared_namespaceObject.PropTypes.number.def(1),
|
757
|
+
count: shared_namespaceObject.PropTypes.number.def(0).isRequired,
|
758
|
+
limit: shared_namespaceObject.PropTypes.number.def(10),
|
759
|
+
limitList: shared_namespaceObject.PropTypes.arrayOf(Number).def([10, 20, 50, 100]),
|
760
|
+
showLimit: shared_namespaceObject.PropTypes.bool.def(true),
|
761
|
+
type: shared_namespaceObject.PropTypes.oneOf(['default', 'compact']).def('default'),
|
762
|
+
location: shared_namespaceObject.PropTypes.oneOf(['left', 'right']).def('right'),
|
763
|
+
align: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']).def('left'),
|
764
|
+
size: shared_namespaceObject.PropTypes.size(),
|
765
|
+
small: shared_namespaceObject.PropTypes.bool.def(false),
|
766
|
+
showTotalCount: shared_namespaceObject.PropTypes.bool.def(true),
|
767
|
+
prevText: shared_namespaceObject.PropTypes.string,
|
768
|
+
nextText: shared_namespaceObject.PropTypes.string,
|
769
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
770
|
+
beforeChange: shared_namespaceObject.PropTypes.func,
|
771
|
+
layout: shared_namespaceObject.PropTypes.custom(function (value) {
|
764
772
|
var layoutNameMap = {
|
765
773
|
total: true,
|
766
774
|
list: true,
|
@@ -776,7 +784,7 @@ var paginationProps = {
|
|
776
784
|
props: paginationProps,
|
777
785
|
emits: ['update:modelValue', 'change', 'update:limit', 'limitChange'],
|
778
786
|
setup: function setup(props, context) {
|
779
|
-
var t = (0,
|
787
|
+
var t = (0,config_provider_namespaceObject.useLocale)('pagination');
|
780
788
|
var totalPageNum = (0,external_vue_namespaceObject.ref)(0);
|
781
789
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
782
790
|
count = _toRefs.count,
|
@@ -814,7 +822,7 @@ var paginationProps = {
|
|
814
822
|
(0,external_vue_namespaceObject.watch)(localLimit, function (localLimit) {
|
815
823
|
context.emit('limitChange', localLimit);
|
816
824
|
});
|
817
|
-
var _usePrefix = (0,
|
825
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
818
826
|
resolveClassName = _usePrefix.resolveClassName;
|
819
827
|
return {
|
820
828
|
totalPageNum: totalPageNum,
|
@@ -826,9 +834,8 @@ var paginationProps = {
|
|
826
834
|
};
|
827
835
|
},
|
828
836
|
render: function render() {
|
829
|
-
var
|
830
|
-
|
831
|
-
var paginationClass = (0,external_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));
|
837
|
+
var _this = this;
|
838
|
+
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));
|
832
839
|
var layoutMap = {
|
833
840
|
total: this.renderTotal,
|
834
841
|
list: this.small ? this.renderSmallList : this.renderList,
|
@@ -872,9 +879,9 @@ var paginationProps = {
|
|
872
879
|
*/
|
873
880
|
|
874
881
|
|
875
|
-
var BkPagination = (0,
|
882
|
+
var BkPagination = (0,shared_namespaceObject.withInstall)(pagination);
|
876
883
|
/* harmony default export */ const src = (BkPagination);
|
877
884
|
|
878
|
-
var __webpack_exports__BkPagination = __webpack_exports__.
|
879
|
-
var __webpack_exports__default = __webpack_exports__
|
885
|
+
var __webpack_exports__BkPagination = __webpack_exports__.BkPagination;
|
886
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
880
887
|
export { __webpack_exports__BkPagination as BkPagination, __webpack_exports__default as default };
|