12345678910111213141516171819202122232425262728293031323334 |
- <script>
- export default {
- name: "lemonMessageText",
- inheritAttrs: false,
- inject: ["IMUI"],
- render() {
- return (
- <lemon-message-basic
- class="lemon-message-text"
- props={{ ...this.$attrs }}
- scopedSlots={{
- content: props => {
- const content = this.IMUI.replaceEmojiName(props.content);
- return <span domProps={{ innerHTML: content }} />;
- }
- }}
- />
- );
- }
- };
- </script>
- <style lang="stylus">
- @import '~styles/utils/index'
- +b(lemon-message-text)
- +b(lemon-message)
- +e(content)
- img
- width 18px
- height 18px
- display inline-block
- background transparent
- padding 0 2px
- vertical-align middle
- </style>
|