修复属性输入组件bug

This commit is contained in:
2023-01-29 20:45:52 +08:00
parent ab374a9073
commit 9695608147
3 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ define(['jquery', 'vue'], function ($, Vue) {
var options = $.extend(defaultOption, data);
options.value = $.trim(options.value)
app = new Vue({
@@ -62,6 +63,9 @@ define(['jquery', 'vue'], function ($, Vue) {
created() {
if (this.setting.value) {
if(typeof this.setting.value === 'string'){
this.setting.value = JSON.parse(this.setting.value);
}
this.listItem = this.setting.value;
this.value = this.setting.value;
}