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
Hide 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 = {
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
],
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
,
'@vue/prettier'
],
plugins
:
[],
parserOptions
:
{
parser
:
'babel-eslint'
...
...
@@ -30,7 +30,7 @@ module.exports = {
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
indent
:
[
'error'
,
2
,
4
,
{
SwitchCase
:
1
,
flatTernaryExpressions
:
true
...
...
@@ -41,7 +41,7 @@ module.exports = {
semi
:
[
'error'
,
'never'
],
'vue/html-indent'
:
[
'error'
,
2
,
4
,
{
attribute
:
1
,
baseIndent
:
1
,
...
...
@@ -54,8 +54,8 @@ module.exports = {
'error'
,
{
html
:
{
void
:
'
never
'
,
normal
:
'
never
'
,
void
:
'
any
'
,
normal
:
'
any
'
,
component
:
'never'
},
svg
:
'never'
,
...
...
.prettierrc.js
View file @
b1ccc8a0
...
...
@@ -17,7 +17,7 @@ module.exports = {
// true: { foo: bar }
// false: {foo: bar}
bracketSpacing
:
true
,
// JSX标签闭合位置 默认false
// JSX标签闭合位置
>是否单独放一行
默认false
// false: <div
// className=""
// style={{}}
...
...
@@ -25,15 +25,13 @@ module.exports = {
// true: <div
// className=""
// style={{}} >
// jsxBracketSameLine:
false,
jsxBracketSameLine
:
false
,
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
arrowParens
:
'always'
,
// 结尾是 \n \r \n\r auto
endOfLine
:
"auto"
,
// 在jsx中把'>' 是否单独放一行
jsxBracketSameLine
:
false
,
}
src/App.vue
View file @
b1ccc8a0
...
...
@@ -15,7 +15,7 @@ export default {
}
},
async
created
()
{
console
.
log
(
`this.route:`
,
this
.
route
)
console
.
log
(
'this.route:'
,
this
.
route
)
},
methods
:
{
async
request
()
{
...
...
src/views/home.vue
View file @
b1ccc8a0
<
template
>
<div
class=
"comp-bao2"
>
<h1>
home
</h1>
<div
class=
"comp-bao2"
>
<h1>
home
</h1>
<input
ref=
"input"
type=
"file"
:accept=
"accept"
name=
"files[]"
style=
"display:none;"
aaa=
"dfsdfsfsdfddfsdfsfsdfdsfsdfdsf"
>
<input
ref=
"input"
type=
"file"
:accept=
"accept"
name=
"files[]"
style=
"display:none;"
aaa=
"dfsdfsfsdfddfsdfsfsdfdsfsdfdsf"
/>
<videoPlayer
aaa=
"dfasfsdffdsdfsdsffdsfdfdsf"
bbb=
"fsfdsfsdfdsfdsfdsfdsfdfdsf"
ccc=
"fsfdsfsdfdsfdsfdsfdsfdfdsf"
></videoPlayer>
</div>
<videoPlayer
aaa=
"dfasfsdffdsdfsdsffdsfdfdsf"
></videoPlayer>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{}
},
created
()
{},
mounted
()
{}
data
()
{
return
{}
},
created
()
{},
mounted
()
{}
}
</
script
>
...
...
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