@douyinfe/semi-ui 2.24.1 → 2.24.2
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/lib/cjs/slider/index.js
CHANGED
|
@@ -590,7 +590,9 @@ class Slider extends _baseComponent.default {
|
|
|
590
590
|
if (hasPropValueChange) {
|
|
591
591
|
const nextValue = this.props.value;
|
|
592
592
|
const prevValue = this.state.currentValue;
|
|
593
|
-
this.foundation.handleValueChange(prevValue, nextValue);
|
|
593
|
+
this.foundation.handleValueChange(prevValue, nextValue); // trigger onAfterChange when value is controlled and changed
|
|
594
|
+
|
|
595
|
+
this.props.onAfterChange(this.props.value);
|
|
594
596
|
}
|
|
595
597
|
}
|
|
596
598
|
|
package/lib/es/slider/index.js
CHANGED
|
@@ -570,7 +570,9 @@ export default class Slider extends BaseComponent {
|
|
|
570
570
|
if (hasPropValueChange) {
|
|
571
571
|
const nextValue = this.props.value;
|
|
572
572
|
const prevValue = this.state.currentValue;
|
|
573
|
-
this.foundation.handleValueChange(prevValue, nextValue);
|
|
573
|
+
this.foundation.handleValueChange(prevValue, nextValue); // trigger onAfterChange when value is controlled and changed
|
|
574
|
+
|
|
575
|
+
this.props.onAfterChange(this.props.value);
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
578
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.24.
|
|
3
|
+
"version": "2.24.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.24.
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.24.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.24.
|
|
23
|
-
"@douyinfe/semi-icons": "2.24.
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.24.
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.24.
|
|
20
|
+
"@douyinfe/semi-animation": "2.24.2",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.24.2",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.24.2",
|
|
23
|
+
"@douyinfe/semi-icons": "2.24.2",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.24.2",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.24.2",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "41831fb74dbc194221e9be7034dbcf93e4a35aa5",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|