eoss-mobiles 0.2.44 → 0.2.46

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 (55) hide show
  1. package/lib/action-sheet.js +2 -2
  2. package/lib/button-group.js +2 -2
  3. package/lib/button.js +2 -2
  4. package/lib/calendar.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/cell.js +2 -2
  7. package/lib/checkbox.js +5 -5
  8. package/lib/circle.js +2 -2
  9. package/lib/count-down.js +2 -2
  10. package/lib/date.js +2 -2
  11. package/lib/empty.js +2 -2
  12. package/lib/eoss-mobile.common.js +633 -205
  13. package/lib/esign.js +2 -2
  14. package/lib/field.js +2 -2
  15. package/lib/flow-btn.js +5 -5
  16. package/lib/flow-list.js +5 -5
  17. package/lib/flow.js +42 -32
  18. package/lib/form.js +2 -2
  19. package/lib/grid-item.js +2 -2
  20. package/lib/grid.js +576 -157
  21. package/lib/image-preview.js +2 -2
  22. package/lib/image.js +2 -2
  23. package/lib/index.js +1 -1
  24. package/lib/list.js +2 -2
  25. package/lib/loading.js +2 -2
  26. package/lib/nav-bar.js +2 -2
  27. package/lib/notice-bar.js +2 -2
  28. package/lib/pagination.js +2 -2
  29. package/lib/picker.js +9 -7
  30. package/lib/popover.js +2 -2
  31. package/lib/popup.js +2 -2
  32. package/lib/pull-refresh.js +2 -2
  33. package/lib/radio.js +6 -5
  34. package/lib/rate.js +2 -2
  35. package/lib/retrial-auth.js +5 -5
  36. package/lib/search.js +2 -2
  37. package/lib/selector.js +6 -5
  38. package/lib/skeleton.js +2 -2
  39. package/lib/stepper.js +2 -2
  40. package/lib/swipe.js +2 -2
  41. package/lib/switch.js +2 -2
  42. package/lib/tab.js +2 -2
  43. package/lib/table-column.js +6 -5
  44. package/lib/table.js +7 -7
  45. package/lib/tabs.js +2 -2
  46. package/lib/tag.js +2 -2
  47. package/lib/uploader.js +2 -2
  48. package/lib/utils/axios.js +3 -3
  49. package/package.json +3 -1
  50. package/packages/flow/src/components/Handle.vue +29 -16
  51. package/packages/flow/src/components/StartFlow.vue +9 -9
  52. package/packages/grid/src/main.vue +254 -70
  53. package/packages/picker/src/main.vue +1 -0
  54. package/src/index.js +1 -1
  55. package/src/utils/axios.js +3 -3
package/lib/grid.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 = 25);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 26);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,14 +192,21 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 25:
195
+ /***/ 10:
196
+ /***/ (function(module, exports) {
197
+
198
+ module.exports = require("vuedraggable");
199
+
200
+ /***/ }),
201
+
202
+ /***/ 26:
196
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
204
 
198
205
  "use strict";
199
206
  // ESM COMPAT FLAG
200
207
  __webpack_require__.r(__webpack_exports__);
