eoss-mobiles 0.2.47 → 0.2.48
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/eoss-mobile.common.js +153 -161
- package/lib/grid.js +139 -147
- package/lib/index.js +1 -1
- package/lib/picker.js +3 -3
- package/package.json +1 -1
- package/packages/grid/src/main.vue +8 -9
- package/packages/picker/src/main.vue +1 -1
- package/src/index.js +1 -1
package/lib/grid.js
CHANGED
|
@@ -206,7 +206,7 @@ module.exports = require("vuedraggable");
|
|
|
206
206
|
// ESM COMPAT FLAG
|
|
207
207
|
__webpack_require__.r(__webpack_exports__);
|
|
208
208
|
|
|
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=
|
|
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=453263cc&
|
|
210
210
|
var render = function () {
|
|
211
211
|
var _vm = this
|
|
212
212
|
var _h = _vm.$createElement
|
|
@@ -428,169 +428,162 @@ var render = function () {
|
|
|
428
428
|
1
|
|
429
429
|
)
|
|
430
430
|
: _vm._e(),
|
|
431
|
-
_vm._l(_vm.newData, function (item) {
|
|
431
|
+
_vm._l(_vm.newData, function (item, index) {
|
|
432
432
|
return _c(
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
433
|
+
"van-grid-item",
|
|
434
|
+
_vm._b(
|
|
435
|
+
{
|
|
436
|
+
directives: [
|
|
437
|
+
{
|
|
438
|
+
name: "show",
|
|
439
|
+
rawName: "v-show",
|
|
440
|
+
value:
|
|
441
|
+
_vm.newData && _vm.newData.length > 0 && !_vm.draggable,
|
|
442
|
+
expression: "newData && newData.length > 0 && !draggable",
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
key: index,
|
|
446
|
+
class: { "em-grid-ellipsis": _vm.textEllipsis },
|
|
447
|
+
style: "width:" + 100 / _vm.columnNum + "%;",
|
|
448
|
+
on: {
|
|
449
|
+
click: function ($event) {
|
|
450
|
+
$event.stopPropagation()
|
|
451
|
+
_vm.goView($event, item)
|
|
452
|
+
},
|
|
453
453
|
},
|
|
454
454
|
},
|
|
455
|
-
|
|
455
|
+
"van-grid-item",
|
|
456
|
+
item,
|
|
457
|
+
false
|
|
458
|
+
),
|
|
456
459
|
[
|
|
457
460
|
_c(
|
|
458
|
-
"
|
|
461
|
+
"i",
|
|
459
462
|
{
|
|
460
|
-
staticClass:
|
|
461
|
-
|
|
463
|
+
staticClass: "van-icon van-grid-item__icon",
|
|
464
|
+
class:
|
|
465
|
+
item.icon.startsWith("http") &&
|
|
466
|
+
item.icon.indexOf("/") != -1
|
|
467
|
+
? ""
|
|
468
|
+
: "van-icon-" + item.icon,
|
|
469
|
+
style: {
|
|
470
|
+
fontSize:
|
|
471
|
+
item.iconSize || _vm.$attrs["icon-size"]
|
|
472
|
+
? item.iconSize || _vm.$attrs["icon-size"]
|
|
473
|
+
: "",
|
|
474
|
+
},
|
|
462
475
|
},
|
|
463
476
|
[
|
|
477
|
+
item.icon.startsWith("http") || item.icon.indexOf("/") != -1
|
|
478
|
+
? _c("img", {
|
|
479
|
+
staticClass: "van-icon__image",
|
|
480
|
+
style: {
|
|
481
|
+
width:
|
|
482
|
+
item.iconSize || _vm.$attrs["icon-size"]
|
|
483
|
+
? item.iconSize || _vm.$attrs["icon-size"]
|
|
484
|
+
: "",
|
|
485
|
+
height:
|
|
486
|
+
item.iconSize || _vm.$attrs["icon-size"]
|
|
487
|
+
? item.iconSize || _vm.$attrs["icon-size"]
|
|
488
|
+
: "",
|
|
489
|
+
},
|
|
490
|
+
attrs: { src: item.icon },
|
|
491
|
+
})
|
|
492
|
+
: _vm._e(),
|
|
493
|
+
_c("div", {
|
|
494
|
+
directives: [
|
|
495
|
+
{
|
|
496
|
+
name: "show",
|
|
497
|
+
rawName: "v-show",
|
|
498
|
+
value: item.dot,
|
|
499
|
+
expression: "item.dot",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
staticClass: "van-info van-info--dot",
|
|
503
|
+
style: { background: item.dotColor || "" },
|
|
504
|
+
}),
|
|
464
505
|
_c(
|
|
465
|
-
"
|
|
506
|
+
"div",
|
|
466
507
|
{
|
|
467
|
-
|
|
468
|
-
class:
|
|
469
|
-
item.icon.startsWith("http") &&
|
|
470
|
-
item.icon.indexOf("/") != -1
|
|
471
|
-
? ""
|
|
472
|
-
: "van-icon-" + item.icon,
|
|
473
|
-
style: {
|
|
474
|
-
fontSize:
|
|
475
|
-
item.iconSize || _vm.$attrs["icon-size"]
|
|
476
|
-
? item.iconSize || _vm.$attrs["icon-size"]
|
|
477
|
-
: "",
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
[
|
|
481
|
-
item.icon.startsWith("http") ||
|
|
482
|
-
item.icon.indexOf("/") != -1
|
|
483
|
-
? _c("img", {
|
|
484
|
-
staticClass: "van-icon__image",
|
|
485
|
-
style: {
|
|
486
|
-
width:
|
|
487
|
-
item.iconSize || _vm.$attrs["icon-size"]
|
|
488
|
-
? item.iconSize || _vm.$attrs["icon-size"]
|
|
489
|
-
: "",
|
|
490
|
-
height:
|
|
491
|
-
item.iconSize || _vm.$attrs["icon-size"]
|
|
492
|
-
? item.iconSize || _vm.$attrs["icon-size"]
|
|
493
|
-
: "",
|
|
494
|
-
},
|
|
495
|
-
attrs: { src: item.icon },
|
|
496
|
-
})
|
|
497
|
-
: _vm._e(),
|
|
498
|
-
_c("div", {
|
|
499
|
-
directives: [
|
|
500
|
-
{
|
|
501
|
-
name: "show",
|
|
502
|
-
rawName: "v-show",
|
|
503
|
-
value: item.dot,
|
|
504
|
-
expression: "item.dot",
|
|
505
|
-
},
|
|
506
|
-
],
|
|
507
|
-
staticClass: "van-info van-info--dot",
|
|
508
|
-
style: { background: item.dotColor || "" },
|
|
509
|
-
}),
|
|
510
|
-
_c(
|
|
511
|
-
"div",
|
|
508
|
+
directives: [
|
|
512
509
|
{
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
value: item.badge,
|
|
518
|
-
expression: "item.badge",
|
|
519
|
-
},
|
|
520
|
-
],
|
|
521
|
-
staticClass: "van-info",
|
|
522
|
-
style: { background: _vm.badgeColor || "" },
|
|
510
|
+
name: "show",
|
|
511
|
+
rawName: "v-show",
|
|
512
|
+
value: item.badge,
|
|
513
|
+
expression: "item.badge",
|
|
523
514
|
},
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
)
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
515
|
+
],
|
|
516
|
+
staticClass: "van-info",
|
|
517
|
+
style: { background: _vm.badgeColor || "" },
|
|
518
|
+
},
|
|
519
|
+
[
|
|
520
|
+
_vm._v(
|
|
521
|
+
"\n " +
|
|
522
|
+
_vm._s(
|
|
523
|
+
_vm.maxBadge &&
|
|
524
|
+
!isNaN(item.badge) &&
|
|
525
|
+
Number(_vm.maxBadge) < Number(item.badge)
|
|
526
|
+
? _vm.maxBadge + "+"
|
|
527
|
+
: item.badge
|
|
528
|
+
) +
|
|
529
|
+
"\n "
|
|
537
530
|
),
|
|
538
531
|
]
|
|
539
532
|
),
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
533
|
+
]
|
|
534
|
+
),
|
|
535
|
+
_c("em-popover", {
|
|
536
|
+
attrs: {
|
|
537
|
+
placement: _vm.placement,
|
|
538
|
+
theme: _vm.popoverTheme,
|
|
539
|
+
actions: _vm.popoverActions,
|
|
540
|
+
},
|
|
541
|
+
on: {
|
|
542
|
+
select: function ($event) {
|
|
543
|
+
_vm.popoverSelect($event, item)
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
model: {
|
|
547
|
+
value: item.showPopover,
|
|
548
|
+
callback: function ($$v) {
|
|
549
|
+
_vm.$set(item, "showPopover", $$v)
|
|
550
|
+
},
|
|
551
|
+
expression: "item.showPopover",
|
|
552
|
+
},
|
|
553
|
+
}),
|
|
554
|
+
_c("span", { staticClass: "van-grid-item__text" }, [
|
|
555
|
+
_vm._v(_vm._s(item.text)),
|
|
556
|
+
]),
|
|
557
|
+
_vm.showHide && item.menuType != "add"
|
|
558
|
+
? _c("van-icon", {
|
|
559
|
+
staticClass: "em-grid-del",
|
|
560
|
+
attrs: { name: "clear", size: "20px" },
|
|
546
561
|
on: {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
},
|
|
551
|
-
model: {
|
|
552
|
-
value: item.showPopover,
|
|
553
|
-
callback: function ($$v) {
|
|
554
|
-
_vm.$set(item, "showPopover", $$v)
|
|
562
|
+
click: function ($event) {
|
|
563
|
+
$event.stopPropagation()
|
|
564
|
+
_vm.handleHide(item)
|
|
555
565
|
},
|
|
556
|
-
expression: "item.showPopover",
|
|
557
566
|
},
|
|
558
|
-
})
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
},
|
|
567
|
+
})
|
|
568
|
+
: _vm._e(),
|
|
569
|
+
item.showMenu
|
|
570
|
+
? _c(
|
|
571
|
+
"div",
|
|
572
|
+
{ staticClass: "em-grid-select-box" },
|
|
573
|
+
[
|
|
574
|
+
_c("van-icon", {
|
|
575
|
+
attrs: {
|
|
576
|
+
size: "30px",
|
|
577
|
+
color: "#fff",
|
|
578
|
+
name: "success",
|
|
571
579
|
},
|
|
572
|
-
})
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
_c("van-icon", {
|
|
580
|
-
attrs: {
|
|
581
|
-
size: "30px",
|
|
582
|
-
color: "#fff",
|
|
583
|
-
name: "success",
|
|
584
|
-
},
|
|
585
|
-
}),
|
|
586
|
-
],
|
|
587
|
-
1
|
|
588
|
-
)
|
|
589
|
-
: _vm._e(),
|
|
590
|
-
],
|
|
591
|
-
1
|
|
592
|
-
),
|
|
593
|
-
]
|
|
580
|
+
}),
|
|
581
|
+
],
|
|
582
|
+
1
|
|
583
|
+
)
|
|
584
|
+
: _vm._e(),
|
|
585
|
+
],
|
|
586
|
+
1
|
|
594
587
|
)
|
|
595
588
|
}),
|
|
596
589
|
_vm._t("default"),
|
|
@@ -678,7 +671,7 @@ var staticRenderFns = []
|
|
|
678
671
|
render._withStripped = true
|
|
679
672
|
|
|
680
673
|
|
|
681
|
-
// CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=
|
|
674
|
+
// CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=453263cc&
|
|
682
675
|
|
|
683
676
|
// EXTERNAL MODULE: external "vuedraggable"
|
|
684
677
|
var external_vuedraggable_ = __webpack_require__(10);
|
|
@@ -902,7 +895,6 @@ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_
|
|
|
902
895
|
//
|
|
903
896
|
//
|
|
904
897
|
//
|
|
905
|
-
//
|
|
906
898
|
|
|
907
899
|
|
|
908
900
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|