1. 程式人生 > 其它 >關於各種Vue UI框架中載入進度條的正確使用

關於各種Vue UI框架中載入進度條的正確使用

這裡拿MUSE UI 中的進度條舉例

<mu-circular-progress :size="40" class="icon" v-if="isloading"/>
    <div v-show="!isloading">
      <p>內容</p>
    </div>

//資料初始化
data () {
return {
isloading: false
}
},
//頁面載入之前
mounted () {
this.isloading = true
this. a x i o s . g e t ( [ ′ / a p i / p l a y l i s t / d e t a i l ? i d = ′ + t h i s . axios .get([ '/api/playlist/detail?id=' + this. axios.get([/api/playlist/detail?id=+this.route.params.id
])
.then(response => {
// success
// console.log(response.data)
this.name = response.data.playlist.name
this.list = response.data.playlist.tracks
this.isloading = false
})

更多內容請見原文,原文轉載自:https://blog.csdn.net/weixin_44519496/article/details/119352929