refactor: components edit

This commit is contained in:
somnetsak123 2023-11-28 09:22:44 +07:00 committed by Methapon2001
parent 2b07b0fba5
commit 72888c407e
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
5 changed files with 104 additions and 199 deletions

View file

@ -3,7 +3,6 @@ import { computed, ref } from 'vue'
import { storeToRefs } from 'pinia'
import type { QTableProps } from 'quasar'
import { useTreeDataStore } from '@/stores/tree-data'
import FileItem from '@/components/FileItem.vue'
const { listDataFile, listDataFolder, currentDept } = storeToRefs(
useTreeDataStore()
@ -20,6 +19,8 @@ const currentLevel = computed(() =>
: 'แฟ้มย่อย'
)
const currentIcon = computed(() =>
currentDept.value === 0
? 'mdi-file-cabinet'
@ -233,8 +234,6 @@ const columnsFile: QTableProps['columns'] = [
</q-table>
</div>
</div>
<file-item viewMode="view_list" :action="true" />
</template>
<style lang="scss" scoped>