g-ai-robot3 0.1.88 → 0.1.90
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 +4 -3
- package/dist/g-ai-robot3.es.js +3 -3
- package/dist/g-ai-robot3.umd.js +10 -10
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ import gAiRobot from "g-ai-robot";
|
|
|
16
16
|
import "g-ai-robot3/dist/g-ai-robot3.css";
|
|
17
17
|
|
|
18
18
|
<g-ai-robot :cozeInfo="{bot_id:'7429224296222097443'}" :apiPrefix="'/api21215'"
|
|
19
|
-
:canvasWidth="180" :canvasHeight="180" :videoStyle="{width:'180px',visibility:'hidden'}" :digitalStyle="{width:'180px',height:'180px'}"
|
|
19
|
+
:canvasWidth="180" :canvasHeight="180" :videoStyle="{width:'180px',visibility:'hidden'}" :digitalStyle="{width:'180px',height:'180px'}" :canvasStyle="{width:'180px',height:'180px'}"
|
|
20
20
|
>
|
|
21
21
|
</g-ai-robot>
|
|
22
22
|
```
|
|
23
23
|
### 必填参数 (Required Parameters)
|
|
24
24
|
|
|
25
|
-
| 参数 | 说明 | 类型 |
|
|
25
|
+
| 参数 | 说明 | 类型 | 默认值 | 注意事项 |
|
|
26
26
|
|--------------------|-----------------------|--------------|-----------------------------------------|--------------------------------------------------------------------------|
|
|
27
27
|
| `cozeInfo` | 智能体配置 | object | `{bot_id:'7429224296222097443'}` | 必须替换为实际的bot_id |
|
|
28
28
|
| `apiPrefix` | API基础路径 | string | `'/api21215'` | 可在项目中配置代理,默认值`'/api21215'`
|
|
@@ -30,7 +30,7 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
|
|
|
30
30
|
| `canvasHeight` | 画布高度 | number | `180` | 必须与`videoStyle`和`digitalStyle`的高度保持一致 |
|
|
31
31
|
| `videoStyle` | 视频样式 | CSSProperties | `{width:'180px',visibility:'hidden'}` | width必须与`canvasWidth`保持一致 |
|
|
32
32
|
| `digitalStyle` | 数字人样式 | CSSProperties | `{width:'180px',height:'180px'}` | width/height必须与`canvasWidth`/`canvasHeight`保持一致
|
|
33
|
-
|
|
33
|
+
| `canvasStyle` | 数字人canvas宽高 | CSSProperties | `{width:'180px',height:'180px'}` | width/height必须与`canvasWidth`/`canvasHeight`保持一致
|
|
34
34
|
|
|
35
35
|
## 基础配置参数
|
|
36
36
|
|
|
@@ -38,6 +38,7 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
|
|
|
38
38
|
|---------------------|---------------------------------------|------------|-----------------------------------------|
|
|
39
39
|
| `isDebug` | 是否开启调试模式(打印语音输出) | boolean | `false` |
|
|
40
40
|
| `dialogBoxTheme` | 对话框主题 | string | `"light"` |
|
|
41
|
+
| `suspensionStyle` | 对话框高度 | string | `"33vh"` |
|
|
41
42
|
| `showMsgBubble` | 是否显示消息气泡 | boolean | `true` |
|
|
42
43
|
| `isExhibitionPro` | 是否为数字展厅项目 | boolean | `false` |
|
|
43
44
|
| `isShowDialogIcon` | 是否显示对话框图标 | boolean | `false` |
|
package/dist/g-ai-robot3.es.js
CHANGED
|
@@ -95813,8 +95813,8 @@ const Igt = { class: "robot" }, Cgt = {
|
|
|
95813
95813
|
xiaoR: { displayName: "小R同学", avatarId: "xiao-r" }
|
|
95814
95814
|
} : bt = {
|
|
95815
95815
|
xiaogui: { displayName: "小贵小贵", avatarId: "xiao-gui" },
|
|
95816
|
-
|
|
95817
|
-
|
|
95816
|
+
xiaohui: { displayName: "小慧小慧", avatarId: "xiao-hui" },
|
|
95817
|
+
xiaozhi: { displayName: "小智小智", avatarId: "xiao-zhi" },
|
|
95818
95818
|
xiaoG: { displayName: "小G同学", avatarId: "xiao-g" },
|
|
95819
95819
|
xiaoR: { displayName: "小R同学", avatarId: "xiao-r" }
|
|
95820
95820
|
};
|
|
@@ -96257,7 +96257,7 @@ const Igt = { class: "robot" }, Cgt = {
|
|
|
96257
96257
|
], 4)) : De("", !0)
|
|
96258
96258
|
], 36));
|
|
96259
96259
|
}
|
|
96260
|
-
}), Mh = /* @__PURE__ */ rL(Egt, [["__scopeId", "data-v-
|
|
96260
|
+
}), Mh = /* @__PURE__ */ rL(Egt, [["__scopeId", "data-v-a61f2c37"]]);
|
|
96261
96261
|
Mh.name = "GAiRobot3";
|
|
96262
96262
|
Mh.install = function(t) {
|
|
96263
96263
|
t.component("GAiRobot3", Mh);
|