From df481aebfb7a19eea5d6c02f93c6f5776b0fdc19 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 23 五月 2025 18:30:41 +0800
Subject: [PATCH] 界面大模式

---
 components/oi-form/list/date-picker/index.vue |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/components/oi-form/list/date-picker/index.vue b/components/oi-form/list/date-picker/index.vue
index d78bf70..c94a682 100644
--- a/components/oi-form/list/date-picker/index.vue
+++ b/components/oi-form/list/date-picker/index.vue
@@ -1,8 +1,10 @@
 <template>
-	<uni-datetime-picker v-if="model" type="date" :value="model[data.fieldId]" :placeholder="data.placeholder" border
-		:disabled="data.disabled" clearIcon @change="onChange" />
-	<uni-datetime-picker v-else type="date" :value="data.value" :placeholder="data.placeholder" border
-		:disabled="data.disabled" clearIcon @change="onChange" />
+	<view class="oi-form-date-picker">
+		<uni-datetime-picker v-if="model" type="date" :value="model[data.fieldId]" :placeholder="data.placeholder"
+			border :disabled="data.disabled" clearIcon @change="onChange" />
+		<uni-datetime-picker v-else type="date" :value="data.value" :placeholder="data.placeholder" border
+			:disabled="data.disabled" clearIcon @change="onChange" />
+	</view>
 </template>
 
 <script>
@@ -19,8 +21,7 @@
 		data() {
 			return {}
 		},
-		computed: {
-		},
+		computed: {},
 		methods: {
 			onChange(date) {
 				let format = "YYYY-MM-DD";
@@ -78,5 +79,8 @@
 	}
 </script>
 
-<style>
+<style lang="scss">
+	.oi-form-date-picker {
+		width: 100%;
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1