/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/mini-program-example/src/components/head/head.js
18 строк
469 B
刘阳
同步harmony最新开发分支的代码:例子程序
02 апр 2024, 09:33
02 апр 2024, 09:33
d958330
Код
Авторство
О чём код?
import React from 'react' import { View } from '@tarojs/components' export default class Header extends React.Component { static options = { addGlobalClass: true, } render() { return ( <View className='page-head'> <View className='page-head-title'>{this.props.title}</View> <View className='page-head-line' /> {!!this.props.desc ? <View className='page-head-desc'>{this.props.desc}</View> : null} </View> ) } }