1.1.6 • Published 1 year ago

vue-cubic-loupe v1.1.6

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

是一个实现图片放大镜的效果的组件,基于vue3和ts


安装

npm install vue-cubic-loupe

yarn add vue-cubic-loupe

快速引入

全局引入

import { createApp } from 'vue'
import App from './App.vue'


import CubicLoupe  from "vue-cubic-loupe";
import "vue-cubic-loupe/styles/index.scss";

const app = createApp(App);

app.use(CubicLoupe)
app.mount('#app')

局部引入

<script lang="ts" setup>
import {VueCubicLoupe}  from "vue-cubic-loupe";
import "vue-cubic-loupe/styles/index.scss";
</script>

slot插槽

小图自定义

<template #footer="slotProps">
    <div>{{ slotProps.index}}</div>
</template>

空状态

<template #empty></template>

属性配置

v-modelloupeWidthhoverStateemptyTextthumbnail
图片列表主体宽度鼠标滑到小图显示的效果无图时展示是否展示底部小图
ArrayNumberBooleanStringBoolean
[]400false"暂无图片展示"true

浏览器支持

现代浏览器和Internet Explorer 10+。

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago