@ued_fpi/data-visual 1.2.7 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,14 +6,15 @@ import downImg from './images/down.png.mjs';
6
6
 
7
7
  const _hoisted_1 = { class: "change-rate" };
8
8
  const _hoisted_2 = { class: "value" };
9
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("img", {
9
+ const _hoisted_3 = { class: "trend" };
10
+ const _hoisted_4 = ["src"];
11
+ const _hoisted_5 = { style: { "height": "10px" } };
12
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("img", {
10
13
  alt: "",
11
14
  class: "zao",
12
15
  src: _imports_0
13
16
  }, null, -1);
14
- const _hoisted_4 = { class: "trend" };
15
- const _hoisted_5 = ["src"];
16
- const _hoisted_6 = { class: "label" };
17
+ const _hoisted_7 = { class: "label" };
17
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
18
19
  __name: "index",
19
20
  props: {
@@ -124,16 +125,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
125
  style: normalizeStyle({ color: Number(item.rate) > 0 ? "var(--dv-color-danger)" : Number(item.rate) < 0 ? "var(--dv-color-success)" : "var(--dv-color-index)" })
125
126
  }, toDisplayString(item.rate) + "%", 5)
126
127
  ]),
127
- _hoisted_3,
128
- createElementVNode("div", _hoisted_4, [
128
+ createElementVNode("div", _hoisted_3, [
129
129
  withDirectives(createElementVNode("img", {
130
130
  alt: "",
131
131
  src: Number(item.rate) > 0 ? unref(upImg) : unref(downImg)
132
- }, null, 8, _hoisted_5), [
132
+ }, null, 8, _hoisted_4), [
133
133
  [vShow, Number(item.rate)]
134
+ ]),
135
+ withDirectives(createElementVNode("div", _hoisted_5, null, 512), [
136
+ [vShow, !Number(item.rate)]
134
137
  ])
135
138
  ]),
136
- createElementVNode("div", _hoisted_6, toDisplayString(item.label), 1)
139
+ _hoisted_6,
140
+ createElementVNode("div", _hoisted_7, toDisplayString(item.label), 1)
137
141
  ]);
138
142
  }), 128))
139
143
  ])
@@ -141,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
141
141
  emits("factorChange", item.code);
142
142
  keyPollutionData();
143
143
  };
144
- const option = ref([]);
144
+ const option = ref();
145
145
  onMounted(() => {
146
146
  if (props.isLazy)
147
147
  return;
@@ -1,3 +1,4 @@
1
+ import 'echarts-gl';
1
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
3
  params: {
3
4
  regionCode: string;
@@ -2,6 +2,7 @@ import { defineComponent, reactive, ref, onMounted, watch, nextTick, toRefs, ope
2
2
  import echarts from '../../utils/echarts/index.mjs';
3
3
  import { getPie3D } from '../../utils/echarts/3dChartOptions.mjs';
4
4
  import { getOutletsOnlineData } from './api/index.mjs';
5
+ import 'echarts-gl';
5
6
 
6
7
  const _hoisted_1 = { class: "dv-wgms-outlet-online" };
7
8
  const _hoisted_2 = { class: "toggle-list dv-wgms-flex-between-center" };
@@ -42,7 +43,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
43
  });
43
44
  const pieChart = ref();
44
45
  onMounted(async () => {
45
- await import('echarts-gl');
46
46
  getResData();
47
47
  });
48
48
  watch(() => props.params, () => {
@@ -45,7 +45,6 @@ export declare const pollutionSourcePieOptions: (pieData: Record<string, any>[])
45
45
  right: number;
46
46
  bottom: number;
47
47
  };
48
- color: string[];
49
48
  series: {
50
49
  name: string;
51
50
  type: string;
@@ -61,7 +61,6 @@ const pollutionSourcePieOptions = (pieData) => {
61
61
  right: 0,
62
62
  bottom: 0
63
63
  },
64
- color: ["#F84439", "#0062FF", "#2AC94F"],
65
64
  series: [
66
65
  {
67
66
  name: "企业档案",