mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 02:22:25 +00:00
chore: 移除 min-dash 使用vben/utils 中的方法
This commit is contained in:
@@ -55,7 +55,6 @@
|
||||
"diagram-js": "catalog:",
|
||||
"fast-xml-parser": "catalog:",
|
||||
"highlight.js": "catalog:",
|
||||
"min-dash": "catalog:",
|
||||
"pinia": "catalog:",
|
||||
"steady-xml": "catalog:",
|
||||
"tinymce": "catalog:",
|
||||
|
||||
@@ -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.
|
||||
|
||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@@ -405,9 +405,6 @@ catalogs:
|
||||
medium-zoom:
|
||||
specifier: ^1.1.0
|
||||
version: 1.1.0
|
||||
min-dash:
|
||||
specifier: ^4.2.3
|
||||
version: 4.2.3
|
||||
naive-ui:
|
||||
specifier: ^2.42.0
|
||||
version: 2.43.1
|
||||
@@ -839,9 +836,6 @@ importers:
|
||||
highlight.js:
|
||||
specifier: 'catalog:'
|
||||
version: 11.11.1
|
||||
min-dash:
|
||||
specifier: 'catalog:'
|
||||
version: 4.2.3
|
||||
pinia:
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))
|
||||
|
||||
@@ -150,7 +150,6 @@ catalog:
|
||||
markmap-toolbar: ^0.17.0
|
||||
markmap-view: ^0.16.0
|
||||
medium-zoom: ^1.1.0
|
||||
min-dash: ^4.2.3
|
||||
naive-ui: ^2.42.0
|
||||
nitropack: ^2.11.13
|
||||
nprogress: ^0.2.0
|
||||
|
||||
Reference in New Issue
Block a user