Commit b9513ff6f218e29173c66f622c1c460d0ef74ea8

Authored by 刘汉宸
1 parent fe6961ab

feat: 修复SchemaTransfer支持选择格式化同步

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
packages/schema-transfer/index.vue
@@ -247,10 +247,10 @@ export default { @@ -247,10 +247,10 @@ export default {
247 deselect(value) { 247 deselect(value) {
248 return value.filter(item => !this.valueKeys.includes(item[this.valueKey])); 248 return value.filter(item => !this.valueKeys.includes(item[this.valueKey]));
249 }, 249 },
250 - onChoose(row) { 250 + async onChoose(row) {
251 let newRow = cloneDeep(row); 251 let newRow = cloneDeep(row);
252 if (this.chooseFormatter) { 252 if (this.chooseFormatter) {
253 - newRow = this.chooseFormatter(newRow); 253 + newRow = await this.chooseFormatter(newRow);
254 } 254 }
255 this.$emit('input', [...this.value, newRow]); 255 this.$emit('input', [...this.value, newRow]);
256 }, 256 },