|
11 | 11 | > |
12 | 12 | <template #[`item.active`]="{ item }"> |
13 | 13 | <VInlineSwitch |
14 | | - v-model="item.raw.active" |
| 14 | + v-model="item.active" |
15 | 15 | :cancel-button-color="componentOptions.cancelButtonColor" |
16 | 16 | :cancel-button-title="componentOptions.cancelButtonTitle" |
17 | 17 | :cancel-button-variant="componentOptions.cancelButtonVariant" |
|
33 | 33 | :icon-true-title="componentOptions.iconTrueTitle" |
34 | 34 | :item="item" |
35 | 35 | :label="componentOptions.label" |
36 | | - :loading="item.raw.loading" |
| 36 | + :loading="item.loading" |
37 | 37 | :loading-wait="componentOptions.loadingWait" |
38 | 38 | name="active" |
39 | 39 | :underline-color="componentOptions.underlineColor" |
40 | 40 | :underline-style="componentOptions.underlineStyle" |
41 | 41 | :underline-width="componentOptions.underlineWidth" |
42 | 42 | :underlined="componentOptions.underlined" |
43 | 43 | @error="showError = $event" |
44 | | - @update="updatedValue(item.raw, 'reviewed')" |
| 44 | + @update="updatedValue(item, 'reviewed')" |
45 | 45 | /> |
46 | 46 | </template> |
47 | 47 |
|
48 | 48 | <template #[`item.userId`]="{ item }"> |
49 | 49 | <VInlineSelect |
50 | | - v-model="item.raw.user" |
| 50 | + v-model="item.user" |
51 | 51 | :cancel-button-color="componentOptions.cancelButtonColor" |
52 | 52 | :cancel-button-title="componentOptions.cancelButtonTitle" |
53 | 53 | :cancel-button-variant="componentOptions.cancelButtonVariant" |
|
74 | 74 | item-value="id" |
75 | 75 | :items="users" |
76 | 76 | :label="componentOptions.label" |
77 | | - :loading="item.raw.loading" |
| 77 | + :loading="item.loading" |
78 | 78 | :loading-wait="componentOptions.loadingWait" |
79 | 79 | :menu="componentOptions.menu" |
80 | 80 | name="userId" |
|
89 | 89 | :underlined="componentOptions.underlined" |
90 | 90 | :variant="componentOptions.variant" |
91 | 91 | @error="showError = $event" |
92 | | - @update="updatedValue(item.raw, 'userId')" |
| 92 | + @update="updatedValue(item, 'userId')" |
93 | 93 | > |
94 | 94 | </VInlineSelect> |
95 | 95 | </template> |
96 | 96 |
|
97 | 97 | <template #[`item.title`]="{ item }"> |
98 | 98 | <VInlineTextField |
99 | | - v-model="item.raw.title" |
| 99 | + v-model="item.title" |
100 | 100 | :cancel-button-color="componentOptions.cancelButtonColor" |
101 | 101 | :cancel-button-title="componentOptions.cancelButtonTitle" |
102 | 102 | :cancel-button-variant="componentOptions.cancelButtonVariant" |
|
114 | 114 | :hide-details="componentOptions.hideDetails" |
115 | 115 | :item="item" |
116 | 116 | :label="componentOptions.label" |
117 | | - :loading="item.raw.loading" |
| 117 | + :loading="item.loading" |
118 | 118 | :loading-wait="componentOptions.loadingWait" |
119 | 119 | name="title" |
120 | 120 | required |
|
131 | 131 | :underlined="componentOptions.underlined" |
132 | 132 | :variant="componentOptions.variant" |
133 | 133 | @error="showError = $event" |
134 | | - @update="updatedValue(item.raw, 'title')" |
| 134 | + @update="updatedValue(item, 'title')" |
135 | 135 | > |
136 | 136 | </VInlineTextField> |
137 | 137 | </template> |
138 | 138 |
|
139 | 139 | <template #[`item.body`]="{ item }"> |
140 | 140 | <VInlineTextarea |
141 | | - v-model="item.raw.body" |
| 141 | + v-model="item.body" |
142 | 142 | :cancel-button-color="componentOptions.cancelButtonColor" |
143 | 143 | :cancel-button-title="componentOptions.cancelButtonTitle" |
144 | 144 | :cancel-button-variant="componentOptions.cancelButtonVariant" |
|
159 | 159 | :hide-details="componentOptions.hideDetails" |
160 | 160 | :item="item" |
161 | 161 | :label="componentOptions.label" |
162 | | - :loading="item.raw.loading" |
| 162 | + :loading="item.loading" |
163 | 163 | :loading-wait="componentOptions.loadingWait" |
164 | 164 | name="body" |
165 | 165 | :rules="[componentOptions.rules.required, componentOptions.rules.minLength]" |
|
174 | 174 | :underlined="componentOptions.underlined" |
175 | 175 | :variant="componentOptions.variant" |
176 | 176 | @error="showError = $event" |
177 | | - @update="updatedValue(item.raw, 'body')" |
| 177 | + @update="updatedValue(item, 'body')" |
178 | 178 | > |
179 | 179 | </VInlineTextarea> |
180 | 180 | </template> |
181 | 181 |
|
182 | 182 | <template #[`item.range`]="{ item }"> |
183 | 183 | <VInlineCustomField |
184 | | - v-model="item.raw.range" |
| 184 | + v-model="item.range" |
185 | 185 | :card-field="cardFieldState" |
186 | 186 | :card-offset-x="componentOptions.cardOffsetX" |
187 | 187 | :card-offset-y="componentOptions.cardOffsetY" |
188 | 188 | :card-props="componentOptions.cardProps" |
189 | | - :loading="item.raw.loading" |
190 | | - @update="updatedValue(item.raw, 'range')" |
| 189 | + :loading="item.loading" |
| 190 | + @update="updatedValue(item, 'range')" |
191 | 191 | > |
192 | 192 | <template #default=""> |
193 | 193 | <v-slider |
194 | | - v-model="item.raw.range" |
| 194 | + v-model="item.range" |
195 | 195 | hide-details |
196 | 196 | show-ticks |
197 | 197 | step="10" |
|
202 | 202 |
|
203 | 203 | <template #[`item.reviewed`]="{ item }"> |
204 | 204 | <VInlineCheckbox |
205 | | - v-model="item.raw.reviewed" |
| 205 | + v-model="item.reviewed" |
206 | 206 | :cancel-button-color="componentOptions.cancelButtonColor" |
207 | 207 | :cancel-button-title="componentOptions.cancelButtonTitle" |
208 | 208 | :cancel-button-variant="componentOptions.cancelButtonVariant" |
|
220 | 220 | :icon-true-title="componentOptions.iconTrueTitle" |
221 | 221 | :item="item" |
222 | 222 | :label="componentOptions.label" |
223 | | - :loading="item.raw.loading" |
| 223 | + :loading="item.loading" |
224 | 224 | :loading-wait="componentOptions.loadingWait" |
225 | 225 | name="reviewed" |
226 | 226 | :underline-color="componentOptions.underlineColor" |
227 | 227 | :underline-style="componentOptions.underlineStyle" |
228 | 228 | :underline-width="componentOptions.underlineWidth" |
229 | 229 | :underlined="componentOptions.underlined" |
230 | 230 | @error="showError = $event" |
231 | | - @update="updatedValue(item.raw, 'reviewed')" |
| 231 | + @update="updatedValue(item, 'reviewed')" |
232 | 232 | /> |
233 | 233 | </template> |
234 | 234 | </v-data-table> |
|
0 commit comments