-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
279 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ActionSheet 上拉菜单 | ||
|
||
--- | ||
|
||
## 使用指南 | ||
|
||
在 Taro 文件中引入组件 | ||
|
||
:::demo | ||
|
||
```js | ||
import { AtActionSheet } from "taro-ui" | ||
``` | ||
|
||
::: | ||
|
||
## 一般用法 | ||
|
||
:::demo | ||
|
||
```html | ||
<AtActionSheet | ||
cancleText='取消' | ||
title='清除位置信息后, 别人将不能查看到你这里最多显示两行'> | ||
<AtActionSheetItem>按钮一</AtActionSheetItem> | ||
<AtActionSheetItem>按钮二</AtActionSheetItem> | ||
<AtActionSheetItem> | ||
<Text className='danger'>清除位置信息并退出</Text> | ||
</AtActionSheetItem> | ||
</AtActionSheet> | ||
``` | ||
|
||
::: | ||
|
||
## AtActionSheet 参数 | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ||
| ---------- | -------------- | ------- | ------ | ------ | | ||
| title | 元素的标题 | String | - | - | | ||
| isOpened | 是否展示元素 | Boolean | - | - | | ||
| cancleText | 取消按钮的内容 | String | - | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# ActivityIndicator 活动指示器 | ||
|
||
--- | ||
|
||
## 使用指南 | ||
|
||
在 Taro 文件中引入组件 | ||
|
||
:::demo | ||
|
||
```js | ||
import { AtActivityIndicator } from "taro-ui" | ||
``` | ||
|
||
::: | ||
|
||
## 一般用法 | ||
|
||
:::demo | ||
|
||
```html | ||
<AtActivityIndicator></AtActivityIndicator> | ||
``` | ||
|
||
::: | ||
|
||
## AtActivityIndicator 参数 | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ||
| ------- | ---------------- | ------ | ----------------- | ------ | | ||
| mode | 元素的类型 | String | `center`,`normal` | - | | ||
| size | loading 图的大小 | Number | - | - | | ||
| color | loading 图的样色 | String | - | - | | ||
| content | 元素的内容文本 | String | - | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Modal 模态框 | ||
|
||
--- | ||
|
||
## 使用指南 | ||
|
||
在 Taro 文件中引入组件 | ||
|
||
:::demo | ||
|
||
```js | ||
import { AtModal, AtModalHeader, AtModalContent, AtModalAction } from "taro-ui" | ||
``` | ||
|
||
::: | ||
|
||
## 一般用法 | ||
|
||
:::demo | ||
|
||
```html | ||
<AtModal> | ||
<AtModalHeader>标题</AtModalHeader> | ||
<AtModalContent> | ||
<View className='modal-content'> | ||
这里是正文内容,欢迎加入京东凹凸实验室 | ||
这里是正文内容,欢迎加入京东凹凸实验室 | ||
这里是正文内容,欢迎加入京东凹凸实验室 | ||
</View> | ||
</AtModalContent> | ||
<AtModalAction> | ||
<Button>取消</Button> | ||
<Button className='serious-button'> | ||
确定 | ||
</Button> | ||
</AtModalAction> | ||
</AtModal> | ||
``` | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Progress 进度条 | ||
|
||
--- | ||
|
||
## 使用指南 | ||
|
||
在 Taro 文件中引入组件 | ||
|
||
:::demo | ||
|
||
```js | ||
import { AtProgress } from "taro-ui" | ||
``` | ||
|
||
::: | ||
|
||
## 一般用法 | ||
|
||
:::demo | ||
|
||
```html | ||
<AtProgress></AtProgress> | ||
``` | ||
|
||
::: | ||
|
||
## AtProgress 参数 | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ||
| ------------- | ------------ | ------- | -------------------------- | ------- | | ||
| color | 元素的颜色 | String | - | - | | ||
| status | 元素的状态 | String | `active`,`fail`,`finished` | - | | ||
| percent | 元素的进度 | Number | - | - | | ||
| strokeWidth | 元素的规格 | Number | - | - | | ||
| isHidePercent | 是否隐藏文字 | Boolean | - | `false` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Toast 轻提示 | ||
|
||
--- | ||
|
||
## 使用指南 | ||
|
||
在 Taro 文件中引入组件 | ||
|
||
:::demo | ||
|
||
```js | ||
import { AtToast } from "taro-ui" | ||
``` | ||
|
||
::: | ||
|
||
## 一般用法 | ||
|
||
:::demo | ||
|
||
```html | ||
<AtToast></AtToast> | ||
``` | ||
|
||
::: | ||
|
||
## AtToast 参数 | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ||
| ------------ | ------------- | ------- | ------ | ------- | | ||
| text | 元素的内容 | String | - | - | | ||
| iconType | icon 的种类 | String | - | - | | ||
| iconSize | icon 的大小 | Number | - | - | | ||
| iconColor | icon 的颜色 | Number | - | - | | ||
| isOpened | 是否展现组件 | Boolean | - | - | | ||
| isHiddenIcon | 是否隐藏 icon | Boolean | - | `false` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as Nerv from 'nervjs' | ||
import ActionSheetDoc from '@md/action-sheet.md' | ||
|
||
class ActionSheetView extends Nerv.Component { | ||
render () { | ||
return <ActionSheetDoc /> | ||
} | ||
} | ||
|
||
export default ActionSheetView |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as Nerv from 'nervjs' | ||
import ActivityIndicatorDoc from '@md/activity-indicator.md' | ||
|
||
class ActivityIndicatorView extends Nerv.Component { | ||
render () { | ||
return <ActivityIndicatorDoc /> | ||
} | ||
} | ||
|
||
export default ActivityIndicatorView |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as Nerv from 'nervjs' | ||
import ModalDoc from '@md/modal.md' | ||
|
||
class ModalView extends Nerv.Component { | ||
render () { | ||
return <ModalDoc /> | ||
} | ||
} | ||
|
||
export default ModalView |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as Nerv from 'nervjs' | ||
import ProgressDoc from '@md/progress.md' | ||
|
||
class ProgressView extends Nerv.Component { | ||
render () { | ||
return <ProgressDoc /> | ||
} | ||
} | ||
|
||
export default ProgressView |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as Nerv from 'nervjs' | ||
import ToastDoc from '@md/toast.md' | ||
|
||
class ToastView extends Nerv.Component { | ||
render () { | ||
return <ToastDoc /> | ||
} | ||
} | ||
|
||
export default ToastView |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters