Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复界面-交互的buttonList,以及其他没有更换buttonList组件的页面 #96

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import ButtonList from '@/components/buttonList'
import { TestConsole } from '@/util/util'
import './index.scss'

Expand Down Expand Up @@ -52,16 +53,10 @@ export default class Index extends React.Component {
}

render() {
const { list } = this.state
return (
<View className='api-page'>
{this.state.list.map((item) => {
return (
<View key={item.id} className='api-page-btn' onClick={item.func == null ? () => {} : item.func}>
{item.id}
{item.func == null && <Text className='navigator-state tag'>未创建Demo</Text>}
</View>
)
})}
<ButtonList buttonList={list} />
</View>
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import ButtonList from '@/components/buttonList'
import { TestConsole } from '@/util/util'
import './index.scss'

Expand Down Expand Up @@ -85,14 +86,7 @@ export default class Index extends React.Component {
<View hidden={networkState == null ? false : true}>网络状态:未获取</View>
<View hidden={networkState == null ? true : false}>网络状态:{networkState ? '已连接' : '已断开'}</View>
</View>
{list.map((item) => {
return (
<View key={item.id} className='api-page-btn' onClick={item.func == null ? () => {} : item.func}>
{item.id}
{item.func == null && <Text className='navigator-state tag'>未创建Demo</Text>}
</View>
)
})}
<ButtonList buttonList={list} />
</View>
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { View, Text, ScrollView } from '@tarojs/components'
import ButtonList from '@/components/buttonList'
import { TestConsole } from '@/util/util'
import './index.scss'

Expand Down Expand Up @@ -204,14 +205,7 @@ export default class Index extends React.Component {
})}
</ScrollView>
</View>
{list.map((item) => {
return (
<View key={item.id} className='api-page-btn' onClick={item.func == null ? () => {} : item.func}>
{item.id}
{item.func == null && <Text className='navigator-state tag'>未创建Demo</Text>}
</View>
)
})}
<ButtonList buttonList={list} />
</View>
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import ButtonList from '@/components/buttonList'
import { TestConsole } from '@/util/util'
import './index.scss'

Expand Down Expand Up @@ -170,16 +171,10 @@ export default class Index extends React.Component {
],
}
render() {
const { list } = this.state
return (
<View className='api-page'>
{this.state.list.map((item) => {
return (
<View key={item.id} className='api-page-btn' onClick={item.func == null ? () => {} : item.func}>
<Text>{item.id}</Text>
{item.func == null && <Text className='navigator-state tag'>未创建Demo</Text>}
</View>
)
})}
<ButtonList buttonList={list} />
</View>
)
}
Expand Down