Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client-taro
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a299bf9
authored
Nov 06, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
searchBar
parent
2d99e938
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/pages/home/device/group_device_bind/index.scss
+3
-0
src/pages/home/device/group_device_bind/index.tsx
+5
-0
No files found.
src/pages/home/device/group_device_bind/index.scss
View file @
8a299bf9
@import
'@styles/var.scss'
;
@import
'@styles/var.scss'
;
@import
'~taro-ui/dist/style/components/search-bar.scss'
;
@import
'~taro-ui/dist/style/components/button.scss'
;
@import
'~taro-ui/dist/style/components/icon.scss'
;
.device-bind
{
.device-bind
{
width
:
100%
;
width
:
100%
;
...
...
src/pages/home/device/group_device_bind/index.tsx
View file @
8a299bf9
...
@@ -6,6 +6,8 @@ import DeviceItem from '@/conpoments/device_item'
...
@@ -6,6 +6,8 @@ import DeviceItem from '@/conpoments/device_item'
import
{
getFilmList
}
from
'@/actions/asyncCounter'
import
{
getFilmList
}
from
'@/actions/asyncCounter'
import
Taro
,
{
Component
,
Config
}
from
'@tarojs/taro'
import
Taro
,
{
Component
,
Config
}
from
'@tarojs/taro'
import
{
View
,
Text
,
ScrollView
,
Button
,
Checkbox
,
Label
}
from
'@tarojs/components'
import
{
View
,
Text
,
ScrollView
,
Button
,
Checkbox
,
Label
}
from
'@tarojs/components'
import
{
AtSearchBar
}
from
'taro-ui'
import
'./index.scss'
import
'./index.scss'
type
PageStateProps
=
{
type
PageStateProps
=
{
...
@@ -118,6 +120,8 @@ class DeviceSelect extends Component {
...
@@ -118,6 +120,8 @@ class DeviceSelect extends Component {
}
}
}
}
searchChange
()
{}
shouldComponentUpdate
(
nextProps
:
IProps
,
nextState
:
PageState
)
{
shouldComponentUpdate
(
nextProps
:
IProps
,
nextState
:
PageState
)
{
const
{
checked
}
=
this
.
state
const
{
checked
}
=
this
.
state
const
{
checked
:
_checked
}
=
nextState
const
{
checked
:
_checked
}
=
nextState
...
@@ -132,6 +136,7 @@ class DeviceSelect extends Component {
...
@@ -132,6 +136,7 @@ class DeviceSelect extends Component {
const
{
size
}
=
checked
const
{
size
}
=
checked
return
(
return
(
<
View
className=
"device-bind"
>
<
View
className=
"device-bind"
>
<
AtSearchBar
value=
{
''
}
onChange=
{
searchChange
}
/>
<
View
className=
"device-bind-scroll"
>
<
View
className=
"device-bind-scroll"
>
<
ScrollView
className=
"device-bind-scroll-view"
>
<
ScrollView
className=
"device-bind-scroll-view"
>
{
list
.
map
(
item
=>
(
{
list
.
map
(
item
=>
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment