File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/pages/preference/components/model Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { Model } from ' @/stores/model'
3+ import type { ColProps } from ' ant-design-vue'
34
45import { convertFileSrc } from ' @tauri-apps/api/core'
56import { remove } from ' @tauri-apps/plugin-fs'
@@ -13,6 +14,13 @@ import { join } from '@/utils/path'
1314
1415const modelStore = useModelStore ()
1516
17+ const colProps: ColProps = {
18+ xs: 12 ,
19+ md: 8 ,
20+ lg: 6 ,
21+ xl: 4 ,
22+ }
23+
1624async function handleDelete(item : Model ) {
1725 const { id, path } = item
1826
@@ -34,14 +42,14 @@ async function handleDelete(item: Model) {
3442
3543<template >
3644 <Row :gutter =" [16, 16]" >
37- <Col :span = " 8 " >
45+ <Col v-bind = " colProps " >
3846 <Upload />
3947 </Col >
4048
4149 <Col
4250 v-for =" item in modelStore.models"
4351 :key =" item.id"
44- :span = " 8 "
52+ v-bind = " colProps "
4553 >
4654 <Card
4755 hoverable
You can’t perform that action at this time.
0 commit comments