给所有组件添加name属性预防未知bug!!!

This commit is contained in:
shizhong
2023-06-13 21:05:25 +08:00
parent 1e52823524
commit 6f266fb967
82 changed files with 551 additions and 1800 deletions

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script lang="ts" name="LocaleDropdown" setup>
import { useLocaleStore } from '@/store/modules/locale'
import { useLocale } from '@/hooks/web/useLocale'
import { propTypes } from '@/utils/propTypes'
@ -33,11 +33,11 @@ const setLang = (lang: LocaleType) => {
<template>
<ElDropdown :class="prefixCls" trigger="click" @command="setLang">
<Icon
:size="18"
icon="ion:language-sharp"
class="cursor-pointer"
:class="$attrs.class"
:color="color"
:size="18"
class="cursor-pointer"
icon="ion:language-sharp"
/>
<template #dropdown>
<ElDropdownMenu>