mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 04:17:28 -08:00
5ca2148c7e
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
40 lines
598 B
Vue
40 lines
598 B
Vue
<template>
|
|
<div class="titled-list">
|
|
<p v-text="title" />
|
|
<ul>
|
|
<li v-for="item in items" class="titled-list-item" :key="item" v-text="item" />
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
name: 'TitledList',
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
},
|
|
items: {
|
|
type: Array,
|
|
default: () => [],
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.titled-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.titled-list-item {
|
|
list-style: none;
|
|
padding-left: var(--spacing-3xs);
|
|
&::before {
|
|
content: '- ';
|
|
}
|
|
}
|
|
}
|
|
</style>
|