Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type for keepOnHover is missing #222

Open
xest opened this issue Feb 28, 2022 · 0 comments
Open

Type for keepOnHover is missing #222

xest opened this issue Feb 28, 2022 · 0 comments

Comments

@xest
Copy link

xest commented Feb 28, 2022

Version

  • vue: 2.6.14
  • vuetify: 2.6.3
  • typescript: 4.5.5
  • vue-toasted: 1.1.28

parseOptions() in dist/vue-toasted.js

	options.action = options.action || null;
	options.className = options.className || null;
	options.closeOnSwipe = typeof options.closeOnSwipe !== 'undefined' ? options.closeOnSwipe : true;
	options.containerClass = options.containerClass || null;
	options.duration = options.duration || null;
	options.fitToScreen = options.fitToScreen || null;
	options.fullWidth = options.fullWidth || false;
	options.icon = options.icon || null;
	options.iconPack = options.iconPack || 'material';
	options.keepOnHover = options.keepOnHover || false;
	options.onComplete = options.onComplete || null;
	options.position = options.position || "top-right";
	options.theme = options.theme || "toasted-primary";
	options.type = options.type || "default";

interface ToastOptions in types/index.d.ts

  action?: ToastAction | ToastAction[],
  className?: string | string[],
  closeOnSwipe?: boolean,
  containerClass?: string | string[],
  duration?: number,
  fitToScreen?: boolean,
  fullWidth?: boolean,
  icon?: ((ToastIcon: HTMLElement) => HTMLElement) | string | { name: string, after: boolean },
  iconPack?: ToastIconPack|string
  onComplete?: () => any,
  position?: ToastPosition,
  singleton?: boolean,
  theme?: ToastTheme|string,
  type?: ToastType|string,
  • keepOnHover is missing
  • singleton is added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant