Compare commits

...

6 Commits

Author SHA1 Message Date
Ming
9b1c4fcf7a fix: 支持分组 2023-05-09 10:13:48 +08:00
Ming
30d1e7dda2 feat: 交互绑定组件,可以绑定分组内组件 2023-05-09 10:09:26 +08:00
Ming
9307614a94 fix: 补充枚举字段 2023-05-09 10:08:47 +08:00
Ming
ad563d2127 docs: md 2023-05-09 09:50:13 +08:00
Ming
ddc86c9fa2 perf: 优化颜色 2023-05-09 09:46:00 +08:00
Ming
3ececee817 fix: 小组件外层盒子宽度不一致 2023-05-09 09:44:14 +08:00
5 changed files with 31 additions and 9 deletions

View File

@ -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 |
已完成图表:

View File

@ -140,6 +140,7 @@ export interface CreateComponentType extends PublicConfigType, requestConfig {
key: string
chartConfig: ConfigType
option: GlobalThemeJsonType
groupList?: Array<CreateComponentType>
}
// 组件成组实例类

View File

@ -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"
},

View File

@ -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;

View File

@ -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
//