0.0.3 • Published 12 months ago

fu-media-image5 v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Vue UI 旋转图册 - fu-media-image5

Install 安装

npm install fu-media-image5
// or
yarn add fu-media-image5
// or 
pnpm install fu-media-image5

Use 使用

// main.ts / main.js
import FuMediaImage5 from 'fu-media-image5';
app.use(FuMediaImage5);
<script setup lang="ts">
import { Image } from 'fu-media-image5/types/Image'

const images = ref<Image[]>([
{
id: '1', src: 'https://picsum.photos/300/200?t=1', alt: '随机图片'
}, {
id: '2', src: 'https://picsum.photos/300/200?t=2', alt: '随机图片'
},{
id: '3', src: 'https://picsum.photos/300/200?t=3', alt: '随机图片'
},{
id: '4', src: 'https://picsum.photos/300/200?t=4', alt: '随机图片'
},{
id: '5', src: 'https://picsum.photos/300/200?t=5', alt: '随机图片'
}
])
</script>
<template>
  <div class="image-wrapper">
    <fu-media-image5 :images="images" />
  </div>
</template>
<style>
  .image-wrapper {
    width: 500px;
    min-height: 500px;
    height: auto;
  }
</style>

show 展示

效果展示

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago