!2191 优化:左侧栏图标增加中文描述

pull/2202/MERGE
林三 1 year ago committed by ChenX
parent 3761f92b02
commit 36aac2dc57

@ -3,6 +3,7 @@ import * as React from 'react';
import { CoolDownTime } from '../../../Common/CoolDownTime'; import { CoolDownTime } from '../../../Common/CoolDownTime';
import { commandMachine } from '../../../Editor/CommandMachine'; import { commandMachine } from '../../../Editor/CommandMachine';
import { ICON_CDN } from '../../IconEnum'; import { ICON_CDN } from '../../IconEnum';
import { CommandList } from '../CommandPanel/CommandList';
import { ICommandIconInfo } from '../TopToolBar/TopToolBarInterface'; import { ICommandIconInfo } from '../TopToolBar/TopToolBarInterface';
import './PropertiesPanel.less'; import './PropertiesPanel.less';
@ -59,8 +60,9 @@ export class ToolBar extends React.Component<ToolBarProps, {}>
{ {
iconList.map((cmd) => iconList.map((cmd) =>
{ {
let title = CommandList.find((c) => c.command === cmd.command)?.chName;
return ( return (
<li key={cmd.command} title={cmd.command} style={liStyle} <li key={cmd.command} title={(title ?? cmd.title) + "\n" + cmd.command} style={liStyle}
onClick={() => onClick={() =>
{ {
commandMachine.ExecCommand(cmd.command); commandMachine.ExecCommand(cmd.command);

Loading…
Cancel
Save