2 Commits 72eb57e135 ... ba7dfe1808

Author SHA1 Message Date
  bill ba7dfe1808 feat: 修改设计 3 weeks ago
  bill 1b348eae6e fix: 1 3 weeks ago

+ 13 - 1
src/example/components/slide/slide-icons.vue

@@ -110,10 +110,16 @@ props.cref &&
   font-size: 14px;
   color: #333;
 
+  h2 {
+    font-size: 16px;
+  }
+  h3 {
+    font-size: 14px;
+  }
   h2,
   h3 {
-    font-size: inherit;
     color: inherit;
+    font-family: var(--el-font-family);
   }
 
   // .type-children:not(:first-child) {
@@ -123,6 +129,7 @@ props.cref &&
     margin-bottom: 20px;
   }
 }
+
 .type-children {
   margin-left: 10px;
 }
@@ -140,6 +147,11 @@ props.cref &&
     border-radius: 4px;
     justify-content: space-between;
     margin-bottom: 20px;
+    cursor: pointer;
+
+    &:hover {
+      background: var(--el-menu-hover-bg-color);
+    }
 
     &.active {
       background: var(--el-color-primary-light-7);

+ 2 - 0
src/example/components/slide/slide.vue

@@ -57,6 +57,7 @@ const hoverMenu = stackVar<{
   onactive: (s?: ShowAttr) => void;
   ref: any;
 }>();
+
 const enterItem = (item: MenuItem) => {
   const svar = {
     item,
@@ -83,6 +84,7 @@ const enterItem = (item: MenuItem) => {
   return cleanup;
 };
 const hover = hoverManage(enterItem);
+// enterItem(props.menus[2]);
 
 const viewMap = reactive(new WeakMap<MenuItem, ShowAttr>());
 watch(active, (a) => {

+ 2 - 0
src/example/fuse/enter.ts

@@ -309,6 +309,8 @@ const getTableTemp = () => {
       绘图人: "",
       绘图时间: "",
     };
+  }
+  if (!title) {
     title = "默认标题";
   }
   return { table, title };

+ 3 - 3
src/example/fuse/views/tabulation/gen-tab.ts

@@ -85,17 +85,17 @@ export const genTabulationData = async (
     const valueColl = { ...nameColl, width: w2 };
     const tableTemp: Record<string, string> =
       window.platform.getTableTemp().table;
-
+    const rows = Object.entries(tableTemp)
     const data = {
       ...getBaseItem(),
-      content: Object.entries(tableTemp).map(([name, value]) => [
+      content: rows.map(([name, value]) => [
         { ...nameColl, content: name },
         { ...valueColl, content: value },
       ]),
       fontSize: getRealPixel(4, paperKey),
       key: tableTableKey,
       width: nameColl.width + valueColl.width,
-      height: nameColl.height * 5,
+      height: nameColl.height * rows.length,
       mat: [1, 0, 0, 1, 0, 0],
       fill: null,
     };