6868 import FlowForm from ' ../../src/components/FlowForm.vue'
6969 import QuestionModel , { QuestionType , ChoiceOption } from ' ../../src/models/QuestionModel'
7070 import LanguageModel from ' ../../src/models/LanguageModel'
71+ // If using the npm package, use the following line instead of the ones above.
72+ // import FlowForm, { QuestionModel, QuestionType, ChoiceOption, LanguageModel } from '@ditdot-dev/vue-flow-form'
7173
7274 export default {
7375 name: ' example' ,
155157 }),
156158 new QuestionModel ({
157159 id: ' break_1' ,
160+ /* eslint-disable-next-line no-unused-vars */
158161 content (h ) {
159162 return < span>
160163 < span class = " fh2" > Awesome, thank you. 🙏< / span>
188191 }),
189192 new QuestionModel ({
190193 id: ' path_a' ,
194+ /* eslint-disable-next-line no-unused-vars */
191195 content (h ) {
192196 return < span>
193197 < span class = " fh2" > Excellent choice! 🥳< / span>
242246 }
243247 },
244248
249+ /* eslint-disable-next-line no-unused-vars */
245250 onComplete (completed , questionList ) {
246251 // This method is called whenever the "completed" status is changed.
247252 this .completed = completed
248253 },
249254
255+ /* eslint-disable-next-line no-unused-vars */
250256 onSubmit (questionList ) {
251257 // This method will only be called if you don't override the
252258 // completeButton slot.
256262 onSendData () {
257263 this .submitted = true
258264
265+ /* eslint-disable-next-line no-unused-vars */
259266 const data = this .getData ()
260267 /*
261268 You can use Fetch API to send the data to your server, eg.:
296303
297304<style lang="css">
298305 @import ' ./branding.css' ;
306+ /* If using the npm package, use the following lines instead of the one above */
307+ /* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.css'; */
308+ /* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme.css'; */
299309 </style >
0 commit comments