update Notice title

This commit is contained in:
梁灏 2019-09-23 14:35:16 +08:00
parent 2dabd30c45
commit 643c700e30
2 changed files with 5 additions and 1 deletions

View file

@ -17,24 +17,28 @@
methods: { methods: {
info (nodesc) { info (nodesc) {
this.$Notice.info({ this.$Notice.info({
duration: 10000,
title: 'Notification title', title: 'Notification title',
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. ' desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
}); });
}, },
success (nodesc) { success (nodesc) {
this.$Notice.success({ this.$Notice.success({
duration: 10000,
title: 'Notification title', title: 'Notification title',
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. ' desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
}); });
}, },
warning (nodesc) { warning (nodesc) {
this.$Notice.warning({ this.$Notice.warning({
duration: 10000,
title: 'Notification title', title: 'Notification title',
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. ' desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
}); });
}, },
error (nodesc) { error (nodesc) {
this.$Notice.error({ this.$Notice.error({
duration: 10000,
title: 'Notification title', title: 'Notification title',
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. ' desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
}); });

View file

@ -68,7 +68,7 @@
white-space: nowrap; white-space: nowrap;
} }
&-with-desc &-title{ &-with-desc &-title{
font-weight: bold; //font-weight: bold;
margin-bottom: 8px; margin-bottom: 8px;
} }