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

@ -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 */