From 2b2286e799a8c1912315c1bb232882154a915b60 Mon Sep 17 00:00:00 2001 From: sifan Date: Thu, 16 Sep 2021 11:09:17 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B5=8B=E8=AF=95ts=20=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-package.yml | 2 +- package.json | 2 +- types/index.d.ts | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index c9d770f..5b0ac7d 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -15,6 +15,6 @@ jobs: registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build && npx gulp - - run: npm publish + - run: npm publish --tag beta env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index a7e4050..fad7ac8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-count-to", - "version": "1.0.11", + "version": "1.0.12-beta.1", "description": "vue-count-to 支持vue2、vue3版本", "main": "dist/vue3-count-to.min.js", "module": "dist/vue3-count-to.esm.js", diff --git a/types/index.d.ts b/types/index.d.ts index 8405862..a6b9653 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -2,6 +2,25 @@ // @ts-ignore import Vue, { App, PluginFunction } from "vue"; +export declare class CountTo { + startVal: number; + endVal: number; + duration: number; + autoplay: boolean; + decimals: number; + decimal: number; + separator: number; + prefix: number; + suffix: number; + useEasing: boolean; + + easingFn: () => void; + + start(): void; + pause(): void; + reset(): void; +} + // @ts-ignore export declare class CountTo extends Vue { startVal: number; @@ -22,6 +41,7 @@ export declare class CountTo extends Vue { reset(): void; } +// extends Vue export default class { static install (app: App): void; static install (app: PluginFunction): void;