From fb9ebd6968522a0d1428baeaff11831ea41b8282 Mon Sep 17 00:00:00 2001
From: xixiibn5100 <1584914306@qq.com>
Date: Wed, 4 Dec 2024 20:20:07 +0800
Subject: [PATCH] feat: added checkbox control
---
src/components/Modal/index.vue | 2 +-
src/pages/DetailInfo/checkbox.vue | 20 ++++++++++++++------
src/pages/DetailInfo/index.vue | 4 ++--
3 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/components/Modal/index.vue b/src/components/Modal/index.vue
index 658fc9f..ca331f6 100644
--- a/src/components/Modal/index.vue
+++ b/src/components/Modal/index.vue
@@ -7,7 +7,7 @@
-
@@ -67,8 +67,8 @@ const props = defineProps<{
unique: boolean,
otherOption: boolean,
describe: string,
- max: number,
- min: number,
+ maximum_option: number,
+ minimum_option: number,
options?: {
content: string;
img: string;
@@ -86,8 +86,8 @@ const localUnique = ref(props.unique);
const localOtherOption = ref(props.otherOption);
const localDescribe = ref(props.describe || '');
const localOptions = ref(props.options );
-const localMax = ref(props.max)
-const localMin = ref(props.min)
+const localMax = ref(props.maximum_option)
+const localMin = ref(props.minimum_option)
const handleFileChange = async (event, serial_num: number) => {
@@ -174,6 +174,14 @@ watch(localUnique, (newUnique) => {
watch(localDescribe, (newLocalDescribe) => {
emits('update:describe', newLocalDescribe);
});
+watch(localMin, (newMin) => {
+ emits('update:minimum_option', Number(newMin));
+});
+
+watch(localMax, (newMax) => {
+ emits('update:maximum_option', Number(newMax));
+});
+
watch(localOtherOption, (newOtherOption) => {
emits('update:otherOption', newOtherOption);
diff --git a/src/pages/DetailInfo/index.vue b/src/pages/DetailInfo/index.vue
index a1d9b74..1ad2899 100644
--- a/src/pages/DetailInfo/index.vue
+++ b/src/pages/DetailInfo/index.vue
@@ -90,7 +90,7 @@
- 每日最多提交是否统一登录
+ 每日最多提交是否统一登录
问卷截止时间
@@ -133,7 +133,7 @@
-
+