qgb-process 0.3.25 → 0.3.26-beta.2
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/README.md +66 -66
- package/lib/qgb-process.common.1.js +46 -70
- package/lib/qgb-process.common.js +5654 -26431
- package/lib/qgb-process.umd.1.js +46 -70
- package/lib/qgb-process.umd.js +5654 -26431
- package/lib/qgb-process.umd.min.1.js +1 -1
- package/lib/qgb-process.umd.min.js +152 -152
- package/package.json +132 -155
package/README.md
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
### QGB-PROCESS 审批流程
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
主要应用于企管帮项目中审批模块
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
### 使用方法
|
|
8
|
-
|
|
9
|
-
#### 1. 加入企管帮环境变量到本地存储中,用于打包以及不同环境下测试与打包,可在引入路由前加入
|
|
10
|
-
|
|
11
|
-
```js
|
|
12
|
-
// 将环境变量加入缓存
|
|
13
|
-
// 配合 qgb-process 模块传递环境变量
|
|
14
|
-
localStorage.clear("env");
|
|
15
|
-
localStorage.set("env", JSON.stringify(process.env));
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
#### 1. 入口 main.js 文件
|
|
19
|
-
|
|
20
|
-
```js
|
|
21
|
-
// 注意项目组件根据 elementUI 构建界面,需引入 elementUI 模块
|
|
22
|
-
import qgbProcess from 'qgb-process'
|
|
23
|
-
Vue.use(qgbProcess);
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
#### 2. 参数说明
|
|
27
|
-
| 参数 | 说明 | 类型 | 填写说明 |默认值 |
|
|
28
|
-
| ---- | ---- | ---- | ---- | ---- |
|
|
29
|
-
| queryInfo | 审批流程的类型与中文名称 | 必填 | `Object` | `{name:"公告管理",type:"notice"}` |
|
|
30
|
-
| formBuilder | 表单相关 | 必填 | `String` | "" |
|
|
31
|
-
| path | 路由地址(无特殊要求传递 `$route.path` ) | 必填 | `String` | "/index" |
|
|
32
|
-
| userInfo | 用户信息(无特殊要求传递 `$store.state.user` ) | 必填 | `Object` | -- |
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
#### 3. App.vue 使用示例:
|
|
37
|
-
```js
|
|
38
|
-
<template>
|
|
39
|
-
<div>
|
|
40
|
-
<!-- 流程模块 -->
|
|
41
|
-
<Process
|
|
42
|
-
:queryInfo="$route.query"
|
|
43
|
-
:formBuilder="$store.state.formBuilder"
|
|
44
|
-
:path="$route.path"
|
|
45
|
-
:userInfo="$store.state.user"
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<script>
|
|
51
|
-
export default {
|
|
52
|
-
created(){
|
|
53
|
-
// 此处示例审批参数从地址 GET 传参中获取
|
|
54
|
-
this.queryInfo = this.$route.query
|
|
55
|
-
},
|
|
56
|
-
data(){
|
|
57
|
-
return{
|
|
58
|
-
queryInfo:{ type: "overTimeApply", name: "加班申请" }
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
</script>
|
|
63
|
-
|
|
64
|
-
<style lang="sass">
|
|
65
|
-
</style>
|
|
66
|
-
```
|
|
1
|
+
### QGB-PROCESS 审批流程
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
主要应用于企管帮项目中审批模块
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
### 使用方法
|
|
8
|
+
|
|
9
|
+
#### 1. 加入企管帮环境变量到本地存储中,用于打包以及不同环境下测试与打包,可在引入路由前加入
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
// 将环境变量加入缓存
|
|
13
|
+
// 配合 qgb-process 模块传递环境变量
|
|
14
|
+
localStorage.clear("env");
|
|
15
|
+
localStorage.set("env", JSON.stringify(process.env));
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
#### 1. 入口 main.js 文件
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
// 注意项目组件根据 elementUI 构建界面,需引入 elementUI 模块
|
|
22
|
+
import qgbProcess from 'qgb-process'
|
|
23
|
+
Vue.use(qgbProcess);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
#### 2. 参数说明
|
|
27
|
+
| 参数 | 说明 | 类型 | 填写说明 |默认值 |
|
|
28
|
+
| ---- | ---- | ---- | ---- | ---- |
|
|
29
|
+
| queryInfo | 审批流程的类型与中文名称 | 必填 | `Object` | `{name:"公告管理",type:"notice"}` |
|
|
30
|
+
| formBuilder | 表单相关 | 必填 | `String` | "" |
|
|
31
|
+
| path | 路由地址(无特殊要求传递 `$route.path` ) | 必填 | `String` | "/index" |
|
|
32
|
+
| userInfo | 用户信息(无特殊要求传递 `$store.state.user` ) | 必填 | `Object` | -- |
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#### 3. App.vue 使用示例:
|
|
37
|
+
```js
|
|
38
|
+
<template>
|
|
39
|
+
<div>
|
|
40
|
+
<!-- 流程模块 -->
|
|
41
|
+
<Process
|
|
42
|
+
:queryInfo="$route.query"
|
|
43
|
+
:formBuilder="$store.state.formBuilder"
|
|
44
|
+
:path="$route.path"
|
|
45
|
+
:userInfo="$store.state.user"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
<script>
|
|
51
|
+
export default {
|
|
52
|
+
created(){
|
|
53
|
+
// 此处示例审批参数从地址 GET 传参中获取
|
|
54
|
+
this.queryInfo = this.$route.query
|
|
55
|
+
},
|
|
56
|
+
data(){
|
|
57
|
+
return{
|
|
58
|
+
queryInfo:{ type: "overTimeApply", name: "加班申请" }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style lang="sass">
|
|
65
|
+
</style>
|
|
66
|
+
```
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
// ESM COMPAT FLAG
|
|
8
8
|
__webpack_require__.r(__webpack_exports__);
|
|
9
9
|
|
|
10
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d0dc8b6-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/formBuilder/components/curTextArea.vue?vue&type=template&id=628c3faf&
|
|
11
11
|
var render = function render() {
|
|
12
12
|
var _vm = this,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
_c = _vm._self._c;
|
|
15
14
|
return _c('div', {
|
|
16
15
|
ref: "calText",
|
|
17
16
|
staticClass: "cal-text",
|
|
@@ -37,7 +36,6 @@ var render = function render() {
|
|
|
37
36
|
}
|
|
38
37
|
});
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
var staticRenderFns = [];
|
|
42
40
|
|
|
43
41
|
// CONCATENATED MODULE: ./src/views/formBuilder/components/curTextArea.vue?vue&type=template&id=628c3faf&
|
|
@@ -60,6 +58,9 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
60
58
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
61
59
|
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
62
60
|
|
|
61
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
62
|
+
var es_promise = __webpack_require__("e6cf");
|
|
63
|
+
|
|
63
64
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
64
65
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
65
66
|
|
|
@@ -73,7 +74,8 @@ var es_regexp_test = __webpack_require__("00b4");
|
|
|
73
74
|
var html2canvas = __webpack_require__("c0e9");
|
|
74
75
|
var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
75
76
|
|
|
76
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules
|
|
77
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/formBuilder/components/curTextArea.vue?vue&type=script&lang=js&
|
|
78
|
+
|
|
77
79
|
|
|
78
80
|
|
|
79
81
|
|
|
@@ -118,7 +120,6 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
118
120
|
deep: true,
|
|
119
121
|
handler: function handler(newVal, oldVal) {
|
|
120
122
|
console.log(newVal);
|
|
121
|
-
|
|
122
123
|
if (newVal) {}
|
|
123
124
|
}
|
|
124
125
|
}
|
|
@@ -128,73 +129,63 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
128
129
|
// 设置光标位置
|
|
129
130
|
setSelection: function setSelection(s) {
|
|
130
131
|
// 获取选定对象
|
|
131
|
-
var selection = getSelection();
|
|
132
|
-
|
|
132
|
+
var selection = getSelection();
|
|
133
|
+
// 设置最后光标对象
|
|
133
134
|
this.lastEditRange = selection.getRangeAt(0);
|
|
134
135
|
console.log(this.lastEditRange);
|
|
135
136
|
},
|
|
136
137
|
addNotes: function addNotes(item, type, pLabel, isCal) {
|
|
137
138
|
var _this = this;
|
|
138
|
-
|
|
139
139
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
|
|
140
140
|
var self, edit, selection, emojiText, src, str, _str, range, i, textNode, rangeStartOffset, start;
|
|
141
|
-
|
|
142
141
|
return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
|
|
143
142
|
while (1) {
|
|
144
143
|
switch (_context.prev = _context.next) {
|
|
145
144
|
case 0:
|
|
146
145
|
self = _this; // self.setSelection()
|
|
147
146
|
// 编辑框设置焦点
|
|
148
|
-
|
|
149
147
|
edit = _this.$refs.calText;
|
|
150
|
-
edit.focus();
|
|
148
|
+
edit.focus();
|
|
151
149
|
|
|
150
|
+
// 获取选定对象
|
|
152
151
|
selection = getSelection(); // 判断是否有最后光标对象存在
|
|
153
|
-
|
|
154
152
|
if (self.lastEditRange) {
|
|
155
153
|
// 存在最后光标对象,选定对象清除所有光标并添加最后光标还原之前的状态
|
|
156
154
|
selection.removeAllRanges();
|
|
157
155
|
selection.addRange(self.lastEditRange);
|
|
158
156
|
}
|
|
159
|
-
|
|
160
157
|
if (!(item && (!type || type == "custom"))) {
|
|
161
158
|
_context.next = 19;
|
|
162
159
|
break;
|
|
163
160
|
}
|
|
164
|
-
|
|
165
161
|
_context.next = 8;
|
|
166
162
|
return _this.getLabelData(item, pLabel);
|
|
167
|
-
|
|
168
163
|
case 8:
|
|
169
164
|
src = _context.sent;
|
|
170
|
-
emojiText = document.createElement("img");
|
|
171
|
-
|
|
165
|
+
emojiText = document.createElement("img");
|
|
166
|
+
// emojiText.contentEditable = true
|
|
172
167
|
emojiText.align = "middle";
|
|
173
168
|
emojiText.style.verticalAlign = "middle";
|
|
174
|
-
emojiText.style.margin = "3px";
|
|
169
|
+
emojiText.style.margin = "3px";
|
|
170
|
+
// emojiText.style.display = "inline-block";
|
|
175
171
|
// emojiText.style.maxWidth = "150px";
|
|
176
172
|
// emojiText.style.minHeight = "30px";
|
|
177
|
-
|
|
178
173
|
emojiText.src = src;
|
|
179
174
|
emojiText.dataset.field = item.content ? item.content.field : item.field;
|
|
180
|
-
emojiText.dataset.label = item.content ? item.content.label : item.label;
|
|
181
|
-
|
|
175
|
+
emojiText.dataset.label = item.content ? item.content.label : item.label;
|
|
176
|
+
// 从业务规则过来
|
|
182
177
|
if (!isCal) {
|
|
183
178
|
emojiText.dataset.field = item.field;
|
|
184
179
|
emojiText.dataset.label = item.label;
|
|
185
180
|
}
|
|
186
|
-
|
|
187
181
|
_context.next = 20;
|
|
188
182
|
break;
|
|
189
|
-
|
|
190
183
|
case 19:
|
|
191
184
|
if (type == "cal") {
|
|
192
185
|
str = item.label;
|
|
193
|
-
|
|
194
186
|
if (item.type) {
|
|
195
187
|
str = item.value;
|
|
196
188
|
}
|
|
197
|
-
|
|
198
189
|
emojiText = document.createTextNode(str);
|
|
199
190
|
emojiText.innerHTML = str;
|
|
200
191
|
} else {
|
|
@@ -204,10 +195,8 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
204
195
|
}, "");
|
|
205
196
|
emojiText.innerHTML = _str;
|
|
206
197
|
}
|
|
207
|
-
|
|
208
198
|
case 20:
|
|
209
199
|
range = selection.getRangeAt(0); // 判断选定对象范围是编辑框还是文本节点
|
|
210
|
-
|
|
211
200
|
if (selection.anchorNode.nodeName != "#text") {
|
|
212
201
|
// 如果是编辑框范围。则创建表情文本节点进行插入 当光标位置>0时
|
|
213
202
|
if (edit.childNodes.length > 0 && selection.anchorOffset > 0) {
|
|
@@ -232,40 +221,39 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
232
221
|
// );
|
|
233
222
|
// } else {
|
|
234
223
|
debugger;
|
|
235
|
-
edit.insertBefore(emojiText, edit.childNodes[0]);
|
|
224
|
+
edit.insertBefore(emojiText, edit.childNodes[0]);
|
|
225
|
+
// }
|
|
236
226
|
}
|
|
237
227
|
}
|
|
238
228
|
} else {
|
|
239
229
|
edit.appendChild(emojiText);
|
|
240
|
-
}
|
|
230
|
+
}
|
|
231
|
+
// else if (edit.childNodes.length > 0 && selection.anchorOffset == 0) {
|
|
241
232
|
// edit.insertBefore(emojiText, edit.childNodes[0]);
|
|
242
233
|
// }
|
|
243
234
|
|
|
244
|
-
|
|
245
235
|
range.setStart(selection.anchorNode, selection.anchorOffset + 1);
|
|
246
236
|
self.setSelection();
|
|
247
237
|
} else {
|
|
248
238
|
// 如果是文本节点则先获取光标对象
|
|
249
239
|
range = selection.getRangeAt(0); // 获取光标对象的范围界定对象,一般就是textNode对象
|
|
250
|
-
|
|
251
240
|
textNode = range.startContainer; // 获取光标位置
|
|
252
|
-
|
|
253
241
|
rangeStartOffset = range.startOffset; // 文本节点在光标位置处插入新的表情内容
|
|
254
|
-
|
|
255
242
|
edit.childNodes.forEach(function (item, index) {
|
|
256
243
|
if (item == textNode) {
|
|
257
244
|
start = index;
|
|
258
245
|
}
|
|
259
246
|
});
|
|
260
|
-
|
|
261
247
|
if (rangeStartOffset == 0) {
|
|
262
248
|
// textNode.before(emojiText);
|
|
263
249
|
range.insertNode(emojiText);
|
|
264
250
|
start += 1;
|
|
265
251
|
} else {
|
|
266
252
|
// textNode.after(emojiText);
|
|
267
|
-
range.insertNode(emojiText);
|
|
268
|
-
|
|
253
|
+
range.insertNode(emojiText);
|
|
254
|
+
// start += 2;
|
|
255
|
+
}
|
|
256
|
+
// 创建新的光标对象
|
|
269
257
|
// var range = document.createRange();
|
|
270
258
|
// 光标对象的范围界定为新建的表情节点
|
|
271
259
|
// range.selectNodeContents(edit);
|
|
@@ -273,12 +261,10 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
273
261
|
// range.collapse(true);
|
|
274
262
|
// selection.removeAllRanges();
|
|
275
263
|
// selection.addRange(range);
|
|
276
|
-
|
|
277
264
|
}
|
|
278
265
|
|
|
279
266
|
_this.lastEditRange = selection.getRangeAt(0);
|
|
280
267
|
edit.focus();
|
|
281
|
-
|
|
282
268
|
case 24:
|
|
283
269
|
case "end":
|
|
284
270
|
return _context.stop();
|
|
@@ -292,13 +278,11 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
292
278
|
getLabelData: function getLabelData(item, pLabel) {
|
|
293
279
|
return new Promise(function (resolve, reject) {
|
|
294
280
|
var dom = document.createElement("span");
|
|
295
|
-
|
|
296
281
|
if (pLabel) {
|
|
297
282
|
dom.innerHTML = "".concat(pLabel, ".").concat(item.label);
|
|
298
283
|
} else {
|
|
299
284
|
dom.innerHTML = item.label;
|
|
300
285
|
}
|
|
301
|
-
|
|
302
286
|
dom.style.padding = "5px 5px";
|
|
303
287
|
dom.style.color = "#52C41A";
|
|
304
288
|
dom.style.fontSize = "12px";
|
|
@@ -307,43 +291,36 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
307
291
|
dom.style.borderColor = "rgba(183, 235, 143, 1)";
|
|
308
292
|
dom.style.borderRadius = "4px";
|
|
309
293
|
dom.style.backgroundColor = "rgba(246, 255, 237, 1)";
|
|
310
|
-
|
|
311
294
|
if (item.attrs && item.attrs.type == "number" || item.content && item.content.attrs.type == "number") {
|
|
312
295
|
dom.style.color = "#FA541C";
|
|
313
296
|
dom.style.borderColor = "rgba(255, 187, 150, 1)";
|
|
314
297
|
dom.style.backgroundColor = "rgba(255, 242, 232, 1)";
|
|
315
298
|
}
|
|
316
|
-
|
|
317
299
|
if (item.attrs && item.type == "checkbox" || item.content && item.content.attrs.type == "checkbox") {
|
|
318
300
|
dom.style.color = "#b653d1";
|
|
319
301
|
dom.style.borderColor = "#d3adf7";
|
|
320
302
|
dom.style.backgroundColor = "#f9f0ff";
|
|
321
303
|
}
|
|
322
|
-
|
|
323
304
|
if (item.attrs && item.type == "datetime" || item.content && item.content.attrs.type == "datetime") {
|
|
324
305
|
dom.style.color = "#13c2c2";
|
|
325
306
|
dom.style.borderColor = "#87e8de";
|
|
326
307
|
dom.style.backgroundColor = "#e6fffb";
|
|
327
308
|
}
|
|
328
|
-
|
|
329
309
|
if (item.attrs && item.type == "datetimerange" || item.content && item.content.attrs.type == "datetimerange") {
|
|
330
310
|
dom.style.color = "#1890ff";
|
|
331
311
|
dom.style.borderColor = "#91d5ff";
|
|
332
312
|
dom.style.backgroundColor = "#e6f7ff";
|
|
333
313
|
}
|
|
334
|
-
|
|
335
314
|
if (item.attrs && item.type == "switch" || item.content && item.content.attrs.type == "switch") {
|
|
336
315
|
dom.style.color = "rgba(0, 0, 0, 0.647058823529412)";
|
|
337
316
|
dom.style.borderColor = "rgba(217, 217, 217, 1)";
|
|
338
317
|
dom.style.backgroundColor = "rgba(245, 245, 245, 1)";
|
|
339
318
|
}
|
|
340
|
-
|
|
341
319
|
if (item.attrs && item.type == "form") {
|
|
342
320
|
dom.style.color = "#1890ff";
|
|
343
321
|
dom.style.borderColor = "#91d5ff";
|
|
344
322
|
dom.style.backgroundColor = "#e6f7ff";
|
|
345
323
|
}
|
|
346
|
-
|
|
347
324
|
dom.align = "middle";
|
|
348
325
|
dom.style.verticalAlign = "middle";
|
|
349
326
|
document.body.appendChild(dom);
|
|
@@ -357,14 +334,15 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
357
334
|
},
|
|
358
335
|
handleInput: function handleInput($event, v) {
|
|
359
336
|
// console.log($event);
|
|
360
|
-
var code = [37, 38, 39, 40, 8,
|
|
337
|
+
var code = [37, 38, 39, 40, 8,
|
|
338
|
+
// 退格
|
|
361
339
|
46];
|
|
362
|
-
|
|
363
340
|
if ($event.keyCode == 13) {
|
|
364
341
|
$event.preventDefault();
|
|
365
342
|
}
|
|
343
|
+
this.setSelection();
|
|
366
344
|
|
|
367
|
-
|
|
345
|
+
// this.$emit("input", this.$el.innerHTML);
|
|
368
346
|
},
|
|
369
347
|
blurFunc: function blurFunc() {
|
|
370
348
|
this.isChange = true;
|
|
@@ -376,24 +354,20 @@ var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
|
376
354
|
var childNodes = edit.childNodes;
|
|
377
355
|
var str = "";
|
|
378
356
|
var nodeName = "";
|
|
379
|
-
|
|
380
357
|
for (var i = 0; i < childNodes.length; i++) {
|
|
381
358
|
if (i - 1 < 0) continue;
|
|
382
|
-
|
|
383
359
|
if (childNodes[i - 1].nodeName == childNodes[i].nodeName && childNodes[i].nodeName == "IMG") {
|
|
384
360
|
this.$message.error("表达式间缺少运算符");
|
|
385
361
|
return false;
|
|
386
362
|
} else if (childNodes[i].nodeName == "#text") {
|
|
387
363
|
var strReg = /[\+\-\*\>\<\=\!/]*/g;
|
|
388
364
|
var arrPromise = childNodes[i].nodeValue.match(strReg);
|
|
389
|
-
|
|
390
365
|
if (arrPromise[0].length >= 2 && arrPromise[1] == "" && arrPromise[0] != ">=" && arrPromise[0] != "<=" && arrPromise[0] != "==" && arrPromise[0] != "===" && arrPromise[0] != "!=" && arrPromise[0] != "!==") {
|
|
391
366
|
this.$message.error("多个运算符堆积无意义");
|
|
392
367
|
return false;
|
|
393
368
|
}
|
|
394
369
|
}
|
|
395
370
|
}
|
|
396
|
-
|
|
397
371
|
var reg = /key_[0-9]+\w{8}(\w{4}){3}\w{12}\}|\{[0-9a-zA-Z]+\}|\{[0-9a-zA-Z]+\.key_[0-9]+\w{8}(\w{4}){3}\w{12}\}|\{[0-9a-zA-Z]+\.key_[0-9]+\w{8}(\w{4}){3}\w{12}.key_[0-9]+\w{8}(\w{4}){3}\w{12}\}/;
|
|
398
372
|
childNodes.forEach(function (item) {
|
|
399
373
|
if (item.nodeName == "IMG") {
|
|
@@ -451,32 +425,23 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
451
425
|
|
|
452
426
|
/***/ }),
|
|
453
427
|
|
|
454
|
-
/***/ "
|
|
428
|
+
/***/ "075d":
|
|
455
429
|
/***/ (function(module, exports, __webpack_require__) {
|
|
456
430
|
|
|
457
431
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
458
432
|
|
|
459
433
|
// load the styles
|
|
460
|
-
var content = __webpack_require__("
|
|
434
|
+
var content = __webpack_require__("8c70");
|
|
435
|
+
if(content.__esModule) content = content.default;
|
|
461
436
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
462
437
|
if(content.locals) module.exports = content.locals;
|
|
463
438
|
// add the styles to the DOM
|
|
464
|
-
var
|
|
465
|
-
|
|
466
|
-
/***/ }),
|
|
467
|
-
|
|
468
|
-
/***/ "be6a":
|
|
469
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
470
|
-
|
|
471
|
-
"use strict";
|
|
472
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_curTextArea_vue_vue_type_style_index_0_id_628c3faf_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b3b6");
|
|
473
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_curTextArea_vue_vue_type_style_index_0_id_628c3faf_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_curTextArea_vue_vue_type_style_index_0_id_628c3faf_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
474
|
-
/* unused harmony reexport * */
|
|
475
|
-
|
|
439
|
+
var add = __webpack_require__("499e").default
|
|
440
|
+
var update = add("0ec99e1f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
476
441
|
|
|
477
442
|
/***/ }),
|
|
478
443
|
|
|
479
|
-
/***/ "
|
|
444
|
+
/***/ "8c70":
|
|
480
445
|
/***/ (function(module, exports, __webpack_require__) {
|
|
481
446
|
|
|
482
447
|
exports = module.exports = __webpack_require__("2350")(false);
|
|
@@ -489,6 +454,17 @@ exports.push([module.i, ".read-only{-webkit-user-modify:read-only;-moz-user-modi
|
|
|
489
454
|
// exports
|
|
490
455
|
|
|
491
456
|
|
|
457
|
+
/***/ }),
|
|
458
|
+
|
|
459
|
+
/***/ "be6a":
|
|
460
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
461
|
+
|
|
462
|
+
"use strict";
|
|
463
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_curTextArea_vue_vue_type_style_index_0_id_628c3faf_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("075d");
|
|
464
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_curTextArea_vue_vue_type_style_index_0_id_628c3faf_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_curTextArea_vue_vue_type_style_index_0_id_628c3faf_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
465
|
+
/* unused harmony reexport * */
|
|
466
|
+
|
|
467
|
+
|
|
492
468
|
/***/ })
|
|
493
469
|
|
|
494
470
|
}]);
|