kun 191113 1112
This commit is contained in:
46
src/components/ProjectAssessment.vue
Normal file
46
src/components/ProjectAssessment.vue
Normal file
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<div id="projectAssessment"></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import E from 'wangeditor'
|
||||
var phoneEditor, _this
|
||||
export default {
|
||||
components: {},
|
||||
props: {
|
||||
projectAssessmentVal: {
|
||||
type: String,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
created () {},
|
||||
mounted () {
|
||||
_this = this
|
||||
phoneEditor = new E('projectAssessment')
|
||||
phoneEditor.onchange = function () {
|
||||
_this.$emit('projectAssessment', this.$txt.html())
|
||||
}
|
||||
|
||||
phoneEditor.create()
|
||||
// phoneEditor.$txt.html(this.val)
|
||||
},
|
||||
methods: {},
|
||||
computed: {},
|
||||
watch: {
|
||||
projectAssessmentVal (val) {
|
||||
// console.log(val)
|
||||
phoneEditor.$txt.html(_this.projectAssessmentVal)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#projectAssessment {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user