bkui-vue 2.0.1-beta.85 → 2.0.1-beta.87
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 +3 -3
- package/dist/index.esm.js +15 -14
- package/dist/index.umd.js +3 -3
- package/lib/date-picker/index.js +2 -2
- package/lib/index.js +1 -1
- package/lib/menu/index.d.ts +1 -0
- package/lib/menu/index.js +2 -2
- package/lib/menu/submenu.d.ts +1 -0
- package/lib/pagination/index.js +15 -0
- package/lib/table/index.js +1 -0
- package/package.json +1 -1
package/lib/date-picker/index.js
CHANGED
@@ -4722,6 +4722,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4722
4722
|
};
|
4723
4723
|
var handleBlur = function handleBlur(e) {
|
4724
4724
|
var _pickerPanelRef$value3, _formItem$validate2;
|
4725
|
+
emit('blur');
|
4725
4726
|
if (state.internalFocus) {
|
4726
4727
|
state.internalFocus = false;
|
4727
4728
|
return;
|
@@ -4736,7 +4737,6 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4736
4737
|
reset();
|
4737
4738
|
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 || _pickerPanelRef$value3.onToggleVisibility(false);
|
4738
4739
|
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
4739
|
-
emit('blur');
|
4740
4740
|
};
|
4741
4741
|
var handleKeydown = function handleKeydown(e) {
|
4742
4742
|
var keyCode = e.keyCode;
|
@@ -5439,6 +5439,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5439
5439
|
};
|
5440
5440
|
var handleBlur = function handleBlur(e) {
|
5441
5441
|
var _pickerPanelRef$value5, _formItem$validate2;
|
5442
|
+
emit('blur');
|
5442
5443
|
if (state.internalFocus) {
|
5443
5444
|
state.internalFocus = false;
|
5444
5445
|
return;
|
@@ -5453,7 +5454,6 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5453
5454
|
reset();
|
5454
5455
|
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value5 = pickerPanelRef.value) === null || _pickerPanelRef$value5 === void 0 || _pickerPanelRef$value5.onToggleVisibility(false);
|
5455
5456
|
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
5456
|
-
emit('blur');
|
5457
5457
|
};
|
5458
5458
|
var handleKeydown = function handleKeydown(e) {
|
5459
5459
|
var keyCode = e.keyCode;
|
package/lib/index.js
CHANGED
package/lib/menu/index.d.ts
CHANGED
package/lib/menu/index.js
CHANGED
@@ -649,7 +649,7 @@ var subMenuProps = {
|
|
649
649
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
650
650
|
resolveClassName = _usePrefix.resolveClassName;
|
651
651
|
return function () {
|
652
|
-
var _slots$icon, _slots$default;
|
652
|
+
var _slots$icon, _slots$title, _slots$default;
|
653
653
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
654
654
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('menu-submenu')), true), 'is-opened', isShow.value)
|
655
655
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -664,7 +664,7 @@ var subMenuProps = {
|
|
664
664
|
"class": "menu-icon"
|
665
665
|
}, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
|
666
666
|
"class": "submenu-header-content"
|
667
|
-
}, [props.title]), (0,external_vue_namespaceObject.createVNode)(_namespaceObject.AngleDown, {
|
667
|
+
}, [((_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots)) || props.title]), (0,external_vue_namespaceObject.createVNode)(_namespaceObject.AngleDown, {
|
668
668
|
"class": {
|
669
669
|
'submenu-header-collapse': true,
|
670
670
|
'is-collapse': openedKeys.value.includes(key)
|
package/lib/menu/submenu.d.ts
CHANGED
package/lib/pagination/index.js
CHANGED
@@ -342,6 +342,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
342
342
|
(0,external_vue_namespaceObject.watch)(function () {
|
343
343
|
return proxy.modelValue;
|
344
344
|
}, function (modelValue) {
|
345
|
+
if (proxy.small) {
|
346
|
+
return;
|
347
|
+
}
|
345
348
|
// nextTick延后执行,保证proxy.totalPageNum计算正确
|
346
349
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
347
350
|
if (modelValue >= 1 && modelValue <= proxy.totalPageNum) {
|
@@ -360,6 +363,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
360
363
|
(0,external_vue_namespaceObject.watch)(function () {
|
361
364
|
return proxy.totalPageNum;
|
362
365
|
}, function (totalPageNum) {
|
366
|
+
if (proxy.small) {
|
367
|
+
return;
|
368
|
+
}
|
363
369
|
if (localCurrent.value > totalPageNum) {
|
364
370
|
localCurrent.value = totalPageNum;
|
365
371
|
}
|
@@ -535,6 +541,9 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
535
541
|
(0,external_vue_namespaceObject.watch)(function () {
|
536
542
|
return proxy.modelValue;
|
537
543
|
}, function (modelValue) {
|
544
|
+
if (!proxy.small) {
|
545
|
+
return;
|
546
|
+
}
|
538
547
|
// nextTick延后执行,保证proxy.totalPageNum计算正确
|
539
548
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
540
549
|
if (modelValue >= 1 && modelValue <= proxy.totalPageNum) {
|
@@ -554,6 +563,9 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
554
563
|
(0,external_vue_namespaceObject.watch)(function () {
|
555
564
|
return proxy.totalPageNum;
|
556
565
|
}, function (totalPageNum) {
|
566
|
+
if (!proxy.small) {
|
567
|
+
return;
|
568
|
+
}
|
557
569
|
if (localCurrent.value > totalPageNum) {
|
558
570
|
localCurrent.value = totalPageNum;
|
559
571
|
}
|
@@ -848,6 +860,9 @@ var paginationProps = {
|
|
848
860
|
immediate: true
|
849
861
|
});
|
850
862
|
(0,external_vue_namespaceObject.watch)(listCurrent, function (listCurrent) {
|
863
|
+
if (props.small) {
|
864
|
+
return;
|
865
|
+
}
|
851
866
|
context.emit('update:modelValue', listCurrent);
|
852
867
|
context.emit('change', listCurrent);
|
853
868
|
});
|
package/lib/table/index.js
CHANGED
@@ -24497,6 +24497,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24497
24497
|
props: tableProps,
|
24498
24498
|
emits: EMIT_EVENT_TYPES,
|
24499
24499
|
setup: function setup(props, ctx) {
|
24500
|
+
if (false) {}
|
24500
24501
|
var columns = use_columns(props);
|
24501
24502
|
var rows = use_rows(props);
|
24502
24503
|
var pagination = use_pagination(props);
|