201
208
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=template&id=b1bd9a9e&
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=template&id=1f9590ec&
203
210
  var render = function () {
204
211
  var _vm = this
205
212
  var _h = _vm.$createElement
@@ -227,142 +234,366 @@ var render = function () {
227
234
  _vm.$listeners
228
235
  ),
229
236
  [
230
- _vm._l(_vm.newData, function (item, index) {
231
- return _c(
232
- "van-grid-item",
233
- _vm._b(
237
+ _vm.draggable
238
+ ? _c(
239
+ "draggable",
234
240
  {
235
- directives: [
236
- {
237
- name: "show",
238
- rawName: "v-show",
239
- value: _vm.newData && _vm.newData.length > 0,
240
- expression: "newData && newData.length > 0",
241
+ staticClass: "menu-list-draggable",
242
+ staticStyle: { width: "100%" },
243
+ model: {
244
+ value: _vm.newData,
245
+ callback: function ($$v) {
246
+ _vm.newData = $$v
241
247
  },
242
- ],
243
- key: index,
244
- class: { "em-grid-ellipsis": _vm.textEllipsis },
245
- style: "width:" + 100 / _vm.columnNum + "%;",
246
- on: {
247
- click: function ($event) {
248
- $event.stopPropagation()
249
- _vm.goView($event, item)
248
+ expression: "newData",
249
+ },
250
+ },
251
+ [
252
+ _c(
253
+ "transition-group",
254
+ {
255
+ staticClass: "menu-list-draggable-item",
256
+ staticStyle: { width: "100%" },
250
257
  },
258
+ _vm._l(_vm.newData, function (item) {
259
+ return _c(
260
+ "div",
261
+ {
262
+ key: item.id,
263
+ staticClass: "van-grid-item",
264
+ style:
265
+ "display: inline-block;width:" +
266
+ 100 / _vm.columnNum +
267
+ "%",
268
+ on: {
269
+ mousedown: function ($event) {
270
+ $event.stopPropagation()
271
+ _vm.onMouseDown(item)
272
+ },
273
+ mouseup: function ($event) {
274
+ $event.stopPropagation()
275
+ _vm.onMouseUp($event, item)
276
+ },
277
+ },
278
+ },
279
+ [
280
+ _c(
281
+ "div",
282
+ {
283
+ staticClass:
284
+ "van-grid-item__content van-grid-item__content--center van-hairline",
285
+ },
286
+ [
287
+ _c(
288
+ "i",
289
+ {
290
+ staticClass: "van-icon van-grid-item__icon",
291
+ class:
292
+ item.icon.startsWith("http") &&
293
+ item.icon.indexOf("/") != -1
294
+ ? ""
295
+ : "van-icon-" + item.icon,
296
+ style: {
297
+ fontSize:
298
+ item.iconSize || _vm.$attrs["icon-size"]
299
+ ? item.iconSize ||
300
+ _vm.$attrs["icon-size"]
301
+ : "",
302
+ },
303
+ },
304
+ [
305
+ item.icon.startsWith("http") ||
306
+ item.icon.indexOf("/") != -1
307
+ ? _c("img", {
308
+ staticClass: "van-icon__image",
309
+ style: {
310
+ width:
311
+ item.iconSize ||
312
+ _vm.$attrs["icon-size"]
313
+ ? item.iconSize ||
314
+ _vm.$attrs["icon-size"]
315
+ : "",
316
+ height:
317
+ item.iconSize ||
318
+ _vm.$attrs["icon-size"]
319
+ ? item.iconSize ||
320
+ _vm.$attrs["icon-size"]
321
+ : "",
322
+ },
323
+ attrs: { src: item.icon },
324
+ })
325
+ : _vm._e(),
326
+ _c("div", {
327
+ directives: [
328
+ {
329
+ name: "show",
330
+ rawName: "v-show",
331
+ value: item.dot,
332
+ expression: "item.dot",
333
+ },
334
+ ],
335
+ staticClass: "van-info van-info--dot",
336
+ style: { background: item.dotColor || "" },
337
+ }),
338
+ _c(
339
+ "div",
340
+ {
341
+ directives: [
342
+ {
343
+ name: "show",
344
+ rawName: "v-show",
345
+ value: item.badge,
346
+ expression: "item.badge",
347
+ },
348
+ ],
349
+ staticClass: "van-info",
350
+ style: {
351
+ background: _vm.badgeColor || "",
352
+ },
353
+ },
354
+ [
355
+ _vm._v(
356
+ "\n " +
357
+ _vm._s(
358
+ _vm.maxBadge &&
359
+ !isNaN(item.badge) &&
360
+ Number(_vm.maxBadge) <
361
+ Number(item.badge)
362
+ ? _vm.maxBadge + "+"
363
+ : item.badge
364
+ ) +
365
+ "\n "
366
+ ),
367
+ ]
368
+ ),
369
+ ]
370
+ ),
371
+ _c("em-popover", {
372
+ attrs: {
373
+ placement: _vm.placement,
374
+ theme: _vm.popoverTheme,
375
+ actions: _vm.popoverActions,
376
+ },
377
+ on: { select: _vm.popoverSelect },
378
+ model: {
379
+ value: item.showPopover,
380
+ callback: function ($$v) {
381
+ _vm.$set(item, "showPopover", $$v)
382
+ },
383
+ expression: "item.showPopover",
384
+ },
385
+ }),
386
+ _c(
387
+ "span",
388
+ { staticClass: "van-grid-item__text" },
389
+ [_vm._v(_vm._s(item.text))]
390
+ ),
391
+ _vm.showHide && item.menuType != "add"
392
+ ? _c("van-icon", {
393
+ staticClass: "em-grid-del",
394
+ attrs: { name: "clear", size: "20px" },
395
+ on: {
396
+ click: function ($event) {
397
+ $event.stopPropagation()
398
+ _vm.handleHide(item)
399
+ },
400
+ },
401
+ })
402
+ : _vm._e(),
403
+ item.showMenu
404
+ ? _c(
405
+ "div",
406
+ { staticClass: "em-grid-select-box" },
407
+ [
408
+ _c("van-icon", {
409
+ attrs: {
410
+ size: "30px",
411
+ color: "#fff",
412
+ name: "success",
413
+ },
414
+ }),
415
+ ],
416
+ 1
417
+ )
418
+ : _vm._e(),
419
+ ],
420
+ 1
421
+ ),
422
+ ]
423
+ )
424
+ }),
425
+ 0
426
+ ),
427
+ ],
428
+ 1
429
+ )
430
+ : _vm._e(),
431
+ _vm._l(_vm.newData, function (item) {
432
+ return _c(
433
+ "div",
434
+ {
435
+ directives: [
436
+ {
437
+ name: "show",
438
+ rawName: "v-show",
439
+ value:
440
+ _vm.newData && _vm.newData.length > 0 && !_vm.draggable,
441
+ expression: "newData && newData.length > 0 && !draggable",
442
+ },
443
+ ],
444
+ key: item.id,
445
+ staticClass: "van-grid-item",
446
+ style:
447
+ "display: inline-block;width:" + 100 / _vm.columnNum + "%",
448
+ on: {
449
+ mousedown: function ($event) {
450
+ $event.stopPropagation()
451
+ _vm.onMouseDown(item)
452
+ },
453
+ mouseup: function ($event) {
454
+ $event.stopPropagation()
455
+ _vm.onMouseUp($event, item)
251
456
  },
252
457
  },
253
- "van-grid-item",
254
- item,
255
- false
256
- ),
458
+ },
257
459
  [
258
460
  _c(
259
- "i",
461
+ "div",
260
462
  {
261
- staticClass: "van-icon van-grid-item__icon",
262
- class:
263
- item.icon.startsWith("http") &&
264
- item.icon.indexOf("/") != -1
265
- ? ""
266
- : "van-icon-" + item.icon,
267
- style: {
268
- fontSize:
269
- item.iconSize || _vm.$attrs["icon-size"]
270
- ? item.iconSize || _vm.$attrs["icon-size"]
271
- : "",
272
- },
463
+ staticClass:
464
+ "van-grid-item__content van-grid-item__content--center van-hairline",
273
465
  },
274
466
  [
275
- item.icon.startsWith("http") || item.icon.indexOf("/") != -1
276
- ? _c("img", {
277
- staticClass: "van-icon__image",
278
- style: {
279
- width:
280
- item.iconSize || _vm.$attrs["icon-size"]
281
- ? item.iconSize || _vm.$attrs["icon-size"]
282
- : "",
283
- height:
284
- item.iconSize || _vm.$attrs["icon-size"]
285
- ? item.iconSize || _vm.$attrs["icon-size"]
286
- : "",
287
- },
288
- attrs: { src: item.icon },
289
- })
290
- : _vm._e(),
291
- _c("div", {
292
- directives: [
293
- {
294
- name: "show",
295
- rawName: "v-show",
296
- value: item.dot,
297
- expression: "item.dot",
298
- },
299
- ],
300
- staticClass: "van-info van-info--dot",
301
- style: { background: item.dotColor || "" },
302
- }),
303
467
  _c(
304
- "div",
468
+ "i",
305
469
  {
306
- directives: [
307
- {
308
- name: "show",
309
- rawName: "v-show",
310
- value: item.badge,
311
- expression: "item.badge",
312
- },
313
- ],
314
- staticClass: "van-info",
315
- style: { background: _vm.badgeColor || "" },
470
+ staticClass: "van-icon van-grid-item__icon",
471
+ class:
472
+ item.icon.startsWith("http") &&
473
+ item.icon.indexOf("/") != -1
474
+ ? ""
475
+ : "van-icon-" + item.icon,
476
+ style: {
477
+ fontSize:
478
+ item.iconSize || _vm.$attrs["icon-size"]
479
+ ? item.iconSize || _vm.$attrs["icon-size"]
480
+ : "",
481
+ },
316
482
  },
317
483
  [
318
- _vm._v(
319
- "\n " +
320
- _vm._s(
321
- _vm.maxBadge &&
322
- !isNaN(item.badge) &&
323
- Number(_vm.maxBadge) < Number(item.badge)
324
- ? _vm.maxBadge + "+"
325
- : item.badge
326
- ) +
327
- "\n "
484
+ item.icon.startsWith("http") ||
485
+ item.icon.indexOf("/") != -1
486
+ ? _c("img", {
487
+ staticClass: "van-icon__image",
488
+ style: {
489
+ width:
490
+ item.iconSize || _vm.$attrs["icon-size"]
491
+ ? item.iconSize || _vm.$attrs["icon-size"]
492
+ : "",
493
+ height:
494
+ item.iconSize || _vm.$attrs["icon-size"]
495
+ ? item.iconSize || _vm.$attrs["icon-size"]
496
+ : "",
497
+ },
498
+ attrs: { src: item.icon },
499
+ })
500
+ : _vm._e(),
501
+ _c("div", {
502
+ directives: [
503
+ {
504
+ name: "show",
505
+ rawName: "v-show",
506
+ value: item.dot,
507
+ expression: "item.dot",
508
+ },
509
+ ],
510
+ staticClass: "van-info van-info--dot",
511
+ style: { background: item.dotColor || "" },
512
+ }),
513
+ _c(
514
+ "div",
515
+ {
516
+ directives: [
517
+ {
518
+ name: "show",
519
+ rawName: "v-show",
520
+ value: item.badge,
521
+ expression: "item.badge",
522
+ },
523
+ ],
524
+ staticClass: "van-info",
525
+ style: { background: _vm.badgeColor || "" },
526
+ },
527
+ [
528
+ _vm._v(
529
+ "\n " +
530
+ _vm._s(
531
+ _vm.maxBadge &&
532
+ !isNaN(item.badge) &&
533
+ Number(_vm.maxBadge) < Number(item.badge)
534
+ ? _vm.maxBadge + "+"
535
+ : item.badge
536
+ ) +
537
+ "\n "
538
+ ),
539
+ ]
328
540
  ),
329
541
  ]
330
542
  ),
331
- ]
332
- ),
333
- _c("span", { staticClass: "van-grid-item__text" }, [
334
- _vm._v(_vm._s(item.text)),
335
- ]),
336
- _vm.showHide && item.menuType != "add"
337
- ? _c("van-icon", {
338
- staticClass: "em-grid-del",
339
- attrs: { name: "clear", size: "20px" },
543
+ _c("em-popover", {
544
+ attrs: {
545
+ placement: _vm.placement,
546
+ theme: _vm.popoverTheme,
547
+ actions: _vm.popoverActions,
548
+ },
340
549
  on: {
341
- click: function ($event) {
342
- $event.stopPropagation()
343
- _vm.handleHide(item)
550
+ select: function ($event) {
551
+ _vm.popoverSelect($event, item)
344
552
  },
345
553
  },
346
- })
347
- : _vm._e(),
348
- item.showMenu
349
- ? _c(
350
- "div",
351
- { staticClass: "em-grid-select-box" },
352
- [
353
- _c("van-icon", {
354
- attrs: {
355
- size: "30px",
356
- color: "#fff",
357
- name: "success",
554
+ model: {
555
+ value: item.showPopover,
556
+ callback: function ($$v) {
557
+ _vm.$set(item, "showPopover", $$v)
558
+ },
559
+ expression: "item.showPopover",
560
+ },
561
+ }),
562
+ _c("span", { staticClass: "van-grid-item__text" }, [
563
+ _vm._v(_vm._s(item.text)),
564
+ ]),
565
+ _vm.showHide && item.menuType != "add"
566
+ ? _c("van-icon", {
567
+ staticClass: "em-grid-del",
568
+ attrs: { name: "clear", size: "20px" },
569
+ on: {
570
+ click: function ($event) {
571
+ $event.stopPropagation()
572
+ _vm.handleHide(item)
573
+ },
358
574
  },
359
- }),
360
- ],
361
- 1
362
- )
363
- : _vm._e(),
364
- ],
365
- 1
575
+ })
576
+ : _vm._e(),
577
+ item.showMenu
578
+ ? _c(
579
+ "div",
580
+ { staticClass: "em-grid-select-box" },
581
+ [
582
+ _c("van-icon", {
583
+ attrs: {
584
+ size: "30px",
585
+ color: "#fff",
586
+ name: "success",
587
+ },
588
+ }),
589
+ ],
590
+ 1
591
+ )
592
+ : _vm._e(),
593
+ ],
594
+ 1
595
+ ),
596
+ ]
366
597
  )
367
598
  }),
368
599
  _vm._t("default"),
@@ -450,7 +681,11 @@ var staticRenderFns = []
450
681
  render._withStripped = true
451
682
 
452
683
 
453
- // CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=b1bd9a9e&
684
+ // CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=1f9590ec&
685
+
686
+ // EXTERNAL MODULE: external "vuedraggable"
687
+ var external_vuedraggable_ = __webpack_require__(10);
688
+ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_vuedraggable_);
454
689
 
455
690
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=script&lang=js&
456
691
  //
@@ -544,10 +779,137 @@ render._withStripped = true
544
779
  //
545
780
  //
546
781
  //
782
+ //
783
+ //
784
+ //
785
+ //
786
+ //
787
+ //
788
+ //
789
+ //
790
+ //
791
+ //
792
+ //
793
+ //
794
+ //
795
+ //
796
+ //
797
+ //
798
+ //
799
+ //
800
+ //
801
+ //
802
+ //
803
+ //
804
+ //
805
+ //
806
+ //
807
+ //
808
+ //
809
+ //
810
+ //
811
+ //
812
+ //
813
+ //
814
+ //
815
+ //
816
+ //
817
+ //
818
+ //
819
+ //
820
+ //
821
+ //
822
+ //
823
+ //
824
+ //
825
+ //
826
+ //
827
+ //
828
+ //
829
+ //
830
+ //
831
+ //
832
+ //
833
+ //
834
+ //
835
+ //
836
+ //
837
+ //
838
+ //
839
+ //
840
+ //
841
+ //
842
+ //
843
+ //
844
+ //
845
+ //
846
+ //
847
+ //
848
+ //
849
+ //
850
+ //
851
+ //
852
+ //
853
+ //
854
+ //
855
+ //
856
+ //
857
+ //
858
+ //
859
+ //
860
+ //
861
+ //
862
+ //
863
+ //
864
+ //
865
+ //
866
+ //
867
+ //
868
+ //
869
+ //
870
+ //
871
+ //
872
+ //
873
+ //
874
+ //
875
+ //
876
+ //
877
+ //
878
+ //
879
+ //
880
+ //
881
+ //
882
+ //
883
+ //
884
+ //
885
+ //
886
+ //
887
+ //
888
+ //
889
+ //
890
+ //
891
+ //
892
+ //
893
+ //
894
+ //
895
+ //
896
+ //
897
+ //
898
+ //
899
+ //
900
+ //
901
+ //
902
+ //
903
+ //
904
+ //
905
+ //
906
+ //
907
+
547
908
 
548
909
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
549
910
  name: 'EmGrid',
550
911
  inheritAttrs: false,
912
+ components: { draggable: external_vuedraggable_default.a },
551
913
  props: {
552
914
  data: {
553
915
  type: Array,
@@ -596,15 +958,38 @@ render._withStripped = true
596
958
  addMenuIconSize: {
597
959
  type: String,
598
960
  default: '40px'
961
+ },
962
+ draggable: {
963
+ type: Boolean,
964
+ default: false
965
+ },
966
+ popoverActions: {
967
+ type: Array,
968
+ default: function _default() {
969
+ return [{ text: '隐藏菜单', type: 'hideMenu' }];
970
+ }
971
+ },
972
+ isTouch: {
973
+ type: Boolean,
974
+ default: false
975
+ },
976
+ placement: {
977
+ type: String,
978
+ default: 'top'
979
+ },
980
+ popoverTheme: {
981
+ type: String,
982
+ default: 'dark'
599
983
  }
600
984
  },
601
985
  data: function data() {
602
986
  return {
603
- lastTapTime: 0,
604
987
  timer: null,
605
988
  showHide: false,
989
+ isLongPress: false,
606
990
  newData: [],
607
991
  show: false,
992
+ showPopover: false,
608
993
  selectMenuArr: [],
609
994
  hideMenuList: []
610
995
  };
@@ -630,24 +1015,56 @@ render._withStripped = true
630
1015
  }
631
1016
  },
632
1017
  methods: {
1018
+ popoverSelect: function popoverSelect(val, item) {
1019
+ if (val.type == 'hideMenu') {
1020
+ this.handleHide(item);
1021
+ } else {
1022
+ this.$emit('touchSelect', { action: val, data: item });
1023
+ }
1024
+ },
1025
+ onMouseDown: function onMouseDown(item) {
1026
+ var _this = this;
1027
+
1028
+ // this.showPopover = true
1029
+ if (this.draggable || !this.isTouch) return;
1030
+ this.isLongPress = false;
1031
+ this.timer = setTimeout(function () {
1032
+ if (_this.isLongPress === false) {
1033
+ _this.isLongPress = true;
1034
+ _this.lastTapTime = new Date().getTime();
1035
+ _this.$set(item, 'showPopover', true);
1036
+ }
1037
+ }, 500);
1038
+ },
1039
+ onMouseUp: function onMouseUp($event, item) {
1040
+ if (this.isLongPress === false) {
1041
+ this.lastTapTime = new Date().getTime();
1042
+ this.$set(item, 'showPopover', false);
1043
+ this.goView($event, item);
1044
+ // 执行相应的操作
1045
+ }
1046
+ this.isLongPress = false;
1047
+ clearTimeout(this.timer);
1048
+ },
633
1049
  hideDelIcon: function hideDelIcon() {
634
1050
  this.showHide = false;
635
1051
  },
636
1052
  handleShowMenu: function handleShowMenu() {
637
- var _this = this;
1053
+ var _this2 = this;
638
1054
 
639
- var str = this.selectMenuArr.join(',');
1055
+ var str = this.selectMenuArr;
1056
+ // let str = this.selectMenuArr.join(',');
640
1057
  if (Array.isArray(this.hideMenu)) {
641
1058
  var hideArr = this.hideMenuList.filter(function (x) {
642
- return str.indexOf(x[_this.hideMenuKey]) == -1;
1059
+ return str.indexOf(x[_this2.hideMenuKey]) == -1;
643
1060
  });
644
1061
  this.$emit('hide', hideArr);
645
1062
  } else {
646
1063
  var hide = this.hideMenuList.filter(function (x) {
647
- return str.indexOf(x[_this.hideMenuKey]) == -1;
1064
+ return str.indexOf(x[_this2.hideMenuKey]) == -1;
648
1065
  });
649
1066
  hide = hide.map(function (x) {
650
- return x[_this.hideMenuKey];
1067
+ return x[_this2.hideMenuKey];
651
1068
  });
652
1069
  this.$emit('hide', hide.join(','));
653
1070
  }
@@ -655,11 +1072,11 @@ render._withStripped = true
655
1072
  this.show = false;
656
1073
  },
657
1074
  selectMenu: function selectMenu(val) {
658
- var _this2 = this;
1075
+ var _this3 = this;
659
1076
 
660
1077
  if (val.showMenu) {
661
1078
  this.selectMenuArr = this.selectMenuArr.filter(function (x) {
662
- return x != val[_this2.hideMenuKey];
1079
+ return x != val[_this3.hideMenuKey];
663
1080
  });
664
1081
  } else {
665
1082
  this.selectMenuArr.push(val[this.hideMenuKey]);
@@ -667,26 +1084,27 @@ render._withStripped = true
667
1084
  this.$set(val, 'showMenu', !val.showMenu);
668
1085
  },
669
1086
  defaultHide: function defaultHide(val) {
670
- var _this3 = this;
1087
+ var _this4 = this;
671
1088
 
672
1089
  if (this.isHideMenu && val != undefined) {
673
1090
  if (Array.isArray(val)) {
674
1091
  var menuKey = val.map(function (x) {
675
1092
  return x.id;
676
- }).join(',');
1093
+ });
1094
+ // let menuKey = val.map(x => x.id).join(',');
677
1095
  this.newData = this.data.filter(function (x) {
678
- return menuKey.indexOf(x[_this3.hideMenuKey]) == -1;
1096
+ return menuKey.indexOf(x[_this4.hideMenuKey]) == -1;
679
1097
  });
680
1098
  this.hideMenuList = this.data.filter(function (x) {
681
- return menuKey.indexOf(x[_this3.hideMenuKey]) != -1;
1099
+ return menuKey.indexOf(x[_this4.hideMenuKey]) != -1;
682
1100
  });
683
1101
  } else {
684
1102
  val = val + '';
685
1103
  this.newData = this.data.filter(function (x) {
686
- return val.indexOf(x[_this3.hideMenuKey]) == -1;
1104
+ return val.indexOf(x[_this4.hideMenuKey]) == -1;
687
1105
  });
688
1106
  this.hideMenuList = this.data.filter(function (x) {
689
- return val.indexOf(x[_this3.hideMenuKey]) != -1;
1107
+ return val.indexOf(x[_this4.hideMenuKey]) != -1;
690
1108
  });
691
1109
  }
692
1110
  }
@@ -699,44 +1117,45 @@ render._withStripped = true
699
1117
  }
700
1118
  },
701
1119
  handleHide: function handleHide(item) {
702
- var _this4 = this;
1120
+ var _this5 = this;
703
1121
 
704
1122
  this.$dialog.confirm({
705
1123
  message: '\u786E\u5B9A\u8981\u9690\u85CF<span style="color:red;font-weight:bold;margin:0px 5px">' + item.text + '</span>\u83DC\u5355\u5417\uFF1F'
706
1124
  }).then(function () {
707
- if (Array.isArray(_this4.hideMenu)) {
708
- var hideArr = [].concat(_this4.hideMenu, [item]);
709
- _this4.$emit('hide', hideArr);
1125
+ if (Array.isArray(_this5.hideMenu)) {
1126
+ var hideArr = [].concat(_this5.hideMenu, [item]);
1127
+ _this5.$emit('hide', hideArr);
710
1128
  } else {
711
- var hideStr = _this4.hideMenu ? _this4.hideMenu + ',' + item[_this4.hideMenuKey] : item[_this4.hideMenuKey];
712
- _this4.$emit('hide', hideStr);
1129
+ var hideStr = _this5.hideMenu ? _this5.hideMenu + ',' + item[_this5.hideMenuKey] : item[_this5.hideMenuKey];
1130
+ _this5.$emit('hide', hideStr);
713
1131
  }
714
1132
  });
715
1133
  },
716
1134
  goView: function goView(event, val) {
717
- var _this5 = this;
718
-
719
1135
  if (val.menuType === 'add') {
720
1136
  this.show = true;
721
1137
  return;
722
1138
  }
723
- var currentTime = new Date().getTime();
724
- var tapLength = currentTime - this.lastTapTime;
725
- this.lastTapTime = currentTime;
1139
+ // const currentTime = new Date().getTime();
1140
+ // const tapLength = currentTime - this.lastTapTime;
1141
+ // this.lastTapTime = currentTime;
1142
+ // if (tapLength > 300) {
1143
+ // return;
1144
+ // }
726
1145
  if (this.isHideMenu) {
727
- if (tapLength < 300) {
728
- this.handleDoubleClick(val);
729
- clearTimeout(this.timer);
730
- return;
731
- }
732
- if (this.showHide) {
733
- this.showHide = false;
734
- return;
735
- }
736
- this.timer = setTimeout(function () {
737
- _this5.$emit('click', val, event);
738
- _this5.targetStop && event.stopPropagation();
739
- }, 300);
1146
+ // if (tapLength < 300) {
1147
+ // this.handleDoubleClick(val);
1148
+ // clearTimeout(this.timer);
1149
+ // return;
1150
+ // }
1151
+ // if (this.showHide) {
1152
+ // this.showHide = false;
1153
+ // return;
1154
+ // }
1155
+ // this.timer = setTimeout(() => {
1156
+ this.$emit('click', val, event);
1157
+ this.targetStop && event.stopPropagation();
1158
+ // }, 300);
740
1159
  } else {
741
1160
  this.$emit('click', val, event);
742
1161
  this.targetStop && event.stopPropagation();