mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-25 11:40:32 +03:00
Improve documentation on TabContent type definitions, and order props in alignment with props declared in TabContent.vue.
This commit is contained in:
+29
-9
@@ -1,16 +1,36 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
export declare class Tab extends Vue {
|
export declare class Tab extends Vue {
|
||||||
/** Title to be displayed under each step */
|
/**
|
||||||
title?: string
|
* Title to be displayed under each step.
|
||||||
/** css class for each step icon */
|
*
|
||||||
icon?: string
|
* Default value: ''
|
||||||
/***
|
*/
|
||||||
* Function to execute before tab switch. Return value must be boolean
|
title: string
|
||||||
* If the return result is false, tab switch is restricted
|
|
||||||
|
/** CSS class to be applied to each step icon.
|
||||||
|
*
|
||||||
|
* Default value: ''
|
||||||
|
*/
|
||||||
|
icon: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function to execute before changing tabs. If the return result is false, the tab switch is restricted.
|
||||||
|
*/
|
||||||
|
beforeChange: () => boolean | Promise<boolean>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function to execute after changing tabs. It is safe to assume that necessary validation has already occurred.
|
||||||
|
*/
|
||||||
|
afterChange: () => void
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vue router route object.
|
||||||
*/
|
*/
|
||||||
beforeChange (): boolean | Promise<boolean>
|
|
||||||
/** Vue router route object */
|
|
||||||
route: string | object
|
route: string | object
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default value: () => {}
|
||||||
|
*/
|
||||||
additionalInfo: object
|
additionalInfo: object
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user