From 05684d09fd3c5cc184ff7da3d9a4d2a9e0a36e3a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 6 Sep 2024 11:20:38 +0800
Subject: [PATCH 10/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/model-custom/model-custom-content.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index f4ffa0ae..1818efc9 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -9,7 +9,7 @@
{{ form.data_source_content.title || form.data_source_content.name }}
From be268f0aafc6513bfc74d90fbe4b3f895311c7b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 6 Sep 2024 11:39:28 +0800
Subject: [PATCH 11/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=82=AC=E6=B5=AE?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/layout/components/main/index.vue | 25 ++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue
index 2958d1b7..950acdd7 100644
--- a/src/views/layout/components/main/index.vue
+++ b/src/views/layout/components/main/index.vue
@@ -287,12 +287,25 @@ const model_class = computed(() => {
const model_style = computed(() => {
return (item: { id: string; key: string }) => {
- // window.innerHeight(当前页面高度) - 60(顶部高度) - 846(中间高度)
- const height = (window.innerHeight - 906) / 2;
- let bottom = parseInt(float_bottom[item.id]) + height;
- // 容器自身高度是60 846-60 = 786
- if (parseInt(float_bottom[item.id]) > 786) {
- bottom = 786 + height;
+ // 40是容器的上下间距, 60是顶部的高度
+ const container_height = window.innerHeight - 100;
+ let bottom = 0;
+ if (container_height > 844) {
+ // 上下高度
+ const height = (window.innerHeight - 906) / 2;
+ bottom = parseInt(float_bottom[item.id]) + height;
+ // 容器自身高度是60 846-60 = 786
+ if (parseInt(float_bottom[item.id]) > 786) {
+ bottom = 786 + height;
+ }
+ } else {
+ // 一半的上下间距
+ const height = 20;
+ bottom = parseInt(float_bottom[item.id]) + height;
+ // 容器自身高度是60 container_height-60
+ if (parseInt(float_bottom[item.id]) > container_height - 60) {
+ bottom = container_height - 60 + height;
+ }
}
return item.key == 'float-window' ? `bottom: ${((bottom / window.innerHeight) * 100).toFixed(4) + '%'};` : '';
};
From fe3b1395c942439c9f9744ba5bb516bc2edfb05d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 6 Sep 2024 11:42:42 +0800
Subject: [PATCH 12/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=8F=E8=BF=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/layout/components/main/index.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue
index 950acdd7..3d5a1d1d 100644
--- a/src/views/layout/components/main/index.vue
+++ b/src/views/layout/components/main/index.vue
@@ -290,6 +290,7 @@ const model_style = computed(() => {
// 40是容器的上下间距, 60是顶部的高度
const container_height = window.innerHeight - 100;
let bottom = 0;
+ // 上下有除了padding间距时的处理逻辑
if (container_height > 844) {
// 上下高度
const height = (window.innerHeight - 906) / 2;
From 9397603f9d1c0b3cc3b3237c52fb872a066e2b3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 6 Sep 2024 11:54:58 +0800
Subject: [PATCH 13/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/model-custom/model-custom-content.vue | 1 +
src/views/layout/components/main/default/custom.ts | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index 1818efc9..f69cd9b9 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -166,6 +166,7 @@ const changeDataSource = (key: string) => {
const url_value_dialog_call_back = (item: any[]) => {
if (item.length > 0) {
form.data_source_content = item[0];
+ form.data_source_content_id = item[0].id;
} else {
form.data_source_content = {};
}
diff --git a/src/views/layout/components/main/default/custom.ts b/src/views/layout/components/main/default/custom.ts
index edc2de52..17da1ec3 100644
--- a/src/views/layout/components/main/default/custom.ts
+++ b/src/views/layout/components/main/default/custom.ts
@@ -5,7 +5,8 @@ interface defaultSearch {
height: number;
img_key: string;
data_source: string;
- data_source_content: string[];
+ data_source_content_value: string;
+ data_source_content: object;
custom_list: string[];
};
style: {
@@ -16,7 +17,8 @@ const defaultSearch: defaultSearch = {
content: {
height: 390,
img_key: '',
- data_source_content: [],
+ data_source_content_value: '',
+ data_source_content: {},
data_source:'',
custom_list: []
},
From 91dec94df8a25eff3e0ba6e33e125efbf0da7509 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 6 Sep 2024 11:58:18 +0800
Subject: [PATCH 14/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/model-custom/model-custom-content.vue | 2 +-
src/views/layout/index.vue | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index f69cd9b9..75a3baf8 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -166,7 +166,7 @@ const changeDataSource = (key: string) => {
const url_value_dialog_call_back = (item: any[]) => {
if (item.length > 0) {
form.data_source_content = item[0];
- form.data_source_content_id = item[0].id;
+ form.data_source_content_value = item[0].id;
} else {
form.data_source_content = {};
}
diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue
index 83f65c74..573effc0 100644
--- a/src/views/layout/index.vue
+++ b/src/views/layout/index.vue
@@ -168,7 +168,9 @@ const save_formmat_form_data = (data: diy_data_item, close: boolean = false) =>
// item1.goods_ids = item.goods_list.map((item2: any) => item2.data.id).join(',') || '';
// item1.goods_list = [];
// });
- // }
+ // } else if (item.key == 'custom') {
+ // item.com_data.content.data_source_content = {};
+ //}
return {
...item,
show_tabs: '0',