@@ -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: {
+ children: IconItem[]
+ }[]
+}
+
+export const iconGroups: IconGroup[] = [
{
name: "常用名称",
children: [
@@ -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>
@@ -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",