@douyinfe/semi-ui 2.38.2 → 2.39.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 +14 -2
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +9 -4
- 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/treeSelect/index.js +1 -1
- package/lib/es/treeSelect/index.js +1 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -17854,9 +17854,14 @@ class AnchorFoundation extends foundation {
|
|
|
17854
17854
|
*/
|
|
17855
17855
|
behavior: actions => {
|
|
17856
17856
|
// We just need to scroll the innermost target container
|
|
17857
|
-
const
|
|
17858
|
-
|
|
17859
|
-
|
|
17857
|
+
const verticalScrollAction = actions.find(action => {
|
|
17858
|
+
const {
|
|
17859
|
+
el
|
|
17860
|
+
} = action;
|
|
17861
|
+
return el.scrollHeight > el.clientHeight;
|
|
17862
|
+
});
|
|
17863
|
+
const el = get_default()(verticalScrollAction, 'el');
|
|
17864
|
+
const top = get_default()(verticalScrollAction, 'top');
|
|
17860
17865
|
if (el) {
|
|
17861
17866
|
const offsetTop = top - targetOffset;
|
|
17862
17867
|
if (el.scroll && canSmoothScroll) {
|
|
@@ -87678,7 +87683,7 @@ class TreeSelect extends BaseComponent {
|
|
|
87678
87683
|
// searchPosition = dropdown and single seleciton
|
|
87679
87684
|
if (!multiple || !this.hasValue()) {
|
|
87680
87685
|
const renderText = this.foundation.getRenderTextInSingle();
|
|
87681
|
-
const spanCls = classnames_default()({
|
|
87686
|
+
const spanCls = classnames_default()(`${treeSelect_prefixcls}-selection-content`, {
|
|
87682
87687
|
[`${treeSelect_prefixcls}-selection-placeholder`]: !renderText
|
|
87683
87688
|
});
|
|
87684
87689
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|