update readme
This commit is contained in:
parent
1b0aaae233
commit
e8fb55a0d6
12
README.CN.md
12
README.CN.md
|
@ -47,6 +47,7 @@
|
|||
- [生命周期](#生命周期)
|
||||
- [调试工具](#调试工具)
|
||||
- [浏览器兼容](#浏览器兼容)
|
||||
- [React 组件转成 Omi](#react-组件转成-omi)
|
||||
- [相关链接](#相关链接)
|
||||
- [贡献代码](#贡献代码)
|
||||
- [感谢](#感谢)
|
||||
|
@ -660,6 +661,17 @@ class MyApp extends WeElement {
|
|||
|
||||
![Omi DevTools](https://github.com/f/omi-devtools/raw/master/omi-devtools.gif)
|
||||
|
||||
## React 组件转成 Omi
|
||||
|
||||
举个例子,下面是吧 weui react 的 button 转成 weui omi 的 button 的例子 :
|
||||
|
||||
![react to omi](./assets/react-to-omi.png)
|
||||
|
||||
* [Diff Split](https://github.com/Tencent/omi/commit/9790fadaaf20cfede80bcf9213756a83fc8c3949?diff=split)
|
||||
* [Diff Unified](https://github.com/Tencent/omi/commit/9790fadaaf20cfede80bcf9213756a83fc8c3949?diff=unified)
|
||||
* [Before](https://github.com/Tencent/omi/blob/c8af654f1d5865dc557c0b4b8ad524f702a69be5/packages/omi-weui/src/omi-weui/elements/button/button.js)
|
||||
* [After](https://github.com/Tencent/omi/blob/9790fadaaf20cfede80bcf9213756a83fc8c3949/packages/omi-weui/src/omi-weui/elements/button/button.js)
|
||||
|
||||
## 浏览器兼容
|
||||
|
||||
Omi 4.0+ works in the latest two versions of all major browsers: Safari 10+, IE 11+, and the evergreen Chrome, Firefox, and Edge.
|
||||
|
|
12
README.md
12
README.md
|
@ -47,6 +47,7 @@ Omi uses Shadow DOM based style isolation and semantic structure.
|
|||
- [Omi Mobx](#omi-mobx)
|
||||
- [Lifecycle](#lifecycle)
|
||||
- [Debugging](#debugging)
|
||||
- [React to Omi](#react-to-omi)
|
||||
- [Browsers Support](#browsers-support)
|
||||
- [Contribution](#contribution)
|
||||
- [Thanks](#thanks)
|
||||
|
@ -657,6 +658,17 @@ Since Omi uses Web Components and Shadow-DOM, it doesn't need to have another el
|
|||
|
||||
![Omi DevTools](https://github.com/f/omi-devtools/raw/master/omi-devtools.gif)
|
||||
|
||||
## React to Omi
|
||||
|
||||
For example:
|
||||
|
||||
![react to omi](./assets/react-to-omi.png)
|
||||
|
||||
* [Diff Split](https://github.com/Tencent/omi/commit/9790fadaaf20cfede80bcf9213756a83fc8c3949?diff=split)
|
||||
* [Diff Unified](https://github.com/Tencent/omi/commit/9790fadaaf20cfede80bcf9213756a83fc8c3949?diff=unified)
|
||||
* [Before](https://github.com/Tencent/omi/blob/c8af654f1d5865dc557c0b4b8ad524f702a69be5/packages/omi-weui/src/omi-weui/elements/button/button.js)
|
||||
* [After](https://github.com/Tencent/omi/blob/9790fadaaf20cfede80bcf9213756a83fc8c3949/packages/omi-weui/src/omi-weui/elements/button/button.js)
|
||||
|
||||
## Browsers Support
|
||||
|
||||
Omi 4.0+ works in the latest two versions of all major browsers: Safari 10+, IE 11+, and the evergreen Chrome, Firefox, and Edge.
|
||||
|
|
Loading…
Reference in New Issue