bill 2 maanden geleden
bovenliggende
commit
99ff22bbc3

+ 16 - 1
src/example/constant.ts

@@ -1,4 +1,19 @@
-export const iconGroups = [
+type IconItem = {
+  wall?: boolean;
+  icon: string;
+  name: string;
+  color?: string
+  parse?: { fill?: string; stroke?: string };
+};
+type IconGroup = {
+  name: string,
+  children: {
+    name: string,
+    children: IconItem[]
+  }[]
+}
+
+export const iconGroups: IconGroup[] = [
   {
     name: "常用名称",
     children: [

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

@@ -17,7 +17,6 @@
             @click="drawIcon(`./icons/${item.icon}.svg`, item.name, item)"
           >
             <Icon :name="item.icon" size="32px" :color="item.color" />
-            {{ item.icon }}
             <span>{{ item.name }}</span>
           </div>
         </div>

+ 1 - 1
src/example/platform/platform-resource.ts

@@ -254,7 +254,7 @@ export const taggingGets = {
           signage.icon.indexOf("style-") === 0
             ? styleMap
               ? Promise.resolve(`./icons/${styleMap}.svg`)
-              : getSceneApi("./", `./styles/${signage.icon}.svg`).catch((e) => {
+              : getSceneApi("./", `./icons/${signage.icon}.svg`).catch((e) => {
                   console.error(e);
                   return getSceneApi(
                     "ossRoot",