@douyinfe/semi-ui 2.32.0-beta.0 → 2.32.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/css/semi.css +10 -3
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +11368 -6147
- 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/modal/Modal.js +7 -7
- package/lib/cjs/table/Table.js +2 -2
- package/lib/es/modal/Modal.js +7 -7
- package/lib/es/table/Table.js +2 -2
- package/package.json +10 -10
package/lib/cjs/modal/Modal.js
CHANGED
|
@@ -163,10 +163,7 @@ class Modal extends _baseComponent.default {
|
|
|
163
163
|
this._haveRendered = true;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
167
|
-
style: wrapperStyle,
|
|
168
|
-
getPopupContainer: getPopupContainer
|
|
169
|
-
}, /*#__PURE__*/_react.default.createElement(_cssAnimation.default, {
|
|
166
|
+
return /*#__PURE__*/_react.default.createElement(_cssAnimation.default, {
|
|
170
167
|
motion: this.props.motion,
|
|
171
168
|
animationState: visible ? 'enter' : 'leave',
|
|
172
169
|
startClassName: visible ? `${_constants.cssClasses.DIALOG}-content-animate-show` : `${_constants.cssClasses.DIALOG}-content-animate-hide`,
|
|
@@ -190,7 +187,10 @@ class Modal extends _baseComponent.default {
|
|
|
190
187
|
animationClassName: maskAnimationClassName,
|
|
191
188
|
animationEventsNeedBind: maskAnimationEventsNeedBind
|
|
192
189
|
} = _ref2;
|
|
193
|
-
return shouldRender ? /*#__PURE__*/_react.default.createElement(
|
|
190
|
+
return shouldRender ? /*#__PURE__*/_react.default.createElement(_portal.default, {
|
|
191
|
+
style: wrapperStyle,
|
|
192
|
+
getPopupContainer: getPopupContainer
|
|
193
|
+
}, " ", /*#__PURE__*/_react.default.createElement(_ModalContent.default, Object.assign({}, restProps, {
|
|
194
194
|
contentExtraProps: animationEventsNeedBind,
|
|
195
195
|
maskExtraProps: maskAnimationEventsNeedBind,
|
|
196
196
|
isFullScreen: this.state.isFullScreen,
|
|
@@ -203,9 +203,9 @@ class Modal extends _baseComponent.default {
|
|
|
203
203
|
ref: this.modalRef,
|
|
204
204
|
footer: renderFooter,
|
|
205
205
|
onClose: this.handleCancel
|
|
206
|
-
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
206
|
+
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
207
207
|
});
|
|
208
|
-
})
|
|
208
|
+
});
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
this.state = {
|
package/lib/cjs/table/Table.js
CHANGED
|
@@ -1174,13 +1174,13 @@ class Table extends _baseComponent.default {
|
|
|
1174
1174
|
if (props.columns && props.columns !== state.cachedColumns) {
|
|
1175
1175
|
const newFlattenColumns = (0, _utils.flattenColumns)(props.columns);
|
|
1176
1176
|
willUpdateStates.flattenColumns = newFlattenColumns;
|
|
1177
|
-
willUpdateStates.queries = (0,
|
|
1177
|
+
willUpdateStates.queries = (0, _utils2.mergeColumns)(state.queries, newFlattenColumns, null, false);
|
|
1178
1178
|
willUpdateStates.cachedColumns = props.columns;
|
|
1179
1179
|
willUpdateStates.cachedChildren = null;
|
|
1180
1180
|
} else if (props.children && props.children !== state.cachedChildren) {
|
|
1181
1181
|
const newNestedColumns = (0, _getColumns.default)(props.children);
|
|
1182
1182
|
const newFlattenColumns = (0, _utils.flattenColumns)(newNestedColumns);
|
|
1183
|
-
const columns = (0,
|
|
1183
|
+
const columns = (0, _utils2.mergeColumns)(state.queries, newFlattenColumns, null, false);
|
|
1184
1184
|
willUpdateStates.flattenColumns = newFlattenColumns;
|
|
1185
1185
|
willUpdateStates.queries = [...columns];
|
|
1186
1186
|
willUpdateStates.cachedColumns = [...newNestedColumns];
|
package/lib/es/modal/Modal.js
CHANGED
|
@@ -135,10 +135,7 @@ class Modal extends BaseComponent {
|
|
|
135
135
|
this._haveRendered = true;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
return /*#__PURE__*/React.createElement(
|
|
139
|
-
style: wrapperStyle,
|
|
140
|
-
getPopupContainer: getPopupContainer
|
|
141
|
-
}, /*#__PURE__*/React.createElement(CSSAnimation, {
|
|
138
|
+
return /*#__PURE__*/React.createElement(CSSAnimation, {
|
|
142
139
|
motion: this.props.motion,
|
|
143
140
|
animationState: visible ? 'enter' : 'leave',
|
|
144
141
|
startClassName: visible ? `${cssClasses.DIALOG}-content-animate-show` : `${cssClasses.DIALOG}-content-animate-hide`,
|
|
@@ -162,7 +159,10 @@ class Modal extends BaseComponent {
|
|
|
162
159
|
animationClassName: maskAnimationClassName,
|
|
163
160
|
animationEventsNeedBind: maskAnimationEventsNeedBind
|
|
164
161
|
} = _ref2;
|
|
165
|
-
return shouldRender ? /*#__PURE__*/React.createElement(
|
|
162
|
+
return shouldRender ? /*#__PURE__*/React.createElement(Portal, {
|
|
163
|
+
style: wrapperStyle,
|
|
164
|
+
getPopupContainer: getPopupContainer
|
|
165
|
+
}, " ", /*#__PURE__*/React.createElement(ModalContent, Object.assign({}, restProps, {
|
|
166
166
|
contentExtraProps: animationEventsNeedBind,
|
|
167
167
|
maskExtraProps: maskAnimationEventsNeedBind,
|
|
168
168
|
isFullScreen: this.state.isFullScreen,
|
|
@@ -175,9 +175,9 @@ class Modal extends BaseComponent {
|
|
|
175
175
|
ref: this.modalRef,
|
|
176
176
|
footer: renderFooter,
|
|
177
177
|
onClose: this.handleCancel
|
|
178
|
-
})) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
178
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
179
179
|
});
|
|
180
|
-
})
|
|
180
|
+
});
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
this.state = {
|
package/lib/es/table/Table.js
CHANGED
|
@@ -45,7 +45,7 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
45
45
|
import React, { createRef, isValidElement } from 'react';
|
|
46
46
|
import PropTypes from 'prop-types';
|
|
47
47
|
import classnames from 'classnames';
|
|
48
|
-
import { mergeQueries, equalWith,
|
|
48
|
+
import { mergeQueries, equalWith, assignColumnKeys, flattenColumns, getAllDisabledRowKeys } from '@douyinfe/semi-foundation/lib/es/table/utils';
|
|
49
49
|
import Store from '@douyinfe/semi-foundation/lib/es/utils/Store';
|
|
50
50
|
import TableFoundation from '@douyinfe/semi-foundation/lib/es/table/foundation';
|
|
51
51
|
import { strings, cssClasses, numbers } from '@douyinfe/semi-foundation/lib/es/table/constants';
|
|
@@ -64,7 +64,7 @@ import ColumnSorter from './ColumnSorter';
|
|
|
64
64
|
import ExpandedIcon from './CustomExpandIcon';
|
|
65
65
|
import HeadTable from './HeadTable';
|
|
66
66
|
import BodyTable from './Body';
|
|
67
|
-
import { logger, cloneDeep, mergeComponents } from './utils';
|
|
67
|
+
import { logger, cloneDeep, mergeComponents, mergeColumns } from './utils';
|
|
68
68
|
|
|
69
69
|
class Table extends BaseComponent {
|
|
70
70
|
constructor(props, context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.32.0
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.32.0
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.32.0
|
|
22
|
-
"@douyinfe/semi-foundation": "2.32.0
|
|
23
|
-
"@douyinfe/semi-icons": "2.32.0
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.32.0
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.32.0
|
|
20
|
+
"@douyinfe/semi-animation": "2.32.0",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.32.0",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.32.0",
|
|
23
|
+
"@douyinfe/semi-icons": "2.32.0",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.32.0",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.32.0",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
29
|
-
"date-fns": "^2.
|
|
30
|
-
"date-fns-tz": "^1.
|
|
29
|
+
"date-fns": "^2.29.3",
|
|
30
|
+
"date-fns-tz": "^1.3.8",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
32
|
"prop-types": "^15.7.2",
|
|
33
33
|
"react-resizable": "^1.8.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6cf04209adcb1c3ab8d24ba7aec0025394d82d49",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|