mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
build(projects): update tsconfig、eslintrc
This commit is contained in:
@ -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);
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -29,7 +29,7 @@ interface Props {
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
tooltipContent: '',
|
||||
placement: 'bottom',
|
||||
contentClass: ''
|
||||
contentClass: '',
|
||||
});
|
||||
|
||||
const showTooltip = computed(() => Boolean(props.tooltipContent));
|
||||
|
@ -29,7 +29,7 @@ const NaiveProviderContent = defineComponent({
|
||||
},
|
||||
render() {
|
||||
return h('div');
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -10,7 +10,7 @@ interface Props {
|
||||
}
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
fill: false
|
||||
fill: false,
|
||||
});
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -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] } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user