@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.
@@ -10,14 +10,15 @@ const down = require('./images/down.png.js');
10
10
 
11
11
  const _hoisted_1 = { class: "change-rate" };
12
12
  const _hoisted_2 = { class: "value" };
13
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("img", {
13
+ const _hoisted_3 = { class: "trend" };
14
+ const _hoisted_4 = ["src"];
15
+ const _hoisted_5 = { style: { "height": "10px" } };
16
+ const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("img", {
14
17
  alt: "",
15
18
  class: "zao",
16
19
  src: zao.default
17
20
  }, null, -1);
18
- const _hoisted_4 = { class: "trend" };
19
- const _hoisted_5 = ["src"];
20
- const _hoisted_6 = { class: "label" };
21
+ const _hoisted_7 = { class: "label" };
21
22
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
23
  __name: "index",
23
24
  props: {
@@ -128,16 +129,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
128
129
  style: vue.normalizeStyle({ color: Number(item.rate) > 0 ? "var(--dv-color-danger)" : Number(item.rate) < 0 ? "var(--dv-color-success)" : "var(--dv-color-index)" })
129
130
  }, vue.toDisplayString(item.rate) + "%", 5)
130
131
  ]),
131
- _hoisted_3,
132
- vue.createElementVNode("div", _hoisted_4, [
132
+ vue.createElementVNode("div", _hoisted_3, [
133
133
  vue.withDirectives(vue.createElementVNode("img", {
134
134
  alt: "",
135
135
  src: Number(item.rate) > 0 ? vue.unref(up.default) : vue.unref(down.default)
136
- }, null, 8, _hoisted_5), [
136
+ }, null, 8, _hoisted_4), [
137
137
  [vue.vShow, Number(item.rate)]
138
+ ]),
139
+ vue.withDirectives(vue.createElementVNode("div", _hoisted_5, null, 512), [
140
+ [vue.vShow, !Number(item.rate)]
138
141
  ])
139
142
  ]),
140
- vue.createElementVNode("div", _hoisted_6, vue.toDisplayString(item.label), 1)
143
+ _hoisted_6,
144
+ vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(item.label), 1)
141
145
  ]);
142
146
  }), 128))
143
147
  ])
@@ -145,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
145
145
  emits("factorChange", item.code);
146
146
  keyPollutionData();
147
147
  };
148
- const option = vue.ref([]);
148
+ const option = vue.ref();
149
149
  vue.onMounted(() => {
150
150
  if (props.isLazy)
151
151
  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;
@@ -6,6 +6,7 @@ const vue = require('vue');
6
6
  const index$1 = require('../../utils/echarts/index.js');
7
7
  const _3dChartOptions = require('../../utils/echarts/3dChartOptions.js');
8
8
  const index = require('./api/index.js');
9
+ require('echarts-gl');
9
10
 
10
11
  const _hoisted_1 = { class: "dv-wgms-outlet-online" };
11
12
  const _hoisted_2 = { class: "toggle-list dv-wgms-flex-between-center" };
@@ -46,7 +47,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
47
  });
47
48
  const pieChart = vue.ref();
48
49
  vue.onMounted(async () => {
49
- await import('echarts-gl');
50
50
  getResData();
51
51
  });
52
52
  vue.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;
@@ -65,7 +65,6 @@ const pollutionSourcePieOptions = (pieData) => {
65
65
  right: 0,
66
66
  bottom: 0
67
67
  },
68
- color: ["#F84439", "#0062FF", "#2AC94F"],
69
68
  series: [
70
69
  {
71
70
  name: "企业档案",
@@ -75,6 +75,8 @@ html {
75
75
  --dv-color-success-70: #86d65e;
76
76
  --dv-color-success-80: #75d048;
77
77
  --dv-color-success-110: #429d15;
78
+
79
+ /* text */
78
80
  --dv-color-text-disable: #c0c4cc; /* 不可用 */
79
81
  --dv-color-text-placeholder: #a8abb2; /* 占位符 */
80
82
  --dv-color-text-primary: #303133; /* 主要文字 */
@@ -180,7 +182,7 @@ html.dark {
180
182
  --dv-color-text-disable: rgba(255, 255, 255, 0.6); /* 不可用 */
181
183
  --dv-color-text-placeholder: rgba(255, 255, 255, 0.3); /* 占位符 */
182
184
  --dv-color-text-primary: #fff; /* 主要文字 */
183
- --dv-color-text-regular: #fff; /* 常规文字 */
185
+ --dv-color-text-regular: #cfd3dc; /* 常规文字 */
184
186
  --dv-color-text-secondary: rgba(255, 255, 255, 0.6); /* 次要文字 */
185
187
  --dv-color-warning: #fdbd00;
186
188
  --dv-color-warning-10: #1a1300;