Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
apijson-table: fix value overwrite problem
  • Loading branch information
zhangchunlin committed Dec 10, 2019
commit c8689e5ed6e8193a697c3f7ad70610cee5dba972
5 changes: 4 additions & 1 deletion uliweb_apijson/apijson/templates/vue/inc_apijson_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,11 @@
add: function(){
for (var k in this.add_items){
var d = this.add_items[k]
d.value = null
d.component = d.component || "input"
if (!(d.hasOwnProperty('value'))) {
dvalues = {input:'',checkbox:false}
d.value = dvalues[d.component]
}
}
if (this.hook_add!=null) {
this.hook_add(this)
Expand Down