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