event.vue 598 B

123456789101112131415161718192021222324252627
  1. <script>
  2. export default {
  3. name: "lemonMessageEvent",
  4. inheritAttrs: false,
  5. render() {
  6. const { content } = this.$attrs.message;
  7. return (
  8. <div class="lemon-message lemon-message-event">
  9. <span class="lemon-message-event__content">{content}</span>
  10. </div>
  11. );
  12. }
  13. };
  14. </script>
  15. <style lang="stylus">
  16. @import '~styles/utils/index'
  17. +b(lemon-message-event)
  18. +e(content)
  19. user-select none
  20. display inline-block
  21. background #e9e9e9
  22. color #aaa
  23. font-size 12px
  24. margin 0 auto
  25. padding 5px 10px
  26. border-radius 4px
  27. </style>