import React from 'react'; import { CompDefault, MetaProps } from '../data-channel'; import classNames from 'classnames'; import { Text, View } from '@tarojs/components'; import connect from '../connect'; export interface Props extends MetaProps { active: boolean; onChange?: Function; } export interface State {} const defaultValue: CompDefault = { props: { active: false, onChange: (_value) => {}, }, state: {}, meta: { output: { tags: ['check-tab', 'search-item'] }, __mergeCb: (props, meta) => { meta.output.key = props.filterKey; }, }, }; /** * 普通tab */ const TabCommon: React.FC = ({ onChange, active, meta }) => { return ( { onChange({ value: 1, meta: meta.output }); }}> 销量 ); }; export default connect(TabCommon, defaultValue);