写一个列表,然后想要在查询数据的过程中添加loading样式,这个时候需要添加一个loading属性,但是添加之后会有直接展示loading。解决方法:
:loading = isLoading
在下面需要注册isLoading为boolean类型,如下:
isLoading:false/true
然后在开始查询的时候改为false,查询结果出来之后改为false
this.isLoading = true
this.isLoading = false
写一个列表,然后想要在查询数据的过程中添加loading样式,这个时候需要添加一个loading属性,但是添加之后会有直接展示loading。解决方法:
:loading = isLoading
在下面需要注册isLoading为boolean类型,如下:
isLoading:false/true
然后在开始查询的时候改为false,查询结果出来之后改为false
this.isLoading = true
this.isLoading = false