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


VueFeature

Ƭ VueFeature: Object

Type declaration

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

Defined in

profectus/src/util/vue.tsx:48

Functions

coerceComponent

coerceComponent(component, defaultWrapper?): DefineComponent

Parameters

NameTypeDefault value
componentCoercableComponentundefined
defaultWrapperstring"span"

Returns

DefineComponent

Defined in

profectus/src/util/vue.tsx:27


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


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


isCoercableComponent

isCoercableComponent(component): component is CoercableComponent

Parameters

NameType
componentunknown

Returns

component is CoercableComponent

Defined in

profectus/src/util/vue.tsx:72


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


render

render(object): JSX.Element | DefineComponent

Parameters

NameType
objectCoercableComponent | VueFeature

Returns

JSX.Element | DefineComponent

Defined in

profectus/src/util/vue.tsx:53


renderCol

renderCol(...objects): JSX.Element

Parameters

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

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:68


renderRow

renderRow(...objects): JSX.Element

Parameters

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

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:64


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


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


unwrapRef

unwrapRef<T>(ref): T

Type parameters

Name
T

Parameters

NameType
refRef<ProcessedComputable<T>>

Returns

T

Defined in

profectus/src/util/vue.tsx:145


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