Преглед изворни кода

补充提交,适配13寸ipad

JohnnyChan пре 1 месец
родитељ
комит
4908bf0b7c

+ 1 - 1
JLHWEB/src/components/LjDetail/components/BaseForm.vue

@@ -1054,7 +1054,7 @@ const isLabelPosition = computed(() => {
   //   return "top";
   // }
   let width = window.innerWidth;
-  if (width <= 1180) {
+  if (width <= 1366) {
     return "top";
   }
   return publicAttr.value.labelPosition;

+ 3 - 3
JLHWEB/src/components/LjDetail/index.vue

@@ -151,7 +151,7 @@ const isScrollspy = computed(() => {
   console.log("DETAIL_LAYOUT_DEFINE :>> ", DETAIL_LAYOUT_DEFINE);
 
   let width = window.innerWidth;
-  if (width <= 1180) {
+  if (width <= 1366) {
     return true;
   }
   return currentMould.value?.header?.tabsProp?.scrollspy ?? DETAIL_LAYOUT_DEFINE.tabsProp.scrollspy;
@@ -1696,10 +1696,10 @@ const RenderTabs = (rProps: DetailProp) => {
             return tasItemRender(
               item,
               () => {
-                let val = _detailData.value && _detailData.value[item.id];
+                // let val = _detailData.value && _detailData.value[item.id];
                 let _slot = [];
                 let _slotDefault = slots[item.id]?.({
-                  data: val,
+                  data: _mainData.value,
                   props: item,
                   orderStatus: orderStatus.value,
                   isScrollspy: isScrollspy.value,

+ 1 - 1
JLHWEB/src/components/LjDrawer/index.vue

@@ -68,7 +68,7 @@ const getDrawerSize = () => {
   let width = window.innerWidth;
   let _size = props?.size || "50%";
   switch (!!width) {
-    case width <= 1180:
+    case width <= 1366:
       _size = "100%";
       break;
   }