bfg-common 1.0.72 → 1.0.73
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/components/common/select/radio/RadioGroup.vue +1 -0
- package/components/common/select/radio/models/interfaces.ts +0 -5
- package/components/common/wizards/datastore/add/nfs/version/Version.vue +0 -19
- package/components/common/wizards/datastore/add/sharedStorm/version/Version.vue +6 -37
- package/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions.ts +6 -4
- package/package.json +1 -1
|
@@ -4,25 +4,6 @@
|
|
|
4
4
|
v-model="selectedVersion"
|
|
5
5
|
:options="nfsVersion"
|
|
6
6
|
/>
|
|
7
|
-
|
|
8
|
-
<!-- <div-->
|
|
9
|
-
<!-- v-for="item in nfsVersion"-->
|
|
10
|
-
<!-- :key="item.value"-->
|
|
11
|
-
<!-- class="nfs-version__inner radio"-->
|
|
12
|
-
<!-- >-->
|
|
13
|
-
<!-- <input-->
|
|
14
|
-
<!-- :id="item.label"-->
|
|
15
|
-
<!-- v-model="selectedVersion"-->
|
|
16
|
-
<!-- type="radio"-->
|
|
17
|
-
<!-- :value="item.value"-->
|
|
18
|
-
<!-- :disabled="item.disabled"-->
|
|
19
|
-
<!-- />-->
|
|
20
|
-
<!-- <label :for="item.label">-->
|
|
21
|
-
<!-- {{ item.label }}-->
|
|
22
|
-
<!-- </label>-->
|
|
23
|
-
|
|
24
|
-
<!-- <div class="nfs-version__desc">{{ item.desc }}</div>-->
|
|
25
|
-
<!-- </div>-->
|
|
26
7
|
</section>
|
|
27
8
|
</template>
|
|
28
9
|
|
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="nfs-version">
|
|
3
|
-
<
|
|
4
|
-
v-
|
|
5
|
-
:
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
<input
|
|
9
|
-
:id="item.label"
|
|
10
|
-
v-model="selectedVersion"
|
|
11
|
-
type="radio"
|
|
12
|
-
:value="item.value"
|
|
13
|
-
:disabled="item.disabled"
|
|
14
|
-
/>
|
|
15
|
-
<label :for="item.label">
|
|
16
|
-
{{ item.label }}
|
|
17
|
-
</label>
|
|
18
|
-
|
|
19
|
-
<div class="nfs-version__desc">{{ item.desc }}</div>
|
|
20
|
-
</div>
|
|
3
|
+
<common-select-radio-group
|
|
4
|
+
v-model="selectedVersion"
|
|
5
|
+
:options="vmfsVersion"
|
|
6
|
+
/>
|
|
21
7
|
</section>
|
|
22
8
|
</template>
|
|
23
9
|
|
|
24
10
|
<script lang="ts" setup>
|
|
25
11
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
26
|
-
import {
|
|
12
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
27
13
|
import { UI_T_VmfsType } from '~/components/common/wizards/datastore/add/models/types'
|
|
28
14
|
import { vmfsVersionFunc } from '~/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions'
|
|
29
15
|
|
|
@@ -35,9 +21,7 @@ const emits = defineEmits<{
|
|
|
35
21
|
(event: 'update:version', value: UI_T_VmfsType): void
|
|
36
22
|
}>()
|
|
37
23
|
|
|
38
|
-
const vmfsVersion =
|
|
39
|
-
vmfsVersionFunc(localization.value)
|
|
40
|
-
)
|
|
24
|
+
const vmfsVersion = ref<UI_I_RadioOption[]>(vmfsVersionFunc(localization.value))
|
|
41
25
|
|
|
42
26
|
const selectedVersion = computed<UI_T_VmfsType>({
|
|
43
27
|
get() {
|
|
@@ -51,20 +35,5 @@ const selectedVersion = computed<UI_T_VmfsType>({
|
|
|
51
35
|
|
|
52
36
|
<style lang="scss" scoped>
|
|
53
37
|
.nfs-version {
|
|
54
|
-
&__desc {
|
|
55
|
-
margin-left: 22px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.radio {
|
|
59
|
-
margin-bottom: 5px;
|
|
60
|
-
&:nth-child(2) {
|
|
61
|
-
margin-top: 10px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.radio {
|
|
65
|
-
}
|
|
66
|
-
input[type='radio']:focus:checked + label::before,
|
|
67
|
-
input[type='radio']:focus + label::before {
|
|
68
|
-
box-shadow: inset 0 0 0 0.25rem #0094d2;
|
|
69
38
|
}
|
|
70
39
|
</style>
|
package/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions.ts
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
2
|
-
import {
|
|
2
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
3
3
|
|
|
4
|
-
export const vmfsVersionFunc = (
|
|
4
|
+
export const vmfsVersionFunc = (
|
|
5
|
+
localization: UI_I_Localization
|
|
6
|
+
): UI_I_RadioOption[] => {
|
|
5
7
|
return [
|
|
6
8
|
{
|
|
7
9
|
label: 'VMFS 6',
|
|
8
10
|
value: 'vmfs-6',
|
|
9
11
|
disabled: false,
|
|
10
|
-
|
|
12
|
+
description: localization.vmfsVersionDesc1,
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
label: 'VMFS 5',
|
|
14
16
|
value: 'vmfs-5',
|
|
15
17
|
disabled: false,
|
|
16
|
-
|
|
18
|
+
description: localization.vmfsVersionDesc2,
|
|
17
19
|
},
|
|
18
20
|
]
|
|
19
21
|
}
|