eoss-ui 0.5.78 → 0.5.80

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.
Files changed (66) hide show
  1. package/lib/button-group.js +1 -1
  2. package/lib/button.js +1 -1
  3. package/lib/checkbox-group.js +1 -1
  4. package/lib/clients.js +99 -86
  5. package/lib/data-table-form.js +1 -1
  6. package/lib/data-table.js +16 -11
  7. package/lib/date-picker.js +1 -1
  8. package/lib/dialog.js +1 -1
  9. package/lib/eoss-ui.common.js +377 -246
  10. package/lib/flow-group.js +1 -1
  11. package/lib/flow-list.js +1 -1
  12. package/lib/flow.js +1 -1
  13. package/lib/form.js +109 -29
  14. package/lib/handle-user.js +1 -1
  15. package/lib/handler.js +1 -1
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +1 -1
  18. package/lib/input.js +1 -5
  19. package/lib/login.js +3 -5
  20. package/lib/main.js +61 -49
  21. package/lib/nav.js +1 -1
  22. package/lib/page.js +1 -1
  23. package/lib/player.js +1 -1
  24. package/lib/qr-code.js +1 -1
  25. package/lib/radio-group.js +1 -1
  26. package/lib/retrial-auth.js +1 -1
  27. package/lib/select-ganged.js +1 -1
  28. package/lib/select.js +1 -1
  29. package/lib/selector-panel.js +1 -1
  30. package/lib/selector.js +1 -1
  31. package/lib/sizer.js +1 -1
  32. package/lib/steps.js +1 -1
  33. package/lib/switch.js +1 -1
  34. package/lib/table-form.js +1 -1
  35. package/lib/tabs.js +1 -1
  36. package/lib/theme-chalk/clients.css +1 -1
  37. package/lib/theme-chalk/data-table.css +1 -1
  38. package/lib/theme-chalk/form.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/login.css +1 -1
  41. package/lib/tips.js +1 -1
  42. package/lib/tree-group.js +1 -1
  43. package/lib/tree.js +1 -1
  44. package/lib/upload.js +68 -41
  45. package/lib/utils/util.js +1 -1
  46. package/lib/wujie.js +1 -1
  47. package/lib/wxlogin.js +1 -1
  48. package/package.json +2 -2
  49. package/packages/clients/src/main.vue +49 -44
  50. package/packages/data-table/src/main.vue +16 -5
  51. package/packages/form/src/main.vue +27 -13
  52. package/packages/input/src/main.vue +0 -4
  53. package/packages/login/src/main.vue +0 -1
  54. package/packages/main/src/main.vue +55 -51
  55. package/packages/theme-chalk/lib/clients.css +1 -1
  56. package/packages/theme-chalk/lib/data-table.css +1 -1
  57. package/packages/theme-chalk/lib/form.css +1 -1
  58. package/packages/theme-chalk/lib/index.css +1 -1
  59. package/packages/theme-chalk/lib/login.css +1 -1
  60. package/packages/theme-chalk/src/clients.scss +1 -1
  61. package/packages/theme-chalk/src/data-table.scss +3 -0
  62. package/packages/theme-chalk/src/form.scss +2 -2
  63. package/packages/theme-chalk/src/login.scss +8 -5
  64. package/packages/upload/src/main.vue +126 -72
  65. package/src/index.js +1 -1
  66. package/src/utils/util.js +1 -1
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/lib/button.js CHANGED
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
350
350
  }, 1000);
351
351
  }
352
352
  // eslint-disable-next-line no-undef
353
- return Promise.resolve(response.data);
353
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
354
354
  }
