fu-media-image5

0.0.3 • Public • Published

[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 展示

效果展示

Package Sidebar

Install

npm i fu-media-image5

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

7.25 MB

Total Files

6

Last publish

Collaborators

  • weijunfu