From 914bbecd3d7102213fb209f3f955e4f518d12dbc Mon Sep 17 00:00:00 2001
From: lijisanxiong <1518062161@qq.com>
Date: Tue, 30 Sep 2025 17:30:55 +0800
Subject: [PATCH 1/3] =?UTF-8?q?feat=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=96=87?=
=?UTF-8?q?=E6=9C=AC=E6=A1=86ai=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CHANGELOG.md | 4 ++++
src/editor/text-box/input/input.scss | 5 +++--
src/editor/text-box/input/input.tsx | 6 +++++-
src/locale/en/index.ts | 1 +
src/locale/zh-CN/index.ts | 1 +
5 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 01057fe30..7709ddb37 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@
## [Unreleased]
+### Changed
+
+- 更新文本框ai按钮样式
+
## [0.7.41-alpha.29] - 2025-09-30
### Added
diff --git a/src/editor/text-box/input/input.scss b/src/editor/text-box/input/input.scss
index d4e11da9e..876c105af 100644
--- a/src/editor/text-box/input/input.scss
+++ b/src/editor/text-box/input/input.scss
@@ -1,5 +1,6 @@
$input: (
'min-height': getCssVar(editor, default, line-height),
+ 'ai-chat-bottom-tight': 10px,
);
@include b('input') {
@@ -13,8 +14,8 @@ $input: (
@include flex(row, center, center);
position: absolute;
- right: getCssVar('spacing', 'base-loose');
- bottom: getCssVar('spacing', 'base-loose');
+ right: getCssVar('spacing', 'base-tight');
+ bottom: getCssVar('input', 'ai-chat-bottom-tight');
width: calc(getCssVar('width-icon', 'medium') + 2 * getCssVar('spacing', 'tight'));
height: calc(getCssVar('width-icon', 'medium') + 2 * getCssVar('spacing', 'tight'));
padding: getCssVar('spacing', 'tight');
diff --git a/src/editor/text-box/input/input.tsx b/src/editor/text-box/input/input.tsx
index c73a5b354..6e96210b7 100644
--- a/src/editor/text-box/input/input.tsx
+++ b/src/editor/text-box/input/input.tsx
@@ -734,7 +734,11 @@ export const IBizInput = defineComponent({
{content}
{this.c.chatCompletion ? (
-
+
) : null}
diff --git a/src/locale/en/index.ts b/src/locale/en/index.ts
index e967364cb..457765450 100644
--- a/src/locale/en/index.ts
+++ b/src/locale/en/index.ts
@@ -716,6 +716,7 @@ export default {
textBox: {
warningMessage:
'Ip format verification failed, paragraph {num} ip reset to old value',
+ openAiChat: 'Open ai chat',
},
upload: {
uploadFiles: 'Upload files',
diff --git a/src/locale/zh-CN/index.ts b/src/locale/zh-CN/index.ts
index 6ad49fbd3..cd86471fc 100644
--- a/src/locale/zh-CN/index.ts
+++ b/src/locale/zh-CN/index.ts
@@ -669,6 +669,7 @@ export default {
},
textBox: {
warningMessage: 'ip格式验证未通过,第{num}段ip重置回旧值',
+ openAiChat: '打开ai聊天',
},
upload: {
uploadFiles: '上传文件',
--
Gitee
From 7e339b8650c382b56a7f76f15dda5548bd4c9875 Mon Sep 17 00:00:00 2001
From: lijisanxiong <1518062161@qq.com>
Date: Tue, 30 Sep 2025 17:35:30 +0800
Subject: [PATCH 2/3] =?UTF-8?q?feat=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=96=87?=
=?UTF-8?q?=E6=9C=AC=E6=A1=86=E7=BC=96=E8=BE=91=E5=99=A8=E7=9A=84=E5=9B=BD?=
=?UTF-8?q?=E9=99=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/locale/en/index.ts | 2 +-
src/locale/zh-CN/index.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/locale/en/index.ts b/src/locale/en/index.ts
index 457765450..d5b351933 100644
--- a/src/locale/en/index.ts
+++ b/src/locale/en/index.ts
@@ -716,7 +716,7 @@ export default {
textBox: {
warningMessage:
'Ip format verification failed, paragraph {num} ip reset to old value',
- openAiChat: 'Open ai chat',
+ openAiChat: 'Open AI chat',
},
upload: {
uploadFiles: 'Upload files',
diff --git a/src/locale/zh-CN/index.ts b/src/locale/zh-CN/index.ts
index cd86471fc..825effc63 100644
--- a/src/locale/zh-CN/index.ts
+++ b/src/locale/zh-CN/index.ts
@@ -669,7 +669,7 @@ export default {
},
textBox: {
warningMessage: 'ip格式验证未通过,第{num}段ip重置回旧值',
- openAiChat: '打开ai聊天',
+ openAiChat: '打开AI聊天',
},
upload: {
uploadFiles: '上传文件',
--
Gitee
From 502d0edcdfc7e79fc54fc203106e2943e8dd5600 Mon Sep 17 00:00:00 2001
From: lijisanxiong <1518062161@qq.com>
Date: Tue, 30 Sep 2025 17:38:22 +0800
Subject: [PATCH 3/3] =?UTF-8?q?feat=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=96=87?=
=?UTF-8?q?=E6=9C=AC=E6=A1=86=E7=BC=96=E8=BE=91=E5=99=A8=E7=9A=84=E5=9B=BD?=
=?UTF-8?q?=E9=99=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/locale/en/index.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/locale/en/index.ts b/src/locale/en/index.ts
index d5b351933..d75eda3c8 100644
--- a/src/locale/en/index.ts
+++ b/src/locale/en/index.ts
@@ -716,7 +716,7 @@ export default {
textBox: {
warningMessage:
'Ip format verification failed, paragraph {num} ip reset to old value',
- openAiChat: 'Open AI chat',
+ openAiChat: 'Open the AI chat',
},
upload: {
uploadFiles: 'Upload files',
--
Gitee