You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import React , { Component } from "react" ;
import { MarkdownToHtml , QuillForEditor } from 'educoder' ;
import QestionDisplayHeader from './QestionDisplayHeader'
class MainDisplay extends Component {
constructor ( props ) {
super ( props ) ;
this . state = {
}
}
componentDidMount = ( ) => {
}
render ( ) {
let { standard _answer ,
question _id , index
} = this . props ;
const qNumber = ` question_ ${ index } ` ;
// TODO show模式 isNew为false isEdit为false
return (
< div className = "bor-bottom-greyE padding20-30" id = { qNumber } _id = { question _id } >
< style > { `
.optionMdEditor {
flex: 0 0 800px
}
.optionRow {
margin: 2px;
}
.actionBtns {
height: 28px
}
` } < / s t y l e >
< QestionDisplayHeader { ... this . props } > < / Q e s t i o n D i s p l a y H e a d e r >
{ standard _answer [ 0 ] &&
< React . Fragment >
< div style = { { color : '#05101A' } } className = "font-16 mb5 font-bd" > 参考答案 : < / d i v >
{ ! this . props . exercise || this . props . exercise && this . props . exercise . is _md ? < MarkdownToHtml content = { standard _answer [ 0 ] } selector = { 'answer_' + qNumber }
className = ""
> < / M a r k d o w n T o H t m l > : < Q u i l l F o r E d i t o r
readOnly = { true }
style = { { float : 'left' , display : 'inline-block' , padding : '0px' , margin : '2px 0px 0px' } }
value = { standard _answer [ 0 ] ? JSON . parse ( standard _answer [ 0 ] ) : "" }
// showUploadImage={this.handleShowUploadImage}
/ > }
< / R e a c t . F r a g m e n t >
}
< / d i v >
)
}
}
export default ( MainDisplay ) ;