Skip to content

Vue warn with sync modifier #13780

Answered by misa-lili
misa-lili asked this question in Help
Discussion options

You must be logged in to vote

I solved the problem like this.

import { storyFactory } from "~storybook/util/helpers"
import { RangeTypeEnum } from "@/store/widgetModule"
import DateSelector from './DateSelector.vue'
import vuetify from "@/plugins/vuetify"

export default storyFactory({
  title: 'Utils/DateSelector',
  component: DateSelector,
  args: { } // delete sync props
})

const Template = (args, { argTypes }) => ({
  vuetify, // add for vuetify
  components: { DateSelector },
  props: Object.keys(argTypes),
  data: () => ({
    rangeType: RangeTypeEnum.CUSTOM_DATE,
    start: "2021-02-01",
    end: "2021-02-28",
    exceptedDates: ["2021-02-07", "2021-02-14", "2021-02-21", "2021-02-28"]
  }), // solution
  temp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by misa-lili
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant