-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
[Bug Report] changes within <el-form> cannot trigger hmr #5955
Comments
There was a relative issue which was closed: |
I seem to have the same problem with Vite and some attributes (like size) of |
/cc @JeremyWuuuuu I tested on playground in our project with this code and it reproduced. I have no idea to fix it. <template>
<el-form label-position="top">
<el-form-item label="123123">
<el-input />
</el-form-item>
</el-form>
<el-button>1</el-button>
</template>
<script setup lang="ts">
import { ElForm, ElFormItem } from '../../dist/element-plus/es'
</script> |
我现在使用v2.0.1有一模一样的问题,架构是vue3+ts+vite+element-plus,在main.ts中全局引入使用的 import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import zhCn form 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)
app.use(ElementPlus,{
locale: zhCn
}) 具体说明比如 |
I got same problem
|
Track: vitejs/vite#8224 |
|
@sxzz After seeing this comment, I retried(vue 3.2.47), it works. |
Element Plus version
2.0.1
OS/Browsers version
Mac OS 12.2.1/Chrome 98.0.4758.80
Vue version
3.2.30
Reproduction Link
https://github.com/aimergenge/element-plus-vite-starter
Steps to reproduce
App.vue
, change thelabel
prop of<el-form-item>
What is Expected?
<el-form-item>
rerender/update.What is actually happening?
Nothing happened, only the console of browser print:
Some changes will trigger hmr, some not.
It seems that only direct child(which is an Element Plus component) of is affected
The text was updated successfully, but these errors were encountered: