btea

Results 424 comments of btea

It seems that this is because we used special request header information when requesting data, resulting in the returned data not having information such as `homepage/repository `. https://github.com/pnpm/pnpm/blob/95b088c7a7356d60ee05a68d1e07dcc2029494e3/network/fetch/src/fetchFromRegistry.ts#L9 Is there...

Hi, thanks for your contribution. Could you provide an example with details of the specific problem before and after the modification?

The screenshots you took seem to use `element-ui`? Can you provide a link to reproduce it?

Can you provide a more accurate, reproducible example through playground? The memory leak problem mentioned by others before has many influences, such as problems caused by developer tools and memory...

@cylgdzz111 我用测试版本 138.0.7204.23 (Official Build) beta (64-bit) 看起来是能正常降下来的。 ![image](https://github.com/user-attachments/assets/5f328a85-2a1a-4447-bc0f-ac3a694af402)

如果你配置了`app.use(ElMessageBox)`,那么就会触发`install`函数,`app._context`就会赋值给`MessageBox._context`。 https://github.com/element-plus/element-plus/blob/72dd11aac271e788da45e0e92b3ad3dd343c1601/packages/components/message-box/index.ts#L8-L15 https://github.com/element-plus/element-plus/blob/72dd11aac271e788da45e0e92b3ad3dd343c1601/packages/components/message-box/src/messageBox.ts#L239 当进行函数调用时会把相关配置传给`MessageBox`上下文。 https://github.com/element-plus/element-plus/blob/72dd11aac271e788da45e0e92b3ad3dd343c1601/packages/components/message-box/src/messageBox.ts#L164-L167 子组件渲染时,会从父组件继承`globalProperties`相关配置。因此,如果父组件没有配置相关属性,子组件也就不存在相关属性。 以下是点击`弹出`按钮时,`getCurrentInstance()`返回的对象中`globalProperties`的配置对比情况。 在`main.ts`中调用`app.use(ElMessageBox)` 没有调用`app.use(ElMessageBox)` ![image](https://github.com/user-attachments/assets/c0074538-8a3f-4996-bb9a-23343bd0e980) ![image](https://github.com/user-attachments/assets/cf24a0c9-116e-4faa-b564-94348c0b076a)

不是bug,ElMessageBox和根组件没有继承关系。你要么在组件`helloworld.vue`中手动引入`vue-i18n`,要么就像现在使用`app.use(ElMessageBox)`来继承全局属性配置。