Skip to content

Commit 11f22c9

Browse files
committed
doc: 文档更新
refer 5e7ac713b85630d85ee14e0e4a7fc6a69ba2c401
1 parent 6a5313f commit 11f22c9

File tree

3 files changed

+45
-43
lines changed

3 files changed

+45
-43
lines changed

doc-md/06-插件设备模块.md

+1
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ Device.getSubDevices()
710710
711711
**Kind**: instance method of [<code>IDevice</code>](#module_miot/Device--module.exports..IDevice)
712712
**Returns**: <code>Promise</code> - 返回数组设备信息的promise, {"mesh":[], "normal":""}
713+
**Since**: 10020
713714
714715
| Param | Type | Default | Description |
715716
| --- | --- | --- | --- |

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

+43-43
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,28 @@
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+
4668
<a name="miot/ui/MultiChoseDialog"></a>
4769

4870
## miot/ui/MultiChoseDialog : <code>func</code>
@@ -94,49 +116,6 @@ onCheck={res => {
94116
}}
95117
/>
96118
```
97-
<a name="module_miot/ui/MessageDialog"></a>
98-
99-
## miot/ui/MessageDialog
100-
消息对话框
101-
102-
**Export**: public
103-
**Doc_name**: 常用UI组件
104-
**Doc_index**: 23
105-
**Properties**
106-
107-
| Name | Type | Description |
108-
| --- | --- | --- |
109-
| visible | <code>bool</code> | 是否可见 |
110-
| cancelable | <code>bool</code> | 是否允许点击空白区域取消显示,仅限Android |
111-
| title | <code>string</code> | 标题 |
112-
| message | <code>string</code> | 副标题,内容 |
113-
| cancel | <code>string</code> | 取消标题 |
114-
| confirm | <code>string</code> | 确认标题 |
115-
| onConfirm | <code>func</code> | 确认点击回调 |
116-
| onCancel | <code>func</code> | 取消点击回调 |
117-
| onDismiss | <code>func</code> | 对话框消失回调 |
118-
119-
<a name="module_miot/ui/ProgressDialog"></a>
120-
121-
## miot/ui/ProgressDialog
122-
进度对话框,当进度到达max设置之后自动消失
123-
124-
**Export**: public
125-
**Doc_name**: 常用UI组件
126-
**Doc_index**: 23
127-
**Properties**
128-
129-
| Name | Type | Description |
130-
| --- | --- | --- |
131-
| visible | <code>bool</code> | 是否可见 |
132-
| cancelable | <code>bool</code> | 是否允许点击空白区域取消显示,仅限Android |
133-
| title | <code>string</code> | 标题 |
134-
| message | <code>string</code> | 副标题,内容 |
135-
| max | <code>number</code> | 最大进度值 |
136-
| progress | <code>number</code> | 当前进度值 |
137-
| onDismiss | <code>func</code> | 对话框消失回调 |
138-
| timeout | <code>number</code> | 超时自动隐藏,设置0或者不设置不会自动隐藏 |
139-
140119
<a name="module_miot/ui/NumberSpinner"></a>
141120

142121
## miot/ui/NumberSpinner
@@ -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/Device.js

+1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ class IDevice {
438438
}
439439
/**
440440
* 获取蓝牙网关关联的普通蓝牙和蓝牙mesh设备列表。
441+
* @since 10020
441442
* @param {string} [did=Device.deviceID] 蓝牙网关的did,可以为空,为空时默认取当前Device.deviceID
442443
* @returns {Promise} 返回数组设备信息的promise, {"mesh":[], "normal":""}
443444
*/

0 commit comments

Comments
 (0)