05 2019 档案
摘要:import * as React from 'react' import { Layout } from 'antd'; import creatHistory from 'history/createHashHistory' //返回上一页这段代码 const history = creatHistory();//返回上一页这段代码 import './index.less' const ...
阅读全文
摘要:解决的问题,两个组件之间 有相同的class名,造成其中一个无法按预期的显示.
阅读全文
摘要:点击在settings.json中编辑写入代码: 下载Easy Sass 插件 文件目录scss/index.scss 自动生成css/index.css
阅读全文
摘要:this.changeFontColor(0)} className={`${0 === this.state.active ? 'active' : ''}`}>点击1 this.changeFontColor(1)} className={`${1 === this.state.active ? 'active' : ''}`}>点击2 this.changeFontColor(2)...
阅读全文
摘要:App.jsimport React, { Component } from 'react'; import store from './redux'; import Com from "./com" class App extends Component { constructor(props){ super(props); console.log(store); co...
阅读全文
摘要://父组件 import * as React from 'react'import { Input } from 'antd'const Search = Input.Searchimport "./index.less"import Child from "./compon/list" expo
阅读全文
摘要://父组件import * as React from 'react'import { Input } from 'antd'const Search = Input.Searchimport "./index.less"import Child from "./compon/list" inter
阅读全文