Skip to content

Commit 3fe9bfc

Browse files
author
dennis.zpf
committed
fix: 优化事件和文档
1 parent fdde783 commit 3fe9bfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

copilot/ThoughtChain/index.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
nav:
33
path: /copilot
44
group:
5-
title: 确认
5+
title: Confirm
66
order: 4
77
toc: 'content'
88
---

copilot/ThoughtChain/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Component(
1414
if (!this.props.collapsible) return;
1515
// 受控模式
1616
if (this.props.onExpand && this.props.collapsible?.expandedKeys) {
17-
const { collapsible, onExpand } = this.props;
17+
const { collapsible } = this.props;
1818
const { expandedKeys } = collapsible;
1919
const { key } = e.currentTarget.dataset;
2020
const isExpandNow = expandedKeys.includes(key);
@@ -24,7 +24,7 @@ Component(
2424
} else {
2525
newExpandedKeys.push(key);
2626
}
27-
onExpand(newExpandedKeys, key);
27+
triggerEvent(this, 'expand', newExpandedKeys, key);
2828
} else {
2929
const { key } = e.currentTarget.dataset;
3030
const foldStatusMap = { ...this.data.foldStatusMap };

0 commit comments

Comments
 (0)