feat: 添加两种数字动画组件

This commit is contained in:
xiaoxian521
2021-08-19 11:46:47 +08:00
parent a64b236707
commit 0701692461
8 changed files with 181 additions and 16 deletions

View File

@@ -1,10 +1,15 @@
import { App } from "vue";
import reCountTo from "./src";
import reNormalCountTo from "./src/normal";
import reboundCountTo from "./src/rebound";
export const ReCountTo = Object.assign(reCountTo, {
export const ReNormalCountTo = Object.assign(reNormalCountTo, {
install(app: App) {
app.component(reCountTo.name, reCountTo);
app.component(reNormalCountTo.name, reNormalCountTo);
}
});
export default ReCountTo;
export const ReboundCountTo = Object.assign(reboundCountTo, {
install(app: App) {
app.component(reboundCountTo.name, reboundCountTo);
}
});