feat: 更新 ESLint 配置,添加宏定义顺序和导入后换行规则
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user