import React from "react"; import { Switch, Form, Tag, Input } from 'antd'; import Styles from './web.module.less'; export default function wechatPublicForWeb(props) { const { passport, appIdStr, t, changeEnabled, updateConfig } = props; const { id, type, enabled, stateColor } = passport; const config = passport.config || {}; return (
{t(`passport:v.type.${type}`)} {/* 0) ? '' : '如需启用公众号授权登录,请先前往应用管理,创建是服务号的公众号application,并完成基础配置'}> */} 0)} checkedChildren="开启" unCheckedChildren="关闭" checked={enabled} onChange={(checked) => { changeEnabled(checked); }}/> {/* */}
); }