diff options
author | 2023-05-16 23:12:37 +0200 | |
---|---|---|
committer | 2023-05-17 00:34:10 +0200 | |
commit | 34d8e5ce2ca5d7a27c19ee2cb704bbfd3a215b29 (patch) | |
tree | e5245057f91bf273e53d91b9caf34f050bac1bf8 /src/ui/c-alert/c-alert.vue | |
parent | 8515c242647f41e90726da1e7b4efb7957c923c2 (diff) | |
download | it-tools-34d8e5ce2ca5d7a27c19ee2cb704bbfd3a215b29.tar.gz it-tools-34d8e5ce2ca5d7a27c19ee2cb704bbfd3a215b29.tar.zst it-tools-34d8e5ce2ca5d7a27c19ee2cb704bbfd3a215b29.zip |
feat(new tool): camera screenshot and recorder
Diffstat (limited to 'src/ui/c-alert/c-alert.vue')
-rw-r--r-- | src/ui/c-alert/c-alert.vue | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ui/c-alert/c-alert.vue b/src/ui/c-alert/c-alert.vue new file mode 100644 index 0000000..1fedbb0 --- /dev/null +++ b/src/ui/c-alert/c-alert.vue @@ -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> |