16
16
:valueFilter =" state.valueFilter"
17
17
:restrictedFromDragDrop =" state.restrictedFromDragDrop"
18
18
:fixedFromDragDrop =" state.fixedFromDragDrop"
19
- :hideFilterBoxOfUnusedAttributes =" state.hideFilterBoxOfUnusedAttributes"
19
+ :hideFilterBoxOfUnusedAttributes ="
20
+ state.hideFilterBoxOfUnusedAttributes
21
+ "
20
22
:zIndices =" pivotUiState.zIndices"
23
+ :maxZIndex =" pivotUiState.maxZIndex"
21
24
:openStatus =" pivotUiState.openStatus"
22
25
@update:zIndexOfFilterBox =" onMoveFilterBoxToTop"
23
26
@update:unselectedFilterValues =" onUpdateValueFilter"
54
57
:valueFilter =" state.valueFilter"
55
58
:restrictedFromDragDrop =" state.restrictedFromDragDrop"
56
59
:fixedFromDragDrop =" state.fixedFromDragDrop"
57
- :hideFilterBoxOfUnusedAttributes =" state.hideFilterBoxOfUnusedAttributes"
60
+ :hideFilterBoxOfUnusedAttributes ="
61
+ state.hideFilterBoxOfUnusedAttributes
62
+ "
58
63
:zIndices =" pivotUiState.zIndices"
64
+ :maxZIndex =" pivotUiState.maxZIndex"
59
65
:openStatus =" pivotUiState.openStatus"
60
66
@update:zIndexOfFilterBox =" onMoveFilterBoxToTop"
61
67
@update:unselectedFilterValues =" onUpdateValueFilter"
76
82
:valueFilter =" state.valueFilter"
77
83
:restrictedFromDragDrop =" state.restrictedFromDragDrop"
78
84
:fixedFromDragDrop =" state.fixedFromDragDrop"
79
- :hideFilterBoxOfUnusedAttributes =" state.hideFilterBoxOfUnusedAttributes"
85
+ :hideFilterBoxOfUnusedAttributes ="
86
+ state.hideFilterBoxOfUnusedAttributes
87
+ "
80
88
:zIndices =" pivotUiState.zIndices"
89
+ :maxZIndex =" pivotUiState.maxZIndex"
81
90
:openStatus =" pivotUiState.openStatus"
82
91
@update:zIndexOfFilterBox =" onMoveFilterBoxToTop"
83
92
@update:unselectedFilterValues =" onUpdateValueFilter"
96
105
</tr >
97
106
</tbody >
98
107
</table >
99
- <div >
108
+ <div >
100
109
<h4 >State</h4 >
101
- rows: {{ state.rows }} <br >
102
- cols: {{ state.cols }} <br >
103
- aggregatorName: {{ state.aggregatorName }} <br >
104
- rendererName: {{ state.rendererName }} <br >
105
- vals: {{ state.vals }} <br >
110
+ rows: {{ state.rows }} <br / >
111
+ cols: {{ state.cols }} <br / >
112
+ aggregatorName: {{ state.aggregatorName }} <br / >
113
+ rendererName: {{ state.rendererName }} <br / >
114
+ vals: {{ state.vals }} <br / >
106
115
attributeNames: {{ attributeNames }}
107
116
<h4 >UI State</h4 >
108
- unusedOrder: {{ pivotUiState.unusedOrder }} <br >
109
- zIndices: {{ pivotUiState.zIndices }} <br >
110
- maxZIndex: {{ pivotUiState.maxZIndex }} <br >
111
- openStatus: {{ pivotUiState.openStatus }} <br >
117
+ unusedOrder: {{ pivotUiState.unusedOrder }} <br / >
118
+ zIndices: {{ pivotUiState.zIndices }} <br / >
119
+ maxZIndex: {{ pivotUiState.maxZIndex }} <br / >
120
+ openStatus: {{ pivotUiState.openStatus }} <br / >
112
121
allFilters:
113
122
<textarea
114
- style =" height : 500px ; margin : 10px ; width : 100% ; "
123
+ style =" height : 500px ; margin : 10px ; width : 100% "
115
124
readonly
116
125
:value =" JSON.stringify(allFilters, undefined, 2)"
117
126
/>
@@ -125,7 +134,12 @@ import VAggregatorCell from './VAggregatorCell.vue'
125
134
import VDragAndDropCell from ' ./VDragAndDropCell.vue'
126
135
import { VPivottable } from ' @/'
127
136
import { computed , watch } from ' vue'
128
- import { usePropsState , useMaterializeInput , usePivotUiState , provideFilterBox } from ' @/composables'
137
+ import {
138
+ usePropsState ,
139
+ useMaterializeInput ,
140
+ usePivotUiState ,
141
+ provideFilterBox
142
+ } from ' @/composables'
129
143
import TableRenderer from ' ../pivottable/renderer'
130
144
131
145
const props = defineProps ({
@@ -182,20 +196,15 @@ const {
182
196
onUpdateUnusedOrder
183
197
} = usePivotUiState ()
184
198
185
- const {
186
- allFilters ,
187
- materializedInput
188
- } = useMaterializeInput (
199
+ const { allFilters , materializedInput } = useMaterializeInput (
189
200
computed (() => props .data ),
190
201
{
191
202
derivedAttributes: computed (() => props .derivedAttributes )
192
203
}
193
204
)
194
205
195
206
const rendererItems = computed (() =>
196
- Object .keys (state .renderers ).length
197
- ? state .renderers
198
- : TableRenderer
207
+ Object .keys (state .renderers ).length ? state .renderers : TableRenderer
199
208
)
200
209
const aggregatorItems = computed (() => state .aggregators )
201
210
const rowAttrs = computed (() => {
@@ -245,15 +254,16 @@ watch(
245
254
allFilters: allFilters .value ,
246
255
materializedInput: materializedInput .value
247
256
})
248
- }, {
257
+ },
258
+ {
249
259
deep: true
250
- })
260
+ }
261
+ )
251
262
</script >
252
263
253
264
<style >
254
265
.pvtUi {
255
266
border-collapse : collapse ;
256
267
width : 100% ;
257
268
}
258
-
259
269
</style >
0 commit comments