import DraggableList from '@/components/table/DraggableList.vue';

export default {
  title: 'Composants/table/DraggableList',
  component: DraggableList,
  argTypes: {},
};

const Template = (args) => ({
  components: {
    DraggableList,
  },
  setup() {
    return { args };
  },
  template: `
    <DraggableList v-bind="args">
    <template #default={row}>{{row.value}}</template>
    </DraggableList>
  `,
});

export const Default = Template.bind({});
Default.args = {
  modelValue: [
    { key: '1', value: 'titi' },
    { key: '2', value: 'tutu' },
  ],
};
