From 41d0f8a0d13b1a143acaaf338fe10087cf49bad9 Mon Sep 17 00:00:00 2001 From: purestart <522382456@qq.com> Date: Fri, 8 May 2020 16:10:52 +0800 Subject: [PATCH] update format --- package.json | 1 + src/App.vue | 2 +- src/components/fabric/fabric.vue | 27 +++++++------- src/components/fabric/index.js | 13 +++---- src/examples/image-list.vue | 62 ++++++++++++++++---------------- src/examples/index-pc.vue | 4 +-- src/examples/index.vue | 44 +++++++++++------------ src/examples/toolbar.vue | 14 ++++---- src/main.js | 4 +-- src/router/index.js | 32 ++++++++--------- 10 files changed, 100 insertions(+), 103 deletions(-) diff --git a/package.json b/package.json index 8e11313..9d3ea42 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "start": "npm run dev", "lint": "eslint --ext .js,.vue src", + "lint:fix": "npm run lint -- --fix", "build": "node build/build.js" }, "dependencies": { diff --git a/src/App.vue b/src/App.vue index d69f36d..dd50505 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ export default { name: 'app', data () { return {}; - }, + } }; diff --git a/src/components/fabric/fabric.vue b/src/components/fabric/fabric.vue index cf058bc..6ff9599 100644 --- a/src/components/fabric/fabric.vue +++ b/src/components/fabric/fabric.vue @@ -4,7 +4,7 @@ - - + diff --git a/src/components/fabric/index.js b/src/components/fabric/index.js index 4215073..054ead7 100644 --- a/src/components/fabric/index.js +++ b/src/components/fabric/index.js @@ -1,8 +1,9 @@ -import FabricComponent from './fabric.vue' +import FabricComponent from './fabric.vue'; -  const Fabric={ -    install:function(Vue){ //核心部分,在我们使用Vue.use()时,自动调用的是install,而install导出的必须是的组件 -    Vue.component(FabricComponent.name,FabricComponent); -  } +const Fabric = { + install: function (Vue) { + // 核心部分,在我们使用Vue.use()时,自动调用的是install,而install导出的必须是的组件 + Vue.component(FabricComponent.name, FabricComponent); + } }; -export default Fabric; \ No newline at end of file +export default Fabric; diff --git a/src/examples/image-list.vue b/src/examples/image-list.vue index e70d1ca..c92e443 100644 --- a/src/examples/image-list.vue +++ b/src/examples/image-list.vue @@ -9,47 +9,47 @@