mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(List): add check method type
This commit is contained in:
parent
0b5c8e5f3d
commit
285bce677c
@ -65,6 +65,7 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// @exposed-api
|
||||||
check() {
|
check() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.innerLoading || this.finished || this.error) {
|
if (this.innerLoading || this.finished || this.error) {
|
||||||
|
3
types/index.d.ts
vendored
3
types/index.d.ts
vendored
@ -10,6 +10,7 @@ import { DropdownItem } from './dropdown-item';
|
|||||||
import { Field } from './field';
|
import { Field } from './field';
|
||||||
import { ImagePreview } from './image-preview';
|
import { ImagePreview } from './image-preview';
|
||||||
import { Lazyload } from './lazyload';
|
import { Lazyload } from './lazyload';
|
||||||
|
import { List } from './list';
|
||||||
import { Locale } from './locale';
|
import { Locale } from './locale';
|
||||||
import { Notify } from './notify';
|
import { Notify } from './notify';
|
||||||
import { Toast } from './toast';
|
import { Toast } from './toast';
|
||||||
@ -44,7 +45,6 @@ export class Image extends VanComponent {}
|
|||||||
export class IndexAnchor extends VanComponent {}
|
export class IndexAnchor extends VanComponent {}
|
||||||
export class IndexBar extends VanComponent {}
|
export class IndexBar extends VanComponent {}
|
||||||
export class Info extends VanComponent {}
|
export class Info extends VanComponent {}
|
||||||
export class List extends VanComponent {}
|
|
||||||
export class Loading extends VanComponent {}
|
export class Loading extends VanComponent {}
|
||||||
export class NavBar extends VanComponent {}
|
export class NavBar extends VanComponent {}
|
||||||
export class NoticeBar extends VanComponent {}
|
export class NoticeBar extends VanComponent {}
|
||||||
@ -96,6 +96,7 @@ export {
|
|||||||
Field,
|
Field,
|
||||||
ImagePreview,
|
ImagePreview,
|
||||||
Lazyload,
|
Lazyload,
|
||||||
|
List,
|
||||||
Locale,
|
Locale,
|
||||||
Notify,
|
Notify,
|
||||||
Toast
|
Toast
|
||||||
|
5
types/list.d.ts
vendored
Normal file
5
types/list.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { VanComponent } from './component';
|
||||||
|
|
||||||
|
export class List extends VanComponent {
|
||||||
|
check(): void;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user