@douyinfe/semi-ui 2.38.3-alpha.1 → 2.38.3-alpha.2-patch-table
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 +10 -2
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/anchor/index.d.ts +1 -1
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- package/lib/cjs/button/Button.d.ts +1 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/cjs/carousel/index.d.ts +2 -2
- package/lib/cjs/datePicker/datePicker.d.ts +2 -2
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/quickControl.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/dropdown/dropdownItem.js +2 -1
- package/lib/cjs/dropdown/index.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +4 -4
- package/lib/cjs/form/field.d.ts +4 -4
- package/lib/cjs/modal/confirm.d.ts +34 -34
- package/lib/cjs/popover/index.d.ts +1 -1
- package/lib/cjs/radio/radio.d.ts +1 -1
- package/lib/cjs/radio/radioGroup.d.ts +1 -1
- package/lib/cjs/select/index.d.ts +1 -1
- package/lib/cjs/select/option.js +2 -1
- package/lib/cjs/table/Table.d.ts +1 -1
- package/lib/cjs/table/TableCell.js +7 -1
- package/lib/cjs/table/interface.d.ts +9 -0
- package/lib/cjs/tooltip/index.d.ts +1 -1
- package/lib/cjs/typography/numeral.d.ts +1 -1
- package/lib/cjs/typography/title.d.ts +2 -2
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/autoComplete/index.d.ts +1 -1
- package/lib/es/button/Button.d.ts +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/es/carousel/index.d.ts +2 -2
- package/lib/es/datePicker/datePicker.d.ts +2 -2
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/quickControl.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/dropdown/dropdownItem.js +2 -1
- package/lib/es/dropdown/index.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +4 -4
- package/lib/es/form/field.d.ts +4 -4
- package/lib/es/modal/confirm.d.ts +34 -34
- package/lib/es/popover/index.d.ts +1 -1
- package/lib/es/radio/radio.d.ts +1 -1
- package/lib/es/radio/radioGroup.d.ts +1 -1
- package/lib/es/select/index.d.ts +1 -1
- package/lib/es/select/option.js +2 -1
- package/lib/es/table/Table.d.ts +1 -1
- package/lib/es/table/TableCell.js +7 -1
- package/lib/es/table/interface.d.ts +9 -0
- package/lib/es/tooltip/index.d.ts +1 -1
- package/lib/es/typography/numeral.d.ts +1 -1
- package/lib/es/typography/title.d.ts +2 -2
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -58098,7 +58098,8 @@ class DropdownItem extends BaseComponent {
|
|
|
58098
58098
|
const events = {};
|
|
58099
58099
|
if (!disabled) {
|
|
58100
58100
|
['onClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu'].forEach(eventName => {
|
|
58101
|
-
|
|
58101
|
+
const isInAnotherDropdown = this.context.level !== 1;
|
|
58102
|
+
if (isInAnotherDropdown && eventName === "onClick") {
|
|
58102
58103
|
events["onMouseDown"] = e => {
|
|
58103
58104
|
var _a, _b;
|
|
58104
58105
|
if (e.button === 0) {
|
|
@@ -67917,7 +67918,8 @@ class option_Option extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
67917
67918
|
value,
|
|
67918
67919
|
label,
|
|
67919
67920
|
children
|
|
67920
|
-
}, rest), e)
|
|
67921
|
+
}, rest), e),
|
|
67922
|
+
className
|
|
67921
67923
|
}, rest));
|
|
67922
67924
|
}
|
|
67923
67925
|
const config = {
|
|
@@ -78212,6 +78214,12 @@ class TableCell extends BaseComponent {
|
|
|
78212
78214
|
expandIcon
|
|
78213
78215
|
} = props;
|
|
78214
78216
|
const cellInSelectionColumn = isSelectionColumn(column);
|
|
78217
|
+
const {
|
|
78218
|
+
shouldCellUpdate
|
|
78219
|
+
} = column;
|
|
78220
|
+
if (typeof shouldCellUpdate === 'function') {
|
|
78221
|
+
return shouldCellUpdate(nextProps, props);
|
|
78222
|
+
}
|
|
78215
78223
|
// The expand button may be in a separate column or in the first data column
|
|
78216
78224
|
const columnHasExpandIcon = isExpandedColumn(column) || expandIcon;
|
|
78217
78225
|
if ((cellInSelectionColumn || columnHasExpandIcon) && !isEqual_default()(nextProps, this.props)) {
|