import PropTypes from "prop-types"
import React from "react"
import style from "./index.less"
import TemplateItem from './TemplateItem'
import check_circle from './TemplateItem/img/check-circle.png';
import check_right from './TemplateItem/img/check-right.png';
import Empty from '@components/Empty';
import {windowEventHandler,getWindowInnerHeight} from '@utils/tools'
class TemplateItems extends React.Component {
constructor(props) {
super(props);
this.$cont = React.createRef();
this.$search = React.createRef();
this.genItems = this.genItems.bind(this);
this.templateSearch = this.templateSearch.bind(this);
}
componentDidMount(){
const height = getWindowInnerHeight()-226;
this.$cont.current.style.height = height+"px";
windowEventHandler('resize', ()=>{
if(this.$cont.current){
const height = getWindowInnerHeight()-226;
this.$cont.current.style.height = height+"px";
}
});
}
genItems() {
const Items = [];
this.props.items.forEach((v,idx) => {
Items.push(
handleClickGetMore(current)} className={style.loadMore}>点击查看更多
:null } */}