@douyinfe/semi-foundation 2.60.0 → 2.60.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.
@@ -140,6 +140,7 @@ export default class TreeSelectFoundation<P = Record<string, any>, S = Record<st
140
140
  clearInputValue: () => void;
141
141
  _notifyFocus(e: any): void;
142
142
  handleTriggerFocus(e: any): void;
143
+ onClickSingleTriggerSearchItem: (e: any) => void;
143
144
  _notifyBlur(e: any): void;
144
145
  handlerTriggerBlur(e: any): void;
145
146
  toggleHoverState(bool: boolean): void;
@@ -31,6 +31,9 @@ class TreeSelectFoundation extends _foundation.default {
31
31
  } = this.getStates();
32
32
  inputValue && this._adapter.updateInputValue('');
33
33
  };
34
+ this.onClickSingleTriggerSearchItem = e => {
35
+ this.focusInput(true);
36
+ };
34
37
  }
35
38
  init() {
36
39
  const {
@@ -136,6 +136,7 @@
136
136
  }
137
137
  .semi-tree-select-selection-TriggerSearchItem-placeholder {
138
138
  opacity: 0.6;
139
+ z-index: -1;
139
140
  }
140
141
  .semi-tree-select-selection-TriggerSearchItem-disabled {
141
142
  cursor: not-allowed;
@@ -165,6 +165,7 @@ $module: #{$prefix}-tree-select;
165
165
 
166
166
  &-placeholder {
167
167
  opacity: .6;
168
+ z-index: -1;
168
169
  }
169
170
 
170
171
  &-disabled {
@@ -140,6 +140,7 @@ export default class TreeSelectFoundation<P = Record<string, any>, S = Record<st
140
140
  clearInputValue: () => void;
141
141
  _notifyFocus(e: any): void;
142
142
  handleTriggerFocus(e: any): void;
143
+ onClickSingleTriggerSearchItem: (e: any) => void;
143
144
  _notifyBlur(e: any): void;
144
145
  handlerTriggerBlur(e: any): void;
145
146
  toggleHoverState(bool: boolean): void;
@@ -24,6 +24,9 @@ export default class TreeSelectFoundation extends BaseFoundation {
24
24
  } = this.getStates();
25
25
  inputValue && this._adapter.updateInputValue('');
26
26
  };
27
+ this.onClickSingleTriggerSearchItem = e => {
28
+ this.focusInput(true);
29
+ };
27
30
  }
28
31
  init() {
29
32
  const {
@@ -136,6 +136,7 @@
136
136
  }
137
137
  .semi-tree-select-selection-TriggerSearchItem-placeholder {
138
138
  opacity: 0.6;
139
+ z-index: -1;
139
140
  }
140
141
  .semi-tree-select-selection-TriggerSearchItem-disabled {
141
142
  cursor: not-allowed;
@@ -165,6 +165,7 @@ $module: #{$prefix}-tree-select;
165
165
 
166
166
  &-placeholder {
167
167
  opacity: .6;
168
+ z-index: -1;
168
169
  }
169
170
 
170
171
  &-disabled {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.60.0",
3
+ "version": "2.60.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
7
7
  "prepublishOnly": "npm run build:lib"
8
8
  },
9
9
  "dependencies": {
10
- "@douyinfe/semi-animation": "2.60.0",
10
+ "@douyinfe/semi-animation": "2.60.1",
11
11
  "async-validator": "^3.5.0",
12
12
  "classnames": "^2.2.6",
13
13
  "date-fns": "^2.29.3",
@@ -24,7 +24,7 @@
24
24
  "*.scss",
25
25
  "*.css"
26
26
  ],
27
- "gitHead": "4002a3053726ca7c3d5175cad3cd7bc36cf0daf1",
27
+ "gitHead": "9339ff83a2e2c141f7152b56dd544fe7576d667d",
28
28
  "devDependencies": {
29
29
  "@babel/plugin-transform-runtime": "^7.15.8",
30
30
  "@babel/preset-env": "^7.15.8",
@@ -455,6 +455,10 @@ export default class TreeSelectFoundation<P = Record<string, any>, S = Record<st
455
455
  this._registerClickOutsideHandler();
456
456
  }
457
457
 
458
+ onClickSingleTriggerSearchItem = (e: any) => {
459
+ this.focusInput(true);
460
+ }
461
+
458
462
  // Scenes that may trigger blur
459
463
  // 1、clickOutSide
460
464
  // 2、click option / press enter, and then select complete(when multiple is false
@@ -165,6 +165,7 @@ $module: #{$prefix}-tree-select;
165
165
 
166
166
  &-placeholder {
167
167
  opacity: .6;
168
+ z-index: -1;
168
169
  }
169
170
 
170
171
  &-disabled {