Commit ebe2f716 authored by 周远喜's avatar 周远喜

ok

parent c55e3eaf
<template>
<div class="flex">
<div v-width="300">
<h2>
{{files.length}}
</h2>
<ul>
<li v-for="li in files" @click="load(li)">
{{li}}
</li>
</ul>
<Table :columns="column" :data="data"></Table>
</div>
<div class="fg" v-html="txt">
</div>
</div>
</template>
<script>
const indexFiles = require.context(`./`, true, /\.vue$/)
// const fs = require('fs')
export default {
name: '',
layout:'empty',
data() {
return {
files:[],
txt:"",
}
},
mounted(){
this.files=indexFiles.keys();
console.log("vvv",this.files)
},
methods:{
load(f){
// fs.readFile('map.vue',(e,d)=>{
// if(!e){
// this.txt=d.toString();
// }else{
// this.txt="Erro!"
// }
// })
}
}
}
</script>
<style lang="less">
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment