New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dreamjser/countdown-circle-vue

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamjser/countdown-circle-vue

a circle countdown component for vue

  • 1.0.9
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

安装

npm/yarn/pnpm 安装

npm i @dreamjser/countdown-circle-vue
yarn add @dreamjser/countdown-circle-vue
pnpm add @dreamjser/countdown-circle-vue

引入组件

// 引入样式文件
import '@dreamjser/countdown-circlev-vue/es/style.css'
// 引入组件
import CountdownCircle from '@dreamjser/countdown-circlev-vue'

组件实例

<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { CountdownCircle } from '@dreamjser/countdown-circle-vue'

const countdown = ref<InstanceType<typeof CountdownCircle> | null>(null)

onMounted(() => {
  (countdown.value as any).run()
})
</script>

<template>
  <CountdownCircle ref="countdown" :time-out="20" circle-color="red"></CountdownCircle>
</template>

组件属性

参数说明类型默认值
timeOut倒计时时间number10
circleColor倒计时圆环颜色string#000

组件方法

方法名说明回调参数
run开始倒计时-

Keywords

FAQs

Package last updated on 06 Dec 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc