From d4d21a60b7d95a0c6f2ef2276657ac7fdc1d8cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=85=A7=E6=AD=A6?= Date: Sat, 13 Apr 2019 23:14:09 +0800 Subject: [PATCH] :memo:improve e.g. desc --- README.md | 24 +++++++++++++----------- src/utils/vis-monitor.js | 4 ++-- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8ecce24..73aee77 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,15 @@ Vue.use(VTrack, { ```js /* track-events.js */ export default { - /** @desc UV、PV埋点 */ + /** + * @name UVPV 固定名称不支持修改 + * @desc UV、PV埋点 + */ UVPV() { ... }, /** + * @name TONP 固定名称不支持修改 * @desc 页面停留时间埋点(Time on Page) * @param {String} stt 进入页面时长,单位为秒 */ @@ -59,15 +63,13 @@ export default { ... }, /** + * @name 18015 埋点唯一标识ID(自定义) * @param {Object} context 当前上下文 * @param {Object} args 剩余参数 */ 18015(context, args) { ... } - 18016(context, args) { - ... - } ... } ``` @@ -82,20 +84,20 @@ export default {
-
+
- + - - - - - + + + + + ``` ## LICENSE diff --git a/src/utils/vis-monitor.js b/src/utils/vis-monitor.js index 27f2826..18a82f2 100644 --- a/src/utils/vis-monitor.js +++ b/src/utils/vis-monitor.js @@ -2,7 +2,7 @@ * @Author: 宋慧武 * @Date: 2019-04-08 11:13:34 * @Last Modified by: 宋慧武 - * @Last Modified time: 2019-04-08 12:00:05 + * @Last Modified time: 2019-04-13 23:10:29 */ import { isElement, isVisible, isInViewport } from "./dom"; import { isFun, debounce } from "./helper"; @@ -11,7 +11,7 @@ import { isFun, debounce } from "./helper"; * @class * @name VisMonitor * - * @deec 目标元素控制器 + * @desc 目标元素控制器 */ export default class VisMonitor { constructor(ele, ref) {