CDateTime - CGallery

This commit is contained in:
Paolo Arena
2021-10-01 19:42:21 +02:00
parent 2384e485a5
commit bf7dcf20a6
16 changed files with 188 additions and 158 deletions

View File

@@ -7,7 +7,7 @@ export default defineComponent({
name: 'CDate',
props: {
mydate: {
type: Object as PropType<Date>,
type: String,
required: true,
},
label: {
@@ -62,11 +62,11 @@ export default defineComponent({
const mystyleicon = ref('font-size: 1.5rem;')
watch(() => props.mydate, (value, oldval) => {
valueInternal.value = value
valueInternal.value = tools.getstrdateToDate(value)
})
function created() {
valueInternal.value = props.mydate
valueInternal.value = tools.getstrdateToDate(props.mydate)
if (props.data_class !== '') {
mystyleicon.value = 'font-size: 1rem;'