refactor: components edit
This commit is contained in:
parent
2b07b0fba5
commit
72888c407e
5 changed files with 104 additions and 199 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue