fix: lint
This commit is contained in:
@@ -284,6 +284,17 @@ onMounted(() => {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// @jason:看看能不能通过 tailwindcss 简化下
|
// @jason:看看能不能通过 tailwindcss 简化下
|
||||||
|
@keyframes bounce {
|
||||||
|
0%,
|
||||||
|
50% {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.process-definition-container {
|
.process-definition-container {
|
||||||
.definition-item-card {
|
.definition-item-card {
|
||||||
.flow-icon-img {
|
.flow-icon-img {
|
||||||
@@ -310,15 +321,4 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes bounce {
|
|
||||||
0%,
|
|
||||||
100% {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
50% {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import type { HotZoneProperty } from './config';
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import { useVModel } from '@vueuse/core';
|
import { useVModel } from '@vueuse/core';
|
||||||
|
|
||||||
import { Button, Form, FormItem, Typography } from 'ant-design-vue';
|
import { Button, Form, FormItem, Typography } from 'ant-design-vue';
|
||||||
|
|
||||||
import UploadImg from '#/components/upload/image-upload.vue';
|
import UploadImg from '#/components/upload/image-upload.vue';
|
||||||
@@ -30,7 +29,12 @@ const handleOpenEditDialog = () => {
|
|||||||
<template>
|
<template>
|
||||||
<ComponentContainerProperty v-model="formData.style">
|
<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">
|
<FormItem label="上传图片" prop="imgUrl">
|
||||||
<UploadImg
|
<UploadImg
|
||||||
v-model="formData.imgUrl"
|
v-model="formData.imgUrl"
|
||||||
@@ -40,7 +44,9 @@ const handleOpenEditDialog = () => {
|
|||||||
:show-description="false"
|
:show-description="false"
|
||||||
>
|
>
|
||||||
<template #tip>
|
<template #tip>
|
||||||
<Typography.Text type="secondary" class="text-xs"> 推荐宽度 750</Typography.Text>
|
<Typography.Text type="secondary" class="text-xs">
|
||||||
|
推荐宽度 750
|
||||||
|
</Typography.Text>
|
||||||
</template>
|
</template>
|
||||||
</UploadImg>
|
</UploadImg>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import type { ImageBarProperty } from './config';
|
import type { ImageBarProperty } from './config';
|
||||||
|
|
||||||
import { useVModel } from '@vueuse/core';
|
import { useVModel } from '@vueuse/core';
|
||||||
|
|
||||||
import { Form, FormItem } from 'ant-design-vue';
|
import { Form, FormItem } from 'ant-design-vue';
|
||||||
|
|
||||||
import UploadImg from '#/components/upload/image-upload.vue';
|
import UploadImg from '#/components/upload/image-upload.vue';
|
||||||
@@ -20,7 +19,11 @@ const formData = useVModel(props, 'modelValue', emit);
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ComponentContainerProperty v-model="formData.style">
|
<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">
|
<FormItem label="上传图片" prop="imgUrl">
|
||||||
<UploadImg
|
<UploadImg
|
||||||
v-model="formData.imgUrl"
|
v-model="formData.imgUrl"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ setInterval(() => {
|
|||||||
>
|
>
|
||||||
<Image :src="property.iconUrl" class="h-[18px]" :preview="false" />
|
<Image :src="property.iconUrl" class="h-[18px]" :preview="false" />
|
||||||
<Divider type="vertical" />
|
<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 }}
|
{{ property.contents?.[activeIndex]?.text }}
|
||||||
</div>
|
</div>
|
||||||
<IconifyIcon icon="ep:arrow-right" />
|
<IconifyIcon icon="ep:arrow-right" />
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!-- eslint-disable unicorn/no-nested-ternary -->
|
||||||
<!-- 积分活动橱窗组件 - 用于装修时展示和选择积分活动 -->
|
<!-- 积分活动橱窗组件 - 用于装修时展示和选择积分活动 -->
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
// TODO @puhui999:看看是不是整体优化下代码风格,参考别的模块
|
// TODO @puhui999:看看是不是整体优化下代码风格,参考别的模块
|
||||||
@@ -95,9 +96,9 @@ watch(
|
|||||||
async () => {
|
async () => {
|
||||||
const ids = Array.isArray(props.modelValue)
|
const ids = Array.isArray(props.modelValue)
|
||||||
? props.modelValue
|
? props.modelValue
|
||||||
: (props.modelValue
|
: props.modelValue
|
||||||
? [props.modelValue]
|
? [props.modelValue]
|
||||||
: []);
|
: [];
|
||||||
|
|
||||||
// 不需要返显
|
// 不需要返显
|
||||||
if (ids.length === 0) {
|
if (ids.length === 0) {
|
||||||
@@ -158,7 +159,7 @@ watch(
|
|||||||
<!-- 积分活动选择对话框 -->
|
<!-- 积分活动选择对话框 -->
|
||||||
<PointTableSelect
|
<PointTableSelect
|
||||||
ref="pointActivityTableSelectRef"
|
ref="pointActivityTableSelectRef"
|
||||||
:multiple="limit != 1"
|
:multiple="limit !== 1"
|
||||||
@change="handleActivitySelected"
|
@change="handleActivitySelected"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -153,4 +153,3 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user