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
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
Defined in
computeComponent
▸ computeComponent(component
, defaultWrapper?
): ShallowRef
<Component
| JSXFunction
| ""
>
Parameters
Name | Type | Default value |
---|---|---|
component | Ref <ProcessedComputable <CoercableComponent >> | undefined |
defaultWrapper | string | "div" |
Returns
ShallowRef
<Component
| JSXFunction
| ""
>
Defined in
profectus/src/util/vue.tsx:119
computeOptionalComponent
▸ computeOptionalComponent(component
, defaultWrapper?
): ShallowRef
<Component
| JSXFunction
| ""
| null
>
Parameters
Name | Type | Default value |
---|---|---|
component | Ref <ProcessedComputable <undefined | CoercableComponent >> | undefined |
defaultWrapper | string | "div" |
Returns
ShallowRef
<Component
| JSXFunction
| ""
| null
>
Defined in
profectus/src/util/vue.tsx:129
isCoercableComponent
▸ isCoercableComponent(component
): component
is CoercableComponent
Parameters
Name | Type |
---|---|
component | unknown |
Returns
component
is CoercableComponent
Defined in
processedPropType
▸ processedPropType<T
>(...types
): PropType
<ProcessedComputable
<T
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
...types | PropTypes [] |
Returns
PropType
<ProcessedComputable
<T
>>
Defined in
profectus/src/util/vue.tsx:166
render
▸ render(object
): JSX.Element
| DefineComponent
Parameters
Name | Type |
---|---|
object | CoercableComponent | VueFeature |
Returns
JSX.Element
| DefineComponent
Defined in
renderCol
▸ renderCol(...objects
): JSX.Element
Parameters
Name | Type |
---|---|
...objects | (CoercableComponent | VueFeature )[] |
Returns
JSX.Element
Defined in
renderRow
▸ renderRow(...objects
): JSX.Element
Parameters
Name | Type |
---|---|
...objects | (CoercableComponent | VueFeature )[] |
Returns
JSX.Element
Defined in
setRefValue
▸ setRefValue<T
>(ref
, value
): void
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
ref | Ref <T | Ref <T >> |
value | T |
Returns
void
Defined in
profectus/src/util/vue.tsx:149
setupHoldToClick
▸ setupHoldToClick(onClick?
, onHold?
): Object
Parameters
Name | Type |
---|---|
onClick? | Ref <undefined | VoidFunction > |
onHold? | Ref <undefined | VoidFunction > |
Returns
Object
Name | Type |
---|---|
handleHolding | VoidFunction |
start | VoidFunction |
stop | VoidFunction |
Defined in
unwrapRef
▸ unwrapRef<T
>(ref
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
ref | Ref <ProcessedComputable <T >> |
Returns
T
Defined in
profectus/src/util/vue.tsx:145
wrapRef
▸ wrapRef<T
>(ref
): ComputedRef
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
ref | Ref <ProcessedComputable <T >> |
Returns
ComputedRef
<T
>