bfg-common 1.3.371 → 1.3.372

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.
@@ -1127,8 +1127,8 @@
1127
1127
  </template>
1128
1128
  <template v-else-if="props.name === 'host'">
1129
1129
  <svg
1130
- width="24"
1131
- height="20"
1130
+ :width="props.width"
1131
+ :height="props.height"
1132
1132
  viewBox="0 0 24 20"
1133
1133
  fill="none"
1134
1134
  xmlns="http://www.w3.org/2000/svg"
@@ -1178,8 +1178,8 @@
1178
1178
  </template>
1179
1179
  <template v-else-if="props.name === 'vm'">
1180
1180
  <svg
1181
- width="24"
1182
- height="22"
1181
+ :width="props.width"
1182
+ :height="props.height"
1183
1183
  viewBox="0 0 24 22"
1184
1184
  fill="none"
1185
1185
  xmlns="http://www.w3.org/2000/svg"
@@ -1207,8 +1207,8 @@
1207
1207
  </template>
1208
1208
  <template v-else-if="props.name === 'datastore'">
1209
1209
  <svg
1210
- width="20"
1211
- height="24"
1210
+ :width="props.width"
1211
+ :height="props.height"
1212
1212
  viewBox="0 0 20 24"
1213
1213
  fill="none"
1214
1214
  xmlns="http://www.w3.org/2000/svg"
@@ -1259,8 +1259,8 @@
1259
1259
  </template>
1260
1260
  <template v-else-if="props.name === 'network'">
1261
1261
  <svg
1262
- width="24"
1263
- height="24"
1262
+ :width="props.width"
1263
+ :height="props.height"
1264
1264
  viewBox="0 0 24 24"
1265
1265
  fill="none"
1266
1266
  xmlns="http://www.w3.org/2000/svg"
@@ -1307,9 +1307,17 @@
1307
1307
  </template>
1308
1308
 
1309
1309
  <script setup lang="ts">
1310
- const props = defineProps<{
1311
- name: string | undefined
1312
- }>()
1310
+ const props = withDefaults(
1311
+ defineProps<{
1312
+ name: string
1313
+ width?: string
1314
+ height?: string
1315
+ }>(),
1316
+ {
1317
+ width: '24',
1318
+ height: '24',
1319
+ }
1320
+ )
1313
1321
  </script>
1314
1322
 
1315
1323
  <style scoped lang="scss"></style>
@@ -8,7 +8,13 @@
8
8
  @click="changeLastNavigation"
9
9
  @contextmenu="changeLastNavigation"
10
10
  >
11
- <span :class="['unit-icon', props.item.iconClassName]" />
11
+ <span
12
+ v-if="props.item.iconClassName"
13
+ :class="['unit-icon', props.item.iconClassName]"
14
+ />
15
+ <span v-else-if="props.item.iconName" class="icon-2">
16
+ <atoms-the-icon2 :name="props.item.iconName" width="34" height="34" />
17
+ </span>
12
18
  <div class="unit-text" :title="props.item.text">
13
19
  {{ props.item.text }}
14
20
  </div>
@@ -74,6 +80,10 @@ const changeLastNavigation = (): void => {
74
80
  height: 34px;
75
81
  }
76
82
  }
83
+ .icon-2 {
84
+ margin: 0 10px 15px 10px;
85
+ color: var(--global-font-color3);
86
+ }
77
87
  &-text {
78
88
  color: var(--global-font-color3);
79
89
  font-size: 13px;
@@ -1,6 +1,7 @@
1
1
  export interface UI_I_BlockItem {
2
2
  text: string
3
3
  iconClassName: string
4
+ iconName?: string
4
5
  navigateTo?: string
5
6
  nav?: string
6
7
  testId?: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.371",
4
+ "version": "1.3.372",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",