1.1.6 • Published 2 years ago

vue-cubic-loupe v1.1.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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

2 years ago

1.1.5

2 years ago

1.1.4

2 years 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

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago