Skip to content

Commit 0b925cc

Browse files
committed
fix version bug
refer d14aec8ee56573ffb43ea84fc551c5fed737aa29
1 parent 4cbb23c commit 0b925cc

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

doc-md/23-常用UI组件.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,6 @@
4343
| onDismiss | <code>func</code> | 对话框消失回调 |
4444
| timeout | <code>number</code> | 超时自动隐藏,设置0或者不设置不会自动隐藏 |
4545

46-
<a name="module_miot/ui/MessageDialog"></a>
47-
48-
## miot/ui/MessageDialog
49-
消息对话框
50-
51-
**Export**: public
52-
**Doc_name**: 常用UI组件
53-
**Doc_index**: 23
54-
**Properties**
55-
56-
| Name | Type | Description |
57-
| --- | --- | --- |
58-
| visible | <code>bool</code> | 是否可见 |
59-
| cancelable | <code>bool</code> | 是否允许点击空白区域取消显示,仅限Android |
60-
| title | <code>string</code> | 标题 |
61-
| message | <code>string</code> | 副标题,内容 |
62-
| cancel | <code>string</code> | 取消标题 |
63-
| confirm | <code>string</code> | 确认标题 |
64-
| onConfirm | <code>func</code> | 确认点击回调 |
65-
| onCancel | <code>func</code> | 取消点击回调 |
66-
| onDismiss | <code>func</code> | 对话框消失回调 |
67-
6846
<a name="miot/ui/MultiChoseDialog"></a>
6947

7048
## miot/ui/MultiChoseDialog : <code>func</code>
@@ -116,10 +94,10 @@ onCheck={res => {
11694
}}
11795
/>
11896
```
119-
<a name="module_miot/ui/ProgressDialog"></a>
97+
<a name="module_miot/ui/MessageDialog"></a>
12098

121-
## miot/ui/ProgressDialog
122-
进度对话框,当进度到达max设置之后自动消失
99+
## miot/ui/MessageDialog
100+
消息对话框
123101

124102
**Export**: public
125103
**Doc_name**: 常用UI组件
@@ -132,10 +110,11 @@ onCheck={res => {
132110
| cancelable | <code>bool</code> | 是否允许点击空白区域取消显示,仅限Android |
133111
| title | <code>string</code> | 标题 |
134112
| message | <code>string</code> | 副标题,内容 |
135-
| max | <code>number</code> | 最大进度值 |
136-
| progress | <code>number</code> | 当前进度值 |
113+
| cancel | <code>string</code> | 取消标题 |
114+
| confirm | <code>string</code> | 确认标题 |
115+
| onConfirm | <code>func</code> | 确认点击回调 |
116+
| onCancel | <code>func</code> | 取消点击回调 |
137117
| onDismiss | <code>func</code> | 对话框消失回调 |
138-
| timeout | <code>number</code> | 超时自动隐藏,设置0或者不设置不会自动隐藏 |
139118

140119
<a name="module_miot/ui/NumberSpinner"></a>
141120

@@ -187,6 +166,27 @@ onCheck={res => {
187166
}}
188167
/>
189168
```
169+
<a name="module_miot/ui/ProgressDialog"></a>
170+
171+
## miot/ui/ProgressDialog
172+
进度对话框,当进度到达max设置之后自动消失
173+
174+
**Export**: public
175+
**Doc_name**: 常用UI组件
176+
**Doc_index**: 23
177+
**Properties**
178+
179+
| Name | Type | Description |
180+
| --- | --- | --- |
181+
| visible | <code>bool</code> | 是否可见 |
182+
| cancelable | <code>bool</code> | 是否允许点击空白区域取消显示,仅限Android |
183+
| title | <code>string</code> | 标题 |
184+
| message | <code>string</code> | 副标题,内容 |
185+
| max | <code>number</code> | 最大进度值 |
186+
| progress | <code>number</code> | 当前进度值 |
187+
| onDismiss | <code>func</code> | 对话框消失回调 |
188+
| timeout | <code>number</code> | 超时自动隐藏,设置0或者不设置不会自动隐藏 |
189+
190190
<a name="module_miot/ui/SingleChoseDialog"></a>
191191

192192
## miot/ui/SingleChoseDialog

