Vue_component.Make
functor to create a component with typecheck of input data
module S : sig ... end
include Tables_S with type all = S.all
type all = S.all
val computed_t : (all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table
val components_t : (Mjs.top, Mjs.top) Internal.component_arg Mjs.t Mjs.table
val add_computed : string -> (all Mjs.t -> 'a Mjs.optdef) -> unit
val add_2way_computed :
string ->
get:(all Mjs.t -> 'a Mjs.optdef) ->
set:(all Mjs.t -> 'b -> unit) ->
unit
val add_component : string -> ('a, 'b) Internal.component_arg Mjs.t -> unit
val make :
?export:bool ->
?data:(all Mjs.t -> S.data Mjs.t) ->
?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list ->
?methods:(string * Mjs.any) list ->
?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list ->
?components:(string * (Mjs.top, Mjs.top) Internal.component_arg Mjs.t) list ->
?enter:(Vue_nav.push_obj -> Vue_nav.push_obj -> all Vue_nav.next) ->
?update:
(all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> all Vue_nav.next) ->
?lifecycle:(string * (all Mjs.t -> unit)) list ->
?mixins:Mjs.any list ->
?app:_ Mjs.t ->
?version:Version.t ->
unit ->
all component
load the component from previously added methods/watch/computed
Unsafe functions