Socket
Socket
Sign inDemoInstall

vue3-marquee-mini

Package Overview
Dependencies
164
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue3-marquee-mini

使用vite发布自定义组件到npm


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vue3-marquee-mini

Static Badge

  • A mini Vue 3 marquee component

Usage

Install

pnpm add vue3-marquee-mini

Use

<script setup lang="ts">
  import VMarquee from "vue3-marquee-mini/marquee";
  import {imageList, textList} from "vue3-marquee-mini/marquee/src/list";

</script>

<template>
  <div class="play-content">
    <h1>Vue3 Marquee Mini </h1>
    <p>一款轻量级的Vue3跑马灯组件</p>
    <h2>鸣谢</h2>
    <v-marquee :speed="50" direction="left">
      <div class="imageList">
        <img class="marquee-img" v-for="(item, index) in imageList" :key="index" :src="item" alt="">
      </div>
    </v-marquee>
    <v-marquee :speed="50" direction="right">
      <div class="imageList">
        <p class="marquee-img" v-for="(item, index) in textList" :key="index">{{ item }}</p>
      </div>
    </v-marquee>
  </div>
</template>

<style scoped lang="less">
  .play-content {
    h1 {
      font-family: "Helvetica Neue", serif;
      font-weight: 700;
      font-size: 80px;
      line-height: 98px;
      color: #2E353B;
      font-style: italic;
      text-align: center;
    }

    P {
      font-size: 32px;
      color: #000;
      text-align: center;
      font-weight: bold;
    }

    h2 {
      text-align: center;
      color: #757E8F;
      font-weight: bold;
    }
  }

  .imageList {
    display: flex;
    .marquee-img {
      height: 64px;
      margin-right: 100px;
    }
  }

</style>

TODO

  • 打包为 npm 插件发布到 npm
  • 使用 VitePress 编写文档并托管到 Github Pages Vite & Vue Powered Static Site Generator
  • 使用TS重构
  • 支持d.ts类型提示

License

MIT License © 2019-PRESENT Wang01h2

FAQs

Last updated on 26 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc