mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-09 15:45:01 -04:00
feat(new tool): camera screenshot and recorder
This commit is contained in:
parent
8515c24264
commit
e1302037e6
15 changed files with 448 additions and 10 deletions
32
src/ui/c-alert/c-alert.vue
Normal file
32
src/ui/c-alert/c-alert.vue
Normal file
|
@ -0,0 +1,32 @@
|
|||
<template>
|
||||
<div class="c-alert" flex items-center b-rd-4px pa-5>
|
||||
<div class="c-alert--icon" mr-4 text-40px op-60>
|
||||
<slot name="icon">
|
||||
<component :is="variantTheme.icon" />
|
||||
</slot>
|
||||
</div>
|
||||
|
||||
<div class="c-alert--content">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useTheme } from './c-alert.theme';
|
||||
|
||||
const props = withDefaults(defineProps<{ type?: 'warning' }>(), { type: 'warning' });
|
||||
const { type } = toRefs(props);
|
||||
|
||||
const theme = useTheme();
|
||||
const variantTheme = computed(() => theme.value[type.value]);
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.c-alert {
|
||||
background-color: v-bind('variantTheme.backgroundColor');
|
||||
color: v-bind('variantTheme.textColor');
|
||||
font-size: inherit;
|
||||
line-height: 20px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue