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
b25ceb42
Commit
b25ceb42
authored
Mar 27, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(echart): legend not work
parent
a98835e1
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
44 deletions
+37
-44
package.json
package.json
+3
-3
main.ts
src/main.ts
+0
-8
index.ts
src/plugins/echarts/index.ts
+2
-0
env.ts
src/utils/env.ts
+1
-1
index.vue
src/views/sys/error-log/index.vue
+1
-2
global.d.ts
types/global.d.ts
+4
-5
yarn.lock
yarn.lock
+26
-25
No files found.
package.json
View file @
b25ceb42
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"
@iconify/iconify
"
:
"
^2.0.0-rc.6
"
,
"
@iconify/iconify
"
:
"
^2.0.0-rc.6
"
,
"
@vueuse/core
"
:
"
^4.6.
0
"
,
"
@vueuse/core
"
:
"
^4.6.
1
"
,
"
@zxcvbn-ts/core
"
:
"
^0.3.0
"
,
"
@zxcvbn-ts/core
"
:
"
^0.3.0
"
,
"
ant-design-vue
"
:
"
2.1.0
"
,
"
ant-design-vue
"
:
"
2.1.0
"
,
"
apexcharts
"
:
"
^3.26.0
"
,
"
apexcharts
"
:
"
^3.26.0
"
,
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
"
dotenv
"
:
"
^8.2.0
"
,
"
dotenv
"
:
"
^8.2.0
"
,
"
eslint
"
:
"
^7.22.0
"
,
"
eslint
"
:
"
^7.22.0
"
,
"
eslint-config-prettier
"
:
"
^8.1.0
"
,
"
eslint-config-prettier
"
:
"
^8.1.0
"
,
"
eslint-define-config
"
:
"
^1.0.
2
"
,
"
eslint-define-config
"
:
"
^1.0.
3
"
,
"
eslint-plugin-prettier
"
:
"
^3.3.1
"
,
"
eslint-plugin-prettier
"
:
"
^3.3.1
"
,
"
eslint-plugin-vue
"
:
"
^7.8.0
"
,
"
eslint-plugin-vue
"
:
"
^7.8.0
"
,
"
esno
"
:
"
^0.5.0
"
,
"
esno
"
:
"
^0.5.0
"
,
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
"
vite-plugin-style-import
"
:
"
^0.9.0
"
,
"
vite-plugin-style-import
"
:
"
^0.9.0
"
,
"
vite-plugin-svg-icons
"
:
"
^0.4.0
"
,
"
vite-plugin-svg-icons
"
:
"
^0.4.0
"
,
"
vite-plugin-theme
"
:
"
^0.5.0
"
,
"
vite-plugin-theme
"
:
"
^0.5.0
"
,
"
vite-plugin-windicss
"
:
"
0.
9.11
"
,
"
vite-plugin-windicss
"
:
"
0.
10.2
"
,
"
vue-eslint-parser
"
:
"
^7.6.0
"
"
vue-eslint-parser
"
:
"
^7.6.0
"
},
},
"resolutions"
:
{
"resolutions"
:
{
...
...
src/main.ts
View file @
b25ceb42
...
@@ -25,8 +25,6 @@ import '/@/router/guard';
...
@@ -25,8 +25,6 @@ import '/@/router/guard';
// Register icon Sprite
// Register icon Sprite
import
'
vite-plugin-svg-icons/register
'
;
import
'
vite-plugin-svg-icons/register
'
;
import
{
isDevMode
}
from
'
/@/utils/env
'
;
(
async
()
=>
{
(
async
()
=>
{
const
app
=
createApp
(
App
);
const
app
=
createApp
(
App
);
// Register global components
// Register global components
...
@@ -52,10 +50,4 @@ import { isDevMode } from '/@/utils/env';
...
@@ -52,10 +50,4 @@ import { isDevMode } from '/@/utils/env';
await
router
.
isReady
();
await
router
.
isReady
();
app
.
mount
(
'
#app
'
,
true
);
app
.
mount
(
'
#app
'
,
true
);
// The development environment takes effect
if
(
isDevMode
())
{
// app.config.performance = true;
window
.
__APP__
=
app
;
}
})();
})();
src/plugins/echarts/index.ts
View file @
b25ceb42
...
@@ -9,11 +9,13 @@ import {
...
@@ -9,11 +9,13 @@ import {
PolarComponent
,
PolarComponent
,
AriaComponent
,
AriaComponent
,
ParallelComponent
,
ParallelComponent
,
LegendComponent
,
}
from
'
echarts/components
'
;
}
from
'
echarts/components
'
;
import
{
SVGRenderer
}
from
'
echarts/renderers
'
;
import
{
SVGRenderer
}
from
'
echarts/renderers
'
;
echarts
.
use
([
echarts
.
use
([
LegendComponent
,
TitleComponent
,
TitleComponent
,
TooltipComponent
,
TooltipComponent
,
GridComponent
,
GridComponent
,
...
...
src/utils/env.ts
View file @
b25ceb42
...
@@ -17,7 +17,7 @@ export function getStorageShortName() {
...
@@ -17,7 +17,7 @@ export function getStorageShortName() {
export
function
getAppEnvConfig
()
{
export
function
getAppEnvConfig
()
{
const
ENV_NAME
=
getConfigFileName
(
import
.
meta
.
env
);
const
ENV_NAME
=
getConfigFileName
(
import
.
meta
.
env
);
const
ENV
=
((
i
sDevMode
()
const
ENV
=
((
i
mport
.
meta
.
env
.
DEV
?
// Get the global configuration (the configuration will be extracted independently when packaging)
?
// Get the global configuration (the configuration will be extracted independently when packaging)
((
import
.
meta
.
env
as
unknown
)
as
GlobEnvConfig
)
((
import
.
meta
.
env
as
unknown
)
as
GlobEnvConfig
)
:
window
[
ENV_NAME
as
any
])
as
unknown
)
as
GlobEnvConfig
;
:
window
[
ENV_NAME
as
any
])
as
unknown
)
as
GlobEnvConfig
;
...
...
src/views/sys/error-log/index.vue
View file @
b25ceb42
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
import
{
getColumns
}
from
'
./data
'
;
import
{
getColumns
}
from
'
./data
'
;
import
{
cloneDeep
}
from
'
lodash-es
'
;
import
{
cloneDeep
}
from
'
lodash-es
'
;
import
{
isDevMode
}
from
'
/@/utils/env
'
;
export
default
defineComponent
({
export
default
defineComponent
({
name
:
'
ErrorHandler
'
,
name
:
'
ErrorHandler
'
,
...
@@ -79,7 +78,7 @@
...
@@ -79,7 +78,7 @@
}
}
);
);
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
}
=
useMessage
();
if
(
i
sDevMode
()
)
{
if
(
i
mport
.
meta
.
env
.
DEV
)
{
createMessage
.
info
(
t
(
'
sys.errorLog.enableMessage
'
));
createMessage
.
info
(
t
(
'
sys.errorLog.enableMessage
'
));
}
}
// 查看详情
// 查看详情
...
...
types/global.d.ts
View file @
b25ceb42
import
type
{
import
type
{
App
,
ComponentRenderProxy
,
ComponentRenderProxy
,
VNode
,
VNode
,
ComponentPublicInstance
,
ComponentPublicInstance
,
FunctionalComponent
,
FunctionalComponent
,
}
from
'
vue
'
;
}
from
'
vue
'
;
declare
global
{
declare
global
{
declare
interface
Window
{
//
declare interface Window {
// Global vue app instance
// Global vue app instance
__APP__
:
App
<
Element
>
;
//
__APP__: App<Element>;
}
//
}
export
type
Writable
<
T
>
=
{
export
type
Writable
<
T
>
=
{
-
readonly
[
P
in
keyof
T
]:
T
[
P
];
-
readonly
[
P
in
keyof
T
]:
T
[
P
];
...
...
yarn.lock
View file @
b25ceb42
...
@@ -2062,31 +2062,31 @@
...
@@ -2062,31 +2062,31 @@
resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.0.7.tgz#96d52988efc07444c108c7c6803ba7cc93e40045"
resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.0.7.tgz#96d52988efc07444c108c7c6803ba7cc93e40045"
integrity sha512-dn5FyfSc4ky424jH4FntiHno7Ss5yLkqKNmM/NXwANRnlkmqu74pnGetexDFVG5phMk9/FhwovUZCWGxsotVKg==
integrity sha512-dn5FyfSc4ky424jH4FntiHno7Ss5yLkqKNmM/NXwANRnlkmqu74pnGetexDFVG5phMk9/FhwovUZCWGxsotVKg==
"@vueuse/core@^4.6.
0
":
"@vueuse/core@^4.6.
1
":
version "4.6.
0
"
version "4.6.
1
"
resolved "https://registry.npmjs.org/@vueuse/core/-/core-4.6.
0.tgz#4bb7cbcc01ac27943d0a278e1bf4e714970d2a6d
"
resolved "https://registry.npmjs.org/@vueuse/core/-/core-4.6.
1.tgz#a4c736d19456e2f8ff00e6d7fe6746ba30f5a302
"
integrity sha512-
SC9UK6eNESVSBkEzklNfmqxmIwAuohuW9FQvf7tvsz++XirbKblRPaXkohClS0ZmrtW+ylI5q3aOdBhADbbfEQ
==
integrity sha512-
PGRBcX8w5immyGHlvI9Cvdwx+8TlPzMWT08Q4uVSFNVbKTiBt3sDxswNsMKyatqJn7QxYGt3sFfifadH7TMsGw
==
dependencies:
dependencies:
"@vueuse/shared" "4.6.
0
"
"@vueuse/shared" "4.6.
1
"
vue-demi latest
vue-demi latest
"@vueuse/shared@4.6.
0
":
"@vueuse/shared@4.6.
1
":
version "4.6.
0
"
version "4.6.
1
"
resolved "https://registry.npmjs.org/@vueuse/shared/-/shared-4.6.
0.tgz#4fb644ae0699d754506ad94c721845df00b0d6d
0"
resolved "https://registry.npmjs.org/@vueuse/shared/-/shared-4.6.
1.tgz#e4e0345ad80264aa0a621419413bd306fb78b97
0"
integrity sha512-
330uwtbWoIy53O0YwllckYDiK/f353aVrqeB7Z6/Sg5uFckNiKqX68g2wlDdvUnW/SIOC6cyxIZutZe/xxEFAw
==
integrity sha512-
TXKw6nR0BPN4U3WGI6jE+ipNkFWZ+vVYQmtIDGkRbHT3wjA6OIAG70Ii6hI3PdhJOkPErAPHjDEUEqTllhvq6Q
==
dependencies:
dependencies:
vue-demi latest
vue-demi latest
"@windicss/plugin-utils@0.
9.11
":
"@windicss/plugin-utils@0.
10.2
":
version "0.
9.11
"
version "0.
10.2
"
resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.
9.11.tgz#9b8951ff1495e1deb8a094098a343eb8babb9b3b
"
resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.
10.2.tgz#d4a79c41f02c1704b54510a2bd2deaa43c905a7d
"
integrity sha512-
gGLe3/Ud63fcpj1FTq+0/feP/UM34j9W+iSyBtpPnmfLx8mi2a9g9vhZrojqL9X9IYY+ZhHczZ8Fn9qcHdzWVw
==
integrity sha512-
IeKaZEZ1Ww3KO5C3AxWLotMX3aGxhrj0MsTmiyMS1H5KXm6HOgfk+zsRiB0ysxGKrGZ4pMLe2H3Riku8o7YfuQ
==
dependencies:
dependencies:
debug "^4.3.2"
debug "^4.3.2"
fast-glob "^3.2.5"
fast-glob "^3.2.5"
micromatch "^4.0.2"
micromatch "^4.0.2"
sucrase "^3.17.1"
sucrase "^3.17.1"
windicss "^2.5.
4
"
windicss "^2.5.
5
"
"@zxcvbn-ts/core@^0.3.0":
"@zxcvbn-ts/core@^0.3.0":
version "0.3.0"
version "0.3.0"
...
@@ -4326,10 +4326,10 @@ eslint-config-prettier@^8.1.0:
...
@@ -4326,10 +4326,10 @@ eslint-config-prettier@^8.1.0:
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.1.0.tgz#4ef1eaf97afe5176e6a75ddfb57c335121abc5a6"
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.1.0.tgz#4ef1eaf97afe5176e6a75ddfb57c335121abc5a6"
integrity sha512-oKMhGv3ihGbCIimCAjqkdzx2Q+jthoqnXSP+d86M9tptwugycmTFdVR4IpLgq2c4SHifbwO90z2fQ8/Aio73yw==
integrity sha512-oKMhGv3ihGbCIimCAjqkdzx2Q+jthoqnXSP+d86M9tptwugycmTFdVR4IpLgq2c4SHifbwO90z2fQ8/Aio73yw==
eslint-define-config@^1.0.
2
:
eslint-define-config@^1.0.
3
:
version "1.0.
2
"
version "1.0.
3
"
resolved "https://registry.npmjs.org/eslint-define-config/-/eslint-define-config-1.0.
2.tgz#42775cfd2eedf0ed1b57d15a3f5ade45419fbb46
"
resolved "https://registry.npmjs.org/eslint-define-config/-/eslint-define-config-1.0.
3.tgz#26efbf9124d3855c8ff49233e6d3e3e3be939f60
"
integrity sha512-
TiSz3uwXdgvoO4kGcC+xqazY4bvHD95BK+zsu7+xTSpn4fnfTBcs14CoxE7VmlCqiodeuU5uNtGO00Aks5sEj
Q==
integrity sha512-
GlfTqk2lysLHRx4YH3xuliY06t/p4WMZc3GABLqZ84RcxJxwRVMp0qF9cQSL42gf0pO7IY+dyUsxMrv2b6rZT
Q==
eslint-plugin-jest@^24.1.5:
eslint-plugin-jest@^24.1.5:
version "24.3.2"
version "24.3.2"
...
@@ -10950,14 +10950,15 @@ vite-plugin-theme@^0.5.0:
...
@@ -10950,14 +10950,15 @@ vite-plugin-theme@^0.5.0:
tinycolor2 "^1.4.2"
tinycolor2 "^1.4.2"
ts-jest "^26.5.3"
ts-jest "^26.5.3"
vite-plugin-windicss@0.
9.11
:
vite-plugin-windicss@0.
10.2
:
version "0.
9.11
"
version "0.
10.2
"
resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.
9.11.tgz#46809a7d30d5531f9f3568949cd00646a3178f5b
"
resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.
10.2.tgz#126edae552f2bec22273f5f533806e2b5d61c8ff
"
integrity sha512-
wcF2VmglWqvtsi8Zq4kTVVU9jPiiAfdyy91TnlgaJYlgRaBZcwb7QSJ9p5SeOWIyl6RpzjlK2JFWa0djrVmG8w
==
integrity sha512-
+kgzjwW6VNFlMlQvN4C5iCIqCAhSmTLteVz9IA7LjnpyM6X4tpZmWiTiNlLzAeiJt1eUpu9lFcA7GfuZR+OQDA
==
dependencies:
dependencies:
"@windicss/plugin-utils" "0.9.11"
"@windicss/plugin-utils" "0.10.2"
chalk "^4.1.0"
debug "^4.3.2"
debug "^4.3.2"
windicss "^2.5.
4
"
windicss "^2.5.
5
"
vite@2.1.3:
vite@2.1.3:
version "2.1.3"
version "2.1.3"
...
@@ -11131,7 +11132,7 @@ which@^2.0.1, which@^2.0.2:
...
@@ -11131,7 +11132,7 @@ which@^2.0.1, which@^2.0.2:
dependencies:
dependencies:
isexe "^2.0.0"
isexe "^2.0.0"
windicss@^2.5.
4
:
windicss@^2.5.
5
:
version "2.5.5"
version "2.5.5"
resolved "https://registry.npmjs.org/windicss/-/windicss-2.5.5.tgz#691cc08e13dc9ee41293cd20cfdb6fed101e1d6a"
resolved "https://registry.npmjs.org/windicss/-/windicss-2.5.5.tgz#691cc08e13dc9ee41293cd20cfdb6fed101e1d6a"
integrity sha512-tKLYY9qQoFKoxitG2B8toa9QUPAjsBOKjmFrxhDi2i0eaVOFQh+YEPElBCa7N5ma03YVIW9HPVbgVU0Z4JxZ5g==
integrity sha512-tKLYY9qQoFKoxitG2B8toa9QUPAjsBOKjmFrxhDi2i0eaVOFQh+YEPElBCa7N5ma03YVIW9HPVbgVU0Z4JxZ5g==
...
...
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