mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 02:22:25 +00:00
fix: lint
This commit is contained in:
@@ -145,8 +145,8 @@ export function useApiSelect(option: ApiSelectProps) {
|
||||
}
|
||||
|
||||
return {
|
||||
label: label,
|
||||
value: value,
|
||||
label,
|
||||
value,
|
||||
};
|
||||
});
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default (key, name, type) => {
|
||||
function defaultEmpty(key, name, type) {
|
||||
if (!type) type = 'camunda';
|
||||
const TYPE_TARGET = {
|
||||
activiti: 'http://activiti.org/bpmn',
|
||||
@@ -21,4 +21,6 @@ export default (key, name, type) => {
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn2:definitions>`;
|
||||
};
|
||||
}
|
||||
|
||||
export default defaultEmpty;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
import extension from './extension';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
/**
|
||||
* This is a sample file that should be replaced with the actual translation.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!-- eslint-disable no-unused-vars -->
|
||||
<script lang="ts" setup>
|
||||
import { computed, inject, nextTick, onMounted, ref, toRaw, watch } from 'vue';
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!-- eslint-disable unused-imports/no-unused-vars -->
|
||||
<script lang="ts" setup>
|
||||
import { inject, nextTick, onBeforeUnmount, ref, toRaw, watch } from 'vue';
|
||||
|
||||
@@ -65,6 +66,7 @@ const bpmnElement = ref<any>(null);
|
||||
const multiLoopInstance = ref<any>(null);
|
||||
declare global {
|
||||
interface Window {
|
||||
// @ts-ignore
|
||||
bpmnInstances?: () => any;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const hljs = require('highlight.js/lib/core');
|
||||
hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'));
|
||||
hljs.registerLanguage('json', require('highlight.js/lib/languages/json'));
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
import jsonLanguage from 'highlight.js/lib/languages/json';
|
||||
import xmlLanguage from 'highlight.js/lib/languages/xml';
|
||||
|
||||
module.exports = hljs;
|
||||
hljs.registerLanguage('xml', xmlLanguage);
|
||||
hljs.registerLanguage('json', jsonLanguage);
|
||||
|
||||
export default hljs;
|
||||
|
||||
@@ -34,6 +34,7 @@ export default {
|
||||
},
|
||||
unbind(el) {
|
||||
document.removeEventListener('touchstart', el[ctx].documentHandler); // 解绑
|
||||
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
||||
delete el[ctx];
|
||||
},
|
||||
};
|
||||
|
||||
@@ -33,13 +33,13 @@ function xml2json(xml) {
|
||||
}
|
||||
return obj;
|
||||
} catch (error) {
|
||||
console.log(error.message);
|
||||
console.warn(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
function xmlObj2json(xml) {
|
||||
const xmlObj = xmlStr2XmlObj(xml);
|
||||
console.log(xmlObj);
|
||||
console.warn(xmlObj);
|
||||
let jsonObj = {};
|
||||
if (xmlObj.childNodes.length > 0) {
|
||||
jsonObj = xml2json(xmlObj);
|
||||
|
||||
@@ -135,8 +135,8 @@ function handleDeviceChange(_: any) {
|
||||
|
||||
/**
|
||||
* 处理属性变化事件
|
||||
* @param propertyInfo.config 属性配置
|
||||
* @param propertyInfo.type 属性类型
|
||||
* @param propertyInfo.config - 属性配置
|
||||
* @param propertyInfo.type - 属性类型
|
||||
*/
|
||||
function handlePropertyChange(propertyInfo: { config: any; type: string }) {
|
||||
propertyType.value = propertyInfo.type;
|
||||
|
||||
@@ -50,8 +50,8 @@ interface JsonParamsConfig {
|
||||
interface Props {
|
||||
modelValue: string;
|
||||
config: JsonParamsConfig;
|
||||
type: JsonParamsInputType;
|
||||
placeholder: string;
|
||||
type?: JsonParamsInputType;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
/** 商品属性及其值的树形结构(用于前端展示和操作) */
|
||||
export interface PropertyAndValues {
|
||||
id: number;
|
||||
@@ -30,4 +28,5 @@ export interface SpuProperty<T> {
|
||||
}
|
||||
|
||||
// Re-export for use in generic constraint
|
||||
export type { MallSpuApi };
|
||||
|
||||
export { type MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
@@ -145,8 +145,8 @@ export function useApiSelect(option: ApiSelectProps) {
|
||||
}
|
||||
|
||||
return {
|
||||
label: label,
|
||||
value: value,
|
||||
label,
|
||||
value,
|
||||
};
|
||||
});
|
||||
return;
|
||||
|
||||
@@ -46,6 +46,8 @@ export async function ignores(): Promise<Linter.Config[]> {
|
||||
'**/*.sh',
|
||||
'**/*.ttf',
|
||||
'**/*.woff',
|
||||
'**/public/**',
|
||||
'**/china.json',
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user