Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
7675a9f6
Commit
7675a9f6
authored
Nov 10, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: delete useless files
parent
a90d93fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
100 deletions
+1
-100
Logo.vue
src/layouts/Logo.vue
+1
-4
DemoChart.vue
src/views/dashboard/welcome/DemoChart.vue
+0
-96
No files found.
src/layouts/Logo.vue
View file @
7675a9f6
<
template
>
<div
class=
"app-logo anticon"
:class=
"theme"
@
click=
"handleGoHome"
:style=
"wrapStyle"
>
<img
:src=
"logo
"
/>
<img
src=
"/@/assets/images/logo.png
"
/>
<div
v-if=
"show"
class=
"logo-title ml-2 ellipsis"
>
{{
globSetting
.
title
}}
</div>
</div>
</
template
>
...
...
@@ -14,8 +14,6 @@
import
{
PageEnum
}
from
'
/@/enums/pageEnum
'
;
import
{
MenuTypeEnum
}
from
'
../enums/menuEnum
'
;
import
logo
from
'
/@/assets/images/logo.png
'
;
import
{
menuStore
}
from
'
../store/modules/menu
'
;
import
{
appStore
}
from
'
../store/modules/app
'
;
...
...
@@ -68,7 +66,6 @@
handleGoHome
,
globSetting
,
show
:
showRef
,
logo
,
wrapStyle
,
};
},
...
...
src/views/dashboard/welcome/DemoChart.vue
deleted
100644 → 0
View file @
a90d93fc
<
template
>
<div
class=
"container"
>
<div
id=
"main"
></div>
<div
id=
"main1"
ref=
"elRef"
></div>
</div>
</
template
>
<
script
lang=
"ts"
>
// https://vega.github.io/vega/usage/
import
{
defineComponent
,
onMounted
,
ref
,
unref
}
from
'
vue
'
;
import
{
useECharts
}
from
'
/@/hooks/web/useECharts
'
;
import
echarts
from
'
echarts
'
;
export
default
defineComponent
({
name
:
'
DemoChart
'
,
setup
()
{
const
elRef
=
ref
<
any
>
(
null
);
const
{
setOptions
}
=
useECharts
(
elRef
);
// onMounted(() => {
// const el = unref(elRef);
// if (!el || !unref(el)) return;
// const chart = echarts.init(el);
// window.addEventListener('resize', () => {
// chart!.resize();
// });
// // removeResizeFn = removeEvent;
// var option = {
// title: {
// text: 'ECharts entry example',
// },
// tooltip: {},
// legend: {
// data: ['Sales'],
// },
// xAxis: {
// data: ['shirt', 'cardign', 'chiffon shirt', 'pants', 'heels', 'socks'],
// },
// yAxis: {},
// series: [
// {
// name: 'Sales',
// type: 'bar',
// data: [5, 20, 36, 10, 10, 20],
// },
// ],
// };
// chart && chart.setOption(option as any);
// });
onMounted
(()
=>
{
var
myChart
=
echarts
.
init
(
elRef
.
value
);
// specify chart configuration item and data
var
option
=
{
title
:
{
text
:
'
ECharts entry example
'
,
},
tooltip
:
{},
legend
:
{
data
:
[
'
Sales
'
],
},
xAxis
:
{
data
:
[
'
shirt
'
,
'
cardign
'
,
'
chiffon shirt
'
,
'
pants
'
,
'
heels
'
,
'
socks
'
],
},
yAxis
:
{},
series
:
[
{
name
:
'
Sales
'
,
type
:
'
bar
'
,
data
:
[
5
,
20
,
36
,
10
,
10
,
20
],
},
],
};
setOptions
(
option
);
// use configuration item and data specified to show chart
// myChart.setOption(option);
// window.addEventListener('resize', () => {
// myChart.resize();
// });
});
return
{
elRef
};
},
});
</
script
>
<
style
>
.container
{
width
:
100%
;
}
#main
,
#main1
{
width
:
40%
;
height
:
300px
;
}
</
style
>
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