diff --git a/src/stores/setting.ts b/src/stores/setting.ts index 4c2aa52..32dc3ca 100644 --- a/src/stores/setting.ts +++ b/src/stores/setting.ts @@ -3,10 +3,19 @@ import type { ConfigItem, ConfigSubItem, Container } from "@/services/sysConfig/ import { defineStore } from "pinia"; import { computed, ref } from "vue"; import * as R from "ramda"; +import type { Craft, Ore } from "@/services/ore/oreManage"; export type ContainerWithLiquid = Container & { solution: Liquid }; export const useSettingStore = defineStore("setting", () => { + const oreList = ref(); + const setOreList = (ore: Ore[]) => { + oreList.value = ore; + }; + + const allCrafts = computed(() => { + return R.pipe(R.pluck("craftsList"), R.flatten)(oreList.value || []) as Ore["craftsList"]; + }); const configs = ref(); const setConfigs = (usr: ConfigItem[]) => { configs.value = usr; @@ -90,6 +99,9 @@ export const useSettingStore = defineStore("setting", () => { }); return { + oreList, + setOreList, + allCrafts, heatAreaConfig, areaOptions, actionAreaConfig, diff --git a/src/views/graphite/components/CraftList.vue b/src/views/graphite/components/CraftList.vue index d6f6c62..8dd677a 100644 --- a/src/views/graphite/components/CraftList.vue +++ b/src/views/graphite/components/CraftList.vue @@ -1,146 +1,115 @@ \ No newline at end of file +.craft { + background: #ffffff; + + .craft_title { + height: 1.875rem; + margin-left: 1.25rem; + margin-top: 1.875rem; + color: #40474e; + font-weight: 500; + font-size: 1.25rem; + display: flex; + + .ore_select { + margin-top: -0.5rem; + margin-left: 0.5rem; + } + } +} + +.craft_column_name { + height: 1.875rem; + margin-left: 1.5rem; + margin-top: 0.625rem; + font-size: 1.5rem; + color: #868686; +} + +.craft_item { + .craft_li { + display: flex; + align-items: center; + width: 23.75rem; + height: 3.125rem; + padding-left: 1.875rem; + font-size: 1.25rem; + color: rgba(0, 0, 0, 0.85); + } +} +