Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

refactor: 统一采用 props.name 的形式访问 prop

This commit is contained in:
pany 2024-11-25 17:48:47 +08:00
parent 51e7cd95a6
commit 74543de942
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ function handleContentFullClick() {
<template>
<div>
<!-- 全屏 -->
<el-tooltip v-if="!content" effect="dark" :content="fullscreenTips" placement="bottom">
<el-tooltip v-if="!props.content" effect="dark" :content="fullscreenTips" placement="bottom">
<SvgIcon :name="fullscreenSvgName" @click="handleFullscreenClick" />
</el-tooltip>
<!-- 内容区 -->

View File

@ -70,7 +70,7 @@ defineExpose({ getScrollTop })
<!-- 外层 div 不能删除是用来接收父组件 click 事件的 -->
<div>
<div
v-for="(item, index) in data"
v-for="(item, index) in props.data"
:key="index"
:ref="`resultItemRef${index}`"
class="result-item"