
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
xes-customize-ui
Advanced tools
yarn install
yarn serve
yarn build
# Yarn
yarn add xes-customize-ui
# Npm
npm install xes-customize-ui --save
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| v-model | 显示隐藏 | boolean | false |
| img-list | 图片数据列表['url'] 或[{url: 'url', title: 'title'}] | array | - |
| z-index | css 层级 | number | 2000 |
| close-on-click-mask | 是否可以通过点击遮罩关闭 ImageViewer | boolean | true |
| close-on-press-escape | 是否可以通过按下 ESC 关闭 ImageViewer | boolean | true |
| current-image-index | 默认打开的图片索引 | number | 0 |
| on-switch | 切换回调 | function(index) | - |
| showPreNextBar | 是否展示上下一页按钮 | boolean | false |
| spaceAction | 按空格键是否恢复图片原始大小 | boolean | false |
| Keyboard | 说明 |
|---|---|
| SPACE(空格键) | 切换原图大小或屏幕缩放大小 |
| LEFT_ARROW(左方向键) | 切换到上一张图片 |
| RIGHT_ARROW (右方向键) | 切换到下一张图片 |
| UP_ARROW(上方向键) | 放大图片 |
| DOWN_ARROW(下方向键) | 缩小图片 |
<template>
<div>
<button @click="showViewer = true">预览图片</button>
<xes-imgs-viewer
v-model="showViewer"
:current-image-index="imageIndex"
:show-pre-next-bar="false"
:close-on-press-escape="false"
:img-list="imgList"
/>
</div>
</template>
<script>
import { xesImageViewer } from 'xes-customize-ui';
import 'xes-customize-ui/lib/index.css';
export default {
components: {
xesImageViewer
},
data() {
return {
showViewer: false,
imageIndex: 0,
imgList: [
{
url: '图片地址',
title: '图片名称', //可以没有
},
{
url: '图片地址',
title: '图片名称', //可以没有
},
],
}
},
methods: {},
}
</script>
<style></style>
FAQs
A Component Library for Vue.js.
We found that xes-customize-ui 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.