格式化html

This commit is contained in:
Harvey committed 2019-11-27 16:32:22 +08:00
1 parent 1d153e9a8d
commit 2cf7905d58
4 files changed
+20 -20

No files matched your search

@@ -6,10 +6,10 @@ export default function aspectRatio(option) {
return {
...option,
html: `
${i18n.get('Aspect ratio')}:
<span data-ratio="default" class="art-current">${i18n.get('Default')}</span>
<span data-ratio="4:3">4:3</span>
<span data-ratio="16:9">16:9</span>
${i18n.get('Aspect ratio')}:
<span data-ratio="default" class="art-current">${i18n.get('Default')}</span>
<span data-ratio="4:3">4:3</span>
<span data-ratio="16:9">16:9</span>
`,
click: (contextmenu, event) => {
const { ratio } = event.target.dataset;