import React, { Component } from 'react'; import './index.less'; import Page from '@src/containers/Page'; import Assets from '@src/components/Assets'; import Tag from '../../../components/Tag'; class Item extends Component { constructor(props) { super(props); this.state = { show: false }; } render() { const { show } = this.state; return (
OG19 语法千行2019-08-11
NEW 变更点:版本2
this.setState({ show: !show })} />
); } } export default class extends Page { init() {} renderView() { const { list = [] } = this.state; return
{list.length > 0 ? this.renderList() : this.renderEmpty()}
; } renderList() { return (
); } renderEmpty() { return
还未购买或订阅资料
; } }