diff --git a/CHANGELOG.md b/CHANGELOG.md index 003dc053917..dba875cc6ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.23.4](https://github.com/haoziqaq/varlet/compare/v1.23.3...v1.23.4) (2021-11-21) + + +### Bug Fixes + +* **ui/types:** add list.d.ts ([ab06a8f](https://github.com/haoziqaq/varlet/commit/ab06a8f219fcf5f4f929938f048a142a6c4b1715)) + + + + + ## [1.23.3](https://github.com/haoziqaq/varlet/compare/v1.23.2...v1.23.3) (2021-11-20) diff --git a/lerna.json b/lerna.json index 1b2b6d7915d..31c7d7e945d 100644 --- a/lerna.json +++ b/lerna.json @@ -21,5 +21,5 @@ "ignoreChanges": [ "**/*.md" ], - "version": "1.23.3" + "version": "1.23.4" } diff --git a/packages/varlet-ui/CHANGELOG.md b/packages/varlet-ui/CHANGELOG.md index 145b0ba2ab4..0e977b2f456 100644 --- a/packages/varlet-ui/CHANGELOG.md +++ b/packages/varlet-ui/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.23.4](https://github.com/haoziqaq/varlet/compare/v1.23.3...v1.23.4) (2021-11-21) + + +### Bug Fixes + +* **ui/types:** add list.d.ts ([ab06a8f](https://github.com/haoziqaq/varlet/commit/ab06a8f219fcf5f4f929938f048a142a6c4b1715)) + + + + + ## [1.23.3](https://github.com/haoziqaq/varlet/compare/v1.23.2...v1.23.3) (2021-11-20) diff --git a/packages/varlet-ui/package.json b/packages/varlet-ui/package.json index 94e7bc15996..a5c0de20667 100644 --- a/packages/varlet-ui/package.json +++ b/packages/varlet-ui/package.json @@ -1,6 +1,6 @@ { "name": "@varlet/ui", - "version": "1.23.3", + "version": "1.23.4", "description": "A material like components library", "module": "es/index.js", "main": "lib/index.js", diff --git a/packages/varlet-ui/types/global.d.ts b/packages/varlet-ui/types/global.d.ts index 2ff934815a7..624f0c9a64f 100644 --- a/packages/varlet-ui/types/global.d.ts +++ b/packages/varlet-ui/types/global.d.ts @@ -26,6 +26,7 @@ declare module 'vue' { VarIndexBar: typeof import('@varlet/ui')['_IndexBarComponent'] VarInput: typeof import('@varlet/ui')['_InputComponent'] VarLazy: typeof import('@varlet/ui')['_LazyComponent'] + VarList: typeof import('@varlet/ui')['_ListComponent'] VarLoading: typeof import('@varlet/ui')['_LoadingComponent'] VarLocale: typeof import('@varlet/ui')['_LocaleComponent'] VarMenu: typeof import('@varlet/ui')['_MenuComponent'] diff --git a/packages/varlet-ui/types/index.d.ts b/packages/varlet-ui/types/index.d.ts index 6b17a57efbc..5a642baaf2d 100644 --- a/packages/varlet-ui/types/index.d.ts +++ b/packages/varlet-ui/types/index.d.ts @@ -28,6 +28,7 @@ export * from './indexAnchor' export * from './indexBar' export * from './input' export * from './lazy' +export * from './list' export * from './loading' export * from './locale' export * from './menu' diff --git a/packages/varlet-ui/types/list.d.ts b/packages/varlet-ui/types/list.d.ts new file mode 100644 index 00000000000..5bb53fe0b05 --- /dev/null +++ b/packages/varlet-ui/types/list.d.ts @@ -0,0 +1,21 @@ +import { VarComponent } from './varComponent' + +export interface ListProps { + loading?: boolean + immediateCheck?: boolean + finished?: boolean + error?: boolean + offset?: string | number + loadingText?: string + finishedText?: string + errorText?: string + onLoad?: () => void + 'onUpdate:loading'?: (loading: boolean) => void + 'onUpdate:error'?: (error: boolean) => void +} + +export class List extends VarComponent { + $props: ListProps +} + +export class _ListComponent extends List {}