We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望有一个预览方法,例如在点击一个按钮会触发点击 Image 的预览,但是 ImageInst 没有暴露。 或者拎出 ImagePreview 方法
<script setup lang="ts"> import type { ImageInst } from 'naive-ui' const imageRef = ref<ImageInst | null>(null) // 执行图片预览 imageRef.value.click() </script> <template> <n-image ref="imageRef" /> </template>
<script setup lang="ts"> import { ImagePreview } from 'naive-ui' import { renderToolbar } from 'Method' // 工具栏更改 ImagePreview.renderToolbar = renderToolbar // 预览图片 ImagePreview.preview("http://demo.com/demo.jpg") </script> <template> </template>
No response
The text was updated successfully, but these errors were encountered:
feat(image): export ImageInst type
6dfa5b6
close tusen-ai#6479
建议预览方法传入数组来支持多个图片预览, 并在预览的时候展示图片数量和当前图片位置
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
问题的清晰而简明的描述
希望有一个预览方法,例如在点击一个按钮会触发点击 Image 的预览,但是 ImageInst 没有暴露。
或者拎出 ImagePreview 方法
建议的解决方案
备选方案
附加上下文
No response
验证
The text was updated successfully, but these errors were encountered: