Refactor #3965 - For StyleClass

This commit is contained in:
Tuğçe Küçükoğlu 2023-06-22 16:55:50 +03:00
parent 0746ad86ac
commit c7c08b6c96
2 changed files with 52 additions and 4 deletions

View file

@ -8,6 +8,51 @@
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
/**
* Custom passthrough(pt) hooks options.
*/
export interface StyleClassPassThroughHooksOptions {
/**
* Called before bound element's attributes or event listeners are applied.
*/
created?: DirectiveBinding;
/**
* Called right before the element is inserted into the DOM.
*/
beforeMount?: DirectiveBinding;
/**
* Called when the bound element's parent component and all its children are mounted.
*/
mounted?: DirectiveBinding;
/**
* Called before the parent component is updated.
*/
beforeUpdate?: DirectiveBinding;
/**
* Called after the parent component and all of its children have updated all of its children have updated.
*/
updated?: DirectiveBinding;
/**
* Called before the parent component is unmounted.
*/
beforeUnmount?: DirectiveBinding;
/**
* Called when the parent component is unmounted.
*/
unmounted?: DirectiveBinding;
}
/**
* Defines passthrough(pt) options.
*/
export interface StyleClassPassThroughDirectiveOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link StyleClassPassThroughHooksOptions}
*/
hooks?: StyleClassPassThroughHooksOptions;
}
/**
* Defines options of StyleClass.
*/