bfg-common 1.4.537 → 1.4.538
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.
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<atoms-tooltip-error
|
|
9
|
-
:has-error="!!props.errorText"
|
|
10
|
-
:selector="`.vm-wizard-disk-device-
|
|
11
|
-
@remove="emits('remove-error')"
|
|
12
|
-
>
|
|
13
|
-
<template #elem>
|
|
14
|
-
<div class="select">
|
|
15
|
-
<select
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const props = defineProps<{
|
|
45
|
-
index: number
|
|
46
|
-
disabled: boolean
|
|
47
|
-
errorText: string
|
|
48
|
-
|
|
49
|
-
}>()
|
|
50
|
-
const emits = defineEmits<{
|
|
51
|
-
(event: 'remove-error'): void
|
|
52
|
-
}>()
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<atoms-stack-block :has-children="false">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
{{ localization.common.diskMode }}
|
|
6
|
+
</template>
|
|
7
|
+
<template #stackBlockContent>
|
|
8
|
+
<atoms-tooltip-error
|
|
9
|
+
:has-error="!!props.errorText"
|
|
10
|
+
:selector="`.vm-wizard-disk-device-mode-field-${props.index}`"
|
|
11
|
+
@remove="emits('remove-error')"
|
|
12
|
+
>
|
|
13
|
+
<template #elem>
|
|
14
|
+
<div class="select">
|
|
15
|
+
<select
|
|
16
|
+
v-model="diskMode"
|
|
17
|
+
:class="`vm-wizard-disk-device-mode-field-${props.index}`"
|
|
18
|
+
>
|
|
19
|
+
<option
|
|
20
|
+
v-for="item in diskModeOptions"
|
|
21
|
+
:key="item.value"
|
|
22
|
+
:value="item.value"
|
|
23
|
+
>
|
|
24
|
+
{{ item.text }}
|
|
25
|
+
</option>
|
|
26
|
+
</select>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<template #content>{{ props.errorText }}</template>
|
|
30
|
+
</atoms-tooltip-error>
|
|
31
|
+
</template>
|
|
32
|
+
</atoms-stack-block>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup lang="ts">
|
|
37
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
38
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
39
|
+
|
|
40
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
41
|
+
|
|
42
|
+
const diskMode = defineModel<string>('disk-mode')
|
|
43
|
+
|
|
44
|
+
const props = defineProps<{
|
|
45
|
+
index: number
|
|
46
|
+
disabled: boolean
|
|
47
|
+
errorText: string
|
|
48
|
+
diskModeOptions: UI_I_OptionItem[]
|
|
49
|
+
}>()
|
|
50
|
+
const emits = defineEmits<{
|
|
51
|
+
(event: 'remove-error'): void
|
|
52
|
+
}>()
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style scoped></style>
|