提交 2811aa71 编写于 作者: Q qiang

fix: ImagePreview: name, emits

上级 7ef46939
......@@ -36,7 +36,9 @@ function getIndex(props: Props): number {
}
export default /*#__PURE__*/ defineComponent({
name: 'ImagePreview',
props,
emits: ['close'],
setup(props, { emit }) {
const rootRef: Ref<HTMLElement | null> = ref(null)
const indexRef = ref(getIndex(props))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册