bfg-common 1.1.88 → 1.1.90

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.
@@ -74,7 +74,7 @@ const socketOptions = computed<number[]>(() => {
74
74
  const isCommonDivisor = props.selectedCpus.every(
75
75
  (cpu) => i <= cpu && (cpu % i === 0 || i === 1)
76
76
  )
77
- if (isCommonDivisor) {
77
+ if (isCommonDivisor || props.disabled) {
78
78
  result.push(i)
79
79
  }
80
80
  }
@@ -83,7 +83,7 @@ const socketOptions = computed<number[]>(() => {
83
83
  watch(
84
84
  socketOptions,
85
85
  () => {
86
- !socketOptions.value.includes(selectedCorePerSocketLocal.value) &&
86
+ !socketOptions.value.includes(selectedCorePerSocketLocal.value) && !props.disabled &&
87
87
  (selectedCorePerSocketLocal.value = 1)
88
88
  },
89
89
  { deep: true }
@@ -170,7 +170,8 @@ const isCpuDisabled = computed<boolean>(
170
170
  )
171
171
  watch(selectedCpu, (newValue) => {
172
172
  selectedCpu.value = Math.floor(+newValue)
173
- if (!(selectedCpu.value % selectedCorePerSocket.value) || props.isEdit) return
173
+ if (!(selectedCpu.value % selectedCorePerSocket.value) || isDisabled.value)
174
+ return
174
175
  selectedCorePerSocket.value = 1
175
176
  })
176
177
  const maxCpuOptions = computed<UI_I_OptionItem[]>(() =>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.1.88",
4
+ "version": "1.1.90",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",