npm install vue-question-editDESCRIPTION
试题编辑组件-业务自用(带数学、化学公式)
NPM
``bash`
npm install vue-question-edit --save
USAGE
`
import questionContent from 'vue-question-edit'
import 'vue-question-edit/lib/question.css'
Vue.use(questionContent)
data() {
return {
question: {
score: 0,
questionStructureTypeId: 1,
questionStructureTypeName: '单选',
stemHtml: '',
answerHtml: null,
analysisHtml: null,
options: {
A: '',
B: '',
C: '',
D: ''
},
questionBlanks: [],
questionListens: [],
questionVideos: [],
schoolPhaseId: 4,
subjectId: 7,
questionTypeId: null,
questionTypeName: '',
questionType: {
id: null,
name: null,
parentId: null,
parentName: null
},
questionTypeIds: '',
difficultLevelId: 0,
difficultLevelName: '',
wrongCauseDiagnosisHtml: null,
famousTeacherAdviceHtml: null,
subjectAbilities: [],
coreAttainments: [],
subjectAbilityIds: [],
coreAttainmentIds: [],
knowledgePoints: [],
knowledgePointIds: [],
bookNodes: [],
bookNodeIds: [],
children: []
}
}
}
`
Author
```
shuai