workflow-editor 0.9.86-dw → 0.9.87-dw
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/workflow-editor.css +1 -0
- package/lib/workflow-editor.umd.min.js +39 -0
- package/package.json +23 -50
- package/{src → packages}/index.js +12 -15
- package/packages/plugins/formValidatorUtil.js +528 -0
- package/packages/plugins/index.js +8 -0
- package/packages/workflow-editor/index.js +14 -0
- package/packages/workflow-editor/src/api.js +7 -0
- package/packages/workflow-editor/src/assets/wf-editor-icons.js +2 -0
- package/packages/workflow-editor/src/constant.js +8 -0
- package/packages/workflow-editor/src/json-object-templates/copy-task.js +67 -0
- package/packages/workflow-editor/src/json-object-templates/decision.js +11 -0
- package/packages/workflow-editor/src/json-object-templates/end.js +14 -0
- package/packages/workflow-editor/src/json-object-templates/fork.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/human-decision.js +9 -0
- package/packages/workflow-editor/src/json-object-templates/human-task.js +199 -0
- package/packages/workflow-editor/src/json-object-templates/join.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/process.js +98 -0
- package/packages/workflow-editor/src/json-object-templates/start.js +13 -0
- package/packages/workflow-editor/src/json-object-templates/subprocess.js +30 -0
- package/packages/workflow-editor/src/json-object-templates/transition.js +26 -0
- package/packages/workflow-editor/src/main/admin-save-dialog.vue +66 -0
- package/packages/workflow-editor/src/main/canvas.vue +479 -0
- package/packages/workflow-editor/src/main/context-menu.vue +132 -0
- package/packages/workflow-editor/src/main/icon-svg.vue +32 -0
- package/packages/workflow-editor/src/main/selection-region.vue +66 -0
- package/packages/workflow-editor/src/main/tache-history-tooltip.vue +38 -0
- package/packages/workflow-editor/src/main/tache-name-input.vue +19 -0
- package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +35 -0
- package/packages/workflow-editor/src/main/toolbox.vue +60 -0
- package/packages/workflow-editor/src/main/wf-history-canvas.vue +302 -0
- package/packages/workflow-editor/src/process-json.js +622 -0
- package/packages/workflow-editor/src/process-service.js +31 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +531 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +276 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +34 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +239 -0
- package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +47 -0
- package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +241 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +23 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +116 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +75 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +125 -0
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +98 -0
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +179 -0
- package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +83 -0
- package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +65 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +355 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +63 -0
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +148 -0
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +233 -0
- package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +386 -0
- package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +209 -0
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +135 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +90 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +155 -0
- package/packages/workflow-editor/src/properties-editors/copy-task.vue +80 -0
- package/packages/workflow-editor/src/properties-editors/decision.vue +90 -0
- package/packages/workflow-editor/src/properties-editors/fork.vue +72 -0
- package/packages/workflow-editor/src/properties-editors/human-decision.vue +44 -0
- package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +60 -0
- package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +156 -0
- package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +291 -0
- package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +249 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +392 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +241 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +220 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +204 -0
- package/packages/workflow-editor/src/properties-editors/human-task/events.vue +59 -0
- package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +207 -0
- package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +390 -0
- package/packages/workflow-editor/src/properties-editors/human-task.vue +103 -0
- package/packages/workflow-editor/src/properties-editors/join.vue +44 -0
- package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +273 -0
- package/packages/workflow-editor/src/properties-editors/process/events.vue +76 -0
- package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +60 -0
- package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +95 -0
- package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +28 -0
- package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +81 -0
- package/packages/workflow-editor/src/properties-editors/process.vue +109 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +187 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +26 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +206 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +64 -0
- package/packages/workflow-editor/src/properties-editors/subprocess.vue +79 -0
- package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +53 -0
- package/packages/workflow-editor/src/properties-editors/transition.vue +74 -0
- package/packages/workflow-editor/src/properties-editors/user-condition.js +177 -0
- package/packages/workflow-editor/src/store/getters.js +27 -0
- package/packages/workflow-editor/src/store/workflow-editor.js +125 -0
- package/packages/workflow-editor/src/taches/common-methods.js +21 -0
- package/packages/workflow-editor/src/taches/copy-task.vue +99 -0
- package/packages/workflow-editor/src/taches/custom-task.vue +88 -0
- package/packages/workflow-editor/src/taches/decision.vue +102 -0
- package/packages/workflow-editor/src/taches/end.vue +76 -0
- package/packages/workflow-editor/src/taches/fork.vue +102 -0
- package/packages/workflow-editor/src/taches/human-decision.vue +102 -0
- package/packages/workflow-editor/src/taches/human-task.vue +113 -0
- package/packages/workflow-editor/src/taches/join.vue +91 -0
- package/packages/workflow-editor/src/taches/joint.vue +177 -0
- package/packages/workflow-editor/src/taches/start.vue +76 -0
- package/packages/workflow-editor/src/taches/subprocess.vue +99 -0
- package/packages/workflow-editor/src/taches/tache-resizer.vue +80 -0
- package/packages/workflow-editor/src/transitions/broken-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/curve-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/straight-line.vue +26 -0
- package/packages/workflow-editor/src/transitions/transition.vue +212 -0
- package/packages/workflow-editor/src/transitions/virtual-transition.vue +43 -0
- package/packages/workflow-editor/src/util.js +493 -0
- package/packages/workflow-editor/src/workflow-editor.vue +605 -0
- package/packages/workflow-editor/src/workflow-history.vue +153 -0
- package/.babelrc +0 -40
- package/build/components.json +0 -3
- package/build/gen-style.js +0 -32
- package/build/webpack.base.js +0 -173
- package/build/webpack.component.js +0 -46
- package/build/webpack.prod.js +0 -31
- package/lib/css/workflow-editor.css +0 -16
- package/lib/workflow-editor.js +0 -27
- package/lib/workflow-editor.min.js +0 -27
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="wfEditor"
|
|
4
|
+
style="position:relative;height:100%;"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
class="main"
|
|
8
|
+
>
|
|
9
|
+
<section>
|
|
10
|
+
<wf-history-canvas
|
|
11
|
+
onselectstart="return false"
|
|
12
|
+
:process="process"
|
|
13
|
+
:histories="histories"
|
|
14
|
+
:current-tasks="currentTasks"
|
|
15
|
+
:all-process-i18n="allProcessI18n"
|
|
16
|
+
:show-history="true"
|
|
17
|
+
class="canvas"
|
|
18
|
+
@contextmenu.native.prevent="showContextMenu"
|
|
19
|
+
/>
|
|
20
|
+
</section>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import './assets/wf-editor-icons.js'
|
|
26
|
+
import { mapGetters, mapMutations } from 'vuex'
|
|
27
|
+
import { removeTextProperty, initializeProcessData, processTemplate } from './util'
|
|
28
|
+
import WfHistoryCanvas from './main/wf-history-canvas'
|
|
29
|
+
import convert from 'xml-js'
|
|
30
|
+
import ApiJs from './api'
|
|
31
|
+
export default {
|
|
32
|
+
name: 'WorkflowHistory',
|
|
33
|
+
components: {
|
|
34
|
+
WfHistoryCanvas
|
|
35
|
+
},
|
|
36
|
+
props: {
|
|
37
|
+
// 实例id
|
|
38
|
+
id: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: null
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
data: function() {
|
|
44
|
+
return {
|
|
45
|
+
process: null,
|
|
46
|
+
histories: [],
|
|
47
|
+
currentTasks: [],
|
|
48
|
+
allProcessI18n: null
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
computed: {
|
|
52
|
+
...mapGetters(
|
|
53
|
+
'wfEditor', ['componentToDraw', 'taches', 'transitions', 'contextMenuVisible']
|
|
54
|
+
),
|
|
55
|
+
...mapGetters([
|
|
56
|
+
'sidebar'
|
|
57
|
+
])
|
|
58
|
+
|
|
59
|
+
},
|
|
60
|
+
watch: {
|
|
61
|
+
|
|
62
|
+
},
|
|
63
|
+
created: function() {
|
|
64
|
+
this.showHistory()
|
|
65
|
+
},
|
|
66
|
+
mounted: function() {
|
|
67
|
+
|
|
68
|
+
},
|
|
69
|
+
methods: {
|
|
70
|
+
...ApiJs,
|
|
71
|
+
...mapMutations('wfEditor', [
|
|
72
|
+
'setComponentToDraw',
|
|
73
|
+
'clearCanvas',
|
|
74
|
+
'setContextMenuVisible',
|
|
75
|
+
'setProcessI18n'
|
|
76
|
+
]),
|
|
77
|
+
showHistory() {
|
|
78
|
+
// 打开或新建流程图时先清空画布,开发过程中代码热更新的时候可以避免节点重复
|
|
79
|
+
this.clearCanvas()
|
|
80
|
+
if (this.id) {
|
|
81
|
+
this.$http.get(this.baseAPI + '/wf-editor/i18n-settings/get-bundle-info?workflowId=' + this.id).then(processI18n => {
|
|
82
|
+
this.allProcessI18n = processI18n
|
|
83
|
+
const url = this.baseAPI + '/wf-editor/instance-histories/' + this.id
|
|
84
|
+
this.$http.get(url).then(data => {
|
|
85
|
+
this.initProcessByXml(data.xml)
|
|
86
|
+
let mainBundleCode
|
|
87
|
+
if (data.histories && data.histories.length > 0) {
|
|
88
|
+
mainBundleCode = data.histories[0].bundleCode
|
|
89
|
+
}
|
|
90
|
+
if (!mainBundleCode && data.currentTasks && data.currentTasks.length > 0) {
|
|
91
|
+
mainBundleCode = data.currentTasks[0].bundleCode
|
|
92
|
+
}
|
|
93
|
+
if (mainBundleCode) {
|
|
94
|
+
this.setProcessI18n(processI18n[mainBundleCode])
|
|
95
|
+
}
|
|
96
|
+
this.histories = data.histories
|
|
97
|
+
this.currentTasks = data.currentTasks
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
} else {
|
|
101
|
+
this.process = processTemplate.newProcess()
|
|
102
|
+
initializeProcessData(this.process)
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
showContextMenu(event) {
|
|
106
|
+
|
|
107
|
+
},
|
|
108
|
+
initProcessByXml(xml) {
|
|
109
|
+
const options = { nativeType: true, attributesKey: 'attr', compact: true, ignoreComment: true, spaces: 4 }
|
|
110
|
+
const processObj = convert.xml2js(xml, options)
|
|
111
|
+
removeTextProperty(processObj.process)
|
|
112
|
+
this.process = processObj.process
|
|
113
|
+
|
|
114
|
+
initializeProcessData(this.process)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</script>
|
|
119
|
+
<style lang="scss" scoped>
|
|
120
|
+
.main{
|
|
121
|
+
position: relative;
|
|
122
|
+
display:flex;
|
|
123
|
+
height: 100%;
|
|
124
|
+
width:100%;
|
|
125
|
+
}
|
|
126
|
+
.canvas-container{
|
|
127
|
+
position: relative;
|
|
128
|
+
// display:flex;
|
|
129
|
+
height: 100%;
|
|
130
|
+
width:100%;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
section{
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
width:100%;
|
|
136
|
+
height:100%;
|
|
137
|
+
padding: 0;
|
|
138
|
+
// min-height: 500px;
|
|
139
|
+
}
|
|
140
|
+
.canvas{
|
|
141
|
+
overflow: auto;
|
|
142
|
+
height:100%;
|
|
143
|
+
// border:1px solid red;
|
|
144
|
+
// background: #ffffff;
|
|
145
|
+
padding: 0;
|
|
146
|
+
min-height: 500px;
|
|
147
|
+
|
|
148
|
+
}
|
|
149
|
+
.canvas /deep/ .draggable{
|
|
150
|
+
cursor: default;
|
|
151
|
+
}
|
|
152
|
+
</style>
|
|
153
|
+
|
package/.babelrc
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
[
|
|
4
|
-
"@babel/preset-env",
|
|
5
|
-
{
|
|
6
|
-
"loose": false,
|
|
7
|
-
"modules": "commonjs",
|
|
8
|
-
"spec": true,
|
|
9
|
-
"useBuiltIns": "usage",
|
|
10
|
-
"corejs": "2.6.9"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
],
|
|
14
|
-
"plugins": [
|
|
15
|
-
"@babel/plugin-transform-runtime",
|
|
16
|
-
["component", {
|
|
17
|
-
"libraryName": "workflow-editor",
|
|
18
|
-
"libDir": "lib",
|
|
19
|
-
"styleLibrary": {
|
|
20
|
-
"name": "styles",
|
|
21
|
-
"base": false, // no base.css file
|
|
22
|
-
"path": "[module].css"
|
|
23
|
-
}
|
|
24
|
-
}]
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// {
|
|
29
|
-
// "plugins": [
|
|
30
|
-
// ["component", {
|
|
31
|
-
// "libraryName": "imatrix-ui",
|
|
32
|
-
// "libDir": "lib",
|
|
33
|
-
// "styleLibrary": {
|
|
34
|
-
// "name": "styles",
|
|
35
|
-
// "base": false, // no base.css file
|
|
36
|
-
// "path": "[module].css"
|
|
37
|
-
// }
|
|
38
|
-
// }]
|
|
39
|
-
// ]
|
|
40
|
-
// }
|
package/build/components.json
DELETED
package/build/gen-style.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const gulp = require('gulp');
|
|
2
|
-
const cleanCSS = require('gulp-clean-css');
|
|
3
|
-
const sass = require('gulp-sass');
|
|
4
|
-
const rename = require('gulp-rename');
|
|
5
|
-
const autoprefixer = require('gulp-autoprefixer');
|
|
6
|
-
const components = require('./components.json')
|
|
7
|
-
|
|
8
|
-
function buildCss(cb) {
|
|
9
|
-
gulp.src('../src/styles/index.scss')
|
|
10
|
-
.pipe(sass())
|
|
11
|
-
.pipe(autoprefixer())
|
|
12
|
-
.pipe(cleanCSS())
|
|
13
|
-
.pipe(rename('lime-ui.css'))
|
|
14
|
-
.pipe(gulp.dest('../lib/styles'));
|
|
15
|
-
cb()
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function buildSeperateCss(cb) {
|
|
20
|
-
Object.keys(components).forEach(compName => {
|
|
21
|
-
gulp.src(`../src/styles/${compName}.scss`)
|
|
22
|
-
.pipe(sass())
|
|
23
|
-
.pipe(autoprefixer())
|
|
24
|
-
.pipe(cleanCSS())
|
|
25
|
-
.pipe(rename(`${compName}.css`))
|
|
26
|
-
.pipe(gulp.dest('../lib/styles'));
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
cb()
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
exports.default = gulp.series(buildCss, buildSeperateCss) // 加上 buildSeperateCss
|
package/build/webpack.base.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
const pkg = require('../package.json');
|
|
4
|
-
const VueLoaderPlugin = require('vue-loader/lib/plugin');
|
|
5
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
6
|
-
|
|
7
|
-
function resolve(dir) {
|
|
8
|
-
return path.join(__dirname, '..', dir);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
module.exports = {
|
|
12
|
-
module: {
|
|
13
|
-
rules: [
|
|
14
|
-
{
|
|
15
|
-
test: /\.vue$/,
|
|
16
|
-
loader: 'vue-loader',
|
|
17
|
-
options: {
|
|
18
|
-
loaders: {
|
|
19
|
-
css: [
|
|
20
|
-
'vue-style-loader',
|
|
21
|
-
{
|
|
22
|
-
loader: 'css-loader',
|
|
23
|
-
options: {
|
|
24
|
-
sourceMap: false,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
less: [
|
|
29
|
-
'vue-style-loader',
|
|
30
|
-
{
|
|
31
|
-
loader: 'css-loader',
|
|
32
|
-
options: {
|
|
33
|
-
sourceMap: false,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
loader: 'less-loader',
|
|
38
|
-
options: {
|
|
39
|
-
sourceMap: false,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
postLoaders: {
|
|
45
|
-
html: 'babel-loader?sourceMap'
|
|
46
|
-
},
|
|
47
|
-
sourceMap: false,
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
test: /\.js$/,
|
|
52
|
-
loader: 'babel-loader',
|
|
53
|
-
options: {
|
|
54
|
-
sourceMap: false,
|
|
55
|
-
},
|
|
56
|
-
exclude: /node_modules/,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
test: /\.css$/,
|
|
60
|
-
loaders: [
|
|
61
|
-
{
|
|
62
|
-
loader: 'style-loader',
|
|
63
|
-
options: {
|
|
64
|
-
sourceMap: false,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
loader: 'css-loader',
|
|
69
|
-
options: {
|
|
70
|
-
sourceMap: false,
|
|
71
|
-
},
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
test: /\.less$/,
|
|
77
|
-
loaders: [
|
|
78
|
-
// {
|
|
79
|
-
// loader: 'style-loader',
|
|
80
|
-
// options: {
|
|
81
|
-
// sourceMap: true,
|
|
82
|
-
// },
|
|
83
|
-
// },
|
|
84
|
-
{
|
|
85
|
-
loader: MiniCssExtractPlugin.loader,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
loader: 'css-loader',
|
|
89
|
-
options: {
|
|
90
|
-
sourceMap: false,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
loader: 'less-loader',
|
|
95
|
-
options: {
|
|
96
|
-
sourceMap: false,
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
test: /\.scss$/,
|
|
103
|
-
loaders: [
|
|
104
|
-
// {
|
|
105
|
-
// loader: 'style-loader',
|
|
106
|
-
// options: {
|
|
107
|
-
// sourceMap: true,
|
|
108
|
-
// },
|
|
109
|
-
// },
|
|
110
|
-
{
|
|
111
|
-
loader: MiniCssExtractPlugin.loader
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
loader: 'css-loader',
|
|
115
|
-
options: {
|
|
116
|
-
sourceMap: false,
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
loader: 'sass-loader',
|
|
121
|
-
options: {
|
|
122
|
-
sourceMap: false,
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
test: /\.(gif|jpg|png|woff|svg|eot|ttf)\??.*$/,
|
|
129
|
-
loader: 'url-loader?limit=8192'
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
resolve: {
|
|
134
|
-
extensions: ['.js', '.vue'],
|
|
135
|
-
alias: {
|
|
136
|
-
'vue': 'vue/dist/vue.esm.js',
|
|
137
|
-
'@': resolve('src')
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
externals: { // 外部化对vue的依赖
|
|
141
|
-
vue: {
|
|
142
|
-
root: 'Vue',
|
|
143
|
-
commonjs: 'vue',
|
|
144
|
-
commonjs2: 'vue',
|
|
145
|
-
amd: 'vue'
|
|
146
|
-
},
|
|
147
|
-
vuex: {
|
|
148
|
-
root: 'Vuex',
|
|
149
|
-
commonjs: 'vuex',
|
|
150
|
-
commonjs2: 'vuex',
|
|
151
|
-
amd: 'vuex'
|
|
152
|
-
},
|
|
153
|
-
// 'vue-i18n': {
|
|
154
|
-
// root: 'VueI18n',
|
|
155
|
-
// commonjs: 'vue-i18n',
|
|
156
|
-
// commonjs2: 'vue-i18n',
|
|
157
|
-
// amd: 'vue-i18n'
|
|
158
|
-
// },
|
|
159
|
-
'js-cookie': {
|
|
160
|
-
root: 'JsCookie',
|
|
161
|
-
commonjs: 'js-cookie',
|
|
162
|
-
commonjs2: 'js-cookie',
|
|
163
|
-
amd: 'js-cookie'
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
plugins: [
|
|
167
|
-
new webpack.optimize.ModuleConcatenationPlugin(),
|
|
168
|
-
new webpack.DefinePlugin({
|
|
169
|
-
'process.env.VERSION': `'${pkg.version}'`
|
|
170
|
-
}),
|
|
171
|
-
new VueLoaderPlugin()
|
|
172
|
-
]
|
|
173
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
const merge = require('webpack-merge');
|
|
4
|
-
const webpackBaseConfig = require('./webpack.base.js');
|
|
5
|
-
const components = require('./components.json')
|
|
6
|
-
|
|
7
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
8
|
-
|
|
9
|
-
process.env.NODE_ENV = 'production';
|
|
10
|
-
|
|
11
|
-
const basePath = path.resolve(__dirname, '../')
|
|
12
|
-
let entries = {}
|
|
13
|
-
Object.keys(components).forEach(key => {
|
|
14
|
-
entries[key] = path.join(basePath, '.', components[key])
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
module.exports = merge(webpackBaseConfig, {
|
|
18
|
-
devtool: 'nosources',
|
|
19
|
-
mode: "production",
|
|
20
|
-
entry: entries,
|
|
21
|
-
output: {
|
|
22
|
-
path: path.resolve(__dirname, '../lib'),
|
|
23
|
-
publicPath: '/lib/',
|
|
24
|
-
filename: '[name].js',
|
|
25
|
-
chunkFilename: '[id].js',
|
|
26
|
-
library: 'imatrix-ui',
|
|
27
|
-
libraryTarget: 'umd',
|
|
28
|
-
umdNamedDefine: true
|
|
29
|
-
},
|
|
30
|
-
externals: {
|
|
31
|
-
vue: {
|
|
32
|
-
root: 'Vue',
|
|
33
|
-
commonjs: 'vue',
|
|
34
|
-
commonjs2: 'vue',
|
|
35
|
-
amd: 'vue'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
plugins: [
|
|
39
|
-
new webpack.DefinePlugin({
|
|
40
|
-
'process.env.NODE_ENV': '"production"'
|
|
41
|
-
}),
|
|
42
|
-
new MiniCssExtractPlugin({
|
|
43
|
-
filename: 'css/[name].css'
|
|
44
|
-
})
|
|
45
|
-
]
|
|
46
|
-
});
|
package/build/webpack.prod.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
const merge = require('webpack-merge');
|
|
4
|
-
const webpackBaseConfig = require('./webpack.base.js');
|
|
5
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
6
|
-
|
|
7
|
-
process.env.NODE_ENV = 'production';
|
|
8
|
-
|
|
9
|
-
module.exports = merge(webpackBaseConfig, {
|
|
10
|
-
devtool: 'nosources',
|
|
11
|
-
mode: "production",
|
|
12
|
-
entry: {
|
|
13
|
-
main: path.resolve(__dirname, '../src/index.js') // 将src下的index.js 作为入口点
|
|
14
|
-
},
|
|
15
|
-
output: {
|
|
16
|
-
path: path.resolve(__dirname, '../lib'),
|
|
17
|
-
publicPath: '/lib/',
|
|
18
|
-
filename: 'workflow-editor.min.js', // 改成自己的类库名
|
|
19
|
-
library: 'workflow-editor', // 类库导出
|
|
20
|
-
libraryTarget: 'umd',
|
|
21
|
-
umdNamedDefine: true
|
|
22
|
-
},
|
|
23
|
-
plugins: [
|
|
24
|
-
new webpack.DefinePlugin({
|
|
25
|
-
'process.env.NODE_ENV': '"production"'
|
|
26
|
-
}),
|
|
27
|
-
new MiniCssExtractPlugin({
|
|
28
|
-
filename: 'css/workflow-editor.css'
|
|
29
|
-
})
|
|
30
|
-
]
|
|
31
|
-
})
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
h3[data-v-9c5970fe]{color:#999999;margin:0;padding:0;font-weight:bold;font-size:18px}.el-button[data-v-9c5970fe]{margin:6px 0;min-width:110px;padding:9px 15px}.el-button i[data-v-9c5970fe]{padding-right:4px}
|
|
2
|
-
|
|
3
|
-
.group[data-v-70c39db1]{font-size:14px;width:100%}.item[data-v-70c39db1]{float:left;list-style-type:none;width:33.33%;margin-bottom:18px}.item-content[data-v-70c39db1]{height:calc(100vh - 300px);padding-left:20px;overflow:auto}
|
|
4
|
-
|
|
5
|
-
#appContainer[data-v-016e1d5a] .el-checkbox{display:block}#appContainer[data-v-016e1d5a] .el-transfer-panel{width:400px}#appContainer[data-v-016e1d5a] .ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;width:55%}
|
|
6
|
-
|
|
7
|
-
.tooltip[data-v-dd12406c]{position:absolute;background:#fff;min-width:150px;border-radius:4px;border:1px solid #ebeef5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,0.1);word-break:break-all}
|
|
8
|
-
|
|
9
|
-
li[data-v-2554d9c6]{color:#333}.context-menu[data-v-2554d9c6]{position:fixed;background:#fff;z-index:999;padding:5px;margin:0}.context-menu li[data-v-2554d9c6]{min-width:75px;height:28px;line-height:28px;text-align:left;color:#1a1a1a}.context-menu li[data-v-2554d9c6]:hover{background:#42b983;color:#fff}.context-menu[data-v-2554d9c6]{border:1px solid #eee;box-shadow:0 0.5em 1em 0 rgba(0,0,0,0.1);border-radius:5px}li[data-v-2554d9c6]{list-style-type:none}
|
|
10
|
-
|
|
11
|
-
.button-area[data-v-37937af4]{padding:5px 0 5px 5px;height:50px}.el-row[data-v-37937af4]{border:1px solid #f1f1f1;border-radius:5px}.el-col[data-v-37937af4]{padding-left:5px}.main[data-v-37937af4]{position:relative;display:flex;height:calc(100% - 50px);width:100%}.canvas-container[data-v-37937af4]{position:relative;height:calc(100% - 50px);width:100%}.toolbox[data-v-37937af4]{width:150px;overflow-y:auto;height:100%;background:#f7f7f7;padding:10px;text-align:center;flex:none}section[data-v-37937af4]{overflow:hidden;flex:1 1 auto;height:100%;padding:0}.tabs[data-v-37937af4]{height:100%;width:100%}.tab-pane[data-v-37937af4]{height:100%;width:100%}.tabs[data-v-37937af4] .el-tabs__content{height:calc(100% - 41px);padding:10px;width:100%}.canvas[data-v-37937af4],.xml[data-v-37937af4]{overflow:auto;height:100%;width:100%;padding:0;min-height:500px}pre[data-v-37937af4]{margin:0;font-size:16px}.component-icon[data-v-37937af4]{position:absolute;pointer-events:none}.canvas[data-v-37937af4] .draggable{cursor:move}
|
|
12
|
-
|
|
13
|
-
#_subprocess-content[data-v-d95c25fc]{width:100%;height:calc(100vh - 200px)}
|
|
14
|
-
|
|
15
|
-
.main[data-v-422096c3]{position:relative;display:flex;height:100%;width:100%}.canvas-container[data-v-422096c3]{position:relative;height:100%;width:100%}section[data-v-422096c3]{overflow:hidden;width:100%;height:100%;padding:0}.canvas[data-v-422096c3]{overflow:auto;height:100%;padding:0;min-height:500px}.canvas[data-v-422096c3] .draggable{cursor:default}
|
|
16
|
-
|