Commit 5ace866 1 parent d039dcb commit 5ace866 Copy full SHA for 5ace866
File tree 1 file changed +3
-2
lines changed
front-end/h5/src/components/core/editor
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ const fixedTools = [
68
68
} ,
69
69
{
70
70
i18nTooltip : 'editor.fixedTool.importPSD' ,
71
- 'icon' : '' ,
71
+ 'text' : 'Ps' ,
72
+ 'icon' : '' , // 优先级: icon > text > i18nTooltip
72
73
'action' : '' ,
73
74
'disabled' : true
74
75
} ,
@@ -341,7 +342,7 @@ export default {
341
342
fixedTools . map ( tool => (
342
343
< a-tooltip effect = "dark" placement = "left" title = { this . $t ( tool . i18nTooltip ) } >
343
344
< a-button block class = "transparent-bg" type = "link" size = "small" style = { { height : '40px' , color : '#000' } } onClick = { ( ) => tool . action && tool . action . call ( this ) } disabled = { ! ! tool . disabled } >
344
- { tool . icon ? < i class = { [ 'shortcut-icon' , 'fa' , `fa-${ tool . icon } ` ] } aria-hidden = 'true' /> : this . $t ( tool . i18nTooltip ) }
345
+ { tool . icon ? < i class = { [ 'shortcut-icon' , 'fa' , `fa-${ tool . icon } ` ] } aria-hidden = 'true' /> : ( tool . text || this . $t ( tool . i18nTooltip ) ) }
345
346
</ a-button >
346
347
{ tool . icon === 'minus' && < div style = { { fontSize : '12px' , textAlign : 'center' } } > { this . scaleRate * 100 } %</ div > }
347
348
</ a-tooltip >
You can’t perform that action at this time.
0 commit comments