refactor: move cardlayer to just load store

This commit is contained in:
2026-02-28 13:31:27 +08:00
parent 5c26fa407d
commit 9d189bd842
4 changed files with 24 additions and 36 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { createStore } from 'solid-js/store';
import { calculateDimensions } from './dimensions';
import { loadCSV } from '../../utils/csv-loader';
import { loadCSV, CSV } from '../../utils/csv-loader';
import { initLayerConfigs, formatLayers } from './layer-parser';
import type { CardData, LayerConfig, Dimensions } from '../types';
@@ -32,7 +32,7 @@ export interface DeckState {
dimensions: Dimensions | null;
// 卡牌数据
cards: CardData[];
cards: CSV<CardData>;
activeTab: number;
// 图层配置