feat: 更新发行申请表单,添加订阅开始和结束时间字段,优化日期验证逻辑
This commit is contained in:
@@ -14,9 +14,10 @@ const props = defineProps<Props>();
|
||||
const emit = defineEmits<{
|
||||
(e: "update:value", value: string): void;
|
||||
}>();
|
||||
|
||||
const model = defineModel({ type: String, required: true });
|
||||
function handleChange(value: string) {
|
||||
const formattedValue = props.formatterValue ? props.formatterValue(value) : new Date(value).toISOString();
|
||||
model.value = formattedValue;
|
||||
props.onChange(formattedValue);
|
||||
emit("update:value", formattedValue);
|
||||
}
|
||||
@@ -41,7 +42,7 @@ function formatDisplay(value: string) {
|
||||
:id="datetime"
|
||||
class="ui-datetime"
|
||||
done-text="Done"
|
||||
presentation="date"
|
||||
presentation="date-time"
|
||||
:show-default-buttons="true"
|
||||
:min="props.min"
|
||||
:max="props.max"
|
||||
|
||||
Reference in New Issue
Block a user