dynamic config
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<td
|
||||
v-for="(col,c_key) of columns"
|
||||
:key="c_key"
|
||||
v-text="item[col]"
|
||||
v-text="resolve_data(item,col)"
|
||||
/>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -19,6 +19,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { resolve_data } from '../helper';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
items: {
|
||||
@@ -29,7 +31,8 @@ export default {
|
||||
type: Array,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: { resolve_data }
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user