@xiangyixie/dsh-superagent 0.22.0 → 0.22.1
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/CHANGELOG.md +4 -0
- package/lib/client.js +13 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,10 @@ along with the next code release. A doc-only version leaves `lib/` and `bin/`
|
|
|
8
8
|
byte-identical to the version before it, and the pinned install line in the
|
|
9
9
|
README is updated to the version being released.
|
|
10
10
|
|
|
11
|
+
## 0.22.1 — 2026-11-17
|
|
12
|
+
|
|
13
|
+
- 问答卡的回答按钮不再转发空的 `type`,避免宿主按钮在表单里退化成提交按钮。
|
|
14
|
+
|
|
11
15
|
## 0.22.0 — 2026-11-17
|
|
12
16
|
|
|
13
17
|
- 面板按宿主设计重做:思考与工具行进改用宿主 24px 过程行(DisclosureRow/TextShimmer),
|
package/lib/client.js
CHANGED
|
@@ -1425,13 +1425,19 @@ window.__ModuleLoader__.load({
|
|
|
1425
1425
|
item.reason ? h('div', { className: 'dsa-attention-desc' }, item.reason) : null,
|
|
1426
1426
|
h('div', { className: 'dsa-answer-row' },
|
|
1427
1427
|
field,
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1428
|
+
Button
|
|
1429
|
+
? h(Button, {
|
|
1430
|
+
variant: 'primary',
|
|
1431
|
+
size: 'sm',
|
|
1432
|
+
disabled: !draft.trim(),
|
|
1433
|
+
onClick: submit,
|
|
1434
|
+
}, '回答')
|
|
1435
|
+
: h('button', {
|
|
1436
|
+
type: 'button',
|
|
1437
|
+
className: 'dsa-chip',
|
|
1438
|
+
disabled: !draft.trim(),
|
|
1439
|
+
onClick: submit,
|
|
1440
|
+
}, '回答'))),
|
|
1435
1441
|
options.length > 0
|
|
1436
1442
|
? h('div', { className: 'dsa-attention-footer' },
|
|
1437
1443
|
h('div', { className: 'dsa-attention-options' },
|