mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-06-20 20:00:37 +03:00
@@ -0,0 +1,25 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'JsonDate',
|
||||
functional: true,
|
||||
props: {
|
||||
jsonValue: {
|
||||
type: Date,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
render (h, { props }) {
|
||||
const value = props.jsonValue;
|
||||
|
||||
return h('span', {
|
||||
class: {
|
||||
'jv-item': true,
|
||||
'jv-string': true,
|
||||
},
|
||||
domProps: {
|
||||
innerText: `"${value.toLocaleString()}"`
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user