增加基本项目配置

This commit is contained in:
Gao xiaosong
2020-03-15 13:59:43 +08:00
commit 397082cdaf
1117 changed files with 105700 additions and 0 deletions

24
components/DataFormat.vue Normal file
View File

@ -0,0 +1,24 @@
<template>
<span>{{time}}</span>
</template>
<script>
import { dataFormat } from "@/utils";
export default {
name: "DataFormat",
props: ["data"],
data: function() {
return {
time: ""
};
},
mounted() {
this.time = dataFormat(this.data);
},
watch: {
"$props.data"(props) {
this.time = dataFormat(this.data);
}
}
};
</script>