msg-card.js 391 B

123456789101112131415161718
  1. import {logicStatus} from "../../model/enum";
  2. import {getDataSet} from "../../utils/utils";
  3. Component({
  4. externalClasses: ['background'],
  5. properties: {
  6. msg: Object
  7. },
  8. data: {
  9. logicStatusEnum: logicStatus
  10. },
  11. methods: {
  12. noticeRead(e) {
  13. const id = getDataSet(e, "id");
  14. this.triggerEvent("read", {id});
  15. }
  16. }
  17. });