Browse Source

增加子标题

master
sige 1 year ago
parent
commit
32cd6c2395
  1. 16
      src/web/src/components/Loading.vue

16
src/web/src/components/Loading.vue

@ -9,11 +9,11 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center;">
align-items: center;"
>
<a-spin size="large" /> <a-spin size="large" />
<div style="color: #bbbbbb;
font-size: 3rem;
margin-top: 45px;">{{ title }}</div>
<div style="color: #bbbbbb;font-size: 3rem;margin-top: 45px;">{{ title }}</div>
<div v-if="null != subTitle" style="color: #bbbbbb;font-size: 1rem;margin-top: 45px;">{{ subTitle }}</div>
</div> </div>
</template> </template>
<script setup> <script setup>
@ -22,8 +22,10 @@ import { ref } from 'vue';
const enable = ref(false); const enable = ref(false);
/** @var {String} */ /** @var {String} */
const title = ref(''); const title = ref('');
/** @var {String} */
const subTitle = ref(null);
// expose methods // expose methods
defineExpose({show, hide});
defineExpose({show, hide, updateSubTitle});
// show // show
function show( titleContent ) { function show( titleContent ) {
@ -36,4 +38,8 @@ function hide() {
enable.value = false; enable.value = false;
} }
// update sub title
function updateSubTitle( subTitleContent ) {
subTitle.value = subTitleContent;
}
</script> </script>
Loading…
Cancel
Save