From 005fcabdf609dd7e1f49fa545093bf0dc1ec867f Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Sat, 5 Jul 2025 23:38:00 +0800 Subject: [PATCH] up --- src/utils/formBuilder.js | 4 ++++ src/views/flow/create.vue | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/src/utils/formBuilder.js b/src/utils/formBuilder.js index 82774db..f3b8960 100644 --- a/src/utils/formBuilder.js +++ b/src/utils/formBuilder.js @@ -100,6 +100,7 @@ export default function formBuilder( format: "yyyy年MM月dd日", value: target[info.name], clearable: true, + editable:false, placeholder: info.help_text, "picker-options": { shortcuts: this.shortcuts, @@ -126,6 +127,7 @@ export default function formBuilder( format: "yyyy-MM-dd HH:mm", value: target[info.name], clearable: true, + editable:false, placeholder: info.help_text, "picker-options": { shortcuts: this.shortcuts, @@ -1260,6 +1262,7 @@ export default function formBuilder( format: "yyyy年MM月dd日", value: target[info.name], clearable: true, + editable:false, placeholder: info.help_text || info.label, "picker-options": { shortcuts: this.shortcuts, @@ -1286,6 +1289,7 @@ export default function formBuilder( format: "yyyy-MM-dd HH:mm", value: target[info.name], clearable: true, + editable:false, placeholder: info.help_text || info.label, "picker-options": { shortcuts: this.shortcuts, diff --git a/src/views/flow/create.vue b/src/views/flow/create.vue index 42d156a..74d53b1 100644 --- a/src/views/flow/create.vue +++ b/src/views/flow/create.vue @@ -940,4 +940,30 @@ export default { transform: translate(-50%,-50%) scale(1); } } +/** 移动端展示 **/ +@media screen and (max-width: 500px) { + .el-picker-panel__sidebar { + width: 100%; + } + .el-picker-panel { + width: 400px!important; + } + .el-picker-panel__content { + width: 100%; + } + .el-picker-panel__body{ + margin-left: 0!important; + display: flex; + flex-direction: column; + min-width: auto!important; + } + .el-picker-panel__sidebar { + position: relative; + } + .el-picker-panel__body-wrapper { + display: flex; + flex-direction: column; + align-items: center; + } + }