Skip to content

Commit

Permalink
fix: fix default options
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Dec 27, 2022
1 parent 02987dc commit 2399869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/conveyer/src/reactive.ts
Expand Up @@ -26,7 +26,7 @@ export const REACTIVE_CONVEYER: ReactiveAdapter<
created(data) {
return new Conveyer(data.container, { ...data.props, autoInit: false });
},
mounted(data, instance) {
init(instance, data) {
if (data.props.autoInit !== false) {
instance!.init();
}
Expand Down
Expand Up @@ -3,7 +3,7 @@ import { ConveyerOptions, REACTIVE_CONVEYER } from "@egjs/conveyer";
import { useReactive, useRef } from "@cfcs/svelte";


function useConveyer(props: ConveyerOptions = { horizontal: false }): SvelteConveyerResult {
function useConveyer(props: ConveyerOptions = {}): SvelteConveyerResult {
const elementRef = useRef<HTMLElement>();
const result = useReactive({
data() {
Expand Down

0 comments on commit 2399869

Please sign in to comment.