imeik-bizui 2.6.1 → 2.6.2

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.
@@ -17,7 +17,12 @@
17
17
  <div class="fpb-result">
18
18
  <div class="fpb-result__main">
19
19
  <div class="fpb-result__heading">
20
- <span class="fpb-mark" aria-hidden="true">{{ statusMark }}</span>
20
+ <img
21
+ class="fpb-mark"
22
+ :src="statusIconSrc"
23
+ :alt="resolvedStatusLabel"
24
+ aria-hidden="true"
25
+ >
21
26
  <h2 class="fpb-result__title">{{ resolvedResultTitle }}</h2>
22
27
  <span class="fpb-badge">{{ resolvedStatusLabel }}</span>
23
28
  <button
@@ -134,6 +139,15 @@ import {
134
139
  formatNumber
135
140
  } from './utils'
136
141
  import FloorPriceSectionPager from './FloorPriceSectionPager.vue'
142
+ import iconBlocked from '../assets/icon-blocked.png'
143
+ import iconPass from '../assets/icon-pass.png'
144
+ import iconExempt from '../assets/icon-exempt.png'
145
+
146
+ const STATUS_ICON = {
147
+ [PANEL_STATE.BLOCKED]: iconBlocked,
148
+ [PANEL_STATE.PASS]: iconPass,
149
+ [PANEL_STATE.EXEMPT]: iconExempt
150
+ }
137
151
 
138
152
  export default {
139
153
  name: 'FloorPriceBoard',
@@ -272,10 +286,8 @@ export default {
272
286
  productCount: this.displayProducts.length
273
287
  }).description
274
288
  },
275
- statusMark() {
276
- if (this.resolvedStatus === PANEL_STATE.PASS) return '✓'
277
- if (this.resolvedStatus === PANEL_STATE.BLOCKED) return '!'
278
- return 'i'
289
+ statusIconSrc() {
290
+ return STATUS_ICON[this.resolvedStatus] || STATUS_ICON[PANEL_STATE.PASS]
279
291
  },
280
292
  panelThemeClass() {
281
293
  return `fpb-panel--${this.resolvedStatus}`
@@ -468,18 +480,13 @@ export default {
468
480
  }
469
481
 
470
482
  .fpb-mark {
471
- display: grid;
472
- place-items: center;
483
+ display: block;
473
484
  flex: none;
474
485
  width: 28px;
475
486
  height: 28px;
476
- color: var(--fpb-state);
477
- background: #fff;
478
- border: 1px solid var(--fpb-state-border);
479
- border-radius: 50%;
480
- font-size: 15px;
481
- font-weight: 700;
482
- line-height: 1;
487
+ object-fit: contain;
488
+ user-select: none;
489
+ pointer-events: none;
483
490
  }
484
491
 
485
492
  .fpb-result__title {