From dc7b87c5f89c821fa2272efe587577d71f9916f6 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 14 Jan 2022 09:21:24 +0800 Subject: [PATCH] 26733 --- src/components/AiDate.vue | 18 ++++++++++++++---- src/components/AiSelect.vue | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/AiDate.vue b/src/components/AiDate.vue index f31302db..26c8e2e1 100644 --- a/src/components/AiDate.vue +++ b/src/components/AiDate.vue @@ -3,9 +3,10 @@
-
-
- +
+
+ +
@@ -18,7 +19,7 @@ export default { computed: { label() { let arr = (this.selected || this.value)?.toString()?.split(",") || [] - arr = arr.map(e => dayjs(e).format("MM-DD").replace("Invalid Date", '')) + arr = arr.map(e => dayjs(e).format("YYYY-MM-DD").replace("Invalid Date", '')) return arr.join('至') } }, @@ -36,6 +37,7 @@ export default { }, methods: { handleSelect(v) { + console.log(v) if (this.mode == 'date') { this.selected = v.result this.$emit('change', v.result) @@ -52,6 +54,14 @@ export default { .AiDate { color: #333333; + .label { + font-size: 30px; + } + + .placeholder { + color: $uni-text-color-grey; + } + .iconfont-iconArrow_Down { margin-left: 4px; font-size: 32px; diff --git a/src/components/AiSelect.vue b/src/components/AiSelect.vue index a8b2ac76..73809167 100644 --- a/src/components/AiSelect.vue +++ b/src/components/AiSelect.vue @@ -80,7 +80,7 @@ export default { .selectedLabel { flex: 1; - min-width: 0; + max-width: 450px; overflow: hidden; text-overflow: ellipsis; font-size: 30px;