import React from "react"; import styles from "./index.less"; import { Card } from "antd"; const tabList = [ { key: "tab1", tab: "tab1" }, { key: "tab2", tab: "tab2" } ]; const contentList = { tab1:
content1
, tab2:content2
}; const tabListNoTitle = [ { key: "article", tab: "article" }, { key: "app", tab: "app" }, { key: "project", tab: "project" } ]; const contentListNoTitle = { article:article content
, app:app content
, project:project content
}; class TabsCard extends React.Component { state = { key: "tab1", noTitleKey: "app" }; onTabChange = (key, type) => { console.log(key, type); this.setState({ [type]: key }); }; render() { return (