Skip to content

Commit

Permalink
⚡improve notification style
Browse files Browse the repository at this point in the history
  • Loading branch information
宋慧武 committed Apr 16, 2019
1 parent d99a347 commit 74a1993
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/assets/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@
.el-notification__group {
width: 100%;
}
}

.message-offset {
top: 88px;
}
2 changes: 1 addition & 1 deletion docs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vue.use(Alert);
Vue.use(VueTrack, {
trackEvents,
trackEnable: {
UVPV: false,
UVPV: true,
TONP: true
}
});
Expand Down
11 changes: 8 additions & 3 deletions docs/tracks/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 宋慧武
* @Date: 2019-04-14 16:44:42
* @Last Modified by: 宋慧武
* @Last Modified time: 2019-04-16 10:55:37
* @Last Modified time: 2019-04-16 11:28:36
*/
import { Notification, Message } from "element-ui";
import { format } from "../utils/date";
Expand All @@ -22,12 +22,17 @@ export default function trackAction(evt, addtional = {}) {
Message("统计UVPV埋点");
}
if (evt === "2") {
Message("统计页面停留时间埋点");
Message({
message: "统计页面停留时间埋点",
customClass: "message-offset"
});
}
Notification.success({
title: "上报数据如下:",
dangerouslyUseHTMLString: true,
message: createFragment(data),
customClass: "notification__large"
customClass: "notification__large",
position: evt === "1" || evt === "2" ? "top-left" : "top-right",
offset: evt === "2" ? 198 : 0
});
}

0 comments on commit 74a1993

Please sign in to comment.