aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/src/components/policy/DataList.vue
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/components/policy/DataList.vue')
-rw-r--r--dashboard/src/components/policy/DataList.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/dashboard/src/components/policy/DataList.vue b/dashboard/src/components/policy/DataList.vue
new file mode 100644
index 00000000..40f384f3
--- /dev/null
+++ b/dashboard/src/components/policy/DataList.vue
@@ -0,0 +1,16 @@
+<template>
+ <span>
+ <span v-for="(data, index) in list" :key="data.id">
+ <span v-if="index > 0">,</span>
+ <span>{{ data.name }}</span>
+ </span>
+ </span>
+</template>
+
+<script>
+export default {
+ props: {
+ list: Array
+ }
+}
+</script> \ No newline at end of file