bkui-vue 2.0.2-beta.60 → 2.0.2-beta.62

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/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.60";
6
+ export const version = "2.0.2-beta.62";
7
7
  window.__bkui_vue_version__ = version;
@@ -202,7 +202,8 @@ function _isSlot(s) {
202
202
  }
203
203
  /* harmony default export */ const use_limit = (function (t) {
204
204
  var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
205
- proxy = _getCurrentInstance.proxy;
205
+ proxy = _getCurrentInstance.proxy,
206
+ slots = _getCurrentInstance.slots;
206
207
  var localLimit = (0,external_vue_namespaceObject.ref)(proxy.limit);
207
208
  /**
208
209
  * @desc 同步props.limit的变化
@@ -236,6 +237,7 @@ function _isSlot(s) {
236
237
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
237
238
  resolveClassName = _usePrefix.resolveClassName;
238
239
  var render = function render(_ref) {
240
+ var _slots$limitAppend;
239
241
  var _slot;
240
242
  var isFirst = _ref.isFirst,
241
243
  isLast = _ref.isLast;
@@ -263,7 +265,7 @@ function _isSlot(s) {
263
265
  "default": function _default() {
264
266
  return [_slot];
265
267
  }
266
- }), (0,external_vue_namespaceObject.createVNode)("div", null, [t.value.strip])]);
268
+ }), (0,external_vue_namespaceObject.createVNode)("div", null, [t.value.strip]), (_slots$limitAppend = slots.limitAppend) === null || _slots$limitAppend === void 0 ? void 0 : _slots$limitAppend.call(slots)]);
267
269
  };
268
270
  return {
269
271
  limit: localLimit,
@@ -308,7 +310,8 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
308
310
  var PAGE_ITEMS_NUM = 5;
309
311
  /* harmony default export */ const use_list = (function () {
310
312
  var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
311
- proxy = _getCurrentInstance.proxy;
313
+ proxy = _getCurrentInstance.proxy,
314
+ slots = _getCurrentInstance.slots;
312
315
  var localCurrent = (0,external_vue_namespaceObject.ref)(1);
313
316
  var isPagePreDisabled = (0,external_vue_namespaceObject.computed)(function () {
314
317
  return localCurrent.value === 1;
@@ -429,6 +432,7 @@ var PAGE_ITEMS_NUM = 5;
429
432
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
430
433
  resolveClassName = _usePrefix.resolveClassName;
431
434
  var render = function render(_ref) {
435
+ var _slots$listAppend;
432
436
  var isFirst = _ref.isFirst,
433
437
  isLast = _ref.isLast;
434
438
  return (0,external_vue_namespaceObject.createVNode)("div", {
@@ -467,7 +471,7 @@ var PAGE_ITEMS_NUM = 5;
467
471
  }, [proxy.totalPageNum]), (0,external_vue_namespaceObject.createVNode)("div", {
468
472
  "class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPageNextDisabled.value),
469
473
  "onClick": handleNextPage
470
- }, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)])]);
474
+ }, [proxy.nextText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)]), (_slots$listAppend = slots.listAppend) === null || _slots$listAppend === void 0 ? void 0 : _slots$listAppend.call(slots)]);
471
475
  };
472
476
  return {
473
477
  current: localCurrent,
@@ -517,7 +521,8 @@ const popover_less_namespaceObject = popover_less_x({ });
517
521
 
518
522
  /* harmony default export */ const use_small_list = (function () {
519
523
  var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
520
- proxy = _getCurrentInstance.proxy;
524
+ proxy = _getCurrentInstance.proxy,
525
+ slots = _getCurrentInstance.slots;
521
526
  var inputRef = (0,external_vue_namespaceObject.ref)(null);
522
527
  var isFocused = (0,external_vue_namespaceObject.ref)(false);
523
528
  var localCurrent = (0,external_vue_namespaceObject.ref)(1);
@@ -655,6 +660,7 @@ const popover_less_namespaceObject = popover_less_x({ });
655
660
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
656
661
  resolveClassName = _usePrefix.resolveClassName;
657
662
  var render = function render() {
663
+ var _slots$smallListAppen;
658
664
  return (0,external_vue_namespaceObject.createVNode)("div", {
659
665
  "class": "".concat(resolveClassName('pagination-small-list'))
660
666
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
@@ -712,7 +718,7 @@ const popover_less_namespaceObject = popover_less_x({ });
712
718
  }), (0,external_vue_namespaceObject.createVNode)("div", {
713
719
  "class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-next')), true), 'is-disabled', isPageNextDisabled.value),
714
720
  "onClick": handleNextPage
715
- }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)])]);
721
+ }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)]), (_slots$smallListAppen = slots.smallListAppend) === null || _slots$smallListAppen === void 0 ? void 0 : _slots$smallListAppen.call(slots)]);
716
722
  };
