feat: 更新 eslint 后,修复新检查出的错误
This commit is contained in:
@@ -38,9 +38,9 @@ export default {
|
||||
}
|
||||
},
|
||||
render (h) {
|
||||
const slots = [ this.$slots.default ]
|
||||
if (this.$slots.header) slots.push(h('template', { slot: 'header' }, [ this.$slots.header ]))
|
||||
if (this.$slots.footer) slots.push(h('template', { slot: 'footer' }, [ this.$slots.footer ]))
|
||||
const slots = [this.$slots.default]
|
||||
if (this.$slots.header) slots.push(h('template', { slot: 'header' }, [this.$slots.header]))
|
||||
if (this.$slots.footer) slots.push(h('template', { slot: 'footer' }, [this.$slots.footer]))
|
||||
return h('div', {
|
||||
ref: 'container',
|
||||
class: 'container-component'
|
||||
|
||||
@@ -28,15 +28,15 @@ export default {
|
||||
toolbar: [
|
||||
['bold', 'italic', 'underline', 'strike'],
|
||||
['blockquote', 'code-block'],
|
||||
[{ 'list': 'ordered' }, { 'list': 'bullet' }],
|
||||
[{ list: 'ordered' }, { list: 'bullet' }],
|
||||
// [{ 'script': 'sub' }, { 'script': 'super' }],
|
||||
// [{ 'indent': '-1' }, { 'indent': '+1' }],
|
||||
// [{ 'direction': 'rtl' }],
|
||||
[{ 'size': ['small', false, 'large', 'huge'] }],
|
||||
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
||||
[{ 'color': [] }, { 'background': [] }],
|
||||
[{ size: ['small', false, 'large', 'huge'] }],
|
||||
[{ header: [1, 2, 3, 4, 5, 6, false] }],
|
||||
[{ color: [] }, { background: [] }],
|
||||
// [{ 'font': [] }],
|
||||
[{ 'align': [] }],
|
||||
[{ align: [] }],
|
||||
['clean'],
|
||||
['link', 'image']
|
||||
]
|
||||
|
||||
@@ -3,6 +3,6 @@ export default {
|
||||
icon: './lib/UEditor/button-icon/d2admin.png',
|
||||
tip: 'D2Admin',
|
||||
handler: (editor, name) => {
|
||||
editor.execCommand('inserthtml', `<p><span style="border: 1px solid rgb(0, 0, 0); font-family: impact, chicago; color: rgb(127, 127, 127);">https://github.com/d2-projects/</span><span style="border: 1px solid rgb(0, 0, 0); font-family: impact, chicago; background-color: rgb(23, 54, 93); color: rgb(255, 255, 255);">d2-admin</span></p>`)
|
||||
editor.execCommand('inserthtml', '<p><span style="border: 1px solid rgb(0, 0, 0); font-family: impact, chicago; color: rgb(127, 127, 127);">https://github.com/d2-projects/</span><span style="border: 1px solid rgb(0, 0, 0); font-family: impact, chicago; background-color: rgb(23, 54, 93); color: rgb(255, 255, 255);">d2-admin</span></p>')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user