diff --git a/CHANGELOG.md b/CHANGELOG.md index 2de288b15..b896675d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.0.24](https://github.com/kkbjs/element3/compare/v0.0.23...v0.0.24) (2020-11-12) + + + ## [0.0.23](https://github.com/kkbjs/element3/compare/v0.0.22...v0.0.23) (2020-11-12) diff --git a/package.json b/package.json index 73aca20fc..54a8ec3d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "element3", - "version": "0.0.23", + "version": "0.0.24", "description": "A Component Library for Vue3", "main": "dist/element3-ui.cjs.js", "module": "dist/element3-ui.esm-bundler.js", diff --git a/types/loading.d.ts b/types/loading.d.ts index d7c78a13f..034bfc296 100644 --- a/types/loading.d.ts +++ b/types/loading.d.ts @@ -2,7 +2,8 @@ import Vue, { VNodeDirective, PluginObject } from 'vue' import { ElementUIComponent } from './component' -export const useLoading = () => ElLoadingService +export const useLoading = () => (options: LoadingServiceOptions) => + ILoadingComponent /** Options used in Loading service */ export interface LoadingServiceOptions { @@ -47,10 +48,6 @@ export interface ElLoadingDirective extends VNodeDirective { } } -export interface ElLoadingService { - (options: LoadingServiceOptions): ILoadingComponent -} - /** Show animation while loading data */ export interface ElLoading extends ElementUIComponent { /** If you do not have a specific DOM node to attach the Loading directive, or if you simply prefer not to use Loading as a directive, you can call this service with some configs to open a Loading instance. */ diff --git a/types/message.d.ts b/types/message.d.ts index e15a88990..ec847457c 100644 --- a/types/message.d.ts +++ b/types/message.d.ts @@ -3,7 +3,7 @@ import { VNode } from 'vue' export type MessageType = 'success' | 'warning' | 'info' | 'error' /** Message Component */ -export const useMessage: () => (ElMessageOptions) => ElMessage +export const useMessage: () => ElMessage interface IMessage { /** Close the Loading instance */