@innertia-solutions/nuxt-theme-spark 0.1.75 → 0.1.76
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.
- package/components/Table/Standard.vue +25 -14
- package/package.json +1 -1
|
@@ -189,11 +189,12 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
189
189
|
</div>
|
|
190
190
|
|
|
191
191
|
<!-- Contenido: tabla + preview en flex -->
|
|
192
|
-
<div :class="
|
|
192
|
+
<div :class="previewEnabled ? 'flex items-stretch overflow-hidden' : ''">
|
|
193
193
|
|
|
194
194
|
<!-- Tabla -->
|
|
195
195
|
<div
|
|
196
|
-
|
|
196
|
+
class="min-w-0 transition-[width] duration-200 ease-out"
|
|
197
|
+
:style="previewRow && previewEnabled ? { width: currentRatio + '%', flexShrink: 0 } : {}"
|
|
197
198
|
>
|
|
198
199
|
<Table
|
|
199
200
|
ref="tableRef"
|
|
@@ -217,21 +218,31 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
217
218
|
</Table>
|
|
218
219
|
</div>
|
|
219
220
|
|
|
220
|
-
<!-- Divider + preview -->
|
|
221
|
-
<
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
221
|
+
<!-- Divider + preview con animación slide -->
|
|
222
|
+
<Transition
|
|
223
|
+
enter-active-class="transition ease-out duration-200"
|
|
224
|
+
enter-from-class="opacity-0 translate-x-6"
|
|
225
|
+
enter-to-class="opacity-100 translate-x-0"
|
|
226
|
+
leave-active-class="transition ease-in duration-150"
|
|
227
|
+
leave-from-class="opacity-100 translate-x-0"
|
|
228
|
+
leave-to-class="opacity-0 translate-x-6"
|
|
229
|
+
>
|
|
228
230
|
<div
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
v-if="previewRow && previewEnabled"
|
|
232
|
+
class="flex items-stretch shrink-0 min-w-0"
|
|
233
|
+
:style="{ width: (100 - currentRatio) + '%' }"
|
|
231
234
|
>
|
|
232
|
-
|
|
235
|
+
<!-- Resize handle -->
|
|
236
|
+
<div
|
|
237
|
+
class="w-1 shrink-0 cursor-col-resize bg-slate-100 dark:bg-slate-700/60 hover:bg-indigo-300 dark:hover:bg-indigo-600 transition-colors"
|
|
238
|
+
@mousedown="startResize"
|
|
239
|
+
/>
|
|
240
|
+
<!-- Preview -->
|
|
241
|
+
<div class="flex flex-col overflow-y-auto border-l border-slate-200 dark:border-slate-700 flex-1">
|
|
242
|
+
<slot name="preview" :row="previewRow" :close="closePreview" />
|
|
243
|
+
</div>
|
|
233
244
|
</div>
|
|
234
|
-
</
|
|
245
|
+
</Transition>
|
|
235
246
|
|
|
236
247
|
</div>
|
|
237
248
|
</div>
|