-
Notifications
You must be signed in to change notification settings - Fork 49
/
types.vue
67 lines (63 loc) · 1.16 KB
/
types.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<div fscw gap-2>
<o-button o-primary @click="open1">
primary
</o-button>
<o-button o-secondary @click="open2">
secondary
</o-button>
<o-button o-success @click="open3">
primary
</o-button>
<o-button o-warning @click="open4">
warning
</o-button>
<o-button o="error" @click="open5">
error
</o-button>
<o-button o="info" @click="open6">
info
</o-button>
</div>
</template>
<script setup lang='ts'>
import { OMessage } from 'onu-ui'
const open1 = () => {
OMessage({
content: 'This is a primary message',
type: 'primary',
})
}
const open2 = () => {
OMessage({
content: 'This is a secondary message',
type: 'secondary',
})
}
const open3 = () => {
OMessage({
content: 'This is a success message',
type: 'success',
})
}
const open4 = () => {
OMessage({
content: 'This is a warning message',
type: 'warning',
})
}
const open5 = () => {
OMessage({
content: 'This is a error message',
type: 'error',
})
}
const open6 = () => {
OMessage({
content: 'This is a info message',
type: 'info',
})
}
</script>
<style>
</style>