1.0.2 • Published 1 year ago

ft-component-set v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Reference method

// Mode 1: Global Import
import ftComponentSet from 'ft-component-set'; // 引入的组件
import 'ft-component-set/style.css'; // 引入组件样式

const app = createApp(App);

app.use(ftComponentSet).mount('#app');

...

<countTo :endVal="2022"></countTo>
<pageQuery :total="10"></pageQuery>
<ftVideo :data="{}" :controls="false" muted></ftVideo>
<template>
  <countTo :startVal="0" :endVal="2022" :duration="3000"></countTo>
  <pageQuery :total="10"></pageQuery>
  <ftVideo :data="videoData" :controls="false" muted></ftVideo>
</template>
<script setup>
  // Mode 2: On Demand Import
  import { countTo, pageQuery, ftVideo } from 'ft-component-set';
  import 'ft-component-set/style.css';

  const videoData =  {
    url: 'http://219.151.31.38/liveplay-kk.rtxapp.com/live/program/live/hnwshd/4000000/mnf.m3u8',
    name: 'test'
  }
</script>

Options : ft-video

PropertyDescriptiontypedefault
dataVideo InformationObject--
controlsShow Control BarBooleanfalse
mutedMuteBooleantrue

Options : page-query

PropertyDescriptiontypedefault
totalTotal PageNumber--
indexCurrent Page IndexNumberfalse
isLoopWhether to LoopBooleanfalse
timingLoop IntervalBooleantrue

Options : count-to

PropertyDescriptiontypedefault
startValthe value you want to begin atNumber0
endValthe value you want to arrive atNumber2022
durationduration in millisecondNumber3000
autoplaywhen mounted autoplayBooleantrue
decimalsthe number of decimal places to showNumber0
decimalthe split decimalString.
separatorthe separatorString,
prefixthe prefixString''
suffixthe suffixString''
useEasingis use easing functionBooleantrue
easingFnthe easing functionFunction

notes: when autoplay:true , it will auto start when startVal or endVal change

Functions : count-to

Function NameDescription
mountedCallbackwhen mounted will emit mountedCallback
startstart the countTo
pausepause the countTo
resetreset the countTo
1.0.2

1 year ago

1.0.1-beta-3

1 year ago

1.0.1-beta-2

1 year ago

1.0.1-beta-1

1 year ago