接水怪

Results 5 issues of 接水怪

增强 plugins 机制,原本框架暴露的 hook,不足以完全满足框架运行时各阶段 plugin 的注入。增加 boforeBootstrap、beforeMount、beforeUpdated、boforeUnmount 4 个 hook。 例如:基于新增的 beforeBootstrap hook,实现 reactRetargetEventPlugin,解决 react 17 之前合成事件 magic 不生效的问题。 开发者可以将 plugin 推送至 npm 仓库,方便其它开发者直接调用。

#### 问题 我的 magic React 组件写法: ```javascript import React, { createElement } from 'react'; import ReactDOM from 'react-dom'; // 定义组件 const Hello = ({ test }) => { // test...

magic 组件如果有自己的样式,或者脚本文件,可以通过 magic 函数第三个字段中的 styles 跟 scripts 进行加载。建议完善 readme.md ```javascript magic('my-component', MyModule, { propTypes: { id: Number, test: Boolean, callback: Function, count: Number, }, // 样式文件 styles: ['https://xxx.a.css', 'https://xxx.b.css'], //...

### The problem: A caveat to readme.md's vue demo is that if a module is reused more than once on the same page, vueInstance can be shared more than once....

Under some specific svg icon conversion, an exception will appear. I'm not sure if there is any problem with my figma svg ![Image](https://github.com/user-attachments/assets/6d80b1d7-d1bc-4d37-a62f-a8686bf52ec9)