bfg-common 1.3.56 → 1.3.57

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.
@@ -2179,5 +2179,6 @@
2179
2179
  "features": "特征",
2180
2180
  "computePolicies": "计算策略",
2181
2181
  "resourceSettings": "资源设置",
2182
- "versioning": "版本控制"
2182
+ "versioning": "版本控制",
2183
+ "suppressWarning": "抑制警告"
2183
2184
  }
@@ -3,15 +3,20 @@
3
3
  <div class="alert-items">
4
4
  <slot v-if="$slots.headline" name="headline" :icon="iconName" />
5
5
 
6
- <div v-for="(item, key) in items" :key="key" class="alert-item">
7
- <div v-if="!$slots.headline" class="alert-icon-wrapper">
8
- <atoms-the-icon :class="['alert-icon', iconName]" :name="iconName" />
9
- </div>
6
+ <slot name="body">
7
+ <div v-for="(item, key) in items" :key="key" class="alert-item">
8
+ <div v-if="!$slots.headline" class="alert-icon-wrapper">
9
+ <atoms-the-icon
10
+ :class="['alert-icon', iconName]"
11
+ :name="iconName"
12
+ />
13
+ </div>
10
14
 
11
- <slot :item="item" :index="key">
12
- <span class="alert-text">{{ item }}</span>
13
- </slot>
14
- </div>
15
+ <slot :item="item" :index="key">
16
+ <span class="alert-text">{{ item }}</span>
17
+ </slot>
18
+ </div>
19
+ </slot>
15
20
  </div>
16
21
  <button
17
22
  v-if="!hideCloseIcon"
@@ -31,7 +36,7 @@ const props = withDefaults(
31
36
  defineProps<{
32
37
  testId?: string
33
38
  status: 'alert-danger' | 'alert-warning' | 'alert-info' | 'alert-success'
34
- items: string[]
39
+ items: string[] | any
35
40
  hideCloseIcon?: boolean
36
41
  }>(),
37
42
  { testId: 'ui-alert' }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.56",
4
+ "version": "1.3.57",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",