diff --git a/src/batch_setting.jsx b/src/batch_setting.jsx index 56cf4d3..dc54db9 100644 --- a/src/batch_setting.jsx +++ b/src/batch_setting.jsx @@ -4,7 +4,7 @@ import { GlobalStateContext, SchemeDataSetterContext } from './contexts'; import { HorizontalMultiButtonSelect } from './recipe.jsx'; // TODO refactor to some other modules export const pro_num_item = { - [0]: { label: "无喷涂", item_icon: null }, + [0]: { label: "无", item_icon: null }, [1]: { label: "MK.Ⅰ", item_icon: "增产剂MK.Ⅰ" }, [2]: { label: "MK.Ⅱ", item_icon: "增产剂MK.Ⅱ" }, [4]: { label: "MK.Ⅲ", item_icon: "增产剂MK.Ⅲ" }, @@ -95,11 +95,10 @@ export function BatchSetting() { }); } - const default_pro_item = pro_num_item[1].item_icon; - const current_pro_item = pro_num == 0 ? default_pro_item : - pro_num_item[pro_num] ? pro_num_item[pro_num].item_icon : default_pro_item; + const current_pro_item = pro_mode == 0 ? null : + pro_num_item[pro_num] ? pro_num_item[pro_num].item_icon : null; const promode_options = [ - { value: 0, label: "不使用增产剂" }, + { value: 0, label: "无" }, { value: 1, label: "增产" }, { value: 2, label: "加速" }, ]; diff --git a/src/item_select.jsx b/src/item_select.jsx index cc3809c..dcd10ae 100644 --- a/src/item_select.jsx +++ b/src/item_select.jsx @@ -135,7 +135,7 @@ export function ItemSelect({ item, set_item, text, btn_class }) { } {(item) ? {item} - : text} + : {text}} {createPortal( diff --git a/src/needs_list.jsx b/src/needs_list.jsx index 35b0f50..ae98e16 100644 --- a/src/needs_list.jsx +++ b/src/needs_list.jsx @@ -68,12 +68,12 @@ export function NeedsList({ needs_list, set_needs_list }) { return <>
- 添加需求 + 添加需求
/{is_min ? "min" : "sec"} - +
{Object.keys(needs_list).length == 0 ||