Skip to content

Commit

Permalink
fix(card-list): fixed build error
Browse files Browse the repository at this point in the history
修复CardList组件造成的build错误
  • Loading branch information
mynetfan committed Aug 27, 2021
1 parent 0f5ddbf commit 628e820
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/components/CardList/src/CardList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<BasicForm @register="registerForm" />
</div>
{{ sliderProp.width }}
<div class="bg-white p-2"
><List
<div class="bg-white p-2">
<List
:grid="{ gutter: 5, xs: 1, sm: 2, md: 4, lg: 4, xl: 6, xxl: grid }"
:data-source="data"
:pagination="paginationProp"
Expand Down Expand Up @@ -72,8 +72,8 @@
</Card>
</ListItem>
</template>
</List></div
>
</List>
</div>
</div>
</template>
<script lang="ts" setup>
Expand All @@ -84,23 +84,16 @@
RedoOutlined,
TableOutlined,
} from '@ant-design/icons-vue';
import {
List,
ListItem,
Card,
CardMeta,
Image,
TypographyText,
Tooltip,
Slider,
Avatar,
} from 'ant-design-vue';
import { List, Card, Image, Typography, Tooltip, Slider, Avatar } from 'ant-design-vue';
import { Dropdown } from '/@/components/Dropdown';
import { BasicForm, useForm } from '/@/components/Form';
import { propTypes } from '/@/utils/propTypes';
import { Button } from '/@/components/Button';
import { isFunction } from '/@/utils/is';
import { useSlider, grid } from './data';
const ListItem = List.Item;
const CardMeta = Card.Meta;
const TypographyText = Typography.Text;
// 获取slider属性
const sliderProp = computed(() => useSlider(4));
// 组件接收参数
Expand Down

0 comments on commit 628e820

Please sign in to comment.