style(projects): update prettier config

This commit is contained in:
Soybean
2022-04-01 14:47:57 +08:00
parent ca2dfa6185
commit df56abe18d
128 changed files with 2237 additions and 2037 deletions

View File

@ -42,7 +42,7 @@ const props = withDefaults(defineProps<Props>(), {
separator: ',',
decimal: '.',
useEasing: true,
transition: 'linear',
transition: 'linear'
});
const emit = defineEmits<{
@ -61,7 +61,7 @@ function run() {
duration: props.duration,
onStarted: () => emit('on-started'),
onFinished: () => emit('on-finished'),
...(props.useEasing ? { transition: TransitionPresets[props.transition] } : {}),
...(props.useEasing ? { transition: TransitionPresets[props.transition] } : {})
});
}

View File

@ -43,7 +43,7 @@ interface Emits {
}
const props = withDefaults(defineProps<Props>(), {
emptyIcon: 'mdi:apps',
emptyIcon: 'mdi:apps'
});
const emit = defineEmits<Emits>();
@ -51,7 +51,7 @@ const emit = defineEmits<Emits>();
const theme = useThemeStore();
const searchValue = ref('');
const iconsList = computed(() => props.icons.filter((v) => v.includes(searchValue.value)));
const iconsList = computed(() => props.icons.filter(v => v.includes(searchValue.value)));
const modelValue = computed({
get() {
@ -59,7 +59,7 @@ const modelValue = computed({
},
set(val: string) {
emit('update:value', val);
},
}
});
function handleChange(iconItem: string) {

View File

@ -17,7 +17,7 @@ interface Emits {
}
const props = withDefaults(defineProps<Props>(), {
code: '',
code: ''
});
const emit = defineEmits<Emits>();
@ -26,11 +26,11 @@ const { domRef, imgCode, setImgCode, getImgCode } = useImageVerify();
watch(
() => props.code,
(newValue) => {
newValue => {
setImgCode(newValue);
}
);
watch(imgCode, (newValue) => {
watch(imgCode, newValue => {
emit('update:code', newValue);
});