ms-vite-plugin 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/api/hid.md +1 -1
- package/docs/api/node.md +1 -5
- package/docs/apicn/hid.md +1 -1
- package/docs/apicn/node.md +1 -5
- package/docs/apipython/hid.md +2 -2
- package/docs/apipython/node.md +0 -4
- package/package.json +1 -1
package/docs/api/hid.md
CHANGED
|
@@ -309,7 +309,7 @@ function click(
|
|
|
309
309
|
| ---- | ---- | ---- | ------ | ---- |
|
|
310
310
|
| `x` | number | 是 | - | 点击的 X 坐标 |
|
|
311
311
|
| `y` | number | 是 | - | 点击的 Y 坐标 |
|
|
312
|
-
| `duration` | number | 否 |
|
|
312
|
+
| `duration` | number | 否 | 20 | 点击持续时间(毫秒) |
|
|
313
313
|
| `jitter` | boolean | 否 | false | 启用随机抖动偏移 |
|
|
314
314
|
|
|
315
315
|
**返回值:**
|
package/docs/api/node.md
CHANGED
|
@@ -70,7 +70,6 @@ interface NodeInfo {
|
|
|
70
70
|
value: string; // 节点值
|
|
71
71
|
placeholderValue: string; // 节点占位符值
|
|
72
72
|
title: string; // 节点名称
|
|
73
|
-
visible: boolean; // 是否可见
|
|
74
73
|
enabled: boolean; // 是否启用
|
|
75
74
|
bounds: NodeBoundsInfo; // 边界信息
|
|
76
75
|
depth: number; // 层级深度
|
|
@@ -194,9 +193,6 @@ typeMatch(match: string): NodeSelector
|
|
|
194
193
|
|
|
195
194
|
// 启用状态
|
|
196
195
|
enabled(enabled: boolean): NodeSelector
|
|
197
|
-
|
|
198
|
-
// 可见性
|
|
199
|
-
visible(visible: boolean): NodeSelector
|
|
200
196
|
```
|
|
201
197
|
|
|
202
198
|
**示例:**
|
|
@@ -344,7 +340,7 @@ if (textField) {
|
|
|
344
340
|
|
|
345
341
|
// 查找同级的按钮
|
|
346
342
|
const siblingButtons = siblings.filter(
|
|
347
|
-
(node) => node.type === "XCUIElementTypeButton"
|
|
343
|
+
(node) => node.type === "XCUIElementTypeButton",
|
|
348
344
|
);
|
|
349
345
|
}
|
|
350
346
|
}
|
package/docs/apicn/hid.md
CHANGED
|
@@ -309,7 +309,7 @@ function 点击(
|
|
|
309
309
|
| ---- | ---- | ---- | ------ | ---- |
|
|
310
310
|
| `坐标x` | 数字 | 是 | - | 点击坐标的 X 轴 |
|
|
311
311
|
| `坐标y` | 数字 | 是 | - | 点击坐标的 Y 轴 |
|
|
312
|
-
| `按下持续时间` | 数字 | 否 |
|
|
312
|
+
| `按下持续时间` | 数字 | 否 | 20 | 点击持续时间(毫秒) |
|
|
313
313
|
| `抖动` | 布尔值 | 否 | false | 是否添加随机抖动 |
|
|
314
314
|
|
|
315
315
|
**返回值:**
|
package/docs/apicn/node.md
CHANGED
|
@@ -73,7 +73,6 @@ interface $节点信息 {
|
|
|
73
73
|
value: 字符串; // 节点值
|
|
74
74
|
placeholderValue: 字符串; // 节点占位符值
|
|
75
75
|
title: 字符串; // 节点名称
|
|
76
|
-
visible: 布尔值; // 是否可见
|
|
77
76
|
enabled: 布尔值; // 是否启用
|
|
78
77
|
bounds: $节点位置信息; // 边界信息
|
|
79
78
|
depth: 数字; // 层级深度
|
|
@@ -201,9 +200,6 @@ typeMatch(match: string): $节点选择器
|
|
|
201
200
|
|
|
202
201
|
// 启用状态
|
|
203
202
|
enabled(enabled: boolean): $节点选择器
|
|
204
|
-
|
|
205
|
-
// 可见性
|
|
206
|
-
visible(visible: boolean): $节点选择器
|
|
207
203
|
```
|
|
208
204
|
|
|
209
205
|
**示例:**
|
|
@@ -352,7 +348,7 @@ if (textField) {
|
|
|
352
348
|
|
|
353
349
|
// 查找同级的按钮
|
|
354
350
|
const siblingButtons = siblings.filter(
|
|
355
|
-
(node) => node.type === "XCUIElementTypeButton"
|
|
351
|
+
(node) => node.type === "XCUIElementTypeButton",
|
|
356
352
|
);
|
|
357
353
|
}
|
|
358
354
|
}
|
package/docs/apipython/hid.md
CHANGED
|
@@ -308,7 +308,7 @@ hid.setJitterValue(5)
|
|
|
308
308
|
def click(
|
|
309
309
|
x: int,
|
|
310
310
|
y: int,
|
|
311
|
-
duration: int =
|
|
311
|
+
duration: int = 20,
|
|
312
312
|
jitter: bool = False
|
|
313
313
|
) -> bool
|
|
314
314
|
```
|
|
@@ -318,7 +318,7 @@ def click(
|
|
|
318
318
|
| ---- | ---- | ---- | ------ | ---- |
|
|
319
319
|
| `x` | int | 是 | - | 点击的 X 坐标 |
|
|
320
320
|
| `y` | int | 是 | - | 点击的 Y 坐标 |
|
|
321
|
-
| `duration` | int | 否 |
|
|
321
|
+
| `duration` | int | 否 | 20 | 点击持续时间(毫秒) |
|
|
322
322
|
| `jitter` | bool | 否 | False | 启用随机抖动偏移 |
|
|
323
323
|
|
|
324
324
|
**返回值:**
|
package/docs/apipython/node.md
CHANGED
|
@@ -27,7 +27,6 @@ class NodeInfo:
|
|
|
27
27
|
value: str
|
|
28
28
|
placeholderValue: str
|
|
29
29
|
title: str
|
|
30
|
-
visible: bool
|
|
31
30
|
enabled: bool
|
|
32
31
|
bounds: NodeBounds
|
|
33
32
|
depth: int
|
|
@@ -181,9 +180,6 @@ def typeMatch(pattern: str) -> NodeSelector
|
|
|
181
180
|
|
|
182
181
|
# 启用状态
|
|
183
182
|
def enabled(flag: bool) -> NodeSelector
|
|
184
|
-
|
|
185
|
-
# 可见性
|
|
186
|
-
def visible(flag: bool) -> NodeSelector
|
|
187
183
|
```
|
|
188
184
|
|
|
189
185
|
**示例:**
|