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:
parent
51e7cd95a6
commit
74543de942
@ -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>
|
||||
<!-- 内容区 -->
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user