1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="tip-message">
- <view class="text-message">{{ renderDom[0].text }}</view>
- </view>
- </template>
- <script>
- import { parseGroupTip } from '../../../base/message-facade';
- export default {
- data() {
- return {};
- },
- components: {},
- props: {
- message: {
- type: Object
- }
- },
- watch: {
- message: {
- handler: function(newVal) {
- this.renderDom=parseGroupTip(newVal);
- // this.setData({
- // renderDom: parseGroupTip(newVal)
- // });
- },
- immediate: true,
- deep: true
- }
- },
- beforeMount() {
- // 在组件实例进入页面节点树时执行
- },
- destroyed() {
- // 在组件实例被从页面节点树移除时执行
- },
- methods: {}
- };
- </script>
- <style>
- @import './index.css';
- </style>
|