mirror of
https://gitee.com/dromara/go-view.git
synced 2026-07-06 08:11:14 +08:00
Compare commits
6 Commits
a29a4f7e17
...
9b1c4fcf7a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b1c4fcf7a | ||
|
|
30d1e7dda2 | ||
|
|
9307614a94 | ||
|
|
ad563d2127 | ||
|
|
ddc86c9fa2 | ||
|
|
3ececee817 |
@ -20,7 +20,7 @@ GoView 是一个高效的拖拽式低代码数据可视化开发平台,将图
|
||||
|
||||
### 🤯 后端项目
|
||||
|
||||
后端项目gitee地址:[https://gitee.com/MTrun/go-view-serve](https://gitee.com/MTrun/go-view-serve)
|
||||
后端项目 gitee 地址:[https://gitee.com/MTrun/go-view-serve](https://gitee.com/MTrun/go-view-serve)
|
||||
|
||||
接口说明地址:[https://docs.apipost.cn/preview/5aa85d10a59d66ce/ddb813732007ad2b?target_id=84dbc5b0-158f-4bcb-8f74-793ac604ada3#3e053622-1e76-43f9-a039-756aee822dbb](https://docs.apipost.cn/preview/5aa85d10a59d66ce/ddb813732007ad2b?target_id=84dbc5b0-158f-4bcb-8f74-793ac604ada3#3e053622-1e76-43f9-a039-756aee822dbb)
|
||||
|
||||
@ -53,7 +53,7 @@ GoView 是一个高效的拖拽式低代码数据可视化开发平台,将图
|
||||
| 名称 | 版本 | 名称 | 版本 |
|
||||
| ------------------- | ----- | ----------- | ------ |
|
||||
| Vue | 3.2.x | TypeScript4 | 4.6.x |
|
||||
| Vite | 2.9.x | NaiveUI | 2.27.x |
|
||||
| Vite | 4.2.x | NaiveUI | 2.34.x |
|
||||
| ECharts | 5.3.x | Pinia | 2.0.x |
|
||||
| 详见 `package.json` | 😁 | 🥰 | 🤗 |
|
||||
|
||||
@ -61,7 +61,7 @@ GoView 是一个高效的拖拽式低代码数据可视化开发平台,将图
|
||||
|
||||
| 名称 | 版本 | 名称 | 版本 |
|
||||
| ---- | ------- | ------- | ----- |
|
||||
| node | 16.14.x | npm | 8.5.x |
|
||||
| node | 16.16.x | npm | 8.5.x |
|
||||
| pnpm | 7.1.x | windows | 11 |
|
||||
|
||||
已完成图表:
|
||||
|
||||
1
src/packages/index.d.ts
vendored
1
src/packages/index.d.ts
vendored
@ -140,6 +140,7 @@ export interface CreateComponentType extends PublicConfigType, requestConfig {
|
||||
key: string
|
||||
chartConfig: ConfigType
|
||||
option: GlobalThemeJsonType
|
||||
groupList?: Array<CreateComponentType>
|
||||
}
|
||||
|
||||
// 组件成组实例类
|
||||
|
||||
@ -2212,9 +2212,9 @@
|
||||
"pinyin": "tengluozi"
|
||||
},
|
||||
{
|
||||
"CMYK": [57, 62, 16, 2],
|
||||
"RGB": [128, 109, 158],
|
||||
"hex": "#806d9e",
|
||||
"CMYK": [34, 39, 0, 24],
|
||||
"RGB": [128, 118, 195],
|
||||
"hex": "#8076c3",
|
||||
"name": "槿紫",
|
||||
"pinyin": "jinzi"
|
||||
},
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
@update:value="clickItemHandle"
|
||||
></n-menu>
|
||||
<div class="chart-content-list">
|
||||
<n-scrollbar>
|
||||
<n-scrollbar trigger="none">
|
||||
<charts-item-box :menuOptions="packages.selectOptions"></charts-item-box>
|
||||
</n-scrollbar>
|
||||
</div>
|
||||
@ -119,6 +119,7 @@ $menuWidth: 65px;
|
||||
@include fetch-bg-color('background-color2-shallow');
|
||||
}
|
||||
.chart-content-list {
|
||||
width: 200px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
<help-outline-icon></help-outline-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<n-text>不支持「静态组件」和「分组」</n-text>
|
||||
<n-text>不支持「静态组件」</n-text>
|
||||
</n-tooltip>
|
||||
</template>
|
||||
<n-select
|
||||
@ -169,7 +169,27 @@ const fnDimensionsAndSource = (interactOn: InteractEventOn | undefined) => {
|
||||
|
||||
// 绑定组件列表
|
||||
const fnEventsOptions = (): Array<SelectOption | SelectGroupOption> => {
|
||||
const filterOptionList = chartEditStore.componentList.filter(item => {
|
||||
// 扁平化树形数据
|
||||
const fnFlattern = (
|
||||
data: Array<CreateComponentType | CreateComponentGroupType>
|
||||
): Array<CreateComponentType | CreateComponentGroupType> => {
|
||||
return data.reduce(
|
||||
(
|
||||
iter: Array<CreateComponentType | CreateComponentGroupType>,
|
||||
val: CreateComponentType | CreateComponentGroupType
|
||||
) => {
|
||||
if (val.groupList && val.groupList.length > 0) {
|
||||
iter.push(val)
|
||||
} else {
|
||||
iter.push(val)
|
||||
}
|
||||
return val.groupList ? [...iter, ...fnFlattern(val.groupList)] : iter
|
||||
},
|
||||
[]
|
||||
)
|
||||
}
|
||||
|
||||
const filterOptionList = fnFlattern(chartEditStore.componentList).filter(item => {
|
||||
// 排除自己
|
||||
const isNotSelf = item.id !== targetData.value.id
|
||||
// 排除静态组件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user