Last active
June 12, 2019 01:49
-
-
Save wkei/c331abff42c75b349dfd00706b9a1673 to your computer and use it in GitHub Desktop.
editable.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<editable | |
:editable="editable" | |
target="aaa.bbb.ccc" | |
@handler="handler" | |
> | |
<slot name="read"></slot> | |
<slot name="edit"></slot> | |
<slot name="message"></slot> | |
</editable> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
editable: {} | |
} | |
}, | |
methods: { | |
handler(action, target) { | |
switch(action) {} | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment