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 =
|
|
95
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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>
|