Browse Source

调整默认sdk窗口大小值

master
wanghanlin 3 days ago
parent
commit
1a672fe128
  1. 4
      client/dist/chatbot-sdk.js
  2. 2
      client/dist/chatbot-sdk.min.js
  3. 4
      client/src/config.ts
  4. 4
      src/main/resources/static/sdk/chatbot-sdk.js
  5. 2
      src/main/resources/static/sdk/chatbot-sdk.min.js

4
client/dist/chatbot-sdk.js

@ -137,8 +137,8 @@ var ChatbotSDK = (function () {
categoryId: raw.categoryId,
showCategorySwitch: (_a = raw.showCategorySwitch) !== null && _a !== void 0 ? _a : false,
title: raw.title || 'AI 智能助手',
width: (_b = raw.width) !== null && _b !== void 0 ? _b : 380,
height: Math.max(300, (_c = raw.height) !== null && _c !== void 0 ? _c : 520),
width: (_b = raw.width) !== null && _b !== void 0 ? _b : 500,
height: Math.max(400, (_c = raw.height) !== null && _c !== void 0 ? _c : 520),
position: raw.position === 'left-bottom' ? 'left-bottom' : 'right-bottom',
primaryColor: resolvedPrimaryColor,
launcherIcon: resolvedLauncherIcon,

2
client/dist/chatbot-sdk.min.js
File diff suppressed because it is too large
View File

4
client/src/config.ts

@ -53,8 +53,8 @@ export function parseConfig(raw: SDKConfig): ResolvedConfig | null {
categoryId: raw.categoryId,
showCategorySwitch: raw.showCategorySwitch ?? false,
title: raw.title || 'AI 智能助手',
width: raw.width ?? 380,
height: Math.max(300, raw.height ?? 520),
width: raw.width ?? 500,
height: Math.max(400, raw.height ?? 520),
position: raw.position === 'left-bottom' ? 'left-bottom' : 'right-bottom',
primaryColor: resolvedPrimaryColor,
launcherIcon: resolvedLauncherIcon,

4
src/main/resources/static/sdk/chatbot-sdk.js

@ -137,8 +137,8 @@ var ChatbotSDK = (function () {
categoryId: raw.categoryId,
showCategorySwitch: (_a = raw.showCategorySwitch) !== null && _a !== void 0 ? _a : false,
title: raw.title || 'AI 智能助手',
width: (_b = raw.width) !== null && _b !== void 0 ? _b : 380,
height: Math.max(300, (_c = raw.height) !== null && _c !== void 0 ? _c : 520),
width: (_b = raw.width) !== null && _b !== void 0 ? _b : 500,
height: Math.max(400, (_c = raw.height) !== null && _c !== void 0 ? _c : 520),
position: raw.position === 'left-bottom' ? 'left-bottom' : 'right-bottom',
primaryColor: resolvedPrimaryColor,
launcherIcon: resolvedLauncherIcon,

2
src/main/resources/static/sdk/chatbot-sdk.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save