Rename discardShortcutEnabled to enableDiscardShortcut
This commit is contained in:
parent
c13a991c16
commit
ebb093797c
@ -203,7 +203,7 @@ const {
|
|||||||
showSave = false,
|
showSave = false,
|
||||||
placeholder = '',
|
placeholder = '',
|
||||||
editShortcut = '',
|
editShortcut = '',
|
||||||
discardShortcutEnabled = false,
|
enableDiscardShortcut = false,
|
||||||
} = defineProps<{
|
} = defineProps<{
|
||||||
modelValue: string,
|
modelValue: string,
|
||||||
uploadCallback?: UploadCallback,
|
uploadCallback?: UploadCallback,
|
||||||
@ -212,7 +212,7 @@ const {
|
|||||||
showSave?: boolean,
|
showSave?: boolean,
|
||||||
placeholder?: string,
|
placeholder?: string,
|
||||||
editShortcut?: string,
|
editShortcut?: string,
|
||||||
discardShortcutEnabled?: boolean,
|
enableDiscardShortcut?: boolean,
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue', 'save'])
|
const emit = defineEmits(['update:modelValue', 'save'])
|
||||||
@ -427,7 +427,7 @@ const extensions : Extensions = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
// Add a custom extension for the Escape key
|
// Add a custom extension for the Escape key
|
||||||
if (discardShortcutEnabled) {
|
if (enableDiscardShortcut) {
|
||||||
extensions.push(Extension.create({
|
extensions.push(Extension.create({
|
||||||
name: 'escapeKey',
|
name: 'escapeKey',
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user