File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ export default defineComponent({
80
80
instance .value ?.format (type , {})
81
81
}
82
82
83
+ // const indent = () => {
84
+
85
+ // }
86
+
83
87
const handleUpload = async (event : Event ) => {
84
88
const target = event .target as HTMLInputElement
85
89
Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ withDefaults(defineProps<{
6
6
code? : boolean ,
7
7
heading? : boolean ,
8
8
image? : boolean ,
9
+ indent? : boolean ,
9
10
italic? : boolean ,
10
11
link? : boolean ,
11
12
numberList? : boolean ,
12
13
taskList? : boolean ,
14
+ unindent? : boolean ,
13
15
upload? : boolean ,
14
16
}>(), {
15
17
blockquote: true ,
@@ -18,10 +20,12 @@ withDefaults(defineProps<{
18
20
code: true ,
19
21
heading: true ,
20
22
image: true ,
23
+ indent: true ,
21
24
italic: true ,
22
25
link: true ,
23
26
numberList: true ,
24
27
taskList: true ,
28
+ unindent: true ,
25
29
upload: false ,
26
30
})
27
31
@@ -32,10 +36,12 @@ defineEmits<{
32
36
code: [],
33
37
heading: [],
34
38
image: [],
39
+ indent: [],
35
40
italic: [],
36
41
link: [],
37
42
numberList: [],
38
43
taskList: [],
44
+ unindent: [],
39
45
upload: [event : Event ],
40
46
}>()
41
47
@@ -48,6 +54,14 @@ const triggerUpload = () => {
48
54
49
55
<template >
50
56
<div class =" flex gap-1 lg:gap-4" >
57
+ <div v-if =" indent || unindent" class =" flex gap-1" >
58
+ <CoreButton v-if =" indent" class =" p-1 border border-layer" title =" Indent" @click =" $emit('indent')" >
59
+ <Icon name =" FormatIndent" size =" 1.5rem" />
60
+ </CoreButton >
61
+ <CoreButton v-if =" unindent" class =" p-1 border border-layer" title =" Unindent" @click =" $emit('unindent')" >
62
+ <Icon name =" FormatUnindent" size =" 1.5rem" />
63
+ </CoreButton >
64
+ </div >
51
65
<div v-if =" heading || bold || italic" class =" flex gap-1" >
52
66
<CoreButton v-if =" heading" class =" p-1 border border-layer" title =" Heading" @click =" $emit('heading')" >
53
67
<Icon name =" FormatHeading" size =" 1.5rem" />
Original file line number Diff line number Diff line change @@ -53,11 +53,13 @@ const icons = {
53
53
FormatCode: Tabler .IconCode ,
54
54
FormatHeading: Tabler .IconHeading ,
55
55
FormatImage: Tabler .IconPhoto ,
56
+ FormatIndent: Tabler .IconIndentIncrease ,
56
57
FormatItalic: Tabler .IconItalic ,
57
58
FormatLink: Tabler .IconLink ,
58
59
FormatListBulleted: Tabler .IconList ,
59
60
FormatListChecked: Tabler .IconListCheck ,
60
61
FormatListNumbered: Tabler .IconListNumbers ,
62
+ FormatUnindent: Tabler .IconIndentDecrease ,
61
63
FormatUpload: Tabler .IconUpload ,
62
64
Graph: Tabler .IconAffiliate ,
63
65
ImagePlus: Tabler .IconPhotoPlus ,
You can’t perform that action at this time.
0 commit comments