Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Component] [button, table-column] 组件不热更新 #9144

Closed
ShacoZ opened this issue Aug 1, 2022 · 2 comments
Closed

[Component] [button, table-column] 组件不热更新 #9144

ShacoZ opened this issue Aug 1, 2022 · 2 comments

Comments

@ShacoZ
Copy link

ShacoZ commented Aug 1, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.11
  • Browser / OS: Chrome 103.0.5060.134 / MacOS 12.5
  • Build Tool: Vite

Reproduction

Related Component

  • el-button
  • el-table-column

Reproduction Link

Element Plus Playground

Steps to reproduce

<el-table :data="tableDate">
    <el-table-column label="账号" prop="appAccount" />
			<el-table-column label="用户" prop="appName" />
			<el-table-column label="用户ID" prop="userId" />
			<el-table-column label="用户名" prop="userName" />
    	<!--修改label文字不会热更新-->
			<el-table-column label="No" prop="No" />
    <el-table-column label="操作">
				<template #default="scope">
          <!--按钮文字不会热更新-->
					<el-button link type="danger">删除</el-button>
				</template>
			</el-table-column>
  </el-table>
	<div>
    <p>
      这里的文字如果被修改就可以正常热更新
    </p>
  </div>

What is Expected?

组件自动热更新

What is actually happening?

部分组件不会热更新

Additional comments

开发工具使用的是webstorm,在webstorm修改了按钮的文字和table行的label值在chrome的控制台提示了组件被更新,但是页面显示的内容并没有改变,需要刷新浏览器才可以完成更新。 如果修改非el的组件值,页面则可以正常刷新。

@sxzz
Copy link
Collaborator

sxzz commented Aug 29, 2022

vitejs/vite#8224

@xiaoxian521
Copy link
Member

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants