chore(editor): format
This commit is contained in:
parent
3bf806f00c
commit
e81c98fe5b
@ -86,19 +86,16 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
.items {
|
.items {
|
||||||
padding: 0.2rem;
|
padding: 0.2rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
background: #FFF;
|
background: #fff;
|
||||||
color: rgba(0, 0, 0, 0.8);
|
color: rgba(0, 0, 0, 0.8);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
box-shadow:
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0px 10px 20px rgba(0, 0, 0, 0.1);
|
||||||
0 0 0 1px rgba(0, 0, 0, 0.05),
|
|
||||||
0px 10px 20px rgba(0, 0, 0, 0.1),
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
|
@ -4,7 +4,7 @@ import tippy from 'tippy.js'
|
|||||||
import CommandsList from './CommandsList.vue'
|
import CommandsList from './CommandsList.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
items: ({ query }) => {
|
items: ({query}: { query: string }) => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: 'H1',
|
title: 'H1',
|
||||||
@ -19,6 +19,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'H2',
|
title: 'H2',
|
||||||
|
description: 'Lorem ipsum',
|
||||||
command: ({editor, range}) => {
|
command: ({editor, range}) => {
|
||||||
editor
|
editor
|
||||||
.chain()
|
.chain()
|
||||||
@ -54,7 +55,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
render: () => {
|
render: () => {
|
||||||
let component
|
let component: VueRenderer
|
||||||
let popup
|
let popup
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user