plain-design 1.0.0-beta.128 → 1.0.0-beta.129

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.128",
3
+ "version": "1.0.0-beta.129",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -5,6 +5,7 @@ import {onBeforeUnmount} from "@peryl/react-compose";
5
5
  import {TableOptionSpace} from "../utils/TableOption.space";
6
6
  import '../utils/TableOption.space';
7
7
  import {AutoModule} from "../utils/AutoModule";
8
+ import {delay} from "@peryl/utils/delay";
8
9
 
9
10
  declare module '../utils/TableOption.space' {
10
11
  namespace TableOptionSpace {
@@ -74,6 +75,8 @@ export const useTableOptionParent = AutoModule.createRegistration((
74
75
  effects.push(
75
76
  hooks.onQueryParam.use(async () => {
76
77
  if (isDestroy()) {return;}
78
+ /*这里等待下一个宏任务执行,等 option.state.currentNode 刷新*/
79
+ await delay(0);
77
80
  const currentNode = await parentOption.methods.utils.getCurrentNode();
78
81
  return {
79
82
  queries: Object.entries(parentMap).map(([childKey, parentKey], index) => ({