File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -153,12 +153,12 @@ class ToolBarHandler {
153
153
const selection = editor . getSelection ( ) ;
154
154
editor . focus ( ) ;
155
155
if ( selection === '' ) {
156
- editor . replaceSelection ( '- [ ] ' + selection ) ;
156
+ editor . replaceSelection ( '[ ] ' + selection ) ;
157
157
} else {
158
158
const selectionText = selection . split ( '\n' ) ;
159
159
160
160
for ( let i = 0 , len = selectionText . length ; i < len ; i ++ ) {
161
- selectionText [ i ] = selectionText [ i ] === '' ? '' : '- [ ] ' + selectionText [ i ] ;
161
+ selectionText [ i ] = selectionText [ i ] === '' ? '' : '[ ] ' + selectionText [ i ] ;
162
162
}
163
163
164
164
editor . replaceSelection ( selectionText . join ( '\n' ) ) ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default defineComponent({
55
55
</script>
56
56
57
57
<style>
58
- .card-container {
58
+ div .card-container {
59
59
display: flex;
60
60
flex-wrap: wrap;
61
61
width: 100%;
@@ -204,7 +204,9 @@ export default defineComponent({
204
204
| drop | EventEmitter\< DropEvent\> | 放置一个元素, 接收的事件,其中 nativeEvent 表示原生的 drop 事件,其他见定义注释 | [ Sortable-基本用法] ( #sortable-基本用法 ) |
205
205
206
206
### Sortable 类型定义
207
+
207
208
#### DropEvent
209
+
208
210
``` ts
209
211
type DropEvent = {
210
212
event: DragEvent , // 原生drag事件
@@ -213,5 +215,3 @@ type DropEvent = {
213
215
targetIndex: number // drop到的元素的index
214
216
}
215
217
` ` `
216
-
217
-
Original file line number Diff line number Diff line change 20
20
import { reactive , ref } from ' vue' ;
21
21
// import { checkbox } from 'vue-devui/editor-md'; // demo无法进行import,使用时请放开注释
22
22
23
- const content = ref (' - [x] checked \n - [ ] unchecked // demo无法进行import,使用时请放开代码中注释' );
23
+ const content = ref (' [x] checked \n [ ] unchecked // demo无法进行import,使用时请放开代码中注释' );
24
24
const mdRules = reactive ({
25
25
linkify: {
26
26
fuzzyLink: false ,
You can’t perform that action at this time.
0 commit comments