feat: 更新 ESLint 配置,添加宏定义顺序和导入后换行规则
Some checks failed
/ depcheck (push) Successful in 2m13s
/ build-and-deploy-to-vercel (push) Failing after 39s
/ surge (push) Successful in 2m1s
/ playwright (push) Successful in 4m31s

This commit is contained in:
严浩
2025-02-28 11:56:18 +08:00
parent 4a4118c2dc
commit 8c855b5b3d
3 changed files with 13 additions and 7 deletions

View File

@ -2,14 +2,13 @@
import type { PopconfirmProps } from 'ant-design-vue';
defineOptions({ inheritAttrs: true });
const props = defineProps<HPopconfirmProps>();
type NotUndefined<T> = T extends undefined ? never : T;
type PopconfirmOnConfirmParameters = Parameters<NotUndefined<PopconfirmProps['onConfirm']>>;
type HPopconfirmProps = {
onConfirm?: (...args: PopconfirmOnConfirmParameters) => Promise<void>;
};
const props = defineProps<HPopconfirmProps>();
const _loading = shallowRef(false);
const onConfirm: PopconfirmProps['onConfirm'] = async (e) => {
if (props.onConfirm) {