Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
cd047c5a
Commit
cd047c5a
authored
Nov 24, 2017
by
Pan
Committed by
花裤衩
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: update element-ui 2.0
parent
3abc6b14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
main.js
src/main.js
+1
-1
index.scss
src/styles/index.scss
+4
-0
form.vue
src/views/page/form.vue
+8
-1
index.vue
src/views/table/index.vue
+6
-6
No files found.
src/main.js
View file @
cd047c5a
import
Vue
from
'vue'
import
ElementUI
from
'element-ui'
import
'element-ui/lib/theme-
default
/index.css'
import
'element-ui/lib/theme-
chalk
/index.css'
import
locale
from
'element-ui/lib/locale/lang/en'
import
App
from
'./App'
import
router
from
'./router'
...
...
src/styles/index.scss
View file @
cd047c5a
...
...
@@ -17,6 +17,10 @@ html {
box-sizing
:
inherit
;
}
div
:focus
{
outline
:
none
;
}
a
:focus
,
a
:active
{
outline
:
none
;
...
...
src/views/page/form.vue
View file @
cd047c5a
...
...
@@ -20,7 +20,7 @@
</el-col>
</el-form-item>
<el-form-item
label=
"Instant delivery"
>
<el-switch
on-text=
""
off-text=
""
v-model=
"form.delivery"
></el-switch>
<el-switch
v-model=
"form.delivery"
></el-switch>
</el-form-item>
<el-form-item
label=
"Activity type"
>
<el-checkbox-group
v-model=
"form.type"
>
...
...
@@ -70,3 +70,10 @@ export default {
}
}
</
script
>
<
style
scoped
>
.line
{
text-align
:
center
;
}
</
style
>
src/views/table/index.vue
View file @
cd047c5a
...
...
@@ -2,32 +2,32 @@
<div
class=
"app-container"
>
<el-table
:data=
"list"
v-loading
.
body=
"listLoading"
element-loading-text=
"拼命加载中"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
'ID'
width=
"95"
>
<template
scope=
"scope"
>
<template
s
lot-s
cope=
"scope"
>
{{
scope
.
$index
}}
</
template
>
</el-table-column>
<el-table-column
label=
"Title"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
title
}}
</
template
>
</el-table-column>
<el-table-column
label=
"Author"
width=
"110"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<span>
{{
scope
.
row
.
author
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"Pageviews"
width=
"110"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
{{
scope
.
row
.
pageviews
}}
</
template
>
</el-table-column>
<el-table-column
class-name=
"status-col"
label=
"Status"
width=
"110"
align=
"center"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-tag
:type=
"scope.row.status | statusFilter"
>
{{
scope
.
row
.
status
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"created_at"
label=
"Display_time"
width=
"200"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<i
class=
"el-icon-time"
></i>
<span>
{{
scope
.
row
.
display_time
}}
</span>
</
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