前端项目实战238-根据dataIndex编辑当前行

 const inputNode =
      dataIndex == "split_type" ? (
        <Select
          onChange={handleChange}
          style={{ width: "300px" }}
          placeholder="请选择分扎类型"
          optionFilterProp="children"
        >
          {typeList &&
            typeList.map((item: any) => (
              <Option value={item.id}>{item.name}</Option>
            ))}
        </Select>
      ) : (
        <InputNumber disabled={type == "2"}></InputNumber>
      );

posted @ 2022-12-23 10:17  前端导师歌谣  阅读(43)  评论(0)    收藏  举报