<template>
  <div class="n-table-empty">
    <div class="n-table-empty-center">
      <n-builder v-if="noDataBuilder" :name="noDataBuilder"></n-builder>
      <span v-else>- 暂无数据 -</span>
    </div>
  </div>
</template>

<script>
import NBuilder from '@uif/next/lib/components/builder'

export default {
  name: 'n-table-empty',
  components: {
    NBuilder
  },
  props: {
    noDataBuilder: {
      type: [Function, String],
      default: ''
    }
  }
}
</script>
