vue时钟组件

Vue Clock2 (vue clock2)

A simple vue clock component.

一个简单的vue时钟组件。

安装 (Install)

npm install vue-clock2

(Example)

<template>
  <clock :time="time"></clock>
</template>

<script>
  import Clock from 'vue-clock2';
  export default {
    components: { Clock },
    data () {
      return {
          time: '10:40'
      }
    }
  }
</script>

clock

款式 (Styles)

vue-clock2

道具 (Props)

PropertyDescriptionTypeAccepted ValuesDefault
timetime to displayString--
colorcolor to displayString--
borderclock border styleString-'2px solid'
bgclock background styleString--
sizesize to displayStringsmall-
属性 描述 类型 接受值 默认
时间 展示时间 -- --
颜色 显示颜色 -- --
边境 时钟边框样式 -- “ 2px固体”
时钟背景样式 -- --
尺寸 显示尺寸 --

翻译自: https://vuejsexamples.com/a-simple-vue-clock-component/

vue时钟组件

Logo

前往低代码交流专区

更多推荐