diff --git a/web/src/assets/icon-font/iconfont.css b/web/src/assets/icon-font/iconfont.css
index ff910e7e..327fae12 100644
--- a/web/src/assets/icon-font/iconfont.css
+++ b/web/src/assets/icon-font/iconfont.css
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 2479351 */
- src: url('iconfont.woff2?t=1726022313538') format('woff2'),
- url('iconfont.woff?t=1726022313538') format('woff'),
- url('iconfont.ttf?t=1726022313538') format('truetype');
+ src: url('iconfont.woff2?t=1737022296799') format('woff2'),
+ url('iconfont.woff?t=1737022296799') format('woff'),
+ url('iconfont.ttf?t=1737022296799') format('truetype');
}
.iconfont {
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
+.iconjuzhongduiqi:before {
+ content: "\ec80";
+}
+
.iconfile-excel:before {
content: "\e7b7";
}
diff --git a/web/src/assets/icon-font/iconfont.ttf b/web/src/assets/icon-font/iconfont.ttf
index be64d2e5..970f56f0 100644
Binary files a/web/src/assets/icon-font/iconfont.ttf and b/web/src/assets/icon-font/iconfont.ttf differ
diff --git a/web/src/assets/icon-font/iconfont.woff b/web/src/assets/icon-font/iconfont.woff
index c7c1342e..6e196d54 100644
Binary files a/web/src/assets/icon-font/iconfont.woff and b/web/src/assets/icon-font/iconfont.woff differ
diff --git a/web/src/assets/icon-font/iconfont.woff2 b/web/src/assets/icon-font/iconfont.woff2
index d711ab4d..545c4bfd 100644
Binary files a/web/src/assets/icon-font/iconfont.woff2 and b/web/src/assets/icon-font/iconfont.woff2 differ
diff --git a/web/src/config/en.js b/web/src/config/en.js
index b4206eee..e946bab5 100644
--- a/web/src/config/en.js
+++ b/web/src/config/en.js
@@ -626,3 +626,19 @@ export const linearGradientDirList = [
end: [0, 0]
}
]
+
+// 文本对齐方式
+export const alignList = [
+ {
+ name: 'Align left',
+ value: 'left'
+ },
+ {
+ name: 'Align center',
+ value: 'center'
+ },
+ {
+ name: 'Align right',
+ value: 'right'
+ }
+]
\ No newline at end of file
diff --git a/web/src/config/index.js b/web/src/config/index.js
index a01bbc18..e9b0344f 100644
--- a/web/src/config/index.js
+++ b/web/src/config/index.js
@@ -21,7 +21,8 @@ import {
lineStyleMap as lineStyleMapZh,
numberTypeList as numberTypeListZh,
numberLevelList as numberLevelListZh,
- linearGradientDirList as linearGradientDirListZh
+ linearGradientDirList as linearGradientDirListZh,
+ alignList as alignListZh
} from './zh'
import {
fontFamilyList as fontFamilyListEn,
@@ -37,7 +38,8 @@ import {
downTypeList as downTypeListEn,
numberTypeList as numberTypeListEn,
numberLevelList as numberLevelListEn,
- linearGradientDirList as linearGradientDirListEn
+ linearGradientDirList as linearGradientDirListEn,
+ alignList as alignListEn
} from './en'
import {
fontFamilyList as fontFamilyListZhtw,
@@ -53,7 +55,8 @@ import {
downTypeList as downTypeListZhtw,
numberTypeList as numberTypeListZhtw,
numberLevelList as numberLevelListZhtw,
- linearGradientDirList as linearGradientDirListZhtw
+ linearGradientDirList as linearGradientDirListZhtw,
+ alignList as alignListZhtw
} from './zhtw'
const fontFamilyList = {
@@ -152,6 +155,12 @@ const linearGradientDirList = {
zhtw: linearGradientDirListZhtw
}
+const alignList = {
+ zh: alignListZh,
+ en: alignListEn,
+ zhtw: alignListZhtw
+}
+
export {
fontSizeList,
borderWidthList,
@@ -175,5 +184,6 @@ export {
downTypeList,
numberTypeList,
numberLevelList,
- linearGradientDirList
+ linearGradientDirList,
+ alignList
}
diff --git a/web/src/config/zh.js b/web/src/config/zh.js
index ac12834a..2794eb40 100644
--- a/web/src/config/zh.js
+++ b/web/src/config/zh.js
@@ -721,3 +721,19 @@ export const linearGradientDirList = [
end: [0, 0]
}
]
+
+// 文本对齐方式
+export const alignList = [
+ {
+ name: '左对齐',
+ value: 'left'
+ },
+ {
+ name: '居中对齐',
+ value: 'center'
+ },
+ {
+ name: '右对齐',
+ value: 'right'
+ }
+]
diff --git a/web/src/config/zhtw.js b/web/src/config/zhtw.js
index ab67680b..342949a0 100644
--- a/web/src/config/zhtw.js
+++ b/web/src/config/zhtw.js
@@ -626,3 +626,19 @@ export const linearGradientDirList = [
end: [0, 0]
}
]
+
+// 文本对齐方式
+export const alignList = [
+ {
+ name: '左對齊',
+ value: 'left'
+ },
+ {
+ name: '居中對齊',
+ value: 'center'
+ },
+ {
+ name: '右對齊',
+ value: 'right'
+ }
+]
\ No newline at end of file
diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js
index c30a9f81..ae0670cf 100644
--- a/web/src/lang/en_us.js
+++ b/web/src/lang/en_us.js
@@ -368,7 +368,8 @@ export default {
fontSize: 'Font size',
color: 'Color',
backgroundColor: 'Background color',
- removeFormat: 'Clear Style'
+ removeFormat: 'Clear Style',
+ textAlign: 'Text align'
},
other: {
loading: 'Loading, please wait...'
diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js
index 367b3332..7fd2abee 100644
--- a/web/src/lang/zh_cn.js
+++ b/web/src/lang/zh_cn.js
@@ -358,7 +358,8 @@ export default {
fontSize: '字号',
color: '字体颜色',
backgroundColor: '背景颜色',
- removeFormat: '清除样式'
+ removeFormat: '清除样式',
+ textAlign: '对齐方式'
},
other: {
loading: '正在加载,请稍后...'
diff --git a/web/src/lang/zh_tw.js b/web/src/lang/zh_tw.js
index 3feec32c..8d9ddc98 100644
--- a/web/src/lang/zh_tw.js
+++ b/web/src/lang/zh_tw.js
@@ -357,7 +357,8 @@ export default {
fontSize: '字型大小',
color: '字型顏色',
backgroundColor: '背景顏色',
- removeFormat: '清除樣式'
+ removeFormat: '清除樣式',
+ textAlign: '對齊方式'
},
other: {
loading: '載入中,請稍候...'
diff --git a/web/src/pages/Edit/components/RichTextToolbar.vue b/web/src/pages/Edit/components/RichTextToolbar.vue
index a319cbb7..d4ea6c72 100644
--- a/web/src/pages/Edit/components/RichTextToolbar.vue
+++ b/web/src/pages/Edit/components/RichTextToolbar.vue
@@ -110,6 +110,25 @@
+
+
+
+
+
+
+
+
+
@@ -119,7 +138,7 @@