@douyinfe/semi-ui 2.47.0-beta.0 → 2.47.0
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/umd/semi-ui.js
CHANGED
|
@@ -62664,7 +62664,11 @@ class DropdownItem extends BaseComponent {
|
|
|
62664
62664
|
if (!disabled) {
|
|
62665
62665
|
['onClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu'].forEach(eventName => {
|
|
62666
62666
|
if (eventName === "onClick") {
|
|
62667
|
-
events["onMouseDown"] =
|
|
62667
|
+
events["onMouseDown"] = e => {
|
|
62668
|
+
if (e.button === 0) {
|
|
62669
|
+
this.props[eventName](e);
|
|
62670
|
+
}
|
|
62671
|
+
};
|
|
62668
62672
|
} else {
|
|
62669
62673
|
events[eventName] = this.props[eventName];
|
|
62670
62674
|
}
|
|
@@ -78888,9 +78892,9 @@ class TableFoundation extends foundation {
|
|
|
78888
78892
|
}, pagination);
|
|
78889
78893
|
if (!this._pagerIsControlled()) {
|
|
78890
78894
|
const total = get_default()(propPagination, 'total', dataSource.length);
|
|
78891
|
-
const pageSize = get_default()(propPagination, 'pageSize', pagination.pageSize);
|
|
78892
78895
|
const {
|
|
78893
|
-
currentPage
|
|
78896
|
+
currentPage,
|
|
78897
|
+
pageSize
|
|
78894
78898
|
} = pagination;
|
|
78895
78899
|
const realTotalPage = Math.ceil(total / pageSize);
|
|
78896
78900
|
pagination.total = total;
|