Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
b1ccc8a0
Commit
b1ccc8a0
authored
Aug 29, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些优化
parent
3fdc97fa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
31 deletions
+18
-31
.eslintrc.js
.eslintrc.js
+5
-5
.prettierrc.js
.prettierrc.js
+2
-4
App.vue
src/App.vue
+1
-1
home.vue
src/views/home.vue
+10
-21
No files found.
.eslintrc.js
View file @
b1ccc8a0
...
@@ -10,7 +10,7 @@ module.exports = {
...
@@ -10,7 +10,7 @@ module.exports = {
// 3: ESLint + Standard config
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
// ESLint + Prettier
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
],
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
,
'@vue/prettier'
],
plugins
:
[],
plugins
:
[],
parserOptions
:
{
parserOptions
:
{
parser
:
'babel-eslint'
parser
:
'babel-eslint'
...
@@ -30,7 +30,7 @@ module.exports = {
...
@@ -30,7 +30,7 @@ module.exports = {
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
indent
:
[
indent
:
[
'error'
,
'error'
,
2
,
4
,
{
{
SwitchCase
:
1
,
SwitchCase
:
1
,
flatTernaryExpressions
:
true
flatTernaryExpressions
:
true
...
@@ -41,7 +41,7 @@ module.exports = {
...
@@ -41,7 +41,7 @@ module.exports = {
semi
:
[
'error'
,
'never'
],
semi
:
[
'error'
,
'never'
],
'vue/html-indent'
:
[
'vue/html-indent'
:
[
'error'
,
'error'
,
2
,
4
,
{
{
attribute
:
1
,
attribute
:
1
,
baseIndent
:
1
,
baseIndent
:
1
,
...
@@ -54,8 +54,8 @@ module.exports = {
...
@@ -54,8 +54,8 @@ module.exports = {
'error'
,
'error'
,
{
{
html
:
{
html
:
{
void
:
'
never
'
,
void
:
'
any
'
,
normal
:
'
never
'
,
normal
:
'
any
'
,
component
:
'never'
component
:
'never'
},
},
svg
:
'never'
,
svg
:
'never'
,
...
...
.prettierrc.js
View file @
b1ccc8a0
...
@@ -17,7 +17,7 @@ module.exports = {
...
@@ -17,7 +17,7 @@ module.exports = {
// true: { foo: bar }
// true: { foo: bar }
// false: {foo: bar}
// false: {foo: bar}
bracketSpacing
:
true
,
bracketSpacing
:
true
,
// JSX标签闭合位置 默认false
// JSX标签闭合位置
>是否单独放一行
默认false
// false: <div
// false: <div
// className=""
// className=""
// style={{}}
// style={{}}
...
@@ -25,15 +25,13 @@ module.exports = {
...
@@ -25,15 +25,13 @@ module.exports = {
// true: <div
// true: <div
// className=""
// className=""
// style={{}} >
// style={{}} >
// jsxBracketSameLine:
false,
jsxBracketSameLine
:
false
,
// 箭头函数参数括号 默认avoid 可选 avoid| always
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
// always 总是有括号
arrowParens
:
'always'
,
arrowParens
:
'always'
,
// 结尾是 \n \r \n\r auto
// 结尾是 \n \r \n\r auto
endOfLine
:
"auto"
,
endOfLine
:
"auto"
,
// 在jsx中把'>' 是否单独放一行
jsxBracketSameLine
:
false
,
}
}
src/App.vue
View file @
b1ccc8a0
...
@@ -15,7 +15,7 @@ export default {
...
@@ -15,7 +15,7 @@ export default {
}
}
},
},
async
created
()
{
async
created
()
{
console
.
log
(
`this.route:`
,
this
.
route
)
console
.
log
(
'this.route:'
,
this
.
route
)
},
},
methods
:
{
methods
:
{
async
request
()
{
async
request
()
{
...
...
src/views/home.vue
View file @
b1ccc8a0
...
@@ -2,20 +2,9 @@
...
@@ -2,20 +2,9 @@
<div
class=
"comp-bao2"
>
<div
class=
"comp-bao2"
>
<h1>
home
</h1>
<h1>
home
</h1>
<input
<input
ref=
"input"
type=
"file"
:accept=
"accept"
name=
"files[]"
style=
"display:none;"
aaa=
"dfsdfsfsdfddfsdfsfsdfdsfsdfdsf"
/>
ref=
"input"
type=
"file"
:accept=
"accept"
name=
"files[]"
style=
"display:none;"
aaa=
"dfsdfsfsdfddfsdfsfsdfdsfsdfdsf"
>
<videoPlayer
<videoPlayer
aaa=
"dfasfsdffdsdfsdsffdsfdfdsf"
></videoPlayer>
aaa=
"dfasfsdffdsdfsdsffdsfdfdsf"
bbb=
"fsfdsfsdfdsfdsfdsfdsfdfdsf"
ccc=
"fsfdsfsdfdsfdsfdsfdsfdfdsf"
></videoPlayer>
</div>
</div>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment