build(projects): update tsconfig、eslintrc

This commit is contained in:
Soybean
2022-03-12 16:21:40 +08:00
parent 4093dcd6dc
commit 75de2b0604
131 changed files with 1174 additions and 1140 deletions

View File

@ -53,7 +53,7 @@ const props = withDefaults(defineProps<Props>(), {
emptyDesc: '暂无数据',
iconClass: 'text-320px text-primary',
descClass: 'text-16px text-[#666]',
showNetworkReload: false
showNetworkReload: false,
});
// 网络状态
@ -79,7 +79,7 @@ function handleReload() {
const stopHandle = watch(
() => props.loading,
newValue => {
(newValue) => {
// 结束加载判断一下网络状态
if (!newValue) {
setNetwork(window.navigator.onLine);

View File

@ -23,7 +23,7 @@ interface Emits {
}
const props = withDefaults(defineProps<Props>(), {
value: true
value: true,
});
const emit = defineEmits<Emits>();
@ -34,7 +34,7 @@ const checked = computed({
},
set(newValue: boolean) {
emit('update:value', newValue);
}
},
});
function handleClickProtocol() {

View File

@ -18,7 +18,7 @@ interface Emits {
}
const props = withDefaults(defineProps<Props>(), {
dark: false
dark: false,
});
const emit = defineEmits<Emits>();
@ -29,7 +29,7 @@ const darkMode = computed({
},
set(newValue: boolean) {
emit('update:dark', newValue);
}
},
});
function handleSwitch() {

View File

@ -29,7 +29,7 @@ interface Props {
const props = withDefaults(defineProps<Props>(), {
tooltipContent: '',
placement: 'bottom',
contentClass: ''
contentClass: '',
});
const showTooltip = computed(() => Boolean(props.tooltipContent));

View File

@ -29,7 +29,7 @@ const NaiveProviderContent = defineComponent({
},
render() {
return h('div');
}
},
});
</script>
<style scoped></style>

View File

@ -10,7 +10,7 @@ interface Props {
}
withDefaults(defineProps<Props>(), {
fill: false
fill: false,
});
</script>
<style scoped></style>

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);
});