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.
iot/projects/WebMVC/wwwroot/router/shared/edit/multilinetext.html

28 lines
740 B

<template>
<div>
<textarea :name="name">{{value}}</textarea>
</div>
</template>
<script>
export default {
props: ['name', 'value'], watch: {
value(val) {
this.$emit('update:value', val)
},
},
mounted: function () {
var vm = this;
var editor = KindEditor.create('textarea[name="' + this.name + '"]', {
width: '100%',
allowImageUpload: true,
uploadJson: vm.uploadUrl,
formatUploadUrl: false
});
},
computed: {
src: function () {
return this.value || '/images/empty.png';
}
}
};
</script>