需要更改Vuetify的宽度通知或删除关闭按钮

发布于 2025-02-11 14:41:26 字数 355 浏览 1 评论 0原文

我正在使用通知通知。我无法更改通知横幅的宽度。我需要更改宽度或从横幅上删除近图标。另外,还有其他简单的通知方法吗?

main.js:

import VuetifyNotify from 'vuetify-notify';

Vue.use(notify, {
  vuetify,
  options: {
    toast: {
      x: "right",
      y: "top",
      color: "green"
    }
  }
});

在我的vue组件中:

this.$notify.toast("Hello toast");

I'm using Vuetify notify for notifications. I'm unable to change the width of the notification banner. I need either to change the width or remove the close icon from the banner. Alternatively, is there any other easy notification method?

main.js:

import VuetifyNotify from 'vuetify-notify';

Vue.use(notify, {
  vuetify,
  options: {
    toast: {
      x: "right",
      y: "top",
      color: "green"
    }
  }
});

In my Vue component:

this.$notify.toast("Hello toast");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何其悲哀 2025-02-18 14:41:26

基于文档,您可以使用对话框设置来配置宽度。

样本:

Vue.use(notify, {
  vuetify,
  options: {
    toast: {
      x: "right",
      y: "top",
      color: "green"
    },
    dialog: {
      width: 400 //here
    }
  }
});

Based on documentation, you may use dialog setting to configure the width.

sample:

Vue.use(notify, {
  vuetify,
  options: {
    toast: {
      x: "right",
      y: "top",
      color: "green"
    },
    dialog: {
      width: 400 //here
    }
  }
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文