# Pull Request Template ## Description This PR updates settings page UI ## Type of change - [x] New feature (non-breaking change which adds functionality) ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
38 lines
701 B
Vue
38 lines
701 B
Vue
<script setup>
|
|
defineProps({
|
|
layout: {
|
|
type: String,
|
|
default: 'col',
|
|
},
|
|
selectable: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
});
|
|
|
|
const emit = defineEmits(['click']);
|
|
|
|
const handleClick = () => {
|
|
emit('click');
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="flex flex-col w-full outline-1 outline outline-n-container -outline-offset-1 group/cardLayout rounded-xl bg-n-solid-2"
|
|
>
|
|
<div
|
|
class="flex w-full gap-3 py-5"
|
|
:class="[
|
|
layout === 'col' ? 'flex-col' : 'flex-row justify-between items-center',
|
|
selectable ? 'px-10 py-6' : 'px-6',
|
|
]"
|
|
@click="handleClick"
|
|
>
|
|
<slot />
|
|
</div>
|
|
|
|
<slot name="after" />
|
|
</div>
|
|
</template>
|