Skip to content

Commit 217927b

Browse files
committed
feat: m-empty add text props
1 parent 0772882 commit 217927b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/common/MEmpty.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
/>
1010
</div>
1111
<div class="text-center text-sm">
12-
{{ $t("暂无记录") }}
12+
{{ text || $t("暂无记录") }}
1313
</div>
1414
</div>
1515
</div>
1616
</template>
17-
<script setup lang="ts"></script>
17+
<script setup lang="ts">
18+
const props = defineProps<{
19+
text?: string;
20+
}>();
21+
</script>

0 commit comments

Comments
 (0)