@@ -65,7 +65,8 @@ const components = {
6565 VueUiXyCanvas: defineAsyncComponent (() => import (' ./vue-ui-xy-canvas.vue' )),
6666 VueUiFlow: defineAsyncComponent (() => import (' ./vue-ui-flow.vue' )),
6767 VueUiParallelCoordinatePlot: defineAsyncComponent (() => import (' ./vue-ui-parallel-coordinate-plot.vue' )),
68- VueUiTimer: defineAsyncComponent (() => import (' ./vue-ui-timer.vue' ))
68+ VueUiTimer: defineAsyncComponent (() => import (' ./vue-ui-timer.vue' )),
69+ VueUiCarouselTable: defineAsyncComponent (() => import (' ./vue-ui-carousel-table.vue' ))
6970};
7071
7172const componentProps = {
@@ -121,7 +122,8 @@ const componentProps = {
121122 VueUiXyCanvas: [' config' , ' dataset' ],
122123 VueUiFlow: [' config' , ' dataset' ],
123124 VueUiParallelCoordinatePlot: [' config' , ' dataset' ],
124- VueUiTimer: [' config' ]
125+ VueUiTimer: [' config' ],
126+ VueUiCarouselTable: [' config' , ' dataset' ]
125127};
126128
127129const emit = defineEmits ([
@@ -182,6 +184,9 @@ const pause = ref(() => null);
182184const reset = ref (() => null );
183185const restart = ref (() => null );
184186const lap = ref (() => null );
187+ const toggleAnimation = ref (() => null );
188+ const pauseAnimation = ref (() => null );
189+ const resumeAnimation = ref (() => null );
185190
186191onMounted (() => {
187192 if (isError .value ) {
@@ -252,6 +257,15 @@ watch(currentComponentRef, async (newRef) => {
252257 if (newRef .lap ) {
253258 lap .value = newRef .lap ;
254259 }
260+ if (newRef .toggleAnimation ) {
261+ toggleAnimation .value = newRef .toggleAnimation ;
262+ }
263+ if (newRef .pauseAnimation ) {
264+ pauseAnimation .value = newRef .pauseAnimation ;
265+ }
266+ if (newRef .resumeAnimation ) {
267+ resumeAnimation .value = newRef .resumeAnimation ;
268+ }
255269 }
256270})
257271
@@ -277,7 +291,10 @@ const getEventHandlers = () => {
277291 ' pause' ,
278292 ' reset' ,
279293 ' restart' ,
280- ' lap'
294+ ' lap' ,
295+ ' toggleAnimation' ,
296+ ' pauseAnimation' ,
297+ ' resumeAnimation'
281298 ];
282299 const handlers = {};
283300 eventNames .forEach (event => {
@@ -319,7 +336,10 @@ defineExpose({
319336 pause,
320337 reset,
321338 restart,
322- lap
339+ lap,
340+ pauseAnimation,
341+ resumeAnimation,
342+ toggleAnimation
323343});
324344 </script >
325345
0 commit comments