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:160


VueFeature

Ƭ VueFeature: Object

Type declaration

NameType
[Component]GenericComponent
[GatherProps]() => Record<string, unknown>

Defined in

profectus/src/util/vue.tsx:49

Functions

coerceComponent

coerceComponent(component, defaultWrapper?): DefineComponent

Parameters

NameTypeDefault value
componentCoercableComponentundefined
defaultWrapperstring"span"

Returns

DefineComponent

Defined in

profectus/src/util/vue.tsx:28


computeComponent

computeComponent(component, defaultWrapper?): ShallowRef<Component | JSXFunction | "">

Parameters

NameTypeDefault value
componentRef<ProcessedComputable<CoercableComponent>>undefined
defaultWrapperstring"div"

Returns

ShallowRef<Component | JSXFunction | "">

Defined in

profectus/src/util/vue.tsx:122


computeOptionalComponent

computeOptionalComponent(component, defaultWrapper?): ShallowRef<Component | JSXFunction | "" | null>

Parameters

NameTypeDefault value
componentRef<ProcessedComputable<undefined | CoercableComponent>>undefined
defaultWrapperstring"div"

Returns

ShallowRef<Component | JSXFunction | "" | null>

Defined in

profectus/src/util/vue.tsx:132


isCoercableComponent

isCoercableComponent(component): component is CoercableComponent

Parameters

NameType
componentunknown

Returns

component is CoercableComponent

Defined in

profectus/src/util/vue.tsx:73


processedPropType

processedPropType<T>(...types): PropType<ProcessedComputable<T>>

Type parameters

Name
T

Parameters

NameType
...typesPropTypes[]

Returns

PropType<ProcessedComputable<T>>

Defined in

profectus/src/util/vue.tsx:169


render

render(object): JSX.Element | DefineComponent

Parameters

NameType
objectCoercableComponent | VueFeature

Returns

JSX.Element | DefineComponent

Defined in

profectus/src/util/vue.tsx:54


renderCol

renderCol(...objects): JSX.Element

Parameters

NameType
...objects(CoercableComponent | VueFeature)[]

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:69


renderRow

renderRow(...objects): JSX.Element

Parameters

NameType
...objects(CoercableComponent | VueFeature)[]

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:65


setRefValue

setRefValue<T>(ref, value): void

Type parameters

Name
T

Parameters

NameType
refRef<T | Ref<T>>
valueT

Returns

void

Defined in

profectus/src/util/vue.tsx:152


setupHoldToClick

setupHoldToClick(onClick?, onHold?): Object

Parameters

NameType
onClick?Ref<undefined | VoidFunction>
onHold?Ref<undefined | VoidFunction>

Returns

Object

NameType
handleHoldingVoidFunction
startVoidFunction
stopVoidFunction

Defined in

profectus/src/util/vue.tsx:88


unwrapRef

unwrapRef<T>(ref): T

Type parameters

Name
T

Parameters

NameType
refRef<ProcessedComputable<T>>

Returns

T

Defined in

profectus/src/util/vue.tsx:148


wrapRef

wrapRef<T>(ref): ComputedRef<T>

Type parameters

Name
T

Parameters

NameType
refRef<ProcessedComputable<T>>

Returns

ComputedRef<T>

Defined in

profectus/src/util/vue.tsx:144