chore: 移除 min-dash 使用vben/utils 中的方法
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { assign, forEach, isArray } from '@vben/utils';
|
||||
|
||||
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil';
|
||||
import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
|
||||
import { isEventSubProcess, isExpanded } from 'bpmn-js/lib/util/DiUtil';
|
||||
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
||||
import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse';
|
||||
import { assign, forEach, isArray } from 'min-dash';
|
||||
|
||||
/**
|
||||
* A provider for BPMN 2.0 elements context pad
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
import { some } from 'min-dash';
|
||||
|
||||
// const some = require('min-dash').some
|
||||
// const some = some
|
||||
import { some } from '@vben/utils';
|
||||
|
||||
const ALLOWED_TYPES = {
|
||||
FailedJobRetryTimeCycle: [
|
||||
@@ -25,7 +20,7 @@ function is(element, type) {
|
||||
}
|
||||
|
||||
function exists(element) {
|
||||
return element && element.length;
|
||||
return element && element.length > 0;
|
||||
}
|
||||
|
||||
function includesType(collection, type) {
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
import { isFunction, isObject, some } from 'min-dash';
|
||||
|
||||
// const isFunction = isFunction,
|
||||
// isObject = isObject,
|
||||
// some = some
|
||||
// const isFunction = require('min-dash').isFunction,
|
||||
// isObject = require('min-dash').isObject,
|
||||
// some = require('min-dash').some
|
||||
import { isFunction, isObject, some } from '@vben/utils';
|
||||
|
||||
const WILDCARD = '*';
|
||||
|
||||
function CamundaModdleExtension(eventBus) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
// eslint-disable-next-line unicorn/no-this-assignment, @typescript-eslint/no-this-alias
|
||||
const self = this;
|
||||
|
||||
eventBus.on('moddleCopy.canCopyProperty', (context) => {
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
import { some } from 'min-dash';
|
||||
|
||||
// const some = some
|
||||
// const some = require('min-dash').some
|
||||
import { some } from '@vben/utils';
|
||||
|
||||
const ALLOWED_TYPES = {
|
||||
FailedJobRetryTimeCycle: [
|
||||
@@ -25,7 +20,7 @@ function is(element, type) {
|
||||
}
|
||||
|
||||
function exists(element) {
|
||||
return element && element.length;
|
||||
return element && element.length > 0;
|
||||
}
|
||||
|
||||
function includesType(collection, type) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { assign } from '@vben/utils';
|
||||
|
||||
import PaletteProvider from 'bpmn-js/lib/features/palette/PaletteProvider';
|
||||
import { assign } from 'min-dash';
|
||||
|
||||
export default function CustomPalette(
|
||||
palette,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { assign } from 'min-dash';
|
||||
import { assign } from '@vben/utils';
|
||||
|
||||
/**
|
||||
* A palette provider for BPMN 2.0 elements.
|
||||
|
||||
Reference in New Issue
Block a user