You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
594 B
23 lines
594 B
6 months ago
|
<template>
|
||
|
<div class="ns-basic-table">
|
||
|
<a-table ref="nsBasicTable" v-bind="$attrs">
|
||
|
<template #emptyText> <a-empty /> </template>
|
||
|
<template #[item]="data" v-for="item in Object.keys($slots)" :key="item">
|
||
|
<slot v-if="item == 'emptyText'" :name="item"> </slot>
|
||
|
<slot v-else :name="item" v-bind="data || {}"> </slot>
|
||
|
</template>
|
||
|
</a-table>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent } from 'vue';
|
||
|
|
||
|
export default defineComponent({
|
||
|
name: 'NsBasicTable',
|
||
|
setup() {},
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style lang="less" scoped></style>
|