chore: eslint.config.ts
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { FileUploadState, FileUploadUploaderEvent } from 'primevue/fileupload';
|
||||
|
||||
interface FileExt extends File {
|
||||
objectURL: string;
|
||||
}
|
||||
|
@ -1,16 +1,8 @@
|
||||
<script lang="ts">
|
||||
<script setup lang="ts">
|
||||
import type { PopconfirmProps } from 'ant-design-vue';
|
||||
|
||||
type NotUndefined<T> = T extends undefined ? never : T;
|
||||
type PopconfirmOnConfirmParameters = Parameters<NotUndefined<PopconfirmProps['onConfirm']>>;
|
||||
type HPopconfirmProps = {
|
||||
description: PopconfirmProps['description'];
|
||||
onConfirm?: (...args: PopconfirmOnConfirmParameters) => Promise<void>;
|
||||
title: PopconfirmProps['title'];
|
||||
};
|
||||
</script>
|
||||
import type { HPopconfirmProps } from './types';
|
||||
|
||||
<script setup lang="ts">
|
||||
defineOptions({ inheritAttrs: true });
|
||||
|
||||
const props = defineProps<HPopconfirmProps>();
|
9
src/pages/AntdV/HAPopconfirm/types.ts
Normal file
9
src/pages/AntdV/HAPopconfirm/types.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import type { PopconfirmProps } from 'ant-design-vue';
|
||||
|
||||
type NotUndefined<T> = T extends undefined ? never : T;
|
||||
type PopconfirmOnConfirmParameters = Parameters<NotUndefined<PopconfirmProps['onConfirm']>>;
|
||||
export type HPopconfirmProps = {
|
||||
description: PopconfirmProps['description'];
|
||||
onConfirm?: (...args: PopconfirmOnConfirmParameters) => Promise<void>;
|
||||
title: PopconfirmProps['title'];
|
||||
};
|
@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
import HAPopconfirm from './HAPopconfirm.vue';
|
||||
import HAPopconfirm from './HAPopconfirm/HAPopconfirm.vue';
|
||||
|
||||
async function handleConfirmAsync(e: MouseEvent) {
|
||||
console.debug('handleConfirmAsync', e);
|
||||
|
@ -1,6 +1,7 @@
|
||||
<script setup lang="tsx">
|
||||
const VITE_BUILD_COMMIT = import.meta.env.VITE_BUILD_COMMIT;
|
||||
import { routes } from 'vue-router/auto-routes';
|
||||
|
||||
definePage({ meta: { title: '首页' } });
|
||||
useHead({
|
||||
// Titles
|
||||
|
@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { $enum } from 'ts-enum-util';
|
||||
|
||||
enum Direction {
|
||||
Up = 'UP',
|
||||
Down = 'DOWN',
|
||||
|
@ -3,6 +3,7 @@ import { createGetRoutes, setupLayouts } from 'virtual:meta-layouts';
|
||||
// import { createGetRoutes, setupLayouts } from 'virtual:generated-layouts';
|
||||
import { createRouter, createWebHistory } from 'vue-router/auto';
|
||||
import { handleHotUpdate, routes } from 'vue-router/auto-routes';
|
||||
|
||||
const setupLayoutsResult = setupLayouts(routes);
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
|
Reference in New Issue
Block a user