11import Taro from '@tarojs/taro'
2- import { View , Image , Swiper , SwiperItem , Text , ScrollView , Button , Input , Video } from '@tarojs/components'
2+ import {
3+ View ,
4+ Image ,
5+ Swiper ,
6+ SwiperItem ,
7+ Text ,
8+ ScrollView ,
9+ Button ,
10+ Input ,
11+ Video ,
12+ Textarea ,
13+ } from '@tarojs/components'
314import pkg from '@/packages/../config.json'
415import packageJson from '@/packages/../../package.json'
516import './index.scss'
@@ -8,9 +19,8 @@ import './index.scss'
819const navs = pkg . nav
920// console.log(navs)
1021
11-
1222// hack taro load button xml
13- console . log ( Button , Input , Video , Image , Swiper , SwiperItem , )
23+ console . log ( Button , Input , Video , Image , Swiper , SwiperItem , Textarea )
1424
1525// try {
1626// console.log('xxx', Schema)
@@ -39,37 +49,39 @@ const Index = () => {
3949 }
4050
4151 return (
42- < ScrollView className = ' index' >
43- < View className = ' index-header' >
52+ < ScrollView className = " index" >
53+ < View className = " index-header" >
4454 < Image
45- className = ' index-header-img'
46- src = ' https://img14.360buyimg.com/imagetools/jfs/t1/117879/25/28831/6279/6329723bE66715a2f/5f099b8feca9e8cc.png'
55+ className = " index-header-img"
56+ src = " https://img14.360buyimg.com/imagetools/jfs/t1/117879/25/28831/6279/6329723bE66715a2f/5f099b8feca9e8cc.png"
4757 />
48- < View className = ' index-header-info' >
49- < View className = ' index-header-info-h1' > NutUI React</ View >
50- < View className = ' index-header-info-p' >
58+ < View className = " index-header-info" >
59+ < View className = " index-header-info-h1" > NutUI React</ View >
60+ < View className = " index-header-info-p" >
5161 京东风格的轻量级小程序组件库 React 版
5262 </ View >
53- < View className = 'index-header-info-p' >
54- < Text className = 'index-header-info-text' > v{ packageJson ?. version } </ Text >
63+ < View className = "index-header-info-p" >
64+ < Text className = "index-header-info-text" >
65+ v{ packageJson ?. version }
66+ </ Text >
5567 </ View >
5668 </ View >
5769 </ View >
58- < View className = ' index-components' >
70+ < View className = " index-components" >
5971 { navs . map ( ( nav ) => (
60- < View key = { nav . enName } className = ' index-components-item' >
72+ < View key = { nav . enName } className = " index-components-item" >
6173 { nav . enName === 'dataentry' ? null : (
62- < View className = ' index-components-item-title' > { nav . name } </ View >
74+ < View className = " index-components-item-title" > { nav . name } </ View >
6375 ) }
64- < View className = ' index-components-sublist' >
76+ < View className = " index-components-sublist" >
6577 { nav . packages . map ( ( com ) =>
6678 com . show && com . taro && com . version === '3.0.0' ? (
6779 < View
6880 key = { com . name }
69- className = ' index-components-sublist-item'
81+ className = " index-components-sublist-item"
7082 >
7183 < View
72- className = ' index-components-sublist-item-content'
84+ className = " index-components-sublist-item-content"
7385 key = { com . name }
7486 onClick = { ( ) => gotoNext ( com . name , nav . enName ) }
7587 >
0 commit comments