717
723
  return {
718
724
  current: localCurrent,
@@ -751,10 +757,12 @@ const popover_less_namespaceObject = popover_less_x({ });
751
757
 
752
758
  /* harmony default export */ const use_total = (function (t) {
753
759
  return function (_ref) {
760
+ var _slots$totalAppend;
754
761
  var isFirst = _ref.isFirst,
755
762
  isLast = _ref.isLast;
756
763
  var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
757
- props = _getCurrentInstance.props;
764
+ props = _getCurrentInstance.props,
765
+ slots = _getCurrentInstance.slots;
758
766
  if (!props.showTotalCount) {
759
767
  return null;
760
768
  }
@@ -766,7 +774,7 @@ const popover_less_namespaceObject = popover_less_x({ });
766
774
  disabled: props.disabled
767
775
  }), [t.value.total, (0,external_vue_namespaceObject.createVNode)("div", {
768
776
  "class": "".concat(resolveClassName('pagination-total-num'))
769
- }, [props.count]), t.value.strip]);
777
+ }, [props.count]), t.value.strip, (_slots$totalAppend = slots.totalAppend) === null || _slots$totalAppend === void 0 ? void 0 : _slots$totalAppend.call(slots)]);
770
778
  };
771
779
  });
772
780
  ;// CONCATENATED MODULE: ../../packages/pagination/src/pagination.tsx
@@ -36,6 +36,7 @@
36
36
  }
37
37
  .bk-pagination-list {
38
38
  display: flex;
39
+ align-items: center;
39
40
  margin-right: 8px;
40
41
  }
41
42
  .bk-pagination-list-pre-batch,
@@ -49,6 +49,7 @@
49
49
 
50
50
  .@{bk-prefix}-pagination-list {
51
51
  display: flex;
52
+ align-items: center;
52
53
  margin-right: 8px;
53
54
  }
54
55
 
@@ -167,6 +167,7 @@
167
167
  }
168
168
  .bk-pagination-list {
169
169
  display: flex;
170
+ align-items: center;
170
171
  margin-right: 8px;
171
172
  }
172
173
  .bk-pagination-list-pre-batch,
@@ -3326,7 +3326,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3326
3326
  function _setMenuList() {
3327
3327
  _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
3328
3328
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
3329
- var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
3329
+ var list, _usingItem$value14, _usingItem$value15, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
3330
3330
  return regenerator_default().wrap(function _callee5$(_context5) {
3331
3331
  while (1) switch (_context5.prev = _context5.next) {
3332
3332
  case 0:
@@ -3337,7 +3337,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3337
3337
  }
3338
3338
  loading.value = true;
3339
3339
  _context5.next = 5;
3340
- return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim())["catch"](function () {
3340
+ return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim() || ((_usingItem$value15 = usingItem.value) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15.values) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15[0]) === null || _usingItem$value15 === void 0 ? void 0 : _usingItem$value15.name) || '')["catch"](function () {
3341
3341
  return [];
3342
3342
  });
3343
3343
  case 5:
@@ -3433,7 +3433,6 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3433
3433
  }
3434
3434
  case 10:
3435
3435
  menuList.value = list;
3436
- console.log('list', list);
3437
3436
  if (props.valueBehavior === ValueBehavior.NEED_KEY) {
3438
3437
  hoverItem = list.find(function (item) {
3439
3438
  return !item.disabled;
@@ -3444,7 +3443,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3444
3443
  menuHoverId.value = hoverItem.id;
3445
3444
  }
3446
3445
  }
3447
- case 13:
3446
+ case 12:
3448
3447
  case "end":
3449
3448
  return _context5.stop();
3450
3449
  }
@@ -718,6 +718,7 @@
718
718
  }
719
719
  .bk-pagination-list {
720
720
  display: flex;
721
+ align-items: center;
721
722
  margin-right: 8px;
722
723
  }
723
724
  .bk-pagination-list-pre-batch,
@@ -849,6 +849,7 @@
849
849
  }
850
850
  .bk-pagination-list {
851
851
  display: flex;
852
+ align-items: center;
852
853
  margin-right: 8px;
853
854
  }
854
855
  .bk-pagination-list-pre-batch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.60",
3
+ "version": "2.0.2-beta.62",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",