From 469365582aea34fc03bcfce030b084c78c7887c9 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Mon, 2 Aug 2021 17:04:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BB=BB=E5=8A=A1=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 7 +++ CHANGELOG.md | 1 + src/components/Plugin/Plugin.vue | 2 +- src/components/TimeLine/component/TimeBox.vue | 4 +- .../TimeLine/component/TimeStatus.vue | 52 ++++++++++++++++--- 5 files changed, 56 insertions(+), 10 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 2824b10..067c1dd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,6 +19,13 @@ module.exports = { 'vue/max-attributes-per-line': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/html-indent': 'off', + 'vue/html-closing-bracket-newline': [ + 'error', + { + singleline: 'never', + multiline: 'always', + }, + ], }, parserOptions: { parser: 'babel-eslint' }, diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b661e5..7227544 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - | db store | 6414c4f - | indexedDB | 687394e pinch | alloy finger实现图片的pinch放大缩小 | de01343 + plugin | 插件添加了token及param参数 | aeb0292 - | post 封装 | da52e94 - | tall插件封装 | 1bcb920 - | ws storage | 21b3a06 diff --git a/src/components/Plugin/Plugin.vue b/src/components/Plugin/Plugin.vue index 2ab39ca..a1fa2d1 100644 --- a/src/components/Plugin/Plugin.vue +++ b/src/components/Plugin/Plugin.vue @@ -73,7 +73,7 @@ export default { const reg = /data-root=["|']?(\w+)["|']?/gi; // console.log(data.html); let uuid = ''; - // FIXME: 没有兼容只有js 没有html的情况 + // FIXME: 没有兼容 只有js, 没有html的情况 if (data.html) { // 查有没有data-root=“xxx” 有的话 将xxx替换为 pluginTaskId diff --git a/src/components/TimeLine/component/TimeBox.vue b/src/components/TimeLine/component/TimeBox.vue index 97d266a..a08f17e 100644 --- a/src/components/TimeLine/component/TimeBox.vue +++ b/src/components/TimeLine/component/TimeBox.vue @@ -5,9 +5,7 @@ - - {{ $moment(+task.planStart).format(startTimeFormat) }} - + {{ $moment(+task.planStart).format(startTimeFormat) }} diff --git a/src/components/TimeLine/component/TimeStatus.vue b/src/components/TimeLine/component/TimeStatus.vue index 70c0ed8..24ac35c 100644 --- a/src/components/TimeLine/component/TimeStatus.vue +++ b/src/components/TimeLine/component/TimeStatus.vue @@ -1,11 +1,13 @@ +