@douyinfe/semi-ui 2.20.3 → 2.20.4
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/README.md +4 -4
- package/dist/css/semi.css +7 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +30 -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/dropdown/index.js +1 -1
- package/lib/cjs/image/image.d.ts +0 -1
- package/lib/cjs/image/image.js +0 -2
- package/lib/cjs/image/index.d.ts +1 -0
- package/lib/cjs/image/index.js +2 -0
- package/lib/es/dropdown/index.js +1 -1
- package/lib/es/image/image.d.ts +0 -1
- package/lib/es/image/image.js +0 -1
- package/lib/es/image/index.d.ts +1 -0
- package/lib/es/image/index.js +1 -0
- package/package.json +7 -7
package/dist/umd/semi-ui.js
CHANGED
|
@@ -37729,6 +37729,7 @@ class foundation_CarouselFoundation extends foundation {
|
|
|
37729
37729
|
}
|
|
37730
37730
|
|
|
37731
37731
|
next() {
|
|
37732
|
+
this.stop();
|
|
37732
37733
|
const {
|
|
37733
37734
|
activeIndex: stateActiveIndex
|
|
37734
37735
|
} = this.getStates();
|
|
@@ -37743,9 +37744,12 @@ class foundation_CarouselFoundation extends foundation {
|
|
|
37743
37744
|
|
|
37744
37745
|
this.handleNewActiveIndex(targetIndex);
|
|
37745
37746
|
}
|
|
37747
|
+
|
|
37748
|
+
this.handleAutoPlay();
|
|
37746
37749
|
}
|
|
37747
37750
|
|
|
37748
37751
|
prev() {
|
|
37752
|
+
this.stop();
|
|
37749
37753
|
const {
|
|
37750
37754
|
activeIndex: stateActiveIndex
|
|
37751
37755
|
} = this.getStates();
|
|
@@ -37760,6 +37764,8 @@ class foundation_CarouselFoundation extends foundation {
|
|
|
37760
37764
|
|
|
37761
37765
|
this.handleNewActiveIndex(targetIndex);
|
|
37762
37766
|
}
|
|
37767
|
+
|
|
37768
|
+
this.handleAutoPlay();
|
|
37763
37769
|
}
|
|
37764
37770
|
|
|
37765
37771
|
destroy() {
|
|
@@ -61336,7 +61342,7 @@ class dropdown_Dropdown extends baseComponent_BaseComponent {
|
|
|
61336
61342
|
|
|
61337
61343
|
const childrenKeyDown = get_default()(children, 'props.onKeyDown');
|
|
61338
61344
|
|
|
61339
|
-
childrenKeyDown && childrenKeyDown();
|
|
61345
|
+
childrenKeyDown && childrenKeyDown(e);
|
|
61340
61346
|
}
|
|
61341
61347
|
}) : children);
|
|
61342
61348
|
}
|
|
@@ -70953,24 +70959,30 @@ class foundation_SelectFoundation extends foundation {
|
|
|
70953
70959
|
}
|
|
70954
70960
|
|
|
70955
70961
|
clearInput() {
|
|
70956
|
-
|
|
70962
|
+
const {
|
|
70963
|
+
inputValue
|
|
70964
|
+
} = this.getStates(); // only when input is not null, select should notifySearch and updateOptions
|
|
70957
70965
|
|
|
70958
|
-
|
|
70966
|
+
if (inputValue !== '') {
|
|
70967
|
+
this._adapter.updateInputValue('');
|
|
70959
70968
|
|
|
70969
|
+
this._adapter.notifySearch(''); // reset options filter
|
|
70960
70970
|
|
|
70961
|
-
const {
|
|
70962
|
-
options
|
|
70963
|
-
} = this.getStates();
|
|
70964
|
-
const {
|
|
70965
|
-
remote
|
|
70966
|
-
} = this.getProps();
|
|
70967
|
-
let optionsAfterFilter = options;
|
|
70968
70971
|
|
|
70969
|
-
|
|
70970
|
-
|
|
70971
|
-
|
|
70972
|
+
const {
|
|
70973
|
+
options
|
|
70974
|
+
} = this.getStates();
|
|
70975
|
+
const {
|
|
70976
|
+
remote
|
|
70977
|
+
} = this.getProps();
|
|
70978
|
+
let optionsAfterFilter = options;
|
|
70972
70979
|
|
|
70973
|
-
|
|
70980
|
+
if (!remote) {
|
|
70981
|
+
optionsAfterFilter = this._filterOption(options, '');
|
|
70982
|
+
}
|
|
70983
|
+
|
|
70984
|
+
this._adapter.updateOptions(optionsAfterFilter);
|
|
70985
|
+
}
|
|
70974
70986
|
}
|
|
70975
70987
|
|
|
70976
70988
|
focusInput() {
|
|
@@ -103095,9 +103107,6 @@ previewInner_PreviewInner.defaultProps = {
|
|
|
103095
103107
|
maskClosable: true,
|
|
103096
103108
|
viewerVisibleDelay: 10000
|
|
103097
103109
|
};
|
|
103098
|
-
// EXTERNAL MODULE: ../semi-foundation/image/image.scss
|
|
103099
|
-
var image_image = __webpack_require__("txvO");
|
|
103100
|
-
|
|
103101
103110
|
// CONCATENATED MODULE: ../semi-foundation/image/imageFoundation.ts
|
|
103102
103111
|
|
|
103103
103112
|
|
|
@@ -103192,7 +103201,6 @@ class imageFoundation_ImageFoundation extends foundation {
|
|
|
103192
103201
|
|
|
103193
103202
|
|
|
103194
103203
|
|
|
103195
|
-
|
|
103196
103204
|
const image_prefixCls = image_constants_cssClasses.PREFIX;
|
|
103197
103205
|
class image_Image extends baseComponent_BaseComponent {
|
|
103198
103206
|
constructor(props) {
|
|
@@ -103400,10 +103408,14 @@ image_Image.propTypes = {
|
|
|
103400
103408
|
image_Image.defaultProps = {
|
|
103401
103409
|
preview: true
|
|
103402
103410
|
};
|
|
103411
|
+
// EXTERNAL MODULE: ../semi-foundation/image/image.scss
|
|
103412
|
+
var image_image = __webpack_require__("txvO");
|
|
103413
|
+
|
|
103403
103414
|
// CONCATENATED MODULE: ./image/index.tsx
|
|
103404
103415
|
|
|
103405
103416
|
|
|
103406
103417
|
|
|
103418
|
+
|
|
103407
103419
|
/* harmony default export */ var image_0 = (image_Image);
|
|
103408
103420
|
|
|
103409
103421
|
|