plain-design 1.0.0-beta.37 → 1.0.0-beta.38

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.37",
3
+ "version": "1.0.0-beta.38",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -84,13 +84,17 @@ export function useCellValue(
84
84
  };
85
85
  (async () => {
86
86
  try {
87
+ const sv = sourceValue.value;
88
+ const sr = row.value;
87
89
  const value = await asyncFormatterFunction(sourceValue.value, { ...cellRenderScope, ...formatterOptions });
88
- asyncState.asyncValue = {
89
- sourceValue: sourceValue.value,
90
- row: row.value,
91
- targetValue: value,
92
- loading: false,
93
- };
90
+ if (sv === sourceValue.value && sr === row.value) {
91
+ asyncState.asyncValue = {
92
+ sourceValue: sourceValue.value,
93
+ row: row.value,
94
+ targetValue: value,
95
+ loading: false,
96
+ };
97
+ }
94
98
  } catch (e) {
95
99
  /*异步格式化失败*/
96
100
  console.error(e);