-
+
该组件没有提供特殊功能
@@ -248,14 +252,14 @@ async function getExposedCapabilities(componentType: string) {
// 检查是否有getCapabilities方法
if (exposedMethods && typeof exposedMethods.getCapabilities === 'function') {
- // 获取能力页面JSX
- const capsComponent = exposedMethods.getCapabilities();
+ // 获取能力组件定义
+ const CapabilityComponent = exposedMethods.getCapabilities();
// 卸载应用,清理DOM
app.unmount();
tempDiv.remove();
- return capsComponent;
+ return CapabilityComponent;
}
// 卸载应用,清理DOM
diff --git a/src/components/UploadCard.vue b/src/components/UploadCard.vue
index a8ab95f..d219bb4 100644
--- a/src/components/UploadCard.vue
+++ b/src/components/UploadCard.vue
@@ -6,7 +6,7 @@
@@ -20,17 +20,27 @@
@@ -105,22 +182,10 @@ defineExpose({
export function getDefaultProps() {
return {
size: 1,
+ jtagAddr: "127.0.0.1",
+ jtagPort: "1234",
};
}
-//
-// export function getCapabilities() {
-// return (
-//
-//
-// {" "}
-//
-//
-// );
-// }