mirror of
https://github.com/Ssl1S/json-schema-editor-vue.git
synced 2025-12-30 01:37:55 +08:00
fix:修复导入json时schema.title编辑后未刷新的问题
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</a-select>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-input :value="pickValue.title" class="ant-col-title" :placeholder="local['title']" @blur="e => pickValue.title=e.target.value"/>
|
||||
<a-input :value="pickValue.title" class="ant-col-title" :placeholder="local['title']" @blur="onInputTitle"/>
|
||||
</a-col>
|
||||
<a-col :span="6" class="ant-col-setting">
|
||||
<a-tooltip>
|
||||
@@ -259,6 +259,9 @@ export default {
|
||||
this.$set(this.parent,'required', [...new Set(requireds)])
|
||||
}
|
||||
},
|
||||
onInputTitle(e) {
|
||||
this.$set(this.pickValue, 'title', e.target.value)
|
||||
},
|
||||
onChangeType() {
|
||||
this.parseCustomProps()
|
||||
// 删除自定义属性
|
||||
|
||||
@@ -29,7 +29,6 @@ export function renamePropertyAndKeepKeyPrecedence(_this, obj, [oldKey, newKey])
|
||||
.reduce((target, [key, descriptor]) => {
|
||||
if(key === '__ob__') return target
|
||||
// Reflect.deleteProperty(target, key)
|
||||
console.info('TTT', target, key ,descriptor)
|
||||
_this.$delete(target, key)
|
||||
if (key === oldKey) {
|
||||
key = newKey
|
||||
|
||||
Reference in New Issue
Block a user