eoss-ui 0.5.12 → 0.5.14
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/button-group.js +1 -13
- package/lib/button.js +3 -15
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +40 -34
- package/lib/data-table-form.js +4 -15
- package/lib/data-table.js +1219 -1529
- package/lib/date-picker.js +3 -15
- package/lib/dialog.js +10 -22
- package/lib/eoss-ui.common.js +1282 -1818
- package/lib/flow-group.js +1 -13
- package/lib/flow-list.js +3 -15
- package/lib/flow.js +43 -54
- package/lib/form.js +5 -22
- package/lib/handle-user.js +1 -13
- package/lib/handler.js +1 -13
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +3 -15
- package/lib/input.js +3 -15
- package/lib/label.js +5 -4
- package/lib/layout.js +166 -152
- package/lib/login.js +1 -13
- package/lib/main.js +15 -24
- package/lib/menu.js +2 -2
- package/lib/nav.js +10 -22
- package/lib/notify.js +2 -2
- package/lib/page.js +3 -15
- package/lib/pagination.js +2 -2
- package/lib/player.js +9 -21
- package/lib/qr-code.js +5 -17
- package/lib/radio-group.js +44 -34
- package/lib/retrial-auth.js +3 -15
- package/lib/select-ganged.js +26 -18
- package/lib/select.js +42 -31
- package/lib/selector-panel.js +7 -18
- package/lib/selector.js +5 -17
- package/lib/sizer.js +3 -15
- package/lib/steps.js +10 -22
- package/lib/switch.js +3 -15
- package/lib/table-form.js +3 -15
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +3 -15
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/nav.css +1 -1
- package/lib/tips.js +3 -15
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +3 -15
- package/lib/tree.js +3 -15
- package/lib/upload.js +4 -16
- package/lib/utils/util.js +1 -10
- package/lib/utils/webSocket.js +0 -3
- package/lib/wujie.js +3 -15
- package/lib/wxlogin.js +3 -15
- package/package.json +1 -1
- package/packages/checkbox-group/src/main.vue +20 -30
- package/packages/data-table/src/children.vue +4 -8
- package/packages/data-table/src/column.vue +522 -575
- package/packages/data-table/src/main.vue +123 -124
- package/packages/flow/src/component/taskUnionExamine.vue +1 -1
- package/packages/flow/src/main.vue +1 -1
- package/packages/flow/src/processForm.vue +1 -1
- package/packages/flow/src/processReject.vue +1 -1
- package/packages/flow/src/startTaskRead.vue +1 -1
- package/packages/form/src/main.vue +2 -7
- package/packages/label/src/main.vue +3 -2
- package/packages/main/src/main.vue +6 -4
- package/packages/radio-group/src/main.vue +20 -30
- package/packages/select/src/main.vue +20 -29
- package/packages/select-ganged/src/main.vue +1 -3
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/nav.css +1 -1
- package/packages/theme-chalk/src/data-table.scss +2 -1
- package/packages/theme-chalk/src/nav.scss +21 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -10
- package/src/utils/webSocket.js +0 -3
- package/packages/data-table/src/mixins/table.js +0 -12
package/lib/input-number.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 73);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2523
2523
|
* @author huangbo
|
|
2524
2524
|
* @date 2022年5月7日
|
|
2525
2525
|
* @param {String} [url] - 连接地址
|
|
2526
|
-
* @param {String} [send] - 是否发送消息
|
|
2527
2526
|
* @param {String} [take] - 订阅地址
|
|
2528
2527
|
* @param {String} [debug] - 调试
|
|
2529
2528
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2531
2530
|
* @param {Function} [error] - 重连间隔时间
|
|
2532
2531
|
**/
|
|
2533
2532
|
function socket(option, vm) {
|
|
2534
|
-
var options = {};
|
|
2535
|
-
for (var i in option) {
|
|
2536
|
-
if (i === 'send') {
|
|
2537
|
-
options['isSend'] = option[i];
|
|
2538
|
-
} else {
|
|
2539
|
-
options[i] = option[i];
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
2533
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2543
|
-
socket.init(
|
|
2534
|
+
socket.init(option, vm);
|
|
2544
2535
|
return socket;
|
|
2545
2536
|
}
|
|
2546
2537
|
/**
|
|
@@ -3492,7 +3483,6 @@ var WebSocket = function () {
|
|
|
3492
3483
|
this.connects = 1;
|
|
3493
3484
|
this.recon = false;
|
|
3494
3485
|
this.sendTimeout = null;
|
|
3495
|
-
this.isSend = false;
|
|
3496
3486
|
}
|
|
3497
3487
|
|
|
3498
3488
|
/** socket连接 */
|
|
@@ -3520,9 +3510,7 @@ var WebSocket = function () {
|
|
|
3520
3510
|
// tryTimes定义重置
|
|
3521
3511
|
_this.connects = 1;
|
|
3522
3512
|
// 订阅消息
|
|
3523
|
-
// if (!this.isSend) {
|
|
3524
3513
|
_this.subscribe();
|
|
3525
|
-
// }
|
|
3526
3514
|
}, function (error) {
|
|
3527
3515
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3528
3516
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
@@ -3598,7 +3586,7 @@ var WebSocket = function () {
|
|
|
3598
3586
|
|
|
3599
3587
|
/***/ }),
|
|
3600
3588
|
|
|
3601
|
-
/***/
|
|
3589
|
+
/***/ 73:
|
|
3602
3590
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3603
3591
|
|
|
3604
3592
|
"use strict";
|
package/lib/input.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 72);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2523
2523
|
* @author huangbo
|
|
2524
2524
|
* @date 2022年5月7日
|
|
2525
2525
|
* @param {String} [url] - 连接地址
|
|
2526
|
-
* @param {String} [send] - 是否发送消息
|
|
2527
2526
|
* @param {String} [take] - 订阅地址
|
|
2528
2527
|
* @param {String} [debug] - 调试
|
|
2529
2528
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2531
2530
|
* @param {Function} [error] - 重连间隔时间
|
|
2532
2531
|
**/
|
|
2533
2532
|
function socket(option, vm) {
|
|
2534
|
-
var options = {};
|
|
2535
|
-
for (var i in option) {
|
|
2536
|
-
if (i === 'send') {
|
|
2537
|
-
options['isSend'] = option[i];
|
|
2538
|
-
} else {
|
|
2539
|
-
options[i] = option[i];
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
2533
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2543
|
-
socket.init(
|
|
2534
|
+
socket.init(option, vm);
|
|
2544
2535
|
return socket;
|
|
2545
2536
|
}
|
|
2546
2537
|
/**
|
|
@@ -3517,7 +3508,6 @@ var WebSocket = function () {
|
|
|
3517
3508
|
this.connects = 1;
|
|
3518
3509
|
this.recon = false;
|
|
3519
3510
|
this.sendTimeout = null;
|
|
3520
|
-
this.isSend = false;
|
|
3521
3511
|
}
|
|
3522
3512
|
|
|
3523
3513
|
/** socket连接 */
|
|
@@ -3545,9 +3535,7 @@ var WebSocket = function () {
|
|
|
3545
3535
|
// tryTimes定义重置
|
|
3546
3536
|
_this.connects = 1;
|
|
3547
3537
|
// 订阅消息
|
|
3548
|
-
// if (!this.isSend) {
|
|
3549
3538
|
_this.subscribe();
|
|
3550
|
-
// }
|
|
3551
3539
|
}, function (error) {
|
|
3552
3540
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3553
3541
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
@@ -3623,7 +3611,7 @@ var WebSocket = function () {
|
|
|
3623
3611
|
|
|
3624
3612
|
/***/ }),
|
|
3625
3613
|
|
|
3626
|
-
/***/
|
|
3614
|
+
/***/ 72:
|
|
3627
3615
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3628
3616
|
|
|
3629
3617
|
"use strict";
|
package/lib/label.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 74);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 74:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
|
@@ -213,6 +213,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
213
213
|
return '';
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
|
+
text: String,
|
|
216
217
|
rules: {
|
|
217
218
|
type: [Array, Object],
|
|
218
219
|
default: function _default() {
|
|
@@ -341,8 +342,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
341
342
|
doms.push(this.$slots.prepend);
|
|
342
343
|
}
|
|
343
344
|
if (typeof this.contents === 'string') {
|
|
344
|
-
if (this.contents) {
|
|
345
|
-
doms.push(this.contents);
|
|
345
|
+
if (this.contents || this.text) {
|
|
346
|
+
doms.push(this.contents || this.text);
|
|
346
347
|
}
|
|
347
348
|
if (this.icon) {
|
|
348
349
|
if (this.icon.indexOf('es-icon-') > -1 || this.icon.indexOf('el-icon-') > -1) {
|
package/lib/layout.js
CHANGED
|
@@ -82,164 +82,25 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 49);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 15:
|
|
91
91
|
/***/ (function(module, exports) {
|
|
92
92
|
|
|
93
93
|
module.exports = require("interactjs");
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/
|
|
98
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
-
|
|
100
|
-
"use strict";
|
|
101
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
102
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
103
|
-
|
|
104
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
105
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
106
|
-
// be included in the final webpack user bundle.
|
|
107
|
-
|
|
108
|
-
function normalizeComponent(
|
|
109
|
-
scriptExports,
|
|
110
|
-
render,
|
|
111
|
-
staticRenderFns,
|
|
112
|
-
functionalTemplate,
|
|
113
|
-
injectStyles,
|
|
114
|
-
scopeId,
|
|
115
|
-
moduleIdentifier /* server only */,
|
|
116
|
-
shadowMode /* vue-cli only */
|
|
117
|
-
) {
|
|
118
|
-
// Vue.extend constructor export interop
|
|
119
|
-
var options =
|
|
120
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
121
|
-
|
|
122
|
-
// render functions
|
|
123
|
-
if (render) {
|
|
124
|
-
options.render = render
|
|
125
|
-
options.staticRenderFns = staticRenderFns
|
|
126
|
-
options._compiled = true
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// functional template
|
|
130
|
-
if (functionalTemplate) {
|
|
131
|
-
options.functional = true
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// scopedId
|
|
135
|
-
if (scopeId) {
|
|
136
|
-
options._scopeId = 'data-v-' + scopeId
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
var hook
|
|
140
|
-
if (moduleIdentifier) {
|
|
141
|
-
// server build
|
|
142
|
-
hook = function (context) {
|
|
143
|
-
// 2.3 injection
|
|
144
|
-
context =
|
|
145
|
-
context || // cached call
|
|
146
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
147
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
148
|
-
// 2.2 with runInNewContext: true
|
|
149
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
150
|
-
context = __VUE_SSR_CONTEXT__
|
|
151
|
-
}
|
|
152
|
-
// inject component styles
|
|
153
|
-
if (injectStyles) {
|
|
154
|
-
injectStyles.call(this, context)
|
|
155
|
-
}
|
|
156
|
-
// register component module identifier for async chunk inferrence
|
|
157
|
-
if (context && context._registeredComponents) {
|
|
158
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
// used by ssr in case component is cached and beforeCreate
|
|
162
|
-
// never gets called
|
|
163
|
-
options._ssrRegister = hook
|
|
164
|
-
} else if (injectStyles) {
|
|
165
|
-
hook = shadowMode
|
|
166
|
-
? function () {
|
|
167
|
-
injectStyles.call(
|
|
168
|
-
this,
|
|
169
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
170
|
-
)
|
|
171
|
-
}
|
|
172
|
-
: injectStyles
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (hook) {
|
|
176
|
-
if (options.functional) {
|
|
177
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
178
|
-
// go through the normalizer
|
|
179
|
-
options._injectStyles = hook
|
|
180
|
-
// register for functional component in vue file
|
|
181
|
-
var originalRender = options.render
|
|
182
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
183
|
-
hook.call(context)
|
|
184
|
-
return originalRender(h, context)
|
|
185
|
-
}
|
|
186
|
-
} else {
|
|
187
|
-
// inject component registration as beforeCreate hook
|
|
188
|
-
var existing = options.beforeCreate
|
|
189
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
return {
|
|
194
|
-
exports: scriptExports,
|
|
195
|
-
options: options
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
/***/ }),
|
|
201
|
-
|
|
202
|
-
/***/ 33:
|
|
97
|
+
/***/ 18:
|
|
203
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
204
99
|
|
|
205
100
|
"use strict";
|
|
206
|
-
// ESM COMPAT FLAG
|
|
207
|
-
__webpack_require__.r(__webpack_exports__);
|
|
208
|
-
|
|
209
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/main.vue?vue&type=template&id=3f931032&
|
|
210
|
-
var render = function () {
|
|
211
|
-
var _vm = this
|
|
212
|
-
var _h = _vm.$createElement
|
|
213
|
-
var _c = _vm._self._c || _h
|
|
214
|
-
return _c(
|
|
215
|
-
"div",
|
|
216
|
-
{ staticClass: "es-layout" },
|
|
217
|
-
[
|
|
218
|
-
_c("layout-item"),
|
|
219
|
-
_c("layout-item", { attrs: { top: "100px" } }),
|
|
220
|
-
_vm._l(_vm.contents, function (item, index) {
|
|
221
|
-
return _c(
|
|
222
|
-
"layout-item",
|
|
223
|
-
_vm._b(
|
|
224
|
-
{ key: item.id || index },
|
|
225
|
-
"layout-item",
|
|
226
|
-
Object.assign({}, item, { disabled: _vm.disabled }),
|
|
227
|
-
false
|
|
228
|
-
)
|
|
229
|
-
)
|
|
230
|
-
}),
|
|
231
|
-
],
|
|
232
|
-
2
|
|
233
|
-
)
|
|
234
|
-
}
|
|
235
|
-
var staticRenderFns = []
|
|
236
|
-
render._withStripped = true
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
// CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
|
|
240
101
|
|
|
241
102
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
|
|
242
|
-
var
|
|
103
|
+
var render = function () {
|
|
243
104
|
var _vm = this
|
|
244
105
|
var _h = _vm.$createElement
|
|
245
106
|
var _c = _vm._self._c || _h
|
|
@@ -260,14 +121,14 @@ var itemvue_type_template_id_124bb300_render = function () {
|
|
|
260
121
|
1
|
|
261
122
|
)
|
|
262
123
|
}
|
|
263
|
-
var
|
|
264
|
-
|
|
124
|
+
var staticRenderFns = []
|
|
125
|
+
render._withStripped = true
|
|
265
126
|
|
|
266
127
|
|
|
267
128
|
// CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
|
|
268
129
|
|
|
269
130
|
// EXTERNAL MODULE: external "interactjs"
|
|
270
|
-
var external_interactjs_ = __webpack_require__(
|
|
131
|
+
var external_interactjs_ = __webpack_require__(15);
|
|
271
132
|
var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
|
|
272
133
|
|
|
273
134
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
|
|
@@ -436,8 +297,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
436
297
|
|
|
437
298
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
438
299
|
src_itemvue_type_script_lang_js_,
|
|
439
|
-
|
|
440
|
-
|
|
300
|
+
render,
|
|
301
|
+
staticRenderFns,
|
|
441
302
|
false,
|
|
442
303
|
null,
|
|
443
304
|
null,
|
|
@@ -445,7 +306,157 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
445
306
|
|
|
446
307
|
)
|
|
447
308
|
|
|
448
|
-
/* harmony default export */ var item = (component.exports);
|
|
309
|
+
/* harmony default export */ var item = __webpack_exports__["a"] = (component.exports);
|
|
310
|
+
|
|
311
|
+
/***/ }),
|
|
312
|
+
|
|
313
|
+
/***/ 3:
|
|
314
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
315
|
+
|
|
316
|
+
"use strict";
|
|
317
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
318
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
319
|
+
|
|
320
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
321
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
322
|
+
// be included in the final webpack user bundle.
|
|
323
|
+
|
|
324
|
+
function normalizeComponent(
|
|
325
|
+
scriptExports,
|
|
326
|
+
render,
|
|
327
|
+
staticRenderFns,
|
|
328
|
+
functionalTemplate,
|
|
329
|
+
injectStyles,
|
|
330
|
+
scopeId,
|
|
331
|
+
moduleIdentifier /* server only */,
|
|
332
|
+
shadowMode /* vue-cli only */
|
|
333
|
+
) {
|
|
334
|
+
// Vue.extend constructor export interop
|
|
335
|
+
var options =
|
|
336
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
337
|
+
|
|
338
|
+
// render functions
|
|
339
|
+
if (render) {
|
|
340
|
+
options.render = render
|
|
341
|
+
options.staticRenderFns = staticRenderFns
|
|
342
|
+
options._compiled = true
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// functional template
|
|
346
|
+
if (functionalTemplate) {
|
|
347
|
+
options.functional = true
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// scopedId
|
|
351
|
+
if (scopeId) {
|
|
352
|
+
options._scopeId = 'data-v-' + scopeId
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
var hook
|
|
356
|
+
if (moduleIdentifier) {
|
|
357
|
+
// server build
|
|
358
|
+
hook = function (context) {
|
|
359
|
+
// 2.3 injection
|
|
360
|
+
context =
|
|
361
|
+
context || // cached call
|
|
362
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
363
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
364
|
+
// 2.2 with runInNewContext: true
|
|
365
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
366
|
+
context = __VUE_SSR_CONTEXT__
|
|
367
|
+
}
|
|
368
|
+
// inject component styles
|
|
369
|
+
if (injectStyles) {
|
|
370
|
+
injectStyles.call(this, context)
|
|
371
|
+
}
|
|
372
|
+
// register component module identifier for async chunk inferrence
|
|
373
|
+
if (context && context._registeredComponents) {
|
|
374
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
// used by ssr in case component is cached and beforeCreate
|
|
378
|
+
// never gets called
|
|
379
|
+
options._ssrRegister = hook
|
|
380
|
+
} else if (injectStyles) {
|
|
381
|
+
hook = shadowMode
|
|
382
|
+
? function () {
|
|
383
|
+
injectStyles.call(
|
|
384
|
+
this,
|
|
385
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
386
|
+
)
|
|
387
|
+
}
|
|
388
|
+
: injectStyles
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if (hook) {
|
|
392
|
+
if (options.functional) {
|
|
393
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
394
|
+
// go through the normalizer
|
|
395
|
+
options._injectStyles = hook
|
|
396
|
+
// register for functional component in vue file
|
|
397
|
+
var originalRender = options.render
|
|
398
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
399
|
+
hook.call(context)
|
|
400
|
+
return originalRender(h, context)
|
|
401
|
+
}
|
|
402
|
+
} else {
|
|
403
|
+
// inject component registration as beforeCreate hook
|
|
404
|
+
var existing = options.beforeCreate
|
|
405
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
return {
|
|
410
|
+
exports: scriptExports,
|
|
411
|
+
options: options
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
/***/ }),
|
|
417
|
+
|
|
418
|
+
/***/ 49:
|
|
419
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
420
|
+
|
|
421
|
+
"use strict";
|
|
422
|
+
// ESM COMPAT FLAG
|
|
423
|
+
__webpack_require__.r(__webpack_exports__);
|
|
424
|
+
|
|
425
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/main.vue?vue&type=template&id=3f931032&
|
|
426
|
+
var render = function () {
|
|
427
|
+
var _vm = this
|
|
428
|
+
var _h = _vm.$createElement
|
|
429
|
+
var _c = _vm._self._c || _h
|
|
430
|
+
return _c(
|
|
431
|
+
"div",
|
|
432
|
+
{ staticClass: "es-layout" },
|
|
433
|
+
[
|
|
434
|
+
_c("layout-item"),
|
|
435
|
+
_c("layout-item", { attrs: { top: "100px" } }),
|
|
436
|
+
_vm._l(_vm.contents, function (item, index) {
|
|
437
|
+
return _c(
|
|
438
|
+
"layout-item",
|
|
439
|
+
_vm._b(
|
|
440
|
+
{ key: item.id || index },
|
|
441
|
+
"layout-item",
|
|
442
|
+
Object.assign({}, item, { disabled: _vm.disabled }),
|
|
443
|
+
false
|
|
444
|
+
)
|
|
445
|
+
)
|
|
446
|
+
}),
|
|
447
|
+
],
|
|
448
|
+
2
|
|
449
|
+
)
|
|
450
|
+
}
|
|
451
|
+
var staticRenderFns = []
|
|
452
|
+
render._withStripped = true
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
// CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
|
|
456
|
+
|
|
457
|
+
// EXTERNAL MODULE: ./packages/layout/src/item.vue + 4 modules
|
|
458
|
+
var item = __webpack_require__(18);
|
|
459
|
+
|
|
449
460
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/main.vue?vue&type=script&lang=js&
|
|
450
461
|
//
|
|
451
462
|
//
|
|
@@ -462,7 +473,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
462
473
|
|
|
463
474
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
464
475
|
name: 'EsLayout',
|
|
465
|
-
components: { layoutItem: item },
|
|
476
|
+
components: { layoutItem: item["a" /* default */] },
|
|
466
477
|
props: {
|
|
467
478
|
contents: Array,
|
|
468
479
|
disabled: Boolean
|
|
@@ -480,6 +491,9 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
480
491
|
});
|
|
481
492
|
// CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=script&lang=js&
|
|
482
493
|
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
494
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
495
|
+
var componentNormalizer = __webpack_require__(3);
|
|
496
|
+
|
|
483
497
|
// CONCATENATED MODULE: ./packages/layout/src/main.vue
|
|
484
498
|
|
|
485
499
|
|
|
@@ -488,7 +502,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
488
502
|
|
|
489
503
|
/* normalize component */
|
|
490
504
|
|
|
491
|
-
var
|
|
505
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
492
506
|
src_mainvue_type_script_lang_js_,
|
|
493
507
|
render,
|
|
494
508
|
staticRenderFns,
|
|
@@ -499,7 +513,7 @@ var main_component = Object(componentNormalizer["a" /* default */])(
|
|
|
499
513
|
|
|
500
514
|
)
|
|
501
515
|
|
|
502
|
-
/* harmony default export */ var main = (
|
|
516
|
+
/* harmony default export */ var main = (component.exports);
|
|
503
517
|
// CONCATENATED MODULE: ./packages/layout/index.js
|
|
504
518
|
|
|
505
519
|
|
package/lib/login.js
CHANGED
|
@@ -2522,7 +2522,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2522
2522
|
* @author huangbo
|
|
2523
2523
|
* @date 2022年5月7日
|
|
2524
2524
|
* @param {String} [url] - 连接地址
|
|
2525
|
-
* @param {String} [send] - 是否发送消息
|
|
2526
2525
|
* @param {String} [take] - 订阅地址
|
|
2527
2526
|
* @param {String} [debug] - 调试
|
|
2528
2527
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2530,16 +2529,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2530
2529
|
* @param {Function} [error] - 重连间隔时间
|
|
2531
2530
|
**/
|
|
2532
2531
|
function socket(option, vm) {
|
|
2533
|
-
var options = {};
|
|
2534
|
-
for (var i in option) {
|
|
2535
|
-
if (i === 'send') {
|
|
2536
|
-
options['isSend'] = option[i];
|
|
2537
|
-
} else {
|
|
2538
|
-
options[i] = option[i];
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
2532
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2542
|
-
socket.init(
|
|
2533
|
+
socket.init(option, vm);
|
|
2543
2534
|
return socket;
|
|
2544
2535
|
}
|
|
2545
2536
|
/**
|
|
@@ -3477,7 +3468,6 @@ var WebSocket = function () {
|
|
|
3477
3468
|
this.connects = 1;
|
|
3478
3469
|
this.recon = false;
|
|
3479
3470
|
this.sendTimeout = null;
|
|
3480
|
-
this.isSend = false;
|
|
3481
3471
|
}
|
|
3482
3472
|
|
|
3483
3473
|
/** socket连接 */
|
|
@@ -3505,9 +3495,7 @@ var WebSocket = function () {
|
|
|
3505
3495
|
// tryTimes定义重置
|
|
3506
3496
|
_this.connects = 1;
|
|
3507
3497
|
// 订阅消息
|
|
3508
|
-
// if (!this.isSend) {
|
|
3509
3498
|
_this.subscribe();
|
|
3510
|
-
// }
|
|
3511
3499
|
}, function (error) {
|
|
3512
3500
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3513
3501
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|