Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
ccc198a8
Commit
ccc198a8
authored
Feb 08, 2018
by
胡小根
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成功生成文档
parent
b95901d8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
93 additions
and
8 deletions
+93
-8
configuration.md
docs/styleguide/configuration.md
+0
-0
installation.md
docs/styleguide/installation.md
+0
-0
introduction.md
docs/styleguide/introduction.md
+0
-0
HmComplexTable.vue
src/views/haomo/components/tables/HmComplexTable.vue
+7
-8
styleguide.config.js
styleguide.config.js
+86
-0
No files found.
docs/styleguide/configuration.md
0 → 100644
View file @
ccc198a8
docs/styleguide/installation.md
0 → 100644
View file @
ccc198a8
docs/styleguide/introduction.md
0 → 100644
View file @
ccc198a8
src/views/haomo/components/tables/HmComplexTable.vue
View file @
ccc198a8
...
...
@@ -49,6 +49,7 @@
import
request
from
'@/utils/request'
import
waves
from
'@/directive/waves'
// 水波纹指令
import
{
parseTime
}
from
'@/utils'
import
*
as
excel
from
'@/vendor/Export2Excel'
export
default
{
name
:
'HmComplexTable'
,
...
...
@@ -282,14 +283,12 @@
},
handleDownload
()
{
this
.
downloadLoading
=
true
import
(
'@/vendor/Export2Excel'
).
then
(
excel
=>
{
// @TODO 修改下载excel的功能,请求所有的数据
const
tHeader
=
[
'timestamp'
,
'title'
,
'type'
,
'importance'
,
'status'
]
const
filterVal
=
[
'timestamp'
,
'title'
,
'type'
,
'importance'
,
'status'
]
const
data
=
this
.
formatJson
(
filterVal
,
this
.
list
)
excel
.
export_json_to_excel
(
tHeader
,
data
,
'table-list'
)
this
.
downloadLoading
=
false
})
// @TODO 修改下载excel的功能,请求所有的数据
const
tHeader
=
[
'timestamp'
,
'title'
,
'type'
,
'importance'
,
'status'
]
const
filterVal
=
[
'timestamp'
,
'title'
,
'type'
,
'importance'
,
'status'
]
const
data
=
this
.
formatJson
(
filterVal
,
this
.
list
)
excel
.
export_json_to_excel
(
tHeader
,
data
,
'table-list'
)
this
.
downloadLoading
=
false
},
formatJson
(
filterVal
,
jsonData
)
{
return
jsonData
.
map
(
v
=>
filterVal
.
map
(
j
=>
{
...
...
styleguide.config.js
0 → 100644
View file @
ccc198a8
/**
* @desc styleguide配置文件
* @author hm20160509
* @date 2018/2/8
*/
const
path
=
require
(
'path'
)
const
utils
=
require
(
'./build/utils'
)
// const baseWebpackConfig = require('./build/webpack.base.conf')
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
module
.
exports
=
{
components
:
'src/views/haomo/components/**/[A-Z]*.vue'
,
ignore
:
[
'**/index.vue'
],
defaultExample
:
true
,
webpackConfig
:
Object
.
assign
({
resolve
:
{
extensions
:
[
'.js'
,
'.vue'
,
'.json'
],
alias
:
{
'vue$'
:
'vue/dist/vue.esm.js'
,
'@'
:
resolve
(
'src'
)
}
},
module
:
{
rules
:
[
{
test
:
/
\.
vue$/
,
loader
:
'vue-loader'
},
{
test
:
/
\.
js$/
,
loader
:
'babel-loader?cacheDirectory'
,
include
:
[
resolve
(
'src'
),
resolve
(
'test'
),
resolve
(
'node_modules/webpack-dev-server/client'
)]
},
{
test
:
/
\.
svg$/
,
loader
:
'svg-sprite-loader'
,
include
:
[
resolve
(
'src/icons'
)],
options
:
{
symbolId
:
'icon-[name]'
}
},
{
test
:
/
\.(
png|jpe
?
g|gif|svg
)(\?
.*
)?
$/
,
loader
:
'url-loader'
,
exclude
:
[
resolve
(
'src/icons'
)],
options
:
{
limit
:
10000
,
name
:
utils
.
assetsPath
(
'img/[name].[hash:7].[ext]'
)
}
},
{
test
:
/
\.(
mp4|webm|ogg|mp3|wav|flac|aac
)(\?
.*
)?
$/
,
loader
:
'url-loader'
,
options
:
{
limit
:
10000
,
name
:
utils
.
assetsPath
(
'media/[name].[hash:7].[ext]'
)
}
},
{
test
:
/
\.
css$/
,
use
:
[
'style-loader'
,
'css-loader'
,
'sass-loader'
]
},
{
test
:
/
\.
scss$/
,
use
:
[
'style-loader'
,
'css-loader'
,
'sass-loader'
]
},
{
test
:
/
\.(
woff2
?
|eot|ttf|otf
)(\?
.*
)?
$/
,
loader
:
'url-loader'
,
options
:
{
limit
:
10000
,
name
:
utils
.
assetsPath
(
'fonts/[name].[hash:7].[ext]'
)
}
}
]
}
}),
showUsage
:
true
,
showCode
:
true
}
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