
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
@geeboo/img-view
Advanced tools
vue 版本图片预览器,会根据文件后缀来生成预览效果,支持图片放大、旋转、拖拽、打印、下载等,现已兼容vue2、vue3 采用vue-demi兼容方案,安装时请安装vue-demi 即可实现不同框架下使用。
npm i @geeboo/img-view vue-demi -S
import viewer from "@geeboo/img-view"
import "@geeboo/img-view/lib/index.css"
Vue.use(viewer)
也可以单独组件引入
<template>
<img-viewer ref="refImg" :value="url" mode="btn"></img-viewer>
</template>
import imgViewer from "@geeboo/img-view"
import "@geeboo/img-view/lib/index.css"
export default {
name: 'App',
components: { imgViewer },
}
v2.0.4
v2.0.3
$message的处理,vue2时提示使用者需手动挂载v2.0.2
v2.0.1
vue-demi 改造为render支持vue2、vu3v1.0.0
全局组成后可以,直接使用this.$viewer(urls)直接打开资源,并且 urls 支持数组或逗号分隔,但这个为多图时支持多个内容阅读
:::preview 说明 ||
demo-preview=./img-view/demo.vue
:::
我们也可以使用img-viewer来创建一个组件.注意mode默认为none是默认不显示的,我们可以设置为mode:img,来达到预览的小图。
:::preview 说明 || mode: "img"、"btn"
demo-preview=./img-view/demo1.vue
:::
| 属性名 | 类型 | 说明 |
|---|---|---|
| mode | String | 显示状态none:不显示,btn:按钮,img:图 |
| value | Auto | 显示的内容object:作为资源对象,Array:多个资源对象,String:资源地址(支持用‘,’分割多个) |
| btnLabel | String、Function | mode:btn时使用修改显示内容,默认:“查看文件”,同时支持直接 |
| props | Object | 配置字段 |
| extend | Object | 站位节点属性配置 |
FAQs
vue图片预览器简单的支持旋转、放大的图片预览器,基于vue-demi 实现vue2、vue3的兼容,
The npm package @geeboo/img-view receives a total of 0 weekly downloads. As such, @geeboo/img-view popularity was classified as not popular.
We found that @geeboo/img-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.