Skip to content

Commit add1e5b

Browse files
committed
add func_init prop
1 parent 9a508fc commit add1e5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

uliweb_apijson/apijson/templates/vue/inc_apijson_table.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
Vue.component('apijson-table', {
33
delimiters: ['{', '}'],
4-
props: ["table_name","config","func_change_params"],
4+
props: ["table_name","config","func_init","func_change_params"],
55
template: `<div>
66
<div v-if="config_editable && config_add_fields!=null"><i-button type="primary" @click="add">Add</i-button> <br><br> </div>
77
<i-table stripe border :columns="tcolumns" :data="tlist" @on-sort-change="table_on_sort_change"></i-table>
@@ -354,6 +354,9 @@
354354
this.add_items = this.config_add_fields
355355
}
356356
}
357+
if (this.func_init!=null) {
358+
this.func_init(this)
359+
}
357360
this.update_list()
358361
}
359362
})

0 commit comments

Comments
 (0)