@douyinfe/semi-foundation 2.80.0 → 2.81.0-beta.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.
@@ -934,6 +934,7 @@ $module-list: #{$prefix}-scrolllist;
934
934
 
935
935
  .#{$prefix}-input-wrapper {
936
936
  background-color: transparent;
937
+ height: fit-content;
937
938
  border: none;
938
939
  }
939
940
 
@@ -621,6 +621,7 @@
621
621
  }
622
622
  .semi-datepicker-range-input-wrapper .semi-input-wrapper {
623
623
  background-color: transparent;
624
+ height: fit-content;
624
625
  border: none;
625
626
  }
626
627
  .semi-datepicker-range-input-wrapper-focus {
@@ -934,6 +934,7 @@ $module-list: #{$prefix}-scrolllist;
934
934
 
935
935
  .#{$prefix}-input-wrapper {
936
936
  background-color: transparent;
937
+ height: fit-content;
937
938
  border: none;
938
939
  }
939
940
 
@@ -64,6 +64,7 @@ class Tooltip extends _foundation.default {
64
64
  }
65
65
  };
66
66
  this.show = () => {
67
+ this._initContainerPosition();
67
68
  if (this._adapter.getAnimatingState()) {
68
69
  return;
69
70
  }
@@ -233,7 +234,6 @@ class Tooltip extends _foundation.default {
233
234
  this._mounted = true;
234
235
  this._bindEvent();
235
236
  this._shouldShow();
236
- this._initContainerPosition();
237
237
  if (!wrapperId) {
238
238
  this._adapter.setId();
239
239
  }
@@ -1041,6 +1041,9 @@ class Tooltip extends _foundation.default {
1041
1041
  this._adapter.unregisterScrollHandler();
1042
1042
  }
1043
1043
  _initContainerPosition() {
1044
+ if (this._adapter.getContainerPosition() || !this._adapter.containerIsBody()) {
1045
+ return;
1046
+ }
1044
1047
  this._adapter.updateContainerPosition();
1045
1048
  }
1046
1049
  _handleTriggerKeydown(event) {
@@ -621,6 +621,7 @@
621
621
  }
622
622
  .semi-datepicker-range-input-wrapper .semi-input-wrapper {
623
623
  background-color: transparent;
624
+ height: fit-content;
624
625
  border: none;
625
626
  }
626
627
  .semi-datepicker-range-input-wrapper-focus {
@@ -934,6 +934,7 @@ $module-list: #{$prefix}-scrolllist;
934
934
 
935
935
  .#{$prefix}-input-wrapper {
936
936
  background-color: transparent;
937
+ height: fit-content;
937
938
  border: none;
938
939
  }
939
940
 
@@ -57,6 +57,7 @@ export default class Tooltip extends BaseFoundation {
57
57
  }
58
58
  };
59
59
  this.show = () => {
60
+ this._initContainerPosition();
60
61
  if (this._adapter.getAnimatingState()) {
61
62
  return;
62
63
  }
@@ -226,7 +227,6 @@ export default class Tooltip extends BaseFoundation {
226
227
  this._mounted = true;
227
228
  this._bindEvent();
228
229
  this._shouldShow();
229
- this._initContainerPosition();
230
230
  if (!wrapperId) {
231
231
  this._adapter.setId();
232
232
  }
@@ -1034,6 +1034,9 @@ export default class Tooltip extends BaseFoundation {
1034
1034
  this._adapter.unregisterScrollHandler();
1035
1035
  }
1036
1036
  _initContainerPosition() {
1037
+ if (this._adapter.getContainerPosition() || !this._adapter.containerIsBody()) {
1038
+ return;
1039
+ }
1037
1040
  this._adapter.updateContainerPosition();
1038
1041
  }
1039
1042
  _handleTriggerKeydown(event) {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.80.0",
3
+ "version": "2.81.0-beta.0",
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.80.0",
11
- "@douyinfe/semi-json-viewer-core": "2.80.0",
10
+ "@douyinfe/semi-animation": "2.81.0-beta.0",
11
+ "@douyinfe/semi-json-viewer-core": "2.81.0-beta.0",
12
12
  "@mdx-js/mdx": "^3.0.1",
13
13
  "async-validator": "^3.5.0",
14
14
  "classnames": "^2.2.6",
@@ -29,7 +29,7 @@
29
29
  "*.scss",
30
30
  "*.css"
31
31
  ],
32
- "gitHead": "cadd54a8955c5426065988796e4fae19744cc910",
32
+ "gitHead": "21426a91428aba5da0ba2dd2db2e0c5a21a53d1b",
33
33
  "devDependencies": {
34
34
  "@babel/plugin-transform-runtime": "^7.15.8",
35
35
  "@babel/preset-env": "^7.15.8",
@@ -92,7 +92,6 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
92
92
  this._mounted = true;
93
93
  this._bindEvent();
94
94
  this._shouldShow();
95
- this._initContainerPosition();
96
95
  if (!wrapperId) {
97
96
  this._adapter.setId();
98
97
  }
@@ -316,6 +315,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
316
315
  };
317
316
 
318
317
  show = () => {
318
+ this._initContainerPosition();
319
319
  if (this._adapter.getAnimatingState()) {
320
320
  return;
321
321
  }
@@ -1134,6 +1134,9 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
1134
1134
  }
1135
1135
 
1136
1136
  _initContainerPosition() {
1137
+ if (this._adapter.getContainerPosition() || !this._adapter.containerIsBody()) {
1138
+ return;
1139
+ }
1137
1140
  this._adapter.updateContainerPosition();
1138
1141
  }
1139
1142