Skip to content

Commit

Permalink
chore: 优化写法,已适应编辑器识别
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Jul 19, 2023
1 parent 4848e28 commit db9e786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/meDialog/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<el-dialog ref="elDialogRef" class="me-dialog" :style="{ maxHeight }" @open="openHandle">
<template v-for="(item, key) in $slots" :key="key" #[key]> <component :is="item as any"></component> </template>a
<template v-for="(item, key) in ($slots as Record<string,any>)" :key="key" #[key]>
<component :is="item"></component>
</template>
</el-dialog>
</template>
<script lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion src/components/meTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</div>
</div>
<el-table v-bind="$attrs" ref="elTableRef" v-loading="loading">
<component :is="customColumnProps!.children as any"></component>
<component :is="(customColumnProps!.children as any)"></component>
<template v-if="$slots.append" #append>
<slot name="append"></slot>
</template>
Expand Down

0 comments on commit db9e786

Please sign in to comment.