diff --git a/src/components/common/VnComponent.vue b/src/components/common/VnComponent.vue index 6514c1ba6..e411059c2 100644 --- a/src/components/common/VnComponent.vue +++ b/src/components/common/VnComponent.vue @@ -5,13 +5,20 @@ :is=" (components && components[toComponent.component]) ?? toComponent.component " - v-bind="toComponent.props && toComponent.props(value)" + v-bind=" + typeof toComponent.attrs == 'function' + ? toComponent.attrs(value) + : toComponent.attrs + " @click="toComponent.event && toComponent.event(value)" + v-model="model" /> diff --git a/src/components/common/VnTableCreate.vue b/src/components/common/VnTableCreate.vue new file mode 100644 index 000000000..1ce642746 --- /dev/null +++ b/src/components/common/VnTableCreate.vue @@ -0,0 +1,34 @@ + + diff --git a/src/components/common/VnTableFilter.vue b/src/components/common/VnTableFilter.vue index e2dd95b1e..331575538 100644 --- a/src/components/common/VnTableFilter.vue +++ b/src/components/common/VnTableFilter.vue @@ -1,5 +1,4 @@