@douyinfe/semi-foundation 2.80.0-beta.0 → 2.80.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.
@@ -242,7 +242,7 @@ export interface CascaderAdapter extends DefaultAdapter<BasicCascaderProps, Basi
242
242
  updateLoadedKeyRefValue: (keys: Set<string>) => void;
243
243
  getLoadedKeyRefValue: () => Set<string>;
244
244
  setEmptyContentMinWidth: (minWidth: number) => void;
245
- getTriggerWidth: () => number;
245
+ getTriggerWidth: () => number
246
246
  }
247
247
 
248
248
  export default class CascaderFoundation extends BaseFoundation<CascaderAdapter, BasicCascaderProps, BasicCascaderInnerData> {
@@ -521,7 +521,7 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
521
521
  }
522
522
  keyEntities[key] = optionNotExist as BasicEntity;
523
523
  // Fix: 1155, if the data is loaded asynchronously to update treeData, the emptying operation should not be done when entering the updateSelectedKey method
524
- } else if (loading) {
524
+ } else if (loading || loadingKeys?.size) {
525
525
  // Use assign to avoid overwriting the'not-exist- * 'property of keyEntities after asynchronous loading
526
526
  // Overwriting'not-exist- * 'will cause selectionContent to be emptied unexpectedly when clicking on a dropDown item
527
527
  updateStates.keyEntities = assign(keyEntityState, keyEntities);
@@ -323,7 +323,7 @@ class CascaderFoundation extends _foundation.default {
323
323
  }
324
324
  keyEntities[key] = optionNotExist;
325
325
  // Fix: 1155, if the data is loaded asynchronously to update treeData, the emptying operation should not be done when entering the updateSelectedKey method
326
- } else if (loading) {
326
+ } else if (loading || (loadingKeys === null || loadingKeys === void 0 ? void 0 : loadingKeys.size)) {
327
327
  // Use assign to avoid overwriting the'not-exist- * 'property of keyEntities after asynchronous loading
328
328
  // Overwriting'not-exist- * 'will cause selectionContent to be emptied unexpectedly when clicking on a dropDown item
329
329
  updateStates.keyEntities = (0, _assign2.default)(keyEntityState, keyEntities);
@@ -316,7 +316,7 @@ export default class CascaderFoundation extends BaseFoundation {
316
316
  }
317
317
  keyEntities[key] = optionNotExist;
318
318
  // Fix: 1155, if the data is loaded asynchronously to update treeData, the emptying operation should not be done when entering the updateSelectedKey method
319
- } else if (loading) {
319
+ } else if (loading || (loadingKeys === null || loadingKeys === void 0 ? void 0 : loadingKeys.size)) {
320
320
  // Use assign to avoid overwriting the'not-exist- * 'property of keyEntities after asynchronous loading
321
321
  // Overwriting'not-exist- * 'will cause selectionContent to be emptied unexpectedly when clicking on a dropDown item
322
322
  updateStates.keyEntities = _assign(keyEntityState, keyEntities);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.80.0-beta.0",
3
+ "version": "2.80.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-beta.0",
11
- "@douyinfe/semi-json-viewer-core": "2.80.0-beta.0",
10
+ "@douyinfe/semi-animation": "2.80.0",
11
+ "@douyinfe/semi-json-viewer-core": "2.80.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": "3fd7e6c677d858be06beeedadeee5adb435d1eee",
32
+ "gitHead": "cadd54a8955c5426065988796e4fae19744cc910",
33
33
  "devDependencies": {
34
34
  "@babel/plugin-transform-runtime": "^7.15.8",
35
35
  "@babel/preset-env": "^7.15.8",