vue2-client 1.10.30 → 1.10.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.10.30",
3
+ "version": "1.10.31",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -17,10 +17,10 @@
17
17
  <!-- <slot :name="column.slots.customRender">{{ card[config.bandage] }}</slot>-->
18
18
  <!-- </template>-->
19
19
  <!-- </div>-->
20
- <div v-if="config.bandage && card[config.bandage.ribbon] && card[config.bandage.ribbonColor]"
20
+ <div v-if="config && card[config.ribbon]"
21
21
  class="ribbon"
22
- :style="{ backgroundColor: getRibbonColor(card[config.bandage.ribbonColor]) }">
23
- {{ card[config.bandage.ribbon] }}
22
+ :style="{ backgroundColor: getRibbonColor(card[config.ribbonColor]) }">
23
+ {{ card[config.ribbon] }}
24
24
  </div>
25
25
  <!-- 自定义标题 -->
26
26
  <template #title>
@@ -33,6 +33,7 @@
33
33
  <div class="title-main">
34
34
  <span class="title-name">{{ card[config.title] }}</span>
35
35
  <span class="title-info">{{ card[config.title2] }}</span>
36
+ <span class="title-title3">{{ card[config.title3] }}</span>
36
37
  </div>
37
38
  <div class="additional-info" v-if="card[config.subtitle2] || card[config.subtitle3] || card[config.subtitle4]">
38
39
  <a-tooltip placement="top" v-if="card[config.subtitle2]">
@@ -51,7 +52,7 @@
51
52
  <!-- 主体 -->
52
53
  <div class="body">
53
54
  <div class="body-text" v-if="card[config.text]">
54
- <a-tooltip>
55
+ <a-tooltip :title="card[config.text]">
55
56
  <span class="text-ellipsis">{{ card[config.text] }}</span>
56
57
  </a-tooltip>
57
58
  </div>
@@ -94,8 +95,8 @@
94
95
  </template>
95
96
  </div>
96
97
  <!-- 下方按钮 -->
97
- <div class="footer">
98
- <a-row align="middle">
98
+ <template #actions>
99
+ <a-row align="middle" class="custom-actions">
99
100
  <template v-for="(item, footerIndex) in config.footer">
100
101
  <a-col :key="'footer_' + footerIndex" class="footer-item" :span="11" @click="clickFooter(card, item.emit)">
101
102
  <span>
@@ -112,7 +113,7 @@
112
113
  </a-col>
113
114
  </template>
114
115
  </a-row>
115
- </div>
116
+ </template>
116
117
  </a-card>
117
118
  </template>
118
119
  </div>
@@ -220,14 +221,13 @@ export default {
220
221
  id: '未获取到配置',
221
222
  title: '未获取到配置',
222
223
  title2: '未获取到配置',
224
+ title3: '未获取到配置',
223
225
  subtitle2: '未获取到配置',
224
226
  subtitle3: '未获取到配置',
225
227
  subtitle4: '未获取到配置',
226
228
  text: '未获取到配置',
227
- bandage: {
228
- ribbon: '未获取到配置',
229
- ribbonColor: '未获取到配置'
230
- },
229
+ ribbon: '未获取到配置',
230
+ ribbonColor: '未获取到配置',
231
231
  content: [
232
232
  {
233
233
  label: '未获取到配置',
@@ -388,9 +388,13 @@ export default {
388
388
  max-width: 300px;
389
389
  border: 2px solid rgb(244,244,244);
390
390
  border-radius: 5px;
391
- margin: 5px;
391
+ margin: 2px;
392
392
  overflow: hidden;
393
393
 
394
+ ::v-deep .ant-card-body {
395
+ padding: 15px !important; // 使用 !important 确保样式覆盖
396
+ }
397
+
394
398
  .header {
395
399
  width: 100%;
396
400
  background-color: rgb(244,244,244);
@@ -417,7 +421,7 @@ export default {
417
421
  }
418
422
 
419
423
  .body-item {
420
- padding: 5px 15px;
424
+ padding: 3px 5px;
421
425
  }
422
426
 
423
427
  .body-split {
@@ -465,29 +469,6 @@ export default {
465
469
  color: black;
466
470
  }
467
471
  }
468
-
469
- .footer {
470
- padding: 5px 15px;
471
- background-color: rgb(244,244,244);
472
- margin: 0 -10px -10px -10px;
473
- .footer-icon {
474
- margin-right: 5px;
475
- }
476
-
477
- .footer-item-split {
478
- color: rgba(220, 220, 220, 0.59);
479
- }
480
-
481
- .footer-item {
482
- color: rgba(117, 117, 117, 0.8);
483
- font-size: 1em;
484
- }
485
-
486
- .footer-item:hover {
487
- color: rgb( 24,144,255 );
488
- cursor: pointer;
489
- }
490
- }
491
472
  }
492
473
 
493
474
  .custom-title {
@@ -497,7 +478,7 @@ export default {
497
478
 
498
479
  .title-id {
499
480
  flex-shrink: 0;
500
- width: 60px;
481
+ width: 65px;
501
482
  color: #1890ff;
502
483
  font-size: 16px;
503
484
  font-weight: bold;
@@ -529,6 +510,10 @@ export default {
529
510
  align-items: center;
530
511
  gap: 8px;
531
512
  .title-info {
513
+ margin-left: 6px;
514
+ color: #808080;
515
+ }
516
+ .title-title3 {
532
517
  color: #808080;
533
518
  }
534
519
  }
@@ -557,6 +542,26 @@ export default {
557
542
  transform-origin: top right;
558
543
  z-index: 1;
559
544
  }
545
+
546
+ .custom-actions {
547
+ .footer-icon {
548
+ margin-right: 5px;
549
+ }
550
+
551
+ .footer-item-split {
552
+ color: rgba(220, 220, 220, 0.59);
553
+ }
554
+
555
+ .footer-item {
556
+ color: rgba(117, 117, 117, 0.8);
557
+ font-size: 1em;
558
+ }
559
+
560
+ .footer-item:hover {
561
+ color: rgb( 24,144,255 );
562
+ cursor: pointer;
563
+ }
564
+ }
560
565
  }
561
566
 
562
567
  .ellipsis {