From e2826746c317148308b16e22fdc0c1b176d47428 Mon Sep 17 00:00:00 2001
From: wangqing <250543222@qq.com>
Date: Sat, 19 Jun 2021 22:58:37 +0800
Subject: [PATCH] fix
---
src/assets/styles/elementui-mobile.scss | 44 ++++++++++++++++++++++
src/components/form/ProvinceCity/index.vue | 1 +
src/views/form/index.vue | 7 ++--
src/views/form/preview/ProjectForm.vue | 31 ++-------------
src/views/form/preview/index.vue | 2 +-
src/views/official/index.vue | 2 +-
6 files changed, 53 insertions(+), 34 deletions(-)
create mode 100644 src/assets/styles/elementui-mobile.scss
diff --git a/src/assets/styles/elementui-mobile.scss b/src/assets/styles/elementui-mobile.scss
new file mode 100644
index 0000000..6185608
--- /dev/null
+++ b/src/assets/styles/elementui-mobile.scss
@@ -0,0 +1,44 @@
+@media screen and (max-width: 500px) {
+ .el-message {
+ min-width: 300px !important;
+ }
+ .el-message-box {
+ width: 300px !important;
+ }
+ //! 日期范围兼容移动端
+ .el-date-range-picker__content{
+ float: none!important;
+ width: 100% !important;
+ }
+ .el-date-range-picker__content.is-left .el-picker-panel__icon-btn{
+ float: right!important;
+ }
+ .el-date-editor .el-range-separator{
+ padding: 0!important;
+ }
+ .el-date-range-picker .el-picker-panel__body{
+ min-width: 320px!important;
+ }
+ .el-date-range-picker{
+ width: 100%!important;
+ }
+ .el-date-table td{
+ width: 20px!important;
+ padding:0px!important;
+ }
+ .el-date-range-picker table{
+ width: 320px!important;
+ }
+ //# 日期范围兼容移动端
+ .el-dialog__wrapper .el-dialog {
+ width: 300px !important;
+
+ .el-dialog__body {
+ padding: 10px 20px !important;
+
+ .el-form-item__label {
+ width: 68px !important;
+ }
+ }
+ }
+}
diff --git a/src/components/form/ProvinceCity/index.vue b/src/components/form/ProvinceCity/index.vue
index c05820a..f93adc1 100644
--- a/src/components/form/ProvinceCity/index.vue
+++ b/src/components/form/ProvinceCity/index.vue
@@ -4,6 +4,7 @@
v-model="value"
:options="options"
:props="props"
+ clearable
@change="changeHandle"
/>
diff --git a/src/views/form/index.vue b/src/views/form/index.vue
index aaf3fb9..eba14c7 100644
--- a/src/views/form/index.vue
+++ b/src/views/form/index.vue
@@ -14,7 +14,7 @@
- 填鸭,待定,SLOGAN + 让企业轻松拥有问卷系统
TDuck - Have what you want,