Add 404 page and login overlays

This commit is contained in:
Tim
2025-07-14 18:19:23 +08:00
parent 63de1eb567
commit b757a75db9
8 changed files with 186 additions and 15 deletions

View File

@@ -32,6 +32,10 @@ export default {
loading: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
}
},
setup(props, { emit }) {
@@ -48,6 +52,18 @@ export default {
}
)
watch(
() => props.disabled,
val => {
if (!vditorInstance.value) return
if (val) {
vditorInstance.value.disabled()
} else if (!props.loading) {
vditorInstance.value.enable()
}
}
)
watch(
() => props.modelValue,
val => {
@@ -118,6 +134,9 @@ export default {
},
after() {
vditorInstance.value.setValue(props.modelValue)
if (props.loading || props.disabled) {
vditorInstance.value.disabled()
}
}
})
})