@blueking/bkflow-canvas-editor 0.0.34 → 0.0.35-beta.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/README.md CHANGED
@@ -184,9 +184,9 @@ npm install @blueking/bkflow-canvas-editor
184
184
 
185
185
  ```typescript
186
186
  interface AgentSelectPanelConfig {
187
- applyUrl?: string; // "点击申请" 按钮跳转链接(可选)
188
- resourceUrl?: string; // "智能体" 按钮跳转链接(可选)
189
- buttonText?: string; // "智能体" 按钮文本(可选,默认为 "智能体")
187
+ agentApplyUrl?: string; // "点击申请" 按钮跳转链接(可选)
188
+ agentResourceUrl?: string; // "智能体" 按钮跳转链接(可选)
189
+ agentButtonText?: string; // "智能体" 按钮文本(可选,默认为 "智能体")
190
190
  }
191
191
  ```
192
192
 
@@ -198,9 +198,9 @@ interface AgentSelectPanelConfig {
198
198
  :flow-id="flowId"
199
199
  :api-config="apiConfig"
200
200
  :agent-select-panel-config="{
201
- applyUrl: 'https://example.com/apply',
202
- resourceUrl: 'https://example.com/agent',
203
- buttonText: '创建智能体',
201
+ agentApplyUrl: 'https://example.com/apply',
202
+ agentResourceUrl: 'https://example.com/agent',
203
+ agentButtonText: '创建智能体',
204
204
  }" />
205
205
  </template>
206
206
  ```
@@ -208,7 +208,7 @@ interface AgentSelectPanelConfig {
208
208
  #### 说明
209
209
 
210
210
  - 如果 `agentSelectPanelConfig` 未提供或某个字段未提供,组件将使用默认的路由跳转行为
211
- - `buttonText` 默认值为 "智能体"
211
+ - `agentButtonText` 默认值为 "智能体"
212
212
  - 配置通过 Vue 的 provide/inject 机制全局提供,子组件可以直接通过 `useAgentSelectPanelConfig()` 获取
213
213
 
214
214
  ---