refactor: use XModel

This commit is contained in:
xingyu4j
2022-11-15 12:25:19 +08:00
parent 29f2f99401
commit c5075dad3b
37 changed files with 88 additions and 86 deletions

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { propTypes } from '@/utils/propTypes'
import { computed, useAttrs, useSlots } from 'vue'
import { ElScrollbar } from 'element-plus'
const slots = useSlots()
const props = defineProps({
@ -29,9 +29,11 @@ const getBindValue = computed(() => {
<template v-if="slots.header" #header>
<slot name="header"></slot>
</template>
<template v-if="slots.default" #default>
<slot name="default"></slot>
</template>
<ElScrollbar>
<template v-if="slots.default" #default>
<slot name="default"></slot>
</template>
</ElScrollbar>
<template v-if="slots.corner" #corner>
<slot name="corner"></slot>
</template>