lw-cdp-ui 1.3.63 → 1.3.65

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.
@@ -5,33 +5,29 @@
5
5
  :key="index"
6
6
  class="chart-title-card"
7
7
  :style="{ height,textAlign: item.setting?.title?.left || 'left' }">
8
- <el-statistic :value="item.current">
9
- <template #title>
10
- <div class="left"
11
- :style="{ ...titleLeftRight, padding: item.setting?.title?.padding?.map(num => num + 'px').join(' ') || 0 }"
12
- v-if="item.setting.title?.show">
13
- <span :style="{
8
+ <div class="title-top"
9
+ :style="{ textAlign: item.setting?.title?.left || 'left', padding: item.setting?.title?.padding?.map(num => num + 'px').join(' ') || 0 }"
10
+ v-if="item.setting.title?.show">
11
+ <span :style="{
14
12
  color: item.setting.title?.textStyle?.color || item.color,
15
13
  fontWeight: item.setting.title?.textStyle?.fontWeight || 'normal',
16
14
  fontSize: item.setting.title?.textStyle?.fontSize + 'px' || '17px' }">{{ item.title }}</span>
17
- <el-tooltip v-if="item.tooltip"
18
- effect="dark"
19
- :content="item.tooltip"
20
- placement="top">
21
- <el-icon class="icon-tooltip"><el-icon-warning /></el-icon>
22
- </el-tooltip>
23
- </div>
24
-
25
- <strong v-if="item.setting.legend?.show"
26
- class="title"
27
- :style="{
15
+ <el-tooltip v-if="item.tooltip"
16
+ effect="dark"
17
+ :content="item.tooltip"
18
+ placement="top">
19
+ <el-icon class="icon-tooltip"><el-icon-warning /></el-icon>
20
+ </el-tooltip>
21
+ </div>
22
+ <div class="statistic-current"
23
+ :style="{
28
24
  ...legendLeftRight,
29
25
  color: item.setting.legend?.textStyle?.color || item.color,
30
26
  padding: item.setting?.legend?.padding?.map(num => num + 'px').join(' ') || 0,
31
27
  fontWeight: item.setting.legend?.textStyle?.fontWeight || 'bold',
32
- fontSize: item.setting.legend?.textStyle?.fontSize + 'px' || '17px'}">{{ item.index }}</strong>
33
- </template>
34
- </el-statistic>
28
+ fontSize: item.setting.legend?.textStyle?.fontSize + 'px' || '17px'}">
29
+ {{ item.current?.toLocaleString('en-US') }}
30
+ </div>
35
31
 
36
32
  <div v-if="parsedData.length > 1"
37
33
  class="statistic-footer">
@@ -153,7 +149,6 @@ export default {
153
149
  width: 100%;
154
150
  justify-content: center;
155
151
  .chart-title-card {
156
- padding: 35px 15px 15px;
157
152
  flex: 1;
158
153
  border-radius: 5px;
159
154
  min-height: 110px;
@@ -173,12 +168,7 @@ export default {
173
168
  line-height: 50px;
174
169
  font-size: 40px;
175
170
  }
176
- .left {
177
- position: absolute;
178
- left: 10px;
179
- top: 0;
180
- }
181
- .title {
171
+ .statistic-current {
182
172
  font-size: 17px;
183
173
  position: absolute;
184
174
  right: 0;