Skip to content

Commit c3ad27f

Browse files
committed
feat: ✨ release beta version
1 parent 8be447a commit c3ad27f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
module.exports = {
23
env: {
34
browser: true,
@@ -31,6 +32,7 @@ module.exports = {
3132
files: ['packages/*/src/**/*.ts'],
3233
rules: {
3334
quotes: ['error', 'single'],
35+
'vue/require-default-prop': 'off',
3436
},
3537
},
3638
{

packages/vue-quill/src/components/QuillEditor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ import { toolbarOptions, ToolbarOptions } from './options'
2222

2323
export const QuillEditor = defineComponent({
2424
name: 'QuillEditor',
25+
inheritAttrs: false,
2526
props: {
2627
content: {
2728
type: [String, Object] as PropType<string | Delta>,
28-
default: {},
29+
default: () => {},
2930
},
3031
contentType: {
3132
type: String as PropType<'delta' | 'html' | 'text'>,
@@ -286,7 +287,6 @@ export const QuillEditor = defineComponent({
286287
reinit,
287288
}
288289
},
289-
inheritAttrs: false,
290290
render() {
291291
return [this.$slots.toolbar?.(), h('div', { ref: 'editor', ...this.$attrs })]
292292
},

0 commit comments

Comments
 (0)