mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
Statistic : fix slot display bug (#22375)
* Update main.vue * Update main.vue
This commit is contained in:
parent
3c0780d9ca
commit
614422011c
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="el-statistic">
|
||||
<div class="head" v-if="title">
|
||||
<div class="head" v-if="title||$slots.title">
|
||||
<slot name="title">
|
||||
<span class="title">
|
||||
{{ title }}
|
||||
@ -8,7 +8,7 @@
|
||||
</slot>
|
||||
</div>
|
||||
<div class="con">
|
||||
<span class="prefix" v-if="!prefix">
|
||||
<span class="prefix" v-if="prefix||$slots.prefix">
|
||||
<slot name="prefix" >
|
||||
{{ prefix }}
|
||||
</slot>
|
||||
@ -16,7 +16,7 @@
|
||||
<span class="number" :style="valueStyle">
|
||||
<slot name="formatter"> {{ disposeValue }}</slot>
|
||||
</span>
|
||||
<span class="suffix" v-if="!suffix">
|
||||
<span class="suffix" v-if="suffix||$slots.suffix">
|
||||
<slot name="suffix">
|
||||
{{ suffix }}
|
||||
</slot>
|
||||
@ -204,4 +204,4 @@ export default {
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user