Skip to content

Commit

Permalink
fix: add Ps text
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Apr 17, 2020
1 parent d039dcb commit 5ace866
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions front-end/h5/src/components/core/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const fixedTools = [
},
{
i18nTooltip: 'editor.fixedTool.importPSD',
'icon': '',
'text': 'Ps',
'icon': '', // 优先级: icon > text > i18nTooltip
'action': '',
'disabled': true
},
Expand Down Expand Up @@ -341,7 +342,7 @@ export default {
fixedTools.map(tool => (
<a-tooltip effect="dark" placement="left" title={this.$t(tool.i18nTooltip)}>
<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}>
{ tool.icon ? <i class={['shortcut-icon', 'fa', `fa-${tool.icon}`]} aria-hidden='true'/> : this.$t(tool.i18nTooltip) }
{ tool.icon ? <i class={['shortcut-icon', 'fa', `fa-${tool.icon}`]} aria-hidden='true'/> : (tool.text || this.$t(tool.i18nTooltip)) }
</a-button>
{ tool.icon === 'minus' && <div style={{ fontSize: '12px', textAlign: 'center' }}>{this.scaleRate * 100}%</div> }
</a-tooltip>
Expand Down

0 comments on commit 5ace866

Please sign in to comment.