first commit
This commit is contained in:
44
iview/examples/routers/notice.vue
Normal file
44
iview/examples/routers/notice.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div>
|
||||
<p>With desc</p>
|
||||
<Button @click="info(false)">Info</Button>
|
||||
<Button @click="success(false)">Success</Button>
|
||||
<Button @click="warning(false)">Warning</Button>
|
||||
<Button @click="error(false)">Error</Button>
|
||||
<p>Only title</p>
|
||||
<Button @click="info(true)">Info</Button>
|
||||
<Button @click="success(true)">Success</Button>
|
||||
<Button @click="warning(true)">Warning</Button>
|
||||
<Button @click="error(true)">Error</Button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
info (nodesc) {
|
||||
this.$Notice.info({
|
||||
title: 'Notification title',
|
||||
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
|
||||
});
|
||||
},
|
||||
success (nodesc) {
|
||||
this.$Notice.success({
|
||||
title: 'Notification title',
|
||||
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
|
||||
});
|
||||
},
|
||||
warning (nodesc) {
|
||||
this.$Notice.warning({
|
||||
title: 'Notification title',
|
||||
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
|
||||
});
|
||||
},
|
||||
error (nodesc) {
|
||||
this.$Notice.error({
|
||||
title: 'Notification title',
|
||||
desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user