2023-03-21 10:25:17 -05:00
|
|
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
|
|
/* eslint-disable import/no-default-export */
|
2023-03-20 09:07:13 -05:00
|
|
|
import { Meta, StoryObj } from '@storybook/vue3';
|
2023-03-19 08:22:14 -05:00
|
|
|
import WidgetInstanceInfo from './WidgetInstanceInfo.vue';
|
|
|
|
const meta = {
|
|
|
|
title: 'widgets/WidgetInstanceInfo',
|
|
|
|
component: WidgetInstanceInfo,
|
2023-03-20 09:07:13 -05:00
|
|
|
} satisfies Meta<typeof WidgetInstanceInfo>;
|
2023-03-19 08:22:14 -05:00
|
|
|
export const Default = {
|
2023-03-23 02:44:41 -05:00
|
|
|
render(args) {
|
2023-03-20 02:13:07 -05:00
|
|
|
return {
|
|
|
|
components: {
|
|
|
|
WidgetInstanceInfo,
|
|
|
|
},
|
2023-03-23 02:44:41 -05:00
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
args,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
props() {
|
|
|
|
return {
|
|
|
|
...args,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
template: '<WidgetInstanceInfo v-bind="props" />',
|
2023-03-20 02:13:07 -05:00
|
|
|
};
|
2023-03-19 08:22:14 -05:00
|
|
|
},
|
2023-03-20 00:56:34 -05:00
|
|
|
parameters: {
|
|
|
|
layout: 'centered',
|
|
|
|
},
|
2023-03-20 09:07:13 -05:00
|
|
|
} satisfies StoryObj<typeof WidgetInstanceInfo>;
|
2023-03-19 08:22:14 -05:00
|
|
|
export default meta;
|