fix: lint

This commit is contained in:
xingyu4j
2025-10-28 14:29:42 +08:00
parent f88713ce28
commit 32d8af5475
6 changed files with 30 additions and 21 deletions

View File

@@ -284,6 +284,17 @@ onMounted(() => {
<style lang="scss" scoped>
// @jason看看能不能通过 tailwindcss 简化下
@keyframes bounce {
0%,
50% {
transform: translateY(-5px);
}
100% {
transform: translateY(0);
}
}
.process-definition-container {
.definition-item-card {
.flow-icon-img {
@@ -310,15 +321,4 @@ onMounted(() => {
}
}
}
@keyframes bounce {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
</style>

View File

@@ -4,7 +4,6 @@ import type { HotZoneProperty } from './config';
import { ref } from 'vue';
import { useVModel } from '@vueuse/core';
import { Button, Form, FormItem, Typography } from 'ant-design-vue';
import UploadImg from '#/components/upload/image-upload.vue';
@@ -30,7 +29,12 @@ const handleOpenEditDialog = () => {
<template>
<ComponentContainerProperty v-model="formData.style">
<!-- 表单 -->
<Form :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" :model="formData" class="mt-2">
<Form
:label-col="{ span: 6 }"
:wrapper-col="{ span: 18 }"
:model="formData"
class="mt-2"
>
<FormItem label="上传图片" prop="imgUrl">
<UploadImg
v-model="formData.imgUrl"
@@ -40,7 +44,9 @@ const handleOpenEditDialog = () => {
:show-description="false"
>
<template #tip>
<Typography.Text type="secondary" class="text-xs"> 推荐宽度 750</Typography.Text>
<Typography.Text type="secondary" class="text-xs">
推荐宽度 750
</Typography.Text>
</template>
</UploadImg>
</FormItem>

View File

@@ -2,7 +2,6 @@
import type { ImageBarProperty } from './config';
import { useVModel } from '@vueuse/core';
import { Form, FormItem } from 'ant-design-vue';
import UploadImg from '#/components/upload/image-upload.vue';
@@ -20,7 +19,11 @@ const formData = useVModel(props, 'modelValue', emit);
<template>
<ComponentContainerProperty v-model="formData.style">
<Form :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" :model="formData">
<Form
:label-col="{ span: 6 }"
:wrapper-col="{ span: 18 }"
:model="formData"
>
<FormItem label="上传图片" prop="imgUrl">
<UploadImg
v-model="formData.imgUrl"

View File

@@ -30,7 +30,7 @@ setInterval(() => {
>
<Image :src="property.iconUrl" class="h-[18px]" :preview="false" />
<Divider type="vertical" />
<div class="flex-1 pr-2 h-6 truncate leading-6">
<div class="h-6 flex-1 truncate pr-2 leading-6">
{{ property.contents?.[activeIndex]?.text }}
</div>
<IconifyIcon icon="ep:arrow-right" />

View File

@@ -1,3 +1,4 @@
<!-- eslint-disable unicorn/no-nested-ternary -->
<!-- 积分活动橱窗组件 - 用于装修时展示和选择积分活动 -->
<script lang="ts" setup>
// TODO @puhui999看看是不是整体优化下代码风格参考别的模块
@@ -95,9 +96,9 @@ watch(
async () => {
const ids = Array.isArray(props.modelValue)
? props.modelValue
: (props.modelValue
: props.modelValue
? [props.modelValue]
: []);
: [];
// 不需要返显
if (ids.length === 0) {
@@ -158,7 +159,7 @@ watch(
<!-- 积分活动选择对话框 -->
<PointTableSelect
ref="pointActivityTableSelectRef"
:multiple="limit != 1"
:multiple="limit !== 1"
@change="handleActivitySelected"
/>
</template>

View File

@@ -153,4 +153,3 @@ const [Grid, gridApi] = useVbenVxeGrid({
</Grid>
</Page>
</template>