Skip to content

Commit

Permalink
Statistic : fix slot display bug (ElemeFE#22375)
Browse files Browse the repository at this point in the history
* Update main.vue

* Update main.vue
  • Loading branch information
webvs2 authored and Simon-He95 committed Jul 10, 2023
1 parent 3c1dc7a commit 8f3ab5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/statistic/src/main.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<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 }}
</span>
</slot>
</div>
<div class="con">
<span class="prefix" v-if="!prefix">
<span class="prefix" v-if="prefix||$slots.prefix">
<slot name="prefix" >
{{ prefix }}
</slot>
</span>
<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>
Expand Down Expand Up @@ -204,4 +204,4 @@ export default {
}
}
};
</script>
</script>

0 comments on commit 8f3ab5e

Please sign in to comment.