@douyinfe/semi-ui 2.50.0-beta.0 → 2.50.1
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 +173 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +29 -18
- 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/image/previewInner.d.ts +1 -1
- package/lib/cjs/image/previewInner.js +5 -2
- package/lib/cjs/tree/treeNode.js +1 -0
- package/lib/es/image/previewInner.d.ts +1 -1
- package/lib/es/image/previewInner.js +5 -2
- package/lib/es/tree/treeNode.js +1 -0
- package/package.json +8 -8
|
@@ -86,7 +86,7 @@ export default class PreviewInner extends BaseComponent<PreviewInnerProps, Previ
|
|
|
86
86
|
handlePreviewClose: () => void;
|
|
87
87
|
handleAdjustRatio: (type: RatioType) => void;
|
|
88
88
|
handleRotateImage: (direction: any) => void;
|
|
89
|
-
handleZoomImage: (newZoom: number) => void;
|
|
89
|
+
handleZoomImage: (newZoom: number, notify?: boolean) => void;
|
|
90
90
|
handleMouseUp: (e: any) => void;
|
|
91
91
|
handleMouseMove: (e: any) => void;
|
|
92
92
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
@@ -124,7 +124,9 @@ class PreviewInner extends _baseComponent.default {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
constructor(props) {
|
|
127
|
+
var _this;
|
|
127
128
|
super(props);
|
|
129
|
+
_this = this;
|
|
128
130
|
this.viewVisibleChange = () => {
|
|
129
131
|
this.foundation.handleViewVisibleChange();
|
|
130
132
|
};
|
|
@@ -143,8 +145,9 @@ class PreviewInner extends _baseComponent.default {
|
|
|
143
145
|
this.handleRotateImage = direction => {
|
|
144
146
|
this.foundation.handleRotateImage(direction);
|
|
145
147
|
};
|
|
146
|
-
this.handleZoomImage = newZoom
|
|
147
|
-
|
|
148
|
+
this.handleZoomImage = function (newZoom) {
|
|
149
|
+
let notify = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
150
|
+
_this.foundation.handleZoomImage(newZoom, notify);
|
|
148
151
|
};
|
|
149
152
|
this.handleMouseUp = e => {
|
|
150
153
|
this.foundation.handleMouseUp(e.nativeEvent);
|
package/lib/cjs/tree/treeNode.js
CHANGED
|
@@ -382,6 +382,7 @@ class TreeNode extends _react.PureComponent {
|
|
|
382
382
|
const dragOverGapBottom = dragOverNodeKey === eventKey && dropPosition === 1;
|
|
383
383
|
const nodeCls = (0, _classnames.default)(prefixcls, {
|
|
384
384
|
[`${prefixcls}-level-${level + 1}`]: true,
|
|
385
|
+
[`${prefixcls}-fullLabel-level-${level + 1}`]: renderFullLabel,
|
|
385
386
|
[`${prefixcls}-collapsed`]: !expanded,
|
|
386
387
|
[`${prefixcls}-disabled`]: Boolean(disabled),
|
|
387
388
|
[`${prefixcls}-selected`]: selected,
|
|
@@ -86,7 +86,7 @@ export default class PreviewInner extends BaseComponent<PreviewInnerProps, Previ
|
|
|
86
86
|
handlePreviewClose: () => void;
|
|
87
87
|
handleAdjustRatio: (type: RatioType) => void;
|
|
88
88
|
handleRotateImage: (direction: any) => void;
|
|
89
|
-
handleZoomImage: (newZoom: number) => void;
|
|
89
|
+
handleZoomImage: (newZoom: number, notify?: boolean) => void;
|
|
90
90
|
handleMouseUp: (e: any) => void;
|
|
91
91
|
handleMouseMove: (e: any) => void;
|
|
92
92
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
@@ -117,7 +117,9 @@ export default class PreviewInner extends BaseComponent {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
constructor(props) {
|
|
120
|
+
var _this;
|
|
120
121
|
super(props);
|
|
122
|
+
_this = this;
|
|
121
123
|
this.viewVisibleChange = () => {
|
|
122
124
|
this.foundation.handleViewVisibleChange();
|
|
123
125
|
};
|
|
@@ -136,8 +138,9 @@ export default class PreviewInner extends BaseComponent {
|
|
|
136
138
|
this.handleRotateImage = direction => {
|
|
137
139
|
this.foundation.handleRotateImage(direction);
|
|
138
140
|
};
|
|
139
|
-
this.handleZoomImage = newZoom
|
|
140
|
-
|
|
141
|
+
this.handleZoomImage = function (newZoom) {
|
|
142
|
+
let notify = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
143
|
+
_this.foundation.handleZoomImage(newZoom, notify);
|
|
141
144
|
};
|
|
142
145
|
this.handleMouseUp = e => {
|
|
143
146
|
this.foundation.handleMouseUp(e.nativeEvent);
|
package/lib/es/tree/treeNode.js
CHANGED
|
@@ -373,6 +373,7 @@ export default class TreeNode extends PureComponent {
|
|
|
373
373
|
const dragOverGapBottom = dragOverNodeKey === eventKey && dropPosition === 1;
|
|
374
374
|
const nodeCls = cls(prefixcls, {
|
|
375
375
|
[`${prefixcls}-level-${level + 1}`]: true,
|
|
376
|
+
[`${prefixcls}-fullLabel-level-${level + 1}`]: renderFullLabel,
|
|
376
377
|
[`${prefixcls}-collapsed`]: !expanded,
|
|
377
378
|
[`${prefixcls}-disabled`]: Boolean(disabled),
|
|
378
379
|
[`${prefixcls}-selected`]: selected,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.50.
|
|
3
|
+
"version": "2.50.1",
|
|
4
4
|
"description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"@dnd-kit/core": "^6.0.8",
|
|
21
21
|
"@dnd-kit/sortable": "^7.0.2",
|
|
22
22
|
"@dnd-kit/utilities": "^3.2.1",
|
|
23
|
-
"@douyinfe/semi-animation": "2.50.
|
|
24
|
-
"@douyinfe/semi-animation-react": "2.50.
|
|
25
|
-
"@douyinfe/semi-foundation": "2.50.
|
|
26
|
-
"@douyinfe/semi-icons": "2.50.
|
|
27
|
-
"@douyinfe/semi-illustrations": "2.50.
|
|
28
|
-
"@douyinfe/semi-theme-default": "2.50.
|
|
23
|
+
"@douyinfe/semi-animation": "2.50.1",
|
|
24
|
+
"@douyinfe/semi-animation-react": "2.50.1",
|
|
25
|
+
"@douyinfe/semi-foundation": "2.50.1",
|
|
26
|
+
"@douyinfe/semi-icons": "2.50.1",
|
|
27
|
+
"@douyinfe/semi-illustrations": "2.50.1",
|
|
28
|
+
"@douyinfe/semi-theme-default": "2.50.1",
|
|
29
29
|
"async-validator": "^3.5.0",
|
|
30
30
|
"classnames": "^2.2.6",
|
|
31
31
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
],
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "aa51082cdb589792e9224e02c29288991c442344",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.15.8",
|