NervJS/nerv

将 React 切换为 Nerv 后,在 Ant Design 有些组件报错!

Closed this issue · 5 comments

如题,切换后一些组件,例如 TableTabs 报错,而 Checkbox 等一些组件是可以的!

tim 20180404221359

tim 20180404221158

tim 20180404221242

难道是姿势不对 ,有木有 DEMO 😂

yuche commented

我们还没能抽出时间来做 antd 的兼容,所以……

@yuche 希望能尽快兼容~

感觉很难啊,antd编译出来的代码就不兼容ie8,比如这段就不兼容,typeof在ie8下不正常

if ("function" != typeof t && null !== t)
            throw new TypeError("Super expression must either be null or a function, not " + (void 0 === t ? "undefined" : (0, s["default"])(t)));

antd 官方说过的,要支持ie8就只能用1.X 的版本

23hp commented

跟哪套UI库的兼容比较好呢。自己写UI库得花不少功夫啊
Which UI libray should I use? It would cost too much to write one by self .