mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 03:48:36 -05:00
feat(configuration details): better loading UX
This commit is contained in:
@@ -28,6 +28,11 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<VueLoadingIndicator
|
||||
v-else
|
||||
class="loading"
|
||||
/>
|
||||
|
||||
<div class="actions-bar">
|
||||
<VueButton
|
||||
v-if="configuration && configuration.link"
|
||||
@@ -102,6 +107,7 @@ export default {
|
||||
id: this.id
|
||||
}
|
||||
},
|
||||
manual: true,
|
||||
async result ({ data, loading }) {
|
||||
if (!this.$_init && !loading && data && data.configuration) {
|
||||
this.$_init = true
|
||||
@@ -109,6 +115,7 @@ export default {
|
||||
obj[tab.id] = false
|
||||
return obj
|
||||
}, {})
|
||||
this.configuration = data.configuration
|
||||
await this.$nextTick()
|
||||
this.currentTab = data.configuration.tabs[0].id
|
||||
}
|
||||
@@ -136,6 +143,7 @@ export default {
|
||||
methods: {
|
||||
init (tab) {
|
||||
this.currentTab = '__default'
|
||||
this.configuration = null
|
||||
this.$_init = false
|
||||
},
|
||||
|
||||
@@ -176,9 +184,12 @@ export default {
|
||||
align-items stretch
|
||||
height 100%
|
||||
|
||||
.content
|
||||
.content,
|
||||
.loading
|
||||
flex 100% 1 1
|
||||
height 0
|
||||
|
||||
.content
|
||||
overflow-x hidden
|
||||
overflow-y auto
|
||||
|
||||
|
||||
Reference in New Issue
Block a user