diff --git a/src/views/dashboard/graphs/Area.vue b/src/views/dashboard/graphs/Area.vue index 1c4d14f0..2840a108 100644 --- a/src/views/dashboard/graphs/Area.vue +++ b/src/views/dashboard/graphs/Area.vue @@ -29,7 +29,15 @@ defineProps({ }, intervalTime: { type: Array as PropType, default: () => [] }, config: { - type: Object as PropType, + type: Object as PropType< + AreaConfig & { + filters: { + value: number | string; + dataIndex: number; + sourceId: string; + }; + } & { id: string } + >, default: () => ({}), }, }); diff --git a/src/views/dashboard/graphs/Bar.vue b/src/views/dashboard/graphs/Bar.vue index aed49ef3..6eed6459 100644 --- a/src/views/dashboard/graphs/Bar.vue +++ b/src/views/dashboard/graphs/Bar.vue @@ -13,15 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> diff --git a/src/views/dashboard/graphs/Line.vue b/src/views/dashboard/graphs/Line.vue index 34091219..e84b026d 100644 --- a/src/views/dashboard/graphs/Line.vue +++ b/src/views/dashboard/graphs/Line.vue @@ -162,6 +162,14 @@ function getOption() { enterable: true, confine: true, extraCssText: "max-height: 300px; overflow: auto; border: none;", + axisPointer: { + lineStyle: { + width: 2, + }, + label: { + show: false, + }, + }, }; const tips = { formatter(params: any) {