Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TC
Overview
Overview
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
qlintonger xeno
TC
Commits
2113a2c9
Commit
2113a2c9
authored
Apr 18, 2025
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 重设结构变体+2
parent
590cb3b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
src/lib/Table2Chart/Components/charts-wrapper.vue
+1
-1
src/lib/Table2Chart/types/ScreenChart.typing.ts
+4
-0
No files found.
src/lib/Table2Chart/Components/charts-wrapper.vue
View file @
2113a2c9
<
template
>
<
template
>
<template
v-if=
"ps.type === ChartCompType.EChartsBar"
>
<template
v-if=
"ps.type === ChartCompType.EChartsBar"
>
<global-echarts
v-bind=
"$attrs"
:height=
"ps.
height"
:width=
"ps.width
"
:options=
"ps.options"
/>
<global-echarts
v-bind=
"$attrs"
:height=
"ps.
item.chartWidth"
:width=
"ps.item.chartHeight
"
:options=
"ps.options"
/>
</
template
>
</
template
>
<
template
v-else-if=
"ps.type === ChartCompType.EChartsPie"
>
<
template
v-else-if=
"ps.type === ChartCompType.EChartsPie"
>
<div
class=
"flex flex-col items-center"
>
<div
class=
"flex flex-col items-center"
>
...
...
src/lib/Table2Chart/types/ScreenChart.typing.ts
View file @
2113a2c9
...
@@ -5,6 +5,8 @@ export type BarChartOptions = {
...
@@ -5,6 +5,8 @@ export type BarChartOptions = {
category
:
string
[]
category
:
string
[]
data
:
number
[]
|
{
name
:
string
,
data
:
number
[]
}[],
data
:
number
[]
|
{
name
:
string
,
data
:
number
[]
}[],
type
:
ChartCompType
type
:
ChartCompType
chartWidth
?:
number
|
string
chartHeight
?:
number
|
string
};
};
export
type
PieCharOptions
=
{
export
type
PieCharOptions
=
{
...
@@ -13,6 +15,8 @@ export type PieCharOptions = {
...
@@ -13,6 +15,8 @@ export type PieCharOptions = {
radius
:
Array
<
string
>
,
radius
:
Array
<
string
>
,
data
:
Array
<
{
value
:
number
,
name
:
string
,
color
:
string
}
>
,
data
:
Array
<
{
value
:
number
,
name
:
string
,
color
:
string
}
>
,
centerText
?:
string
|
Function
centerText
?:
string
|
Function
chartWidth
?:
number
|
string
chartHeight
?:
number
|
string
}
}
export
type
GeneralChartOptions
=
BarChartOptions
|
PieCharOptions
export
type
GeneralChartOptions
=
BarChartOptions
|
PieCharOptions
...
...
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