bfg-common 1.3.320 → 1.3.321

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.
@@ -91,24 +91,11 @@ const headItems = computed<UI_I_HeadItem[]>(() =>
91
91
  table[props.tableMode].headItems(localization.value)
92
92
  )
93
93
 
94
- const bodyItems = ref<UI_I_BodyItem[][]>([])
95
- watch(
96
- () => props.dataTable,
97
- (newValue) => {
98
- if (!newValue?.length) {
99
- bodyItems.value = []
100
- return
101
- }
102
-
103
- const tableData = ['sensor'].includes(props.tableMode) ? newValue : [] // TODO временно так
94
+ const bodyItems = computed<UI_I_BodyItem[][]>(() => {
95
+ const tableData = ['sensor'].includes(props.tableMode) ? props.dataTable : [] // TODO временно так
104
96
 
105
- bodyItems.value = table[props.tableMode].bodyItems(
106
- tableData,
107
- localization.value
108
- )
109
- },
110
- { deep: true, immediate: true }
111
- )
97
+ return table[props.tableMode].bodyItems(tableData, localization.value)
98
+ })
112
99
  </script>
113
100
 
114
101
  <style lang="scss" scoped>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.320",
4
+ "version": "1.3.321",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",