1.1.0 • Published 12 months ago

electronic-clocks v1.1.0

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

A electronic clock plugin for Vue3

This is a Vue 3 digital clock plugin, where you can customize the style of each pixel according to your preferences.

  • install
npm install electronic-clocks
  • use
import ElectronicClocks from 'electronic-clocks';
Vue.use(ElectronicClocks);
<electronic-clock />
  • props
//是否开启彩色模式
  isColorful: {
    type: Boolean,
    default: false,
  },
  //像素块的样式
  itemStyle: {
    type: Object,
    default: () => ({}),
  },
  //更新频率
  frequencyOfUpdates: {
    type: Number,
    default: 100,
  },
  //像素块背景色
  backgroundColor: {
    type: String,
    default: "#000000",
  },
  //是否开启加载效果
  isLoadingEffects:{
    type: Boolean,
    default: true,
  }
1.1.0

12 months ago

1.0.0

12 months ago