按钮组件说明

This commit is contained in:
Foming
2025-05-26 21:26:11 +08:00
parent 2371cd8c33
commit bdf3cc50f3
6 changed files with 18 additions and 9 deletions

View File

@@ -92,7 +92,8 @@ module.exports = {
children: [
{title: '说明', path: '/guide/community/report'},
{title: '搭建AJ-Report开发环境', path: '/guide/community/AC1688/搭建aj-report开发环境'},
{title: '大屏组件对齐和拖拽实现', path: '/guide/community/JiangHH/AJ_Report大屏设计时多组件对齐和拖拽移动实现'}
{title: '大屏组件对齐和拖拽实现', path: '/guide/community/JiangHH/AJ_Report大屏设计时多组件对齐和拖拽移动实现'},
{title: '按钮控制多图表联动实现', path: '/guide/community/JiangHH/按钮组件控制多条件组件联动图表实现'}
]
}
],

View File

@@ -214,3 +214,15 @@ function doHandleMonth(month) {
2、联动与被联动的图表必须有相同的数据格式。理论上多维向低维填充数据是没问题的但实际操作时带来的问题会很多因此当前版本高维图表都不支持图表组件联动。<br>
3、被联动的图表的动态数据集必须得有查询参数。说的简单一点就是联动始终都是数据集参数的传递图表只是数据的载体表象。<br>
4、使用后的情况和表单组件使用后情况一致。<br>
## 按钮联动
- 简介 <br>
按钮联动本质上是将表单组件(下拉框、时间筛选器)组件的查询参数提交给联动图表组件,实现多条件查询。
- 说明 <br>
![img12](../picture/chartsLinkage/img_12.png)
- 详细设计 <br>
[详细设计](https://ajreport.beliefteam.cn/report-doc/guide/community/JiangHH/按钮组件控制多条件组件联动图表实现)

View File

@@ -10,7 +10,7 @@
所以,设计一个按钮组件,在条件组件都输入完成的情况下,有按钮组件触发联动。
组件所需要的参数均有按钮组件提供,而按钮组件的参数条件组件传递,形成一个提交表单。
组件所需要的参数均有按钮组件提供,而按钮组件的参数条件组件(表单组件)传递,形成一个提交表单。
按钮组件的数据集跟图表的数据集选择保持一致,即参数保持一直.

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -37,7 +37,7 @@ export const widgetButton = {
name: 'fontSize',
required: false,
placeholder: '',
value: '26',
value: '16',
},
{
type: 'vue-color',
@@ -91,15 +91,11 @@ export const widgetButton = {
value: 'center'
},
{
type: 'el-select',
type: 'el-switch',
label: '是否圆角边框',
name: 'isBorderRadius',
required: false,
placeholder: '',
selectOptions: [
{ code: 'true', name: '是' },
{ code: 'false', name: '否' },
],
value: 'false',
},
{

View File

@@ -68,7 +68,7 @@ export default {
left: this.transStyle.left + "px",
top: this.transStyle.top + "px",
right: this.transStyle.right + "px",
borderRadius: this.transStyle.isBorderRadius === "true"? this.transStyle.borderRadius +"px" :"0px",
borderRadius: this.transStyle.isBorderRadius ? this.transStyle.borderRadius +"px" :"0px",
"text-align": this.transStyle.textAlign,
"font-weight": this.transStyle.fontWeight || "600",
"font-size": this.transStyle.fontSize + "px" || "12px",