miot-sdk/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { RootDeviceProperties } from "./Properties";
2424
import ResourcesPack from './resources';
2525
import ServiceInstance from './Service';
2626
import { SceneType as SceneTypeNames } from './service/scene';
27-
export const API_LEVEL = 10021
27+
export const API_LEVEL = 10022
2828
/**
2929
* 插件包基本配置
3030
* {@link module:miot/Package}

miot-sdk/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name":"miot",
3-
"version":"1.0.21",
4-
"api_level":10021}
3+
"version":"1.0.22",
4+
"api_level":10022}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"miot-workspace","version":"1.0.21","description":"MIOT Project workspace","private":true,"scripts":{"start":"node bin/runProject.js","create":"node bin/createProject.js","publish":"node bin/publishProject.js"},"engines":{"node":">=4"},"dependencies":{"@react-native-community/blur":"^3.3.1","buffer":"^5.2.1","d3-interpolate":"1.1.2","gl-react":"2.3.1","gl-react-blur":"2.0.1","gl-react-native":"2.48.0","intl":"1.2.5","intl-messageformat":"2.2.0","lodash.range":"3.2.0","lottie-react-native":"2.5.5","miot":"file:./miot-sdk","react":"16.3.0","react-native":"0.54.4","react-native-camera":"1.0.2","react-native-contacts":"2.1.3","react-native-image-capinsets":"0.4.0","react-native-image-picker":"0.26.10","react-native-indicators":"^0.13.0","react-native-iphone-x-helper":"^1.2.0","react-native-linear-gradient":"^2.5.4","react-native-nordic-dfu":"^3.0.0","react-native-orientation":"3.1.3","react-native-progress":"^3.5.0","react-native-shadow":"^1.2.2","react-native-slider":"^0.11.0","react-native-sqlite-storage":"3.1.2","react-native-svg":"6.4.1","react-native-swipeout":"2.3.6","react-native-swiper":"1.5.13","react-native-ui-kitten":"3.1.2","react-native-video":"2.0.0","react-navigation":"2.16.0","rmc-date-picker":"6.0.8","rmc-picker":"5.0.5","seedrandom":"2.4.3","stream":"0.0.2","victory-native":"0.18.1","whatwg-fetch":"2.0.4"},"devDependencies":{"babel-eslint":"^10.0.1","babel-plugin-transform-remove-console":"^6.9.4","compressing":"1.3.1","crypto":"1.0.1","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","jsdoc-to-markdown":"^4.0.1","metro":"0.28.0"}}
1+
{"name":"miot-workspace","version":"1.0.22","description":"MIOT Project workspace","private":true,"scripts":{"start":"node bin/runProject.js","create":"node bin/createProject.js","publish":"node bin/publishProject.js"},"engines":{"node":">=4"},"dependencies":{"@react-native-community/blur":"^3.3.1","buffer":"^5.2.1","d3-interpolate":"1.1.2","gl-react":"2.3.1","gl-react-blur":"2.0.1","gl-react-native":"2.48.0","intl":"1.2.5","intl-messageformat":"2.2.0","lodash.range":"3.2.0","lottie-react-native":"2.5.5","miot":"file:./miot-sdk","react":"16.3.0","react-native":"0.54.4","react-native-camera":"1.0.2","react-native-contacts":"2.1.3","react-native-image-capinsets":"0.4.0","react-native-image-picker":"0.26.10","react-native-indicators":"^0.13.0","react-native-iphone-x-helper":"^1.2.0","react-native-linear-gradient":"^2.5.4","react-native-nordic-dfu":"^3.0.0","react-native-orientation":"3.1.3","react-native-progress":"^3.5.0","react-native-shadow":"^1.2.2","react-native-slider":"^0.11.0","react-native-sqlite-storage":"3.1.2","react-native-svg":"6.4.1","react-native-swipeout":"2.3.6","react-native-swiper":"1.5.13","react-native-ui-kitten":"3.1.2","react-native-video":"2.0.0","react-navigation":"2.16.0","rmc-date-picker":"6.0.8","rmc-picker":"5.0.5","seedrandom":"2.4.3","stream":"0.0.2","victory-native":"0.18.1","whatwg-fetch":"2.0.4"},"devDependencies":{"babel-eslint":"^10.0.1","babel-plugin-transform-remove-console":"^6.9.4","compressing":"1.3.1","crypto":"1.0.1","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","jsdoc-to-markdown":"^4.0.1","metro":"0.28.0"}}

0 commit comments

Comments
 (0)