Module: util/vue
Type Aliases
PropTypes
Ƭ PropTypes: typeof Boolean
| typeof String
| typeof Number
| typeof Function
| typeof Object
| typeof Array
Defined in
profectus/src/util/vue.tsx:199
VueFeature
Ƭ VueFeature: Object
Type declaration
Name | Type |
---|---|
[Component] | GenericComponent |
[GatherProps] | () => Record <string , unknown > |
Defined in
Functions
coerceComponent
▸ coerceComponent(component
, defaultWrapper?
): DefineComponent
Parameters
Name | Type | Default value |
---|---|---|
component | CoercableComponent | undefined |
defaultWrapper | string | "span" |
Returns
DefineComponent
computeComponent
▸ computeComponent(component
, defaultWrapper?
): ShallowRef
<Component
| ""
>
Parameters
Name | Type | Default value |
---|---|---|
component | Ref <ProcessedComputable <CoercableComponent >> | undefined |
defaultWrapper | string | "div" |
Returns
ShallowRef
<Component
| ""
>
computeOptionalComponent
▸ computeOptionalComponent(component
, defaultWrapper?
): ShallowRef
<Component
| ""
| null
>
Parameters
Name | Type | Default value |
---|---|---|
component | Ref <ProcessedComputable <undefined | CoercableComponent >> | undefined |
defaultWrapper | string | "div" |
Returns
ShallowRef
<Component
| ""
| null
>
getFirstFeature
▸ getFirstFeature<T
>(features
, filter
): Object
Type parameters
Name | Type |
---|---|
T | extends VueFeature & { visibility : ProcessedComputable <Visibility > } |
Parameters
Name | Type |
---|---|
features | T [] |
filter | (feature : T ) => boolean |
Returns
Object
Name | Type |
---|---|
collapsedContent | JSXFunction |
firstFeature | Ref <T | undefined > |
hasCollapsedContent | Ref <boolean > |
isCoercableComponent
▸ isCoercableComponent(component
): component
is CoercableComponent
Parameters
Name | Type |
---|---|
component | unknown |
Returns
component
is CoercableComponent
processedPropType
▸ processedPropType<T
>(...types
): PropType
<ProcessedComputable
<T
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
...types | PropTypes [] |
Returns
PropType
<ProcessedComputable
<T
>>
render
▸ render(object
): JSX.Element
| DefineComponent
Parameters
Name | Type |
---|---|
object | CoercableComponent | VueFeature |
Returns
JSX.Element
| DefineComponent
renderCol
▸ renderCol(...objects
): JSX.Element
Parameters
Name | Type |
---|---|
...objects | (CoercableComponent | VueFeature )[] |
Returns
JSX.Element
renderColJSX
▸ renderColJSX(...objects
): JSX.Element
Parameters
Name | Type |
---|---|
...objects | (CoercableComponent | VueFeature )[] |
Returns
JSX.Element
renderJSX
▸ renderJSX(object
): JSX.Element
Parameters
Name | Type |
---|---|
object | CoercableComponent | VueFeature |
Returns
JSX.Element
renderRow
▸ renderRow(...objects
): JSX.Element
Parameters
Name | Type |
---|---|
...objects | (CoercableComponent | VueFeature )[] |
Returns
JSX.Element
renderRowJSX
▸ renderRowJSX(...objects
): JSX.Element
Parameters
Name | Type |
---|---|
...objects | (CoercableComponent | VueFeature )[] |
Returns
JSX.Element
setRefValue
▸ setRefValue<T
>(ref
, value
): void
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
ref | Ref <T | Ref <T >> |
value | T |
Returns
void
setupHoldToClick
▸ setupHoldToClick(onClick?
, onHold?
): Object
Parameters
Name | Type |
---|---|
onClick? | Ref <undefined | (e? : MouseEvent | TouchEvent ) => void > |
onHold? | Ref <undefined | VoidFunction > |
Returns
Object
Name | Type |
---|---|
handleHolding | VoidFunction |
start | (e : MouseEvent | TouchEvent ) => void |
stop | VoidFunction |
unwrapRef
▸ unwrapRef<T
>(ref
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
ref | Ref <ProcessedComputable <T >> |
Returns
T
wrapRef
▸ wrapRef<T
>(ref
): ComputedRef
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
ref | Ref <ProcessedComputable <T >> |
Returns
ComputedRef
<T
>