更新日历功能
This commit is contained in:
@@ -176,6 +176,11 @@ const props = defineProps({
|
||||
draft: {
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
// 新建时预填的标题(如从节假日快捷新建,预填节日名称)
|
||||
prefillTitle: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
});
|
||||
|
||||
@@ -367,7 +372,7 @@ function initForm() {
|
||||
}
|
||||
} else {
|
||||
editingId.value = 0;
|
||||
form.title = "";
|
||||
form.title = props.prefillTitle || "";
|
||||
form.schedule_date = props.defaultDate || "";
|
||||
form.all_day = true;
|
||||
form.start_time = "";
|
||||
|
||||
Reference in New Issue
Block a user