mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-23 23:50:32 +03:00
Allow user to define the DOM id of the wizard.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="vue-form-wizard" :class="[stepSize, {vertical: isVertical}]" @keyup.right="focusNextTab"
|
<div :id="id ? id : ''" class="vue-form-wizard" :class="[stepSize, {vertical: isVertical}]" @keyup.right="focusNextTab"
|
||||||
@keyup.left="focusPrevTab">
|
@keyup.left="focusPrevTab">
|
||||||
<div class="wizard-header" v-if="$slots['title']">
|
<div class="wizard-header" v-if="$slots['title']">
|
||||||
<slot name="title">
|
<slot name="title">
|
||||||
@@ -84,6 +84,10 @@
|
|||||||
WizardStep
|
WizardStep
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
id: {
|
||||||
|
type: String,
|
||||||
|
default: 'fw_' + (new Date()).valueOf()
|
||||||
|
},
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'Awesome Wizard'
|
default: 'Awesome Wizard'
|
||||||
|
|||||||
Reference in New Issue
Block a user