From d564f71fa1125dec2810c541a130cae07301beb7 Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Thu, 21 Sep 2023 14:38:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=E9=85=8D=E7=BD=AE=E9=9D=A2=E6=9D=BF=EF=BC=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=85=8D=E7=BD=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicComponents/TimePicker/setting.vue | 36 +++++++++++++++---- data-room-ui/packages/SettingTitle/index.vue | 3 -- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/data-room-ui/packages/BasicComponents/TimePicker/setting.vue b/data-room-ui/packages/BasicComponents/TimePicker/setting.vue index d13cada7..d1a5cbc8 100644 --- a/data-room-ui/packages/BasicComponents/TimePicker/setting.vue +++ b/data-room-ui/packages/BasicComponents/TimePicker/setting.vue @@ -89,6 +89,7 @@ v-model="config.customize.formatType" class="bs-el-select" popper-class="bs-el-select" + clearable @change="selectFormatType" > - +
+ + + + +
@@ -175,13 +188,15 @@ export default { watch: {}, mounted () {}, methods: { - selectFormatType (val) { - if (val === 'default') { + selectFormatType (type) { + if (type === 'default') { this.config.customize.value = '' this.config.customize.valueFormat = '' - } else if (val === 'timestamp') { + } else if (type === 'timestamp') { this.config.customize.value = 0 this.config.customize.valueFormat = 'timestamp' + } else if (type === 'custom') { + this.config.customize.valueFormat = 'HH:mm:ss' } } } @@ -193,4 +208,11 @@ export default { width: 97%; padding: 16px; } + .time-format-description{ + display: flex; + align-items: center; + .el-tooltip{ + margin-left: 5px; + } + } diff --git a/data-room-ui/packages/SettingTitle/index.vue b/data-room-ui/packages/SettingTitle/index.vue index 02b80ee4..2fc184cc 100644 --- a/data-room-ui/packages/SettingTitle/index.vue +++ b/data-room-ui/packages/SettingTitle/index.vue @@ -9,8 +9,6 @@