fix: lint
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user