chore(projects): correct word spell & eslint fix code

This commit is contained in:
Soybean
2023-08-03 23:59:00 +08:00
parent 24cf1d9284
commit cffc30afa3
8 changed files with 49 additions and 14 deletions

View File

@ -4,7 +4,7 @@
<div class="w-56px h-56px my-36px">
<div class="relative h-full animate-spin">
<div
v-for="(item, index) in lodingClasses"
v-for="(item, index) in loadingClasses"
:key="index"
class="absolute w-16px h-16px bg-primary rounded-8px animate-pulse"
:class="item"
@ -20,7 +20,7 @@ import { sessionStg, getRgbOfColor } from '@/utils';
import { $t } from '@/locales';
import themeSettings from '@/settings/theme.json';
const lodingClasses = [
const loadingClasses = [
'left-0 top-0',
'left-0 bottom-0 animate-delay-500',
'right-0 top-0 animate-delay-1000',

View File

@ -8,7 +8,7 @@ import { isNumber } from '@/utils';
defineOptions({ name: 'CountTo' });
type TansitionKey = keyof typeof TransitionPresets;
type TransitionKey = keyof typeof TransitionPresets;
interface Props {
/** 初始值 */
@ -32,7 +32,7 @@ interface Props {
/** 使用缓冲动画函数 */
useEasing?: boolean;
/** 缓冲动画函数类型 */
transition?: TansitionKey;
transition?: TransitionKey;
}
const props = withDefaults(defineProps<Props>(), {

View File

@ -37,13 +37,13 @@ const bindAttrs = computed<{ class: string; style: string }>(() => ({
}));
const symbolId = computed(() => {
const { VITE_ICON_LOCAL_PREFIX: preffix } = import.meta.env;
const { VITE_ICON_LOCAL_PREFIX: prefix } = import.meta.env;
const defaultLocalIcon = 'no-icon';
const icon = props.localIcon || defaultLocalIcon;
return `#${preffix}-${icon}`;
return `#${prefix}-${icon}`;
});
/** 渲染本地icon */