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

Sign up to get free protection for your applications and to get access to all the features.
@@ -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);
@@ -111,7 +111,7 @@
111
111
  font-size: plv(notice-content-font-size);
112
112
  padding-top: 16px;
113
113
  color: plv(text-2);
114
- line-height: 1.5715;
114
+ line-height: plv(line-height);
115
115
  }
116
116
 
117
117
  .notice-foot {