更新whiteboard属性面板的翻译

This commit is contained in:
jingrow 2026-05-04 01:21:35 +08:00
parent 780c44e757
commit 0010ac0028
2 changed files with 31 additions and 10 deletions

View File

@ -182,22 +182,22 @@ const currentLineStyle = computed(() => {
// 线
const lineStyleOptions: { label: string; value: LineStyle; icon: string }[] = [
{
label: 'Solid',
label: t('Solid'),
value: 'solid',
icon: `<svg width="40" height="16" viewBox="0 0 40 16" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="8" x2="38" y2="8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>`,
},
{
label: 'Dashed',
label: t('Dashed'),
value: 'dashed',
icon: `<svg width="40" height="16" viewBox="0 0 40 16" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="8" x2="38" y2="8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-dasharray="8 5"/></svg>`,
},
{
label: 'Dotted',
label: t('Dotted'),
value: 'dotted',
icon: `<svg width="40" height="16" viewBox="0 0 40 16" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="8" x2="38" y2="8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-dasharray="2 4"/></svg>`,
},
{
label: 'Dash-Dot',
label: t('Dash-Dot'),
value: 'dash-dot',
icon: `<svg width="40" height="16" viewBox="0 0 40 16" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="8" x2="38" y2="8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-dasharray="8 4 2 4"/></svg>`,
},
@ -1137,16 +1137,16 @@ function handleResize(): void {
<template v-if="hasArrowControl">
<div class="panel-section">
<!-- 连线样式路由 -->
<div class="panel-section-title">{{ t('Route Style') }}</div>
<div class="panel-section-title">{{ t('Arrow Style') }}</div>
<div class="prop-row">
<n-select
size="tiny"
:value="currentRouteStyle"
@update:value="handleRouteStyleChange"
:options="[
{ label: 'Straight', value: 'straight' },
{ label: 'Orthogonal', value: 'orthogonal' },
{ label: 'Bezier', value: 'bezier' },
{ label: t('Straight'), value: 'straight' },
{ label: t('Orthogonal'), value: 'orthogonal' },
{ label: t('Bezier'), value: 'bezier' },
]"
style="width: 100%;"
/>

View File

@ -35824,8 +35824,29 @@ msgstr "起点箭头"
msgid "End Arrow"
msgstr "终点箭头"
msgid "Route Style"
msgstr "线路样式"
msgid "Arrow Style"
msgstr "箭头样式"
msgid "Straight"
msgstr "直线"
msgid "Orthogonal"
msgstr "折线"
msgid "Bezier"
msgstr "曲线"
msgid "Solid"
msgstr "实线"
msgid "Dashed"
msgstr "虚线"
msgid "Dotted"
msgstr "点线"
msgid "Dash-Dot"
msgstr "点划线"
msgid "Stroke Width"
msgstr "描边宽度"