Comments (4)
我这边试了一下,没有报错。所以请提供你的 vue 版本、element 版本,以及使用 Notification 的代码片段
from element.
相关资源版本:
"element-ui": "^1.0.0-rc.3",
"vue": "^2.0.0-rc.6",
"vue-resource": "^1.0.1",
"vue-router": "^2.0.0-rc.5"
可能是我这用法的问题
import { Notification } from 'element-ui';
在ajax中增加了一个全局的逻辑,如果返回数据有需要提醒的提示信息就显示出来,不需要界面单独处理
Vue.http.interceptors.push((request, next) => {
next((response) => {
var data = response.data;
if (data && data.message) {
Notification({
title: '通知',
duration: 8,
message: data.message,
type: data.type || 'info'
});
}
});
}
});
from element.
duration
的单位是毫秒,改成 8000 再试试
from element.
ok了,这个没仔细看文档,以为和vue-desktop是一致的。感谢
from element.
Related Issues (20)
- [Bug Report] tree组件disabled状态会影响节点checked显示效果
- [Bug Report] el-cascader There is no problem in the empty icon in the disabled state
- tree table need v-model specail data for user
- el-image使用preview-src-list默认点击蒙层关闭,为啥2.0没有开关控制,3.0有啊
- [Bug Report] el-table-column slot="header"中使用el-input存在输入bug HOT 1
- [Bug Report] 在el-table 的 header 插槽中使用 el-input 输入延迟 HOT 5
- [Feature Request] el-tooltip的类型检测,能否支持对象?
- element-ui DateTimePicker format 日期格式化问题 HOT 1
- [Bug Report] el-table使用了fixed固定列后的影响 HOT 1
- [Bug Report] table多级表格中某列的子列固定,其余子列不固定,会导致不设置固定属性的子列内容渲染为空
- [Bug Report] Image组件优先加载undefine导致正常图片无法正常展示
- [Bug Report] El-calendar Hebrew
- [Bug Report] Nesting a form within an el-table and simultaneously using 'fixed' and 'ref' can result in the issue of generating two 'ref' references.
- [Bug Report] progress设置底色和文字颜色不成功
- [Bug Report] Upload组件,本地上传弹出后,点击外部遮罩部分,上传文件窗口消失,但是遮罩没有消失。
- [Bug Report] el-table使用自定义el-checkbox会和树形图标的样式重叠 HOT 1
- [Bug Report] 开发环境下的button primary样式在edge下无法正常加载? HOT 1
- [Bug Report] 官网图片显示尺寸错误 HOT 3
- [Bug Report] Statistic的倒计时功能value改变后倒计时时间未根据新的value倒计时 HOT 2
- [Bug Report] When the DateTimePicker component sets both the format and value-format properties at the same time, the time selector will malfunction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element.