xiaoMingTongXue

Results 30 comments of xiaoMingTongXue

链接:https://wuxin.netlify.com/ 昵称:无心同学 介绍:分享记录自己学习的各类经历,代码copy者,喜爱瞎折腾

> 并且还有一个问题,readme 中,中国站内文档访问的链接有问题 ![image](https://user-images.githubusercontent.com/40878104/182552063-d88f6e84-29f0-4bdc-be90-15f20146e079.png) 国内网站链接跳转的,明明是 https://element.eleme.cn/#/zh-CN 这个,但是readme 中确实往 http://element-cn.eleme.io/ 跳转

> 内部 对 placement 这个 prop 进行 赋值 导致的 警告。换成 计算属性 就可以解决。 > > ![图片](https://user-images.githubusercontent.com/20988580/180914752-92bc7de9-2aca-42f2-a6b6-003f3989a64f.png) > > ![图片](https://user-images.githubusercontent.com/20988580/180914702-b40d691f-b01f-40fd-848f-308aef95e749.png) 你可以翻下 issues 有同样的问题,官方已经回答了,那个是写错地方了

> @ babel / polyfill已经弃用,需要在入口文件约会`import 'core-js/stable'; import 'regenerator-runtime/runtime';` [官方文档](https://cli.vuejs.org/zh/guide/browser-compatibility.html#usebuiltins-usage)已经命名,作者还没修改吧 这个我加上了 ```JS import "@babel/polyfill"; import "core-js/stable"; import "regenerator-runtime/runtime"; ``` 之所以加上 `@babel/polyfill` 是因为还是有一些语法 `core-js/stable` 跟 `regenerator-runtime/runtime` 解析不了的

> [为什么 JavaScript 模块中的默认导出很糟糕](https://www.51cto.com/article/718667.html) (www.51cto.com) 这篇文章应该是 翻译国外的 https://www.lloydatkinson.net/posts/2022/default-exports-in-javascript-modules-are-terrible/

> 建议把你怎么写的, 以及展示结果都贴上来。不然你这样 谁都无法定位什么问题

> 通过append-to-body把Dialog添加到body上显示正常 可以对dialog进行二次封装,然后获取配置初始化的时候,判断一下当前dialog是否是在其他 dialog的内部,如果在 那就 默认 加到 body 里