|
@@ -167,21 +167,23 @@ export default defineComponent({
|
|
|
class={[styles.practiceClass, !forms.listState.dataShow && 'emptyRootContainer']}
|
|
|
style={{ 'min-height': `calc(100vh - ${props.height}px - ${props.bottomHeight}px)` }}
|
|
|
>
|
|
|
- <Sticky position="top" offsetTop={props.height} style={{ width: '100%' }}>
|
|
|
- <div
|
|
|
- style={{
|
|
|
- padding: '12px 13px',
|
|
|
- background: '#f6f6f6',
|
|
|
- display: 'flex',
|
|
|
- alignItems: 'center'
|
|
|
- }}
|
|
|
- >
|
|
|
- <div class={styles.searchBand} onClick={() => (forms.showPopover = true)}>
|
|
|
- <div class={['van-ellipsis', styles.bandName]}>{forms.orchestraName}</div>
|
|
|
- <Icon name={forms.showPopover ? 'arrow-up' : 'arrow-down'} />
|
|
|
+ {forms.orchestraList.length > 0 && (
|
|
|
+ <Sticky position="top" offsetTop={props.height} style={{ width: '100%' }}>
|
|
|
+ <div
|
|
|
+ style={{
|
|
|
+ padding: '12px 13px',
|
|
|
+ background: '#f6f6f6',
|
|
|
+ display: 'flex',
|
|
|
+ alignItems: 'center'
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <div class={styles.searchBand} onClick={() => (forms.showPopover = true)}>
|
|
|
+ <div class={['van-ellipsis', styles.bandName]}>{forms.orchestraName}</div>
|
|
|
+ <Icon name={forms.showPopover ? 'arrow-up' : 'arrow-down'} />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </Sticky>
|
|
|
+ </Sticky>
|
|
|
+ )}
|
|
|
|
|
|
{forms.listState.dataShow ? (
|
|
|
<List
|
|
@@ -211,7 +213,11 @@ export default defineComponent({
|
|
|
// }}
|
|
|
>
|
|
|
{forms.list.map((item: any) => (
|
|
|
- <CellGroup class={styles.classCellGroup} onClick={() => onSelect(item.id)}>
|
|
|
+ <CellGroup
|
|
|
+ class={styles.classCellGroup}
|
|
|
+ onClick={() => onSelect(item.id)}
|
|
|
+ border={false}
|
|
|
+ >
|
|
|
<Cell center titleStyle={{ flex: '0 auto' }} valueClass={styles.classCheckbox}>
|
|
|
{{
|
|
|
icon: () => <Image src={iconTeacher} class={styles.img} />,
|