diff --git a/docs/main-concepts.cn.md b/docs/main-concepts.cn.md index 489b5d409..24201c80a 100644 --- a/docs/main-concepts.cn.md +++ b/docs/main-concepts.cn.md @@ -94,6 +94,13 @@ define('my-first-element', class extends WeElement { render(, 'body') ``` +通过 props ,你可以透传 style 或者 class 给根节点,比如 [→ 这里] 透传 style:(https://github.com/Tencent/omi/commit/cdea37ca7a15d109718fcc3731d6fe6d1548ffab) + +```jsx +默认按钮1 +主要按钮 +``` + ### Event ```js