fix: lint

This commit is contained in:
xingyu4j
2025-12-01 17:03:38 +08:00
parent d16ebea639
commit 05c064a250
6 changed files with 12 additions and 8 deletions

View File

@@ -530,7 +530,10 @@ onMounted(async () => {
</Button>
</div>
<div class="button-setting-item-label">
<Switch v-model:checked="item.enable" @change="updateElementExtensions" />
<Switch
v-model:checked="item.enable"
@change="updateElementExtensions"
/>
</div>
</div>
</div>

View File

@@ -45,7 +45,7 @@ const bpmnInstances = () => (window as any)?.bpmnInstances;
const generateStandardId = (type: string): string => {
const prefix = type === 'message' ? 'Message_' : 'Signal_';
const timestamp = Date.now();
const random = Math.random().toString(36).substring(2, 6).toUpperCase();
const random = Math.random().toString(36).slice(2, 6).toUpperCase();
return `${prefix}${timestamp}_${random}`;
};

View File

@@ -153,14 +153,14 @@ watch(
.header-editor {
.header-list {
max-height: 400px;
overflow-y: auto;
margin-bottom: 16px;
overflow-y: auto;
}
.header-item {
display: flex;
align-items: center;
gap: 8px;
align-items: center;
margin-bottom: 12px;
.header-key {
@@ -168,8 +168,8 @@ watch(
}
.separator {
color: #606266;
font-weight: 500;
color: #606266;
}
.header-value {

View File

@@ -1,3 +1,4 @@
<!-- eslint-disable prettier/prettier -->
<script lang="ts" setup>
import { inject, nextTick, onBeforeUnmount, ref, toRaw, watch } from 'vue';
@@ -203,7 +204,7 @@ const updateHttpExtensions = (force = false) => {
? String(!!rawValue)
: (rawValue === undefined
? ''
: String(rawValue));
: rawValue.toString());
desiredEntries.push([name, persisted]);
});

View File

@@ -2,8 +2,8 @@ import type { Ref } from 'vue';
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeGridProps, VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MallSpuApi } from '#/api/mall/product/spu';
import type { MallCategoryApi } from '#/api/mall/product/category';
import type { MallSpuApi } from '#/api/mall/product/spu';
import { computed } from 'vue';

View File

@@ -4,13 +4,13 @@ import type { MpMaterialApi } from '#/api/mp/material';
import { watch } from 'vue';
import { $t } from '@vben/locales';
import { openWindow } from '@vben/utils';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { WxVideoPlayer } from '#/views/mp/components';
import { useVideoGridColumns } from './data';
import {$t} from '@vben/locales';
const props = defineProps<{
list: MpMaterialApi.Material[];