bfg-common 1.4.56 → 1.4.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.
@@ -38,16 +38,26 @@ const emits = defineEmits<{
38
38
  (event: 'update:enable-cpu-hot-add', value: boolean): void
39
39
  }>()
40
40
 
41
- const enableCpuHotAddLocal = computed<boolean>({
42
- get() {
43
- console.log(props.enableCpuHotAdd, 111)
44
- return props.enableCpuHotAdd
45
- },
46
- set(newValue) {
47
- console.log(newValue, 222)
48
- emits('update:enable-cpu-hot-add', newValue)
49
- },
41
+ const enableCpuHotAddLocal = defineModel('enableCpuHotAddLocal', {
42
+ required: true,
50
43
  })
44
+ watch(
45
+ enableCpuHotAddLocal,
46
+ (newValue) => {
47
+ console.log(newValue, 111)
48
+ },
49
+ { immediate: true }
50
+ )
51
+ // const enableCpuHotAddLocal = computed<boolean>({
52
+ // get() {
53
+ // console.log(props.enableCpuHotAdd, 111)
54
+ // return props.enableCpuHotAdd
55
+ // },
56
+ // set(newValue) {
57
+ // console.log(newValue, 222)
58
+ // emits('update:enable-cpu-hot-add', newValue)
59
+ // },
60
+ // })
51
61
  </script>
52
62
 
53
63
  <style scoped lang="scss">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.56",
4
+ "version": "1.4.57",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",