UPDATE
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<script>
|
||||
import IMUIProxy from "mixins/IMUIProxy";
|
||||
export default {
|
||||
name: "lemonMessageText",
|
||||
inheritAttrs: false,
|
||||
mixins: [IMUIProxy],
|
||||
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>
|
||||
Reference in New Issue
Block a user