355
355
  }, function (error) {
356
356
  loading && loading.close();
package/lib/clients.js CHANGED
@@ -199,7 +199,7 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
201
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=5451de76&
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=f0512042&
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -225,86 +225,94 @@ var render = function () {
225
225
  { staticClass: "es-clients-list" },
226
226
  [
227
227
  _vm._l(_vm.downloads, function (item, key) {
228
- return _c(
229
- "li",
230
- {
231
- key: key,
232
- staticClass: "es-clients-item",
233
- style: { width: 100 / _vm.num + "%" },
234
- },
235
- [
236
- _c(
237
- "div",
238
- { staticClass: "es-clients-item-title" },
239
- [
240
- key == "ios"
241
- ? [
242
- _c("i", { staticClass: "es-icon-ios" }),
243
- _vm._v("苹果系统\n "),
244
- ]
245
- : _vm._e(),
246
- key == "android"
247
- ? [
248
- _c("i", { staticClass: "es-icon-android" }),
249
- _vm._v("安卓系统\n "),
250
- ]
251
- : _vm._e(),
252
- key == "pad"
253
- ? [
254
- _c("i", { staticClass: "es-icon-pad" }),
255
- _vm._v("平板\n "),
256
- ]
257
- : _vm._e(),
258
- key == "uos"
259
- ? [
260
- _c("i", { staticClass: "es-icon-monitor" }),
261
- _vm._v("UOS统信系统\n "),
262
- ]
263
- : _vm._e(),
264
- ],
265
- 2
266
- ),
267
- key == "mac" || key == "win" || key == "linux" || key == "uos"
268
- ? _c("div", { staticClass: "es-clients-pc-image" }, [
269
- _c("img", {
270
- attrs: { src: _vm.pcImage, width: "100%" },
271
- on: {
272
- click: function ($event) {
273
- $event.stopPropagation()
274
- _vm.handleDownload(item)
275
- },
276
- },
277
- }),
228
+ return [
229
+ key == "ios" || key == "android" || key == "pad" || key == "uos"
230
+ ? _c(
231
+ "li",
232
+ {
233
+ key: key,
234
+ staticClass: "es-clients-item",
235
+ style: { width: 100 / _vm.num + "%" },
236
+ },
237
+ [
278
238
  _c(
279
239
  "div",
280
- {
281
- staticClass:
282
- "es-clients-item-title es-clients-pc-download",
283
- on: {
284
- click: function ($event) {
285
- $event.stopPropagation()
286
- _vm.handleDownload(item)
287
- },
288
- },
289
- },
290
- [_vm._v("\n 下载\n ")]
291
- ),
292
- ])
293
- : _c(
294
- "div",
295
- { staticClass: "es-qr-code-box" },
296
- [_c("es-qr-code", { attrs: { content: item, auto: "" } })],
297
- 1
298
- ),
299
- key == "ios"
300
- ? _c("div", { staticClass: "es-clients-remark" }, [
301
- _vm._v(
302
- "\n 备注: 苹果手机安装后请在设置- -通用- -设备管理中进行激活操作\n "
240
+ { staticClass: "es-clients-item-title" },
241
+ [
242
+ key == "ios"
243
+ ? [
244
+ _c("i", { staticClass: "es-icon-ios" }),
245
+ _vm._v("苹果系统\n "),
246
+ ]
247
+ : _vm._e(),
248
+ key == "android"
249
+ ? [
250
+ _c("i", { staticClass: "es-icon-android" }),
251
+ _vm._v("安卓系统\n "),
252
+ ]
253
+ : _vm._e(),
254
+ key == "pad"
255
+ ? [
256
+ _c("i", { staticClass: "es-icon-pad" }),
257
+ _vm._v("平板\n "),
258
+ ]
259
+ : _vm._e(),
260
+ key == "uos"
261
+ ? [
262
+ _c("i", { staticClass: "es-icon-monitor" }),
263
+ _vm._v("UOS统信系统\n "),
264
+ ]
265
+ : _vm._e(),
266
+ ],
267
+ 2
303
268
  ),
304
- ])
305
- : _vm._e(),
306
- ]
307
- )
269
+ key == "uos"
270
+ ? _c("div", { staticClass: "es-clients-pc-image" }, [
271
+ _c("img", {
272
+ attrs: { src: _vm.pcImage, width: "100%" },
273
+ on: {
274
+ click: function ($event) {
275
+ $event.stopPropagation()
276
+ _vm.handleDownload(item)
277
+ },
278
+ },
279
+ }),
280
+ _c(
281
+ "div",
282
+ {
283
+ staticClass:
284
+ "es-clients-item-title es-clients-pc-download",
285
+ on: {
286
+ click: function ($event) {
287
+ $event.stopPropagation()
288
+ _vm.handleDownload(item)
289
+ },
290
+ },
291
+ },
292
+ [_vm._v("\n 下载\n ")]
293
+ ),
294
+ ])
295
+ : _c(
296
+ "div",
297
+ { staticClass: "es-qr-code-box" },
298
+ [
299
+ _c("es-qr-code", {
300
+ attrs: { content: item, auto: "" },
301
+ }),
302
+ ],
303
+ 1
304
+ ),
305
+ key == "ios"
306
+ ? _c("div", { staticClass: "es-clients-remark" }, [
307
+ _vm._v(
308
+ "\n 备注: 苹果手机安装后请在设置- -通用- -设备管理中进行激活操作\n "
309
+ ),
310
+ ])
311
+ : _vm._e(),
312
+ ]
313
+ )
314
+ : _vm._e(),
315
+ ]
308
316
  }),
309
317
  _vm.downloads.mac || _vm.downloads.win || _vm.downloads.linux
310
318
  ? _c(
@@ -362,7 +370,7 @@ var staticRenderFns = [
362
370
  render._withStripped = true
363
371
 
364
372
 
365
- // CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=5451de76&
373
+ // CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=f0512042&
366
374
 
367
375
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=script&lang=js&
368
376
  //
@@ -436,6 +444,11 @@ render._withStripped = true
436
444
  //
437
445
  //
438
446
  //
447
+ //
448
+ //
449
+ //
450
+ //
451
+ //
439
452
 
440
453
  //import util from 'eoss-ui/src/utils/util';
441
454
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
@@ -463,7 +476,7 @@ render._withStripped = true
463
476
 
464
477
  methods: {
465
478
  handleDownload: function handleDownload(url) {
466
- if (url) {
479
+ if (url && typeof url == 'string') {
467
480
  window.open(url);
468
481
  return;
469
482
  }
@@ -471,24 +484,24 @@ render._withStripped = true
471
484
  var isMac = navigator.platform == 'Mac68K' || navigator.platform == 'MacPPC' || navigator.platform == 'Macintosh' || navigator.platform == 'MacIntel';
472
485
  var isLinux = navigator.platform == 'X11' || navigator.platform.indexOf('Linux') > -1;
473
486
  if (isWin) {
474
- if (this.win) {
475
- window.open(this.win);
487
+ if (this.downloads.win) {
488
+ window.open(this.downloads.win);
476
489
  } else {
477
490
  this.$message.error('下载地址不存在!');
478
491
  return;
479
492
  }
480
493
  }
481
494
  if (isMac) {
482
- if (this.mac) {
483
- window.open(this.mac);
495
+ if (this.downloads.mac) {
496
+ window.open(this.downloads.mac);
484
497
  } else {
485
498
  this.$message.error('下载地址不存在!');
486
499
  return;
487
500
  }
488
501
  }
489
502
  if (isLinux) {
490
- if (this.linux) {
491
- window.open(this.linux);
503
+ if (this.downloads.linux) {
504
+ window.open(this.downloads.linux);
492
505
  } else {
493
506
  this.$message.error('下载地址不存在!');
494
507
  return;
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
350
350
  }, 1000);
351
351
  }
352
352
  // eslint-disable-next-line no-undef
353
- return Promise.resolve(response.data);
353
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
354
354
  }
355
355
  }, function (error) {
356
356
  loading && loading.close();
package/lib/data-table.js CHANGED
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
350
350
  }, 1000);
351
351
  }
352
352
  // eslint-disable-next-line no-undef
353
- return Promise.resolve(response.data);
353
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
354
354
  }
355
355
  }, function (error) {
356
356
  loading && loading.close();
@@ -3928,8 +3928,8 @@ module.exports = require("vue");
3928
3928
  // ESM COMPAT FLAG
3929
3929
  __webpack_require__.r(__webpack_exports__);
3930
3930
 
3931
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=58029cb3&
3932
- var mainvue_type_template_id_58029cb3_render = function () {
3931
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=1f63e6c2&
3932
+ var mainvue_type_template_id_1f63e6c2_render = function () {
3933
3933
  var _vm = this
3934
3934
  var _h = _vm.$createElement
3935
3935
  var _c = _vm._self._c || _h
@@ -4240,10 +4240,10 @@ var mainvue_type_template_id_58029cb3_render = function () {
4240
4240
  )
4241
4241
  }
4242
4242
  var staticRenderFns = []
4243
- mainvue_type_template_id_58029cb3_render._withStripped = true
4243
+ mainvue_type_template_id_1f63e6c2_render._withStripped = true
4244
4244
 
4245
4245
 
4246
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=58029cb3&
4246
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1f63e6c2&
4247
4247
 
4248
4248
  // EXTERNAL MODULE: ./src/config/api.js
4249
4249
  var api = __webpack_require__(1);
@@ -6768,7 +6768,7 @@ var mainvue_type_script_lang_js_components, _watch;
6768
6768
  if (this.list && this.list.length) {
6769
6769
  return this.list;
6770
6770
  }
6771
- if (this.config.totalCount == 0 && this.data.length) {
6771
+ if (this.page && (_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
6772
6772
  this.config.totalCount = this.data.length - this.lose;
6773
6773
  }
6774
6774
  if (this.page && this.data.length > this.config.pageSize) {
@@ -6838,10 +6838,15 @@ var mainvue_type_script_lang_js_components, _watch;
6838
6838
  },
6839
6839
 
6840
6840
  // data: {
6841
- // immediate: true,
6842
6841
  // deep: true,
6843
6842
  // handler(val) {
6844
- // this.config.totalCount = val.length - this.lose;
6843
+ // if (
6844
+ // this.page &&
6845
+ // typeof this.page === 'object' &&
6846
+ // !Object.prototype.hasOwnProperty.call(this.page, 'totalCount')
6847
+ // ) {
6848
+ // this.config.totalCount = val.length - this.lose;
6849
+ // }
6845
6850
  // }
6846
6851
  // },
6847
6852
  page: function page() {
@@ -7182,7 +7187,7 @@ var mainvue_type_script_lang_js_components, _watch;
7182
7187
  if (where) {
7183
7188
  reqData = util["a" /* default */].extend({}, reqData, where);
7184
7189
  }
7185
- if (this.retainSearh) {
7190
+ if (this.retainSearh || first === false) {
7186
7191
  reqData = util["a" /* default */].extend({}, reqData, this.wheres);
7187
7192
  }
7188
7193
  if (this.isJoin) {
@@ -7406,7 +7411,7 @@ var mainvue_type_script_lang_js_components, _watch;
7406
7411
  }
7407
7412
  var thead = this.theads;
7408
7413
  if (this.$refs.oaTable) {
7409
- thead = this.$refs.oaTable.getThead();
7414
+ thead = this.$refs.oaTable.getThead().thead;
7410
7415
  }
7411
7416
  if (handle.action) {
7412
7417
  var isConfirm = handle.confirm || true;
@@ -7715,7 +7720,7 @@ var mainvue_type_script_lang_js_components, _watch;
7715
7720
 
7716
7721
  var main_component = Object(componentNormalizer["a" /* default */])(
7717
7722
  src_mainvue_type_script_lang_js_,
7718
- mainvue_type_template_id_58029cb3_render,
7723
+ mainvue_type_template_id_1f63e6c2_render,
7719
7724
  staticRenderFns,
7720
7725
  false,
7721
7726
  null,
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/lib/dialog.js CHANGED
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
350
350
  }, 1000);
351
351
  }
352
352
  // eslint-disable-next-line no-undef
353
- return Promise.resolve(response.data);
353
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
354
354
  }
355
355
  }, function (error) {
356
356
  loading && loading.close();