From d9fc6d73fd167aa1231a0401a5c4164932bdfac4 Mon Sep 17 00:00:00 2001 From: jee <670430506@qq.com> Date: Wed, 5 Aug 2020 15:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'MainList.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainList.js | 119 ---------------------------------------------------- 1 file changed, 119 deletions(-) delete mode 100644 MainList.js diff --git a/MainList.js b/MainList.js deleted file mode 100644 index 7814182..0000000 --- a/MainList.js +++ /dev/null @@ -1,119 +0,0 @@ -import React, {Component} from 'react'; -import { - Image, - View, - StyleSheet, - TouchableOpacity, - ScrollView -} from 'react-native'; -import {Directory} from '../../public/plugin/api'; -import {FullList} from './FullList'; -import { from } from 'core-js/fn/array'; - -const DirectoryScrollView = Directory.DirectoryScrollView; -var image = require('./fold.png'); - -class MainList extends Component { - constructor(props) { - super(props); - this.state = { - hidden : true - } - } - Change = () => { - - this.setState({ - hidden : this.state.hidden ? false : true - }) - } - render() { - - const data = this._getData(); - const content = data.map((item, index) => ( - this.getItem(item, index) - )); - - if(content.length < 5){ - return - - {content} - - - } - - - if (!this.state.hidden){ - - return( - - - ) - } - - fullIcon = ( - -

全部

-
-
); - return ( - - - {content} - - - )} - - getItem(item, index) { - return ( - - this.props.navigateNode(item)}> - {Directory.createIconGrid(item, {iconStyle: styles.gridIcon})} - - - ) - } - - _getData() { - return this.props.currentNode.getChildNodes(); - } -} - -class Static extends Component{ - render() { - - const content = this.props.content; - var foldList = content.slice(0, 4); - return foldList; - } - -} - -export default MainList; - -const styles = StyleSheet.create({ - gridWrapper: { - width: "20%", - //height: "17.5%", - marginTop: 10 - }, - gridIcon: { - width: 36, - height: 36, - borderRadius: 8, - - }, - list: { - flex: 1, - flexDirection: "row", - overflow: "hidden auto", - //alignContent:"flex-start", - flexWrap: "wrap", - width: "100%", - transform: "translateZ(0px)" - - } -}); \ No newline at end of file