0.1.21 • Published 3 years ago
xl-editor v0.1.21
xl-editor
安装
npm install xl-editor -S
使用教程
<template>
<div class="home">
<XlEditor
ref="editor"
v-model="msg"
:disabled="disabled"
:height="height"
:width="width"
:action="action"
@onClick="onClick"
/>
<xl-button type="primary" @click="clear">清空内容</xl-button>
<xl-button type="primary" @click="disabled = true">禁用</xl-button>
</div>
</template>
<script>
import XlEditor from 'xl-editor'
export default {
name: 'Home',
components: {
XlEditor
},
data() {
return {
msg: 'Welcome to Use XL Editor',
width: 960,
height: 600,
disabled: false,
action: 'http://localhost:3000/upload/single'
}
},
methods: {
// 鼠标单击的事件
onClick(e, editor) {
console.log('Element clicked')
console.log(e)
console.log(editor)
},
// 清空内容
clear() {
this.$refs.editor.clear()
}
}
}
</script>
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
4 years ago
0.1.17
4 years ago
0.1.15
4 years ago
0.1.16
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.10
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago