Explorar el Código

fix: 修改制表icon样式问题

bill hace 2 meses
padre
commit
af3ce1adf6

+ 4 - 4
src/example/fuse/views/defStyle.ts

@@ -7,7 +7,6 @@ import { PaperKey } from '@/example/components/slide/actions'
 import { mergeFuns } from '@/utils/shared'
 import { getRealPixel } from './tabulation/gen-tab'
 import { defaultTableStyle } from '@/core/components/serial'
-import { originDescribes } from '@/core/html-mount/propertys'
 import { Draw } from '@/example/components/container/use-draw'
 
 const setDefStyle = <T extends {}>(sys: T, custom: Partial<T>) => {
@@ -34,9 +33,10 @@ export const tabCustomStyle = (p: PaperKey, draw: Draw) => {
       draw.mountFilter.setMenusFilter('icon')
     },
     setDefStyle(iconDefStyle, {
-      width: getRealPixel(2, p),
-      height: getRealPixel(2, p),
-    }),
+      width: getRealPixel(10, p),
+      height: getRealPixel(10, p),
+      strokeWidth: getRealPixel(1, p)
+    } as any),
     setDefStyle(defaultTableStyle, {
       nameColWidth: defaultTableStyle.valueColWidth = getRealPixel(20, p),
       fontSize: getRealPixel(4, p),

+ 2 - 0
src/example/fuse/views/overview/slide-icons.vue

@@ -32,6 +32,7 @@ import { ElCollapse, ElCollapseItem, ElEmpty } from "element-plus";
 import { getSvgContent, parseSvgContent } from "@/utils/resource";
 import { Draw } from "../../../components/container/use-draw.ts";
 import { iconGroups as groups } from "../../../constant";
+import { defaultStyle } from "@/core/components/icon/index.ts";
 
 const props = defineProps<{ draw: Draw }>();
 const emit = defineEmits<{ (e: "exit"): void }>();
@@ -64,6 +65,7 @@ const drawIcon = async (url: string, name: string, item: any) => {
       ...size,
       name,
       ...color,
+      ...defaultStyle,
       ...(item.parse || {}),
     },
     true

+ 3 - 1
src/example/fuse/views/tabulation/slide-icons.vue

@@ -32,6 +32,7 @@ import { ElCollapse, ElCollapseItem, ElEmpty } from "element-plus";
 import { getSvgContent, parseSvgContent } from "@/utils/resource";
 import { Draw } from "../../../components/container/use-draw.ts";
 import { iconGroups } from "../../../constant";
+import { defaultStyle } from "@/core/components/icon/index.ts";
 
 const groups = [iconGroups[iconGroups.length - 1]];
 const props = defineProps<{ draw: Draw }>();
@@ -66,7 +67,8 @@ const drawIcon = async (url: string, name: string, item: any) => {
       url,
       ...size,
       name,
-      ...color,
+      ...color, 
+      ...defaultStyle,
       ...(item.parse || {}),
     },
     true