55 lines
1.0 KiB
JavaScript
55 lines
1.0 KiB
JavaScript
import { useMessage } from '@/hooks/useMessage'
|
|
import { atom } from 'recoil'
|
|
|
|
export const makersState = atom({
|
|
key: 'makersState',
|
|
default: [],
|
|
dangerouslyAllowMutability: true,
|
|
})
|
|
|
|
export const selectedMakerState = atom({
|
|
key: 'selectedMakerState',
|
|
default: null,
|
|
})
|
|
|
|
export const seriesState = atom({
|
|
key: 'seriesState',
|
|
default: [],
|
|
})
|
|
|
|
export const modelsState = atom({
|
|
key: 'modelState',
|
|
default: [],
|
|
})
|
|
|
|
export const selectedModelsState = atom({
|
|
key: 'selectedModelsState',
|
|
default: [],
|
|
})
|
|
|
|
export const pcsCheckState = atom({
|
|
key: 'divisionCircuitState',
|
|
default: { division: true, max: false },
|
|
})
|
|
|
|
export const moduleStatisticsState = atom({
|
|
key: 'moduleStatisticsState',
|
|
default: {
|
|
header: [
|
|
{ name: '屋根面', prop: 'name' },
|
|
{ name: `合計(kW)`, prop: 'amount' },
|
|
],
|
|
rows: [],
|
|
footer: [
|
|
{ name: '-', prop: 'name' },
|
|
{ name: 0, prop: 'amount' },
|
|
],
|
|
},
|
|
dangerouslyAllowMutability: true,
|
|
})
|
|
|
|
export const stepUpListDataState = atom({
|
|
key: 'stepUpListDataState',
|
|
default: [],
|
|
})
|