kun 191113 1112

This commit is contained in:
沈学坤
2019-11-13 11:11:51 +08:00
parent 03cae85307
commit c3ec95e2c6
12 changed files with 610 additions and 82 deletions

View File

@@ -0,0 +1,46 @@
<template>
<div id="scheduling"></div>
</template>
<script>
import E from 'wangeditor'
var phoneEditor, _this
export default {
components: {},
props: {
schedulingVal: {
type: String,
required: false
}
},
data () {
return {}
},
created () {},
mounted () {
_this = this
phoneEditor = new E('scheduling')
phoneEditor.onchange = function () {
_this.$emit('scheduling', this.$txt.html())
}
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
schedulingVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.schedulingVal)
}
}
}
</script>
<style lang="scss" scoped>
#scheduling {
width: 100%;
height: 250px;
}
</style>