mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 21:46:22 -04:00
(refactor) remove unused <ListExpandable>
This commit is contained in:
parent
127500e100
commit
effaa9e520
@ -1,29 +0,0 @@
|
||||
<template>
|
||||
<ul class="list-unstyled">
|
||||
<li v-for="(value, key, i) in data" v-if="expanded || i < 10">
|
||||
<slot :k="key" :v="value">
|
||||
<strong>{{ key }}</strong>: {{ value }}
|
||||
</slot>
|
||||
</li>
|
||||
<li v-if="!expanded">
|
||||
<a href="#" @click.prevent="expanded = true">
|
||||
<T>table.more</T>
|
||||
<Icon v="caret-down" />
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
data: { required: true },
|
||||
initial: { default: 10 },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
expanded: false,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user