diff --git a/src/_common b/src/_common index 3377f3972..edf902a41 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 3377f39729f62b7ee0f03876480a78e6f2791204 +Subproject commit edf902a41627e87a6772c8200c62586566edfa46 diff --git a/src/image/image.tsx b/src/image/image.tsx index a7d40680b..5030af93e 100644 --- a/src/image/image.tsx +++ b/src/image/image.tsx @@ -1,4 +1,5 @@ import { ref, computed, defineComponent, watchEffect } from 'vue'; +import type { PropType } from 'vue'; import { useIntersectionObserver } from '@vueuse/core'; import { CloseIcon } from 'tdesign-icons-vue-next'; @@ -13,7 +14,11 @@ const { prefix } = config; export default defineComponent({ name: `${prefix}-image`, - props, + props: { + ...props, + // 非对外暴露参数 + onClick: Function as PropType<(e: MouseEvent) => void>, + }, setup(props, context) { const imageClass = usePrefixClass('image'); const renderTNodeJSX = useTNodeJSX(); @@ -101,7 +106,7 @@ export default defineComponent({ return () => { return ( -