songdy.wu
Results
1
comments of
songdy.wu
> > 使用该插件即可解决:https://wujie-polyfill.github.io/doc/plugins/instanceof.html > > antd4解决了,可是antd5出问题了,弹框位置不准确 在firefox下,所有节点的基类都是指向基座的Node(chrome是iframe的Node),导致wujie的patchNodeEffect处理无效。 新增如下插件处理getRootNode指向,可以解决位置不准确问题 ``` { patchElementHook(element: any, iframeWindow: any) { // 解决firefox下拉框无法对齐 try { Object.defineProperties(element, { getRootNode: { configurable: true, get: () => iframeWindow.Node.prototype.getRootNode, },...