Block Editor更新链接弹窗里面的图标
This commit is contained in:
parent
51c0e1a76a
commit
a75ca2e291
@ -183,18 +183,18 @@ function forceUpdate() {
|
||||
<span class="blockeditor-link-actions">
|
||||
<button
|
||||
class="blockeditor-link-btn"
|
||||
:class="{ active: newWindow }"
|
||||
:title="t('Open in new window')"
|
||||
v-html="renderIcon('external_link')"
|
||||
@click="newWindow = !newWindow"
|
||||
:title="t('Apply link')"
|
||||
v-html="renderIcon('enter')"
|
||||
:disabled="!url.trim()"
|
||||
@click="setLink"
|
||||
@mousedown.stop
|
||||
/>
|
||||
<button
|
||||
class="blockeditor-link-btn"
|
||||
:title="t('Apply link')"
|
||||
v-html="renderIcon('link')"
|
||||
:disabled="!url.trim()"
|
||||
@click="setLink"
|
||||
:class="{ active: newWindow }"
|
||||
:title="t('Open in new window')"
|
||||
v-html="renderIcon('external_link')"
|
||||
@click="newWindow = !newWindow"
|
||||
@mousedown.stop
|
||||
/>
|
||||
<button
|
||||
|
||||
@ -48,6 +48,7 @@ const ICONS = {
|
||||
trash: '<path d="M3 6h18m-2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m-6 5v6m4-6v6"/>',
|
||||
x: '<path d="M18 6L6 18M6 6l12 12"/>',
|
||||
more_vert: '<circle cx="12" cy="5" r="2" fill="currentColor" stroke="none"/><circle cx="12" cy="12" r="2" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="2" fill="currentColor" stroke="none"/>',
|
||||
enter: '<path d="m9 10-5 5 5 5"/><path d="M20 4v7a4 4 0 0 1-4 4H4"/>',
|
||||
} as const
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user