{"dependencies":[{"ETag":"933C9518114941DDCFB076AF92492A80","name":"933c9518114941ddcfb076af92492a80.json","size":3645912,"type":"json","url":"https://gw.alipayobjects.com/os/Remax/863d0638-f9b5-49b3-8aa6-37ffaf954486/remax-recycle-view/dependencies/herbox/933c9518114941ddcfb076af92492a80.json"}],"sourceCode":{"app.json":"{}\n","mini.project.json":"{\n \"miniprogramRoot\": \"dist/ali\",\n \"scripts\": {\n \"beforeCompile\": \"npm run dev -- ali\",\n \"beforePreview\": \"npm run build -- ali\",\n \"beforeUpload\": \"npm run build -- ali\"\n },\n \"exclude\": [\n \"src/**\",\n \"node_modules\",\n \"node_modules/**\",\n \"babel.config.js\",\n \"package-lock.json\",\n \"package.json\",\n \"project.config.json\",\n \"remax.config.js\",\n \"app.json\"\n ],\n \"precompileWatch\": {\n \"selfWatch\": true,\n \"restart\": true,\n \"exclude\": [\"dist/**\", \"*.md\"],\n \"ignoreBuiltInExts\": false\n }\n}\n","package.json":"{\n \"name\": \"example\",\n \"private\": true,\n \"version\": \"1.0.0\",\n \"description\": \"example for recycle-view\",\n \"main\": \"index.js\",\n \"keywords\": [],\n \"author\": \"ahungrynoob <dxd_sjtu@outlook.com>\",\n \"license\": \"MIT\",\n \"scripts\": {\n \"dev\": \"remax build -w -t\",\n \"build\": \"cross-env NODE_ENV=production remax build -t\",\n \"herbox\": \"herbox pub --id=remax-recycle-view --preCompiler=remax --prod\"\n },\n \"dependencies\": {\n \"react\": \"^16.12.0\",\n \"react-dom\": \"^16.12.0\",\n \"remax\": \"^2.0.2\"\n },\n \"devDependencies\": {\n \"@types/react\": \"^16.9.16\",\n \"cross-env\": \"^7.0.2\",\n \"dotenv\": \"^8.2.0\",\n \"typescript\": \"^3.7.3\"\n }\n}\n","project.config.json":"{\n \"miniprogramRoot\": \"dist/wechat\",\n \"setting\": {\n \"urlCheck\": false,\n \"es6\": false,\n \"postcss\": true,\n \"minified\": true,\n \"newFeature\": true,\n \"coverView\": true,\n \"autoAudits\": false,\n \"uglifyFileName\": false,\n \"checkInvalidKey\": true,\n \"checkSiteMap\": true,\n \"uploadWithSourceMap\": true,\n \"babelSetting\": {\n \"ignore\": [],\n \"disablePlugins\": [],\n \"outputPath\": \"\"\n },\n \"bundle\": false\n },\n \"compileType\": \"miniprogram\",\n \"simulatorType\": \"wechat\",\n \"simulatorPluginLibVersion\": {},\n \"condition\": {}\n}\n","README.md":"# Remax One With TypeScript\n\n使用 Remax 开发跨平台小程序。\n\n## Getting Start\n\n安装依赖\n\n```bash\nnpm install\n```\n\n调试项目\n\n```bash\n# 选定要进行开发的平台,如 wechat,并调试\n$ npm run dev wechat\nor\nyarn dev wechat\n```\n\n使用小程序开发者工具打开项目下的 `dist/[target]` 目录。\n\n## 构建\n\n```bash\n# 选定要构建的平台,如 wechat,并执行构建\n$ npm run build wechat\nor\n$ yarn build wechat\n```\n\n使用小程序开发者工具打开项目下的 `dist/[target]` 目录,上传代码即可。\n","remax.config.js":"module.exports = {\n one: true,\n output: 'dist/' + process.env.REMAX_PLATFORM\n};\n","src/app.config.js":"const pages = ['pages/index/index'];\nconst color = '#282c34';\nconst title = 'Remax RecycleView';\n\n\nmodule.exports.wechat = {\n pages,\n window: {\n navigationBarTitleText: title,\n navigationBarBackgroundColor: color,\n },\n};\n\nmodule.exports.ali = {\n pages,\n window: {\n defaultTitle: title,\n titleBarColor: color,\n },\n};\n\nmodule.exports.toutiao = {\n pages,\n window: {\n navigationBarTitleText: title,\n navigationBarBackgroundColor: color,\n },\n};\n\nmodule.exports.web = {\n pages,\n title,\n};\n","src/app.css":"page {\n background: #282c34;\n}\n","src/app.ts":"import * as React from 'react';\nimport './app.css';\n\nconst App: React.FC = props => props.children as React.ReactElement;\n\nexport default App;\n","src/pages/index/index.css":".app {\n text-align: center;\n}\n\n.recycleView {\n height: 100vh;\n}\n","src/pages/index/index.tsx":"import React from 'react';\nimport { View } from 'remax/one';\nimport RecycleView from '../../../../src/index';\nimport styles from './index.css';\n\nconst mockData: { height: number; [key: string]: any }[] = [];\nfor (let i = 0; i < 500; i++) {\n mockData.push({\n height: ((i % 5) + 1) * 100,\n text: `mock block ${i}`,\n });\n}\n\nexport default () => {\n return (\n <View className={styles.app}>\n <RecycleView\n className={styles.recycleView}\n placeholderImage=\"https://gw.alicdn.com/tfs/TB18fUJCxD1gK0jSZFyXXciOVXa-750-656.png\"\n data={mockData}\n headerHeight={200}\n bottomHeight={300}\n renderHeader={() => {\n return <View style={{ height: 200, backgroundColor: 'yellow' }}>this is header</View>;\n }}\n renderBottom={() => {\n return <View style={{ height: 300, backgroundColor: 'yellow' }}>this is bottom</View>;\n }}\n renderItem={({ text, __index__ }) => {\n const colors = ['purple', 'red', 'blue'];\n const color = colors[__index__ % 3];\n return (\n <View style={{ backgroundColor: color, color: '#fff', height: '100%' }}>{text}</View>\n );\n }}\n />\n </View>\n );\n};\n","tsconfig.json":"{\n \"compilerOptions\": {\n \"target\": \"ESNext\",\n \"module\": \"ESNext\",\n \"moduleResolution\": \"node\",\n \"strict\": true,\n \"esModuleInterop\": true,\n \"jsx\": \"preserve\",\n \"rootDir\": \"src\",\n \"baseUrl\": \"./\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"lib\": [\"DOM\"]\n },\n \"include\": [\"src/**/*\", \"typings/**/*\"]\n}\n","typings/index.d.ts":"declare module '*.png';\ndeclare module '*.css';\n"},"dist":[{"ETag":"7442FBAE63DCB5B19FCE5CDB4818D51D","name":"7442fbae63dcb5b19fce5cdb4818d51d.json","size":528316,"type":"json","url":"https://gw.alipayobjects.com/os/Remax/7af2465e-fa77-4665-9a71-d58a4499bb86/remax-recycle-view/dist/herbox/7442fbae63dcb5b19fce5cdb4818d51d.json"}],"name":"example","description":"example for recycle-view","preCompiler":"remax","buildVersion":"0.72.7","remaxVersion":"2.0.3","component2":false,"css2":false}