Leon Wang

Results 5 issues of Leon Wang

I'm tring to move all the emoji pngs from **drawable-nodpi** into **internal storage**, but when showing all of the emojis in a TextView, load emoji from the drawable-nodpi dir is...

使用该插件后,需要在base中配置要部署的服务器地址,但是这样不方便多环境部署。 能否在插件代码中,实现动态替换html的所有资源,在乾坤环境下,资源地址都追加window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ 我看了您的源码,现在插件的实现,是仅在测试环境下追加__INJECTED_PUBLIC_PATH_BY_QIANKUN__ ``` if (microOption.useDevMode && !isProduction) { appendBase = '(window.proxy ? (window.proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ + \'..\') : \'\') + '; } ```

First of all, thank you very much to the contributors of this project! I'm trying to add **toc** panel to ipynb files in my project, but I don't know where...

## 问题描述 我是直接查看的源码,发现了[patchHTMLDynamicAppendPrototypeFunctions](https://github.com/umijs/qiankun/blob/master/src/sandbox/patchers/dynamicAppend/common.ts#L426)这个函数的代码逻辑有些问题。*(所以就没有提供最小可复现仓库了,因为直接用的官方demo,打断点调试就行。)* 这个函数的逻辑,我简化一下并且只看appendChild方法,方便观察: ```javascript function patchHTMLDynamicAppendPrototypeFunctions(isInvokedByMicroApp, containerConfigGetter) { const rawHeadAppendChild = HTMLHeadElement.prototype.appendChild; if (rawHeadAppendChild[overwrittenSymbol] !== true) { function appendChildNew() { // 使用rawHeadAppendChild, isInvokedByMicroApp, containerConfigGetter } appendChildNew[overwrittenSymbol] = true; HTMLHeadElement.prototype.appendChild...

bug

## 背景 qiankun目前支持微应用使用**appendChild**、**insertBefore**动态添加样式表和脚本元素。并[劫持了这两个方法](https://github.com/umijs/qiankun/blob/master/src/sandbox/patchers/dynamicAppend/common.ts#L430)。但是对于**insertAdjacentElement**方法没有劫持。 而Vite下处理`import "xxxx.css"`的时候,它最终会使用**insertAdjacentElement**方法添加动态样式表。 ```javascript let lastInsertedStyle; function updateStyle(id, content) { let style = sheetsMap.get(id); if (!style) { //... if (!lastInsertedStyle) { document.head.appendChild(style); //... } else { lastInsertedStyle.insertAdjacentElement("afterend", style);...