
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
vue3-odometer-plus
Advanced tools
pnpm add vue3-odometer-plus
preview image:
简单的
<template>
<button @click="updateValue()">update</button>
<hr>
<div class="test">
<Vue3OdometerTs :value="count"></Vue3OdometerTs>
<Vue3OdometerTs :value="count" animation="count"></Vue3OdometerTs>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import Vue3OdometerTs from 'vue3-odometer-plus';
const count = ref(1000);
function updateValue() {
count.value = Math.random() * 1200;
}
</script>
<style scoped>
.test {
color: rgb(0, 137, 223);
font-size: 20px;
display: inline-flex;
align-items: center;
gap: 20px;
}
</style>
<template>
<div class="test">
<button @click="updateValue()">update</button>
<Vue3OdometerTs :value="count" theme="car"></Vue3OdometerTs>
<hr>
<Vue3OdometerTs :value="count" theme="digital"></Vue3OdometerTs>
<hr>
<Vue3OdometerTs :value="count" theme="minimal"></Vue3OdometerTs>
<hr>
<Vue3OdometerTs :value="count" theme="plaza"></Vue3OdometerTs>
<hr>
<Vue3OdometerTs :value="count" theme="slot-machine"></Vue3OdometerTs>
<hr>
<Vue3OdometerTs :value="count" theme="train-station"></Vue3OdometerTs>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import Vue3OdometerTs from 'vue3-odometer-plus';
// css 对应 template 中 的theme 按需引入即可
import 'odometer/themes/odometer-theme-car.css';
import 'odometer/themes/odometer-theme-digital.css';
import 'odometer/themes/odometer-theme-minimal.css';
import 'odometer/themes/odometer-theme-plaza.css';
import 'odometer/themes/odometer-theme-slot-machine.css';
import 'odometer/themes/odometer-theme-train-station.css';
const count = ref(1000);
function updateValue() {
count.value = Math.random() * 1200;
}
</script>
<style scoped>
.test {
color: rgb(0, 137, 223);
font-size: 20px;
}
</style>
type Props = {
start?: number;
value: number;
/**
* The format option allows you to configure how the digit groups are formatted, and how many digits are shown after the decimal point.
@default '(d).dd'
@example
(,ddd) - 12,345,678
(,ddd).dd - 12,345,678.09
(.ddd),dd - 12.345.678,09
( ddd),dd - 12 345 678,09
d - 12345678
*/
format?: string;
theme?: 'car' | 'default' | 'digital' | 'minimal' | 'plaza' | 'slot-machine' | 'train-station';
formatFunction?: (v: number) => number;
animation?: 'count' | 'default';
/**
* @default '.odometer'
*/
selector?: string;
/**
* @default false
*/
auto?: boolean;
/**
* @default 1000
*/
duration?: number;
};
FAQs
数字翻滚 number rolling odometer odometer-plus
The npm package vue3-odometer-plus receives a total of 0 weekly downloads. As such, vue3-odometer-plus popularity was classified as not popular.
We found that vue3-odometer-plus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.