diff --git a/src/components/common/datetime-range.vue b/src/components/common/datetime-range.vue new file mode 100644 index 0000000..0da5818 --- /dev/null +++ b/src/components/common/datetime-range.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/components/common/search-form.vue b/src/components/common/search-form.vue index 991299e..d4ba9b4 100644 --- a/src/components/common/search-form.vue +++ b/src/components/common/search-form.vue @@ -10,6 +10,7 @@ defineOptions({ interface Props { model: Record; + btnSpan?: string; } const props = defineProps(); @@ -41,14 +42,14 @@ async function search() { const btnSpan = computed(() => { const keyNum = Object.keys(props.model).length - 2; - return `24 m:12 m:${(4 - (keyNum % 4)) * 6}`; + return props.btnSpan || `24 m:12 m:${(4 - (keyNum % 4)) * 6}`; });