dolphin-weex-ui 2.1.3 → 2.1.5
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/CHANGELOG.md +10 -0
- package/dist/index.native.js +51 -20
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +48 -15
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-popover2/colmo.css +17 -0
- package/packages/dof-popover2/index.vue +34 -20
package/CHANGELOG.md
CHANGED
package/dist/index.native.js
CHANGED
|
@@ -30233,6 +30233,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
30233
30233
|
value: true
|
|
30234
30234
|
});
|
|
30235
30235
|
|
|
30236
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
30237
|
+
|
|
30236
30238
|
var _imgs = __webpack_require__(155);
|
|
30237
30239
|
|
|
30238
30240
|
var _imgs2 = _interopRequireDefault(_imgs);
|
|
@@ -30307,6 +30309,15 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
30307
30309
|
//
|
|
30308
30310
|
//
|
|
30309
30311
|
//
|
|
30312
|
+
//
|
|
30313
|
+
//
|
|
30314
|
+
//
|
|
30315
|
+
//
|
|
30316
|
+
//
|
|
30317
|
+
//
|
|
30318
|
+
//
|
|
30319
|
+
//
|
|
30320
|
+
//
|
|
30310
30321
|
|
|
30311
30322
|
var env = weex.config.env;
|
|
30312
30323
|
|
|
@@ -30554,13 +30565,13 @@ exports.default = {
|
|
|
30554
30565
|
var layoutDirection = this.layoutDirection;
|
|
30555
30566
|
|
|
30556
30567
|
if (layoutDirection === 'row') {
|
|
30557
|
-
return {
|
|
30568
|
+
return _extends({}, this.innerContentStyle, {
|
|
30558
30569
|
flexDirection: 'row'
|
|
30559
|
-
};
|
|
30570
|
+
});
|
|
30560
30571
|
} else {
|
|
30561
|
-
return {
|
|
30572
|
+
return _extends({}, this.innerContentStyle, {
|
|
30562
30573
|
flexDirection: 'column'
|
|
30563
|
-
};
|
|
30574
|
+
});
|
|
30564
30575
|
}
|
|
30565
30576
|
},
|
|
30566
30577
|
btnInnerStyle: function btnInnerStyle() {
|
|
@@ -30595,6 +30606,7 @@ exports.default = {
|
|
|
30595
30606
|
if (this.animationLock) {
|
|
30596
30607
|
return;
|
|
30597
30608
|
}
|
|
30609
|
+
if (this.elPos.el) this.handleElPos(this.elPos);
|
|
30598
30610
|
this.show = true;
|
|
30599
30611
|
if (this.hasAnimation) {
|
|
30600
30612
|
setTimeout(function () {
|
|
@@ -30738,10 +30750,18 @@ exports.default = {
|
|
|
30738
30750
|
while (1) {
|
|
30739
30751
|
switch (_context.prev = _context.next) {
|
|
30740
30752
|
case 0:
|
|
30741
|
-
|
|
30742
|
-
|
|
30753
|
+
if (val.el) {
|
|
30754
|
+
_context.next = 2;
|
|
30755
|
+
break;
|
|
30756
|
+
}
|
|
30757
|
+
|
|
30758
|
+
return _context.abrupt('return');
|
|
30743
30759
|
|
|
30744
30760
|
case 2:
|
|
30761
|
+
_context.next = 4;
|
|
30762
|
+
return _this5.getPosition(val.el);
|
|
30763
|
+
|
|
30764
|
+
case 4:
|
|
30745
30765
|
res = _context.sent;
|
|
30746
30766
|
|
|
30747
30767
|
if (_this5.arrowPosition.pos === 'top' || !_this5.arrowPosition.pos) {
|
|
@@ -30757,7 +30777,7 @@ exports.default = {
|
|
|
30757
30777
|
_this5.position_ = { x: res.left - 285 + _this5.elPos.offsetX, y: res.top - 15 + _this5.elPos.offsetY };
|
|
30758
30778
|
}
|
|
30759
30779
|
|
|
30760
|
-
case
|
|
30780
|
+
case 9:
|
|
30761
30781
|
case 'end':
|
|
30762
30782
|
return _context.stop();
|
|
30763
30783
|
}
|
|
@@ -43332,9 +43352,7 @@ module.exports = {
|
|
|
43332
43352
|
"i-btn": {
|
|
43333
43353
|
"flexDirection": "row",
|
|
43334
43354
|
"justifyContent": "space-between",
|
|
43335
|
-
"alignItems": "center"
|
|
43336
|
-
"paddingLeft": "20",
|
|
43337
|
-
"paddingRight": "20"
|
|
43355
|
+
"alignItems": "center"
|
|
43338
43356
|
},
|
|
43339
43357
|
"row-layout": {
|
|
43340
43358
|
"paddingLeft": "36",
|
|
@@ -43362,10 +43380,11 @@ module.exports = {
|
|
|
43362
43380
|
},
|
|
43363
43381
|
"btn-text": {
|
|
43364
43382
|
"flex": 1,
|
|
43365
|
-
"height": "
|
|
43383
|
+
"height": "96",
|
|
43366
43384
|
"fontSize": "28",
|
|
43367
|
-
"lineHeight": "
|
|
43368
|
-
"color": "#232323"
|
|
43385
|
+
"lineHeight": "96",
|
|
43386
|
+
"color": "#232323",
|
|
43387
|
+
"marginLeft": "8"
|
|
43369
43388
|
},
|
|
43370
43389
|
"btn-text-theme-dark": {
|
|
43371
43390
|
"color": "#ffffff"
|
|
@@ -48866,15 +48885,26 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
48866
48885
|
_vm.dofButtonClicked(i, item.key)
|
|
48867
48886
|
}
|
|
48868
48887
|
}
|
|
48869
|
-
}, [(item.icon) ? _c('image', {
|
|
48888
|
+
}, [(item.icon && !_vm._isColmo) ? _c('image', {
|
|
48870
48889
|
staticClass: ["btn-icon"],
|
|
48871
48890
|
attrs: {
|
|
48872
48891
|
"src": item.icon
|
|
48873
48892
|
}
|
|
48893
|
+
}) : _vm._e(), (item.icon && _vm._isColmo) ? _c('dof-iconfont', {
|
|
48894
|
+
attrs: {
|
|
48895
|
+
"code": item.icon,
|
|
48896
|
+
"size": 56,
|
|
48897
|
+
"color": _vm.textStyle.color ? _vm.textStyle.color : 'rgba(255,255,255,0.80)'
|
|
48898
|
+
},
|
|
48899
|
+
on: {
|
|
48900
|
+
"dofIconFontClicked": function($event) {
|
|
48901
|
+
_vm.dofButtonClicked(i, item.key)
|
|
48902
|
+
}
|
|
48903
|
+
}
|
|
48874
48904
|
}) : _vm._e(), _c('text', {
|
|
48875
48905
|
class: ['btn-text', _vm.theme !== 'white' && 'btn-text-theme-dark'],
|
|
48876
48906
|
style: _vm.textStyle
|
|
48877
|
-
}, [_vm._v(_vm._s(item.text))])])
|
|
48907
|
+
}, [_vm._v(_vm._s(item.text))])], 1)
|
|
48878
48908
|
}))]) : _vm._e(), (_vm.show && !_vm.buttons.length) ? _c('div', {
|
|
48879
48909
|
ref: "dof-popover",
|
|
48880
48910
|
staticClass: ["g-popover"],
|
|
@@ -48885,13 +48915,14 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
48885
48915
|
}, [_c('div', {
|
|
48886
48916
|
class: ['u-popover-arrow', _vm.theme !== 'white' && 'u-popover-theme-dark'],
|
|
48887
48917
|
style: _vm.arrowStyle
|
|
48888
|
-
}),
|
|
48918
|
+
}), _c('div', {
|
|
48889
48919
|
ref: "dof-inner-popover",
|
|
48890
48920
|
staticClass: ["content-inner"],
|
|
48891
48921
|
style: _vm.innerContentStyle
|
|
48892
|
-
}, [_c('text', {
|
|
48893
|
-
staticClass: ["textContent"]
|
|
48894
|
-
|
|
48922
|
+
}, [_vm._t("default", [_c('text', {
|
|
48923
|
+
staticClass: ["textContent"],
|
|
48924
|
+
style: _vm.textStyle
|
|
48925
|
+
}, [_vm._v(_vm._s(_vm.textContent))]), _vm._t("icon", [(_vm.isShowClose) ? _c('div', {
|
|
48895
48926
|
staticClass: ["closeBox"],
|
|
48896
48927
|
on: {
|
|
48897
48928
|
"click": function($event) {
|
|
@@ -48914,7 +48945,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
48914
48945
|
_vm.$emit('clickedCloseBtn')
|
|
48915
48946
|
}
|
|
48916
48947
|
}
|
|
48917
|
-
})], 1) : _vm._e()])])], 2) : _vm._e()])
|
|
48948
|
+
})], 1) : _vm._e()])])], 2)]) : _vm._e()])
|
|
48918
48949
|
},staticRenderFns: []}
|
|
48919
48950
|
module.exports.render._withStripped = true
|
|
48920
48951
|
|