import React from "react"; import { Switch, Form, Tooltip, Tag, Input } from 'antd'; import Styles from './web.module.less'; export default function wechatMpForWeb(props) { const { passport, appIdStr, hasQrCodePrefix, t, changeEnabled, updateConfig } = props; const { id, type, enabled, stateColor } = passport; const config = passport.config || {}; return (
{t(`passport:v.type.${type}`)} 0)} checkedChildren="开启" unCheckedChildren="关闭" checked={enabled} onChange={(checked) => { changeEnabled(checked); }} disabled={!hasQrCodePrefix}/>
); }