lint:fix all
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<!-- Iconify Icons -->
|
||||
<Icon v-if="checkIcon(name)" :name :size />
|
||||
<Icon
|
||||
v-if="checkIcon(name)"
|
||||
:name
|
||||
:size
|
||||
/>
|
||||
<!-- Emojis -->
|
||||
<span
|
||||
v-else-if="/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g.test(name)"
|
||||
@@ -16,17 +20,17 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { stringToIcon, validateIconName } from '@iconify/utils';
|
||||
import { stringToIcon, validateIconName } from '@iconify/utils'
|
||||
|
||||
const { size = 16 } = defineProps<{
|
||||
name: string;
|
||||
size?: number;
|
||||
}>();
|
||||
name: string
|
||||
size?: number
|
||||
}>()
|
||||
|
||||
function checkIcon(name: string): boolean {
|
||||
if (name.includes('http'))
|
||||
return false;
|
||||
return false
|
||||
|
||||
return validateIconName(stringToIcon(name));
|
||||
return validateIconName(stringToIcon(name))
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user