1.1.6 • Published 3 months ago

vue-cubic-loupe v1.1.6

Weekly downloads
-
License
-
Repository
-
Last release
3 months 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

3 months ago

1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

9 months ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago