-
Notifications
You must be signed in to change notification settings - Fork 277
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
13 changed files
with
113 additions
and
96 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
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 |
---|---|---|
@@ -1,24 +1,33 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### Progress Props | ||
|
||
name | type | default | description | required | ||
-- | -- | -- | -- | -- | ||
style | Object | - | CSS(Cascading Style Sheets) | N | ||
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N | ||
color | String / Object / Array | '' | Typescript:`string \| Array<string> \| Record<string, string>` | N | ||
external-classes `v0.25.0` | Array | - | `['t-class', 't-class-bar', 't-class-label']` | N | ||
label | String / Boolean / Slot | true | \- | N | ||
label | String / Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N | ||
percentage | Number | 0 | \- | N | ||
status | String | - | options:success/error/warning/active。Typescript:`StatusEnum` `type StatusEnum = 'success' \| 'error' \| 'warning' \| 'active'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/progress/type.ts) | N | ||
status | String | - | options: success/error/warning/active。Typescript:`StatusEnum` `type StatusEnum = 'success' \| 'error' \| 'warning' \| 'active'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/progress/type.ts) | N | ||
stroke-width | String / Number | - | \- | N | ||
theme | String | line | options:line/plump/circle。Typescript:`ThemeEnum` `type ThemeEnum = 'line' \| 'plump' \| 'circle'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/progress/type.ts) | N | ||
theme | String | line | options: line/plump/circle。Typescript:`ThemeEnum` `type ThemeEnum = 'line' \| 'plump' \| 'circle'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/progress/type.ts) | N | ||
track-color | String | '' | \- | N | ||
### Progress External Classes | ||
|
||
className | Description | ||
-- | -- | ||
t-class | \- | ||
t-class-bar | \- | ||
t-class-label | \- | ||
|
||
### CSS Variables | ||
|
||
The component provides the following CSS variables, which can be used to customize styles. | ||
Name | Default Value | Description | ||
-- | -- | -- | ||
--td-progress-circle-inner-bg-color | @font-white-1 | - | ||
--td-progress-inner-bg-color | @brand-color | - | ||
--td-progress-track-bg-color | @bg-color-component | - | ||
--td-progress-track-bg-color | @bg-color-component | - |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
Component({}); | ||
import SkylineBehavior from '@behaviors/skyline.js'; | ||
|
||
Component({ | ||
behaviors: [SkylineBehavior], | ||
}); |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<t-progress percentage="80" /> | ||
<t-progress theme="plump" percentage="80" /> | ||
<t-progress theme="circle" percentage="30" /> | ||
<t-progress wx:if="{{!skylineRender}}" theme="circle" percentage="30" /> |
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
Component({}); | ||
import SkylineBehavior from '@behaviors/skyline.js'; | ||
|
||
Component({ | ||
behaviors: [SkylineBehavior], | ||
}); |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<t-progress theme="circle" percentage="80" /> | ||
<t-progress theme="circle" percentage="88" status="warning" /> | ||
<t-progress theme="circle" percentage="88" status="error" /> | ||
<t-progress theme="circle" percentage="88" status="success" /> | ||
<t-demo wx:if="{{!skylineRender}}" desc="环形进度条" padding> | ||
<t-progress theme="circle" percentage="80" /> | ||
<t-progress theme="circle" percentage="88" status="warning" /> | ||
<t-progress theme="circle" percentage="88" status="error" /> | ||
<t-progress theme="circle" percentage="88" status="success" /> | ||
</t-demo> |
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<t-navbar title="Progress" leftArrow /> | ||
<view class="demo"> | ||
<view class="demo-title">Progress 进度条</view> | ||
<view class="demo-desc">在导航栏下方,用于给用户显示提示消息</view> | ||
<t-demo title="01 组件类型" desc="基础进度条" padding> | ||
<base /> | ||
</t-demo> | ||
<t-demo desc="过渡样式" padding> | ||
<transition /> | ||
</t-demo> | ||
<t-demo desc="自定义颜色/圆角" padding> | ||
<custom /> | ||
</t-demo> | ||
<t-demo title="02 组件状态" desc="线性进度条" padding> | ||
<line /> | ||
</t-demo> | ||
<t-demo desc="百分比内显进度条" padding> | ||
<plump /> | ||
</t-demo> | ||
<t-demo desc="环形进度条" padding> | ||
<circle /> | ||
</t-demo> | ||
<view class="skyline"> | ||
<t-navbar title="Progress" leftArrow /> | ||
<scroll-view scroll-y type="list" class="scroll-view"> | ||
<view class="demo"> | ||
<view class="demo-title">Progress 进度条</view> | ||
<view class="demo-desc">在导航栏下方,用于给用户显示提示消息</view> | ||
<t-demo title="01 组件类型" desc="基础进度条" padding> | ||
<base /> | ||
</t-demo> | ||
<t-demo desc="过渡样式" padding> | ||
<transition /> | ||
</t-demo> | ||
<t-demo desc="自定义颜色/圆角" padding> | ||
<custom /> | ||
</t-demo> | ||
<t-demo title="02 组件状态" desc="线性进度条" padding> | ||
<line /> | ||
</t-demo> | ||
<t-demo desc="百分比内显进度条" padding> | ||
<plump /> | ||
</t-demo> | ||
<circle /> | ||
</view> | ||
</scroll-view> | ||
</view> |
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 |
---|---|---|
@@ -1,5 +1 @@ | ||
<view class="skyline"> | ||
<scroll-view scroll-y type="list" class="scroll-view"> | ||
<demo-progress /> | ||
</scroll-view> | ||
</view> | ||
<demo-progress /> |
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