perf: 修改 demo

This commit is contained in:
ibuler 2022-07-08 15:32:48 +08:00 committed by 老广
parent bc0ca617a1
commit ef41dc809c

View File

@ -1,13 +1,48 @@
<template> <template>
<Page> <Page>
<div v-if="isDev" style="margin-bottom: 20px"> <div v-if="isDev" style="margin-bottom: 20px">
<el-button <div class="dz">
v-for="tp of ['primary', 'success', 'info', 'warning', 'danger']" <el-button
:key="tp" v-for="tp of ['primary', 'success', 'info', 'warning', 'danger']"
:type="tp" :key="tp"
> :type="tp"
{{ tp.toUpperCase() }} >
</el-button> {{ tp.toUpperCase() }}
</el-button>
</div>
<div class="dz">
<el-button
v-for="tp of ['primary', 'success', 'info', 'warning', 'danger']"
:key="tp"
:type="tp"
disabled
>
{{ tp.toUpperCase() }}
</el-button>
</div>
<div class="dz">
<el-link
v-for="tp of ['primary', 'success', 'info', 'warning', 'danger']"
:key="tp"
:type="tp"
>
<span style="padding-right: 10px">{{ tp.toUpperCase() }}</span>
</el-link>
</div>
<div class="dz">
<el-radio-group v-model="dz.radio">
<el-radio :label="3">备选项1</el-radio>
<el-radio :label="6">备选项2</el-radio>
<el-radio :label="9">备选项3</el-radio>
</el-radio-group>
</div>
<el-steps class="dz" :space="200" :active="1" finish-status="error">
<el-step title="已完成" />
<el-step title="进行中" />
<el-step title="步骤 3" />
</el-steps>
<div class="dz" />
</div> </div>
<IBox v-if="!loading"> <IBox v-if="!loading">
<GenericCreateUpdateForm <GenericCreateUpdateForm
@ -40,6 +75,7 @@ export default {
}, },
data() { data() {
return { return {
dz: {},
loading: true, loading: true,
files: {}, files: {},
interfaceInfo: {}, interfaceInfo: {},
@ -193,4 +229,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.dz {
padding: 10px 0
}
</style> </style>