-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): add total step rows does not require any aggregation TCTC-91…
…99 (#2228) * fix(ui): add total step rows does not require any aggregation * style(ui): lint
- Loading branch information
Showing
3 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { action } from '@storybook/addon-actions'; | ||
import type { Meta, StoryObj } from '@storybook/vue'; | ||
import { createPinia, PiniaVuePlugin } from 'pinia'; | ||
import Vue from 'vue'; | ||
|
||
import AddTotalRowsStepForm from '@/components/stepforms/AddTotalRowsStepForm.vue'; | ||
import { setupVQBStore } from '@/store'; | ||
|
||
export default { | ||
component: AddTotalRowsStepForm, | ||
} as Meta<AddTotalRowsStepForm>; | ||
|
||
Vue.use(PiniaVuePlugin); | ||
|
||
export const Empty: StoryObj<AddTotalRowsStepForm> = { | ||
render: (args, { argTypes }) => ({ | ||
components: { AddTotalRowsStepForm }, | ||
props: Object.keys(argTypes), | ||
template: '<AddTotalRowsStepForm v-bind="$props" @formSaved="onFormSaved" />', | ||
methods: { | ||
onFormSaved: action('formSaved'), | ||
}, | ||
pinia: createPinia(), | ||
created: function () { | ||
setupVQBStore({ | ||
backendMessages: [], | ||
dataset: { | ||
headers: [ | ||
{ name: 'label', type: 'string' }, | ||
{ name: 'value', type: 'string' }, | ||
], | ||
data: [], | ||
}, | ||
}); | ||
}, | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters