@tak-ps/vue-tabler 3.36.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/components/Err.vue +36 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/components/Err.vue
CHANGED
|
@@ -6,8 +6,22 @@
|
|
|
6
6
|
<IconAlertCircle size='40'/>
|
|
7
7
|
<h3>Website Error</h3>
|
|
8
8
|
<div class="text-muted" v-text='err.message'></div>
|
|
9
|
-
<pre v-if='err.body' v-text='err.body'></pre>
|
|
10
9
|
</div>
|
|
10
|
+
|
|
11
|
+
<template v-if='err.body || err.stack'>
|
|
12
|
+
<div class="py-2 px-3">
|
|
13
|
+
<div @click='open = !open' class='subheader d-flex align-items-center cursor-pointer'>
|
|
14
|
+
<IconChevronRight v-if='!open' size='24' class='cursor-pointer'/>
|
|
15
|
+
<IconChevronDown v-else size='24' class='cursor-pointer'/>
|
|
16
|
+
<span>Advanced</span>
|
|
17
|
+
</div>
|
|
18
|
+
<pre
|
|
19
|
+
v-if='open'
|
|
20
|
+
v-text='err.body || err.stack'
|
|
21
|
+
class='my-3'
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
11
25
|
<div class="modal-footer">
|
|
12
26
|
<div class="w-100">
|
|
13
27
|
<div class="row">
|
|
@@ -21,19 +35,37 @@
|
|
|
21
35
|
<script>
|
|
22
36
|
import Modal from './Modal.vue';
|
|
23
37
|
import {
|
|
24
|
-
IconAlertCircle
|
|
38
|
+
IconAlertCircle,
|
|
39
|
+
IconChevronRight,
|
|
40
|
+
IconChevronDown
|
|
25
41
|
} from '@tabler/icons-vue'
|
|
26
42
|
|
|
27
43
|
export default {
|
|
28
44
|
name: 'TablerErr',
|
|
29
|
-
props:
|
|
45
|
+
props: {
|
|
46
|
+
err: {
|
|
47
|
+
type: Error,
|
|
48
|
+
required: true
|
|
49
|
+
},
|
|
50
|
+
trace: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
data: function() {
|
|
56
|
+
return {
|
|
57
|
+
open: false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
30
60
|
methods: {
|
|
31
61
|
close: function() {
|
|
32
62
|
this.$emit('close');
|
|
33
|
-
}
|
|
63
|
+
},
|
|
34
64
|
},
|
|
35
65
|
components: {
|
|
36
66
|
Modal,
|
|
67
|
+
IconChevronRight,
|
|
68
|
+
IconChevronDown,
|
|
37
69
|
IconAlertCircle
|
|
38
70
|
}
|
|
39
71
|
}
|