Skip to content

Commit

Permalink
feat: add some sample code snippets (#2891)
Browse files Browse the repository at this point in the history
* feat(Layout): add layout sample code snippets

* feat(Divier): add divider sample code snippets

* feat(Fab): add fab sample code snippets

* feat(Icon): add icon sample code snippets

* feat(Link): add link sample code snippets
  • Loading branch information
anlyyao authored Jun 25, 2024
1 parent 4fc8478 commit 89caca5
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/col/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ isComponent: true

## 代码演示

<a href="https://developers.weixin.qq.com/s/WwISnbmq7RSC" title="在开发者工具中预览效果" target="_blank" rel="noopener noreferrer"> 在开发者工具中预览效果 </a>

<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" >
<p>Tips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"</p>
</blockquote>


### 组件类型

基础
Expand Down
8 changes: 8 additions & 0 deletions src/divider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ isComponent: true

## 代码演示

<a href="https://developers.weixin.qq.com/s/tfHzFbma7IS4" title="在开发者工具中预览效果" target="_blank" rel="noopener noreferrer"> 在开发者工具中预览效果 </a>

<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" >
<p>Tips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"</p>
</blockquote>



### 基础分割符

分割符主要是由直线和文字组成,通过`slot`传入分割线文案或者其他自定义内容,通过`layout`控制分隔符是垂直还是横向
Expand Down
6 changes: 6 additions & 0 deletions src/fab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ isComponent: true

## 代码演示

<a href="https://developers.weixin.qq.com/s/KNHt9bmB7OSc" title="在开发者工具中预览效果" target="_blank" rel="noopener noreferrer"> 在开发者工具中预览效果 </a>

<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" >
<p>Tips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"</p>
</blockquote>

### 基础使用

{{ base }}
Expand Down
7 changes: 7 additions & 0 deletions src/icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ isComponent: true

## 代码演示

<a href="https://developers.weixin.qq.com/s/wMINibmJ7WSQ" title="在开发者工具中预览效果" target="_blank" rel="noopener noreferrer"> 在开发者工具中预览效果 </a>

<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" >
<p>Tips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"</p>
</blockquote>


### 基础组件图标

{{ base }}
Expand Down
6 changes: 6 additions & 0 deletions src/link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ isComponent: true

## 代码演示

<a href="https://developers.weixin.qq.com/s/AtJrPbmK7mSK" title="在开发者工具中预览效果" target="_blank" rel="noopener noreferrer"> 在开发者工具中预览效果 </a>

<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" >
<p>Tips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"</p>
</blockquote>

### 组件类型

基础文字链接
Expand Down

0 comments on commit 89caca5

Please sign in to comment.