-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7377f438.js
1 lines (1 loc) · 1.63 KB
/
7377f438.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{eM0f:function(p,j,t){"use strict";t.r(j),t.d(j,"default",function(){return D});var n=t("nKUr"),b=t.n(n),C=t("5NDa"),h=t("5rEg"),d=t("XKWP"),o=t("N7Kx"),i=t("kFHX"),c=t("4jIl"),E=t("q1tI"),a=t.n(E),u=a.a.createContext("\u6B27\u9633");u.displayName="\u59D3\u6C0F";var v=function(_){Object(i.a)(e,_);var r=Object(c.a)(e);function e(l){var s;return Object(d.a)(this,e),s=r.call(this,l),s.onChangeLastName=function(m){s.setState({lastName:m.target.value})},s.state={lastName:"\u5218"},s}return Object(o.a)(e,[{key:"render",value:function(){return Object(n.jsxs)(u.Provider,{value:this.state.lastName,children:[Object(n.jsx)(h.a,{addonBefore:"\u59D3\u6C0F",placeholder:"\u8BF7\u8F93\u5165\u59D3\u6C0F",value:this.state.lastName,onChange:this.onChangeLastName}),Object(n.jsxs)("div",{style:{border:"1px solid green",margin:"5px",padding:"5px"},children:["Father",this.props.children]})]})}}]),e}(a.a.Component),O=function(_){Object(i.a)(e,_);var r=Object(c.a)(e);function e(){return Object(d.a)(this,e),r.apply(this,arguments)}return Object(o.a)(e,[{key:"render",value:function(){return Object(n.jsxs)("div",{style:{border:"1px solid red",margin:"5px",padding:"5px"},children:[Object(n.jsxs)("div",{children:[this.context,"\xA0Son"]}),Object(n.jsx)(u.Consumer,{children:function(m){return Object(n.jsx)("div",{children:m})}})]})}}]),e}(a.a.Component);O.contextType=u;var D=function(_){Object(i.a)(e,_);var r=Object(c.a)(e);function e(){return Object(d.a)(this,e),r.apply(this,arguments)}return Object(o.a)(e,[{key:"render",value:function(){return Object(n.jsx)(v,{children:Object(n.jsx)(O,{})})}}]),e}(a.a.Component)}}]);