dolphin-weex-ui 2.4.17 → 2.4.18

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # 升级日志
2
2
 
3
+ ## 2.4.18
4
+
5
+ - [ ! ] 修复安卓端后台切换主题偶现页面报错
6
+ - [ ! ] date: 2026/02/27
7
+
3
8
  ## 2.4.17
4
9
 
5
10
  - [ ! ] 优化菱形标签组件边框样式
@@ -153,10 +153,14 @@ var DiabloMixin = {
153
153
  }
154
154
  },
155
155
  created: function created() {
156
+ var _this = this;
157
+
156
158
  if (typeof __diabloMode__ !== 'undefined' && __diabloMode__) {
157
- // 处理安卓切后台不会收到推送问题
158
- if (!this._isColmo && this._isDiablo && _dolphinNativeBridge.Bridge.getDiablomodeSync() != '1') this.$theme.setTheme('');
159
- if (!this._isColmo && !this._isDiablo && _dolphinNativeBridge.Bridge.getDiablomodeSync() == '1') this.$theme.setTheme('diablo');
159
+ // 处理安卓切后台不会收到推送问题,宏任务避免setTheme报错
160
+ setTimeout(function () {
161
+ if (!_this._isColmo && _this._isDiablo && _dolphinNativeBridge.Bridge.getDiablomodeSync() != '1') _this.$theme.setTheme('');
162
+ if (!_this._isColmo && !_this._isDiablo && _dolphinNativeBridge.Bridge.getDiablomodeSync() == '1') _this.$theme.setTheme('diablo');
163
+ }, 0);
160
164
 
161
165
  // 监听暗黑模式变化
162
166
  // globalEvent.addEventListener('receiveMessageFromApp', (data) => {
@@ -18432,7 +18436,7 @@ exports.default = {
18432
18436
  computed: {
18433
18437
  themeStyle: function themeStyle() {
18434
18438
  var _theme = this._theme || (this._isDiablo ? 'diablo' : 'default');
18435
- return _style.STYLE_MAP[_theme] || {};
18439
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
18436
18440
  },
18437
18441
  _boardBodyStyle: function _boardBodyStyle() {
18438
18442
  var tmp = { backgroundColor: this.themeStyle.backgroundColor };
@@ -19296,7 +19300,7 @@ exports.default = {
19296
19300
  computed: {
19297
19301
  themeStyle: function themeStyle() {
19298
19302
  var _theme = this._theme || 'default';
19299
- return _style.STYLE_MAP[_theme] || {};
19303
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
19300
19304
  },
19301
19305
  isActive: function isActive() {
19302
19306
  return this.selectable && this.selected || this.isSelected;
@@ -19468,7 +19472,7 @@ exports.default = {
19468
19472
  computed: {
19469
19473
  themeStyle: function themeStyle() {
19470
19474
  var _theme = this._theme || 'default';
19471
- return _style.STYLE_MAP[_theme] || {};
19475
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
19472
19476
  },
19473
19477
  textStyle: function textStyle() {
19474
19478
  var tmp = this.$theme.watchTheme({
@@ -27877,7 +27881,7 @@ exports.default = {
27877
27881
  computed: {
27878
27882
  themeStyle: function themeStyle() {
27879
27883
  var _theme = this._theme || (this._isDiablo ? 'diablo' : 'default');
27880
- return _style.STYLE_MAP[_theme] || {};
27884
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
27881
27885
  },
27882
27886
  backgroundColor_: function backgroundColor_() {
27883
27887
  return this.backgroundColor ? this.backgroundColor : this.themeStyle.backgroundColor;
@@ -28725,7 +28729,7 @@ exports.default = {
28725
28729
  console.log('_theme');
28726
28730
  console.log(_style.STYLE_MAP[_theme].marqueeTextColor);
28727
28731
 
28728
- return _style.STYLE_MAP[_theme] || {};
28732
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
28729
28733
  },
28730
28734
  _buttonSize: function _buttonSize() {
28731
28735
  var tmp = this.buttonSize || this.themeStyle.buttonSize;
@@ -29000,7 +29004,7 @@ exports.default = {
29000
29004
  computed: {
29001
29005
  themeStyle: function themeStyle() {
29002
29006
  var _theme = this._theme || 'default';
29003
- return _style.STYLE_MAP[_theme] || {};
29007
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
29004
29008
  },
29005
29009
  colmoIconColor: function colmoIconColor() {
29006
29010
  var map = {
@@ -34694,7 +34698,7 @@ exports.default = {
34694
34698
  computed: {
34695
34699
  themeStyle: function themeStyle() {
34696
34700
  var _theme = this._isColmo ? 'colmo' : 'default';
34697
- return _style.STYLE_MAP[_theme] || {};
34701
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
34698
34702
  },
34699
34703
  buttonStyle: function buttonStyle() {
34700
34704
  var barStyle = this.barStyle;
@@ -35425,7 +35429,7 @@ exports.default = {
35425
35429
  computed: {
35426
35430
  themeStyle: function themeStyle() {
35427
35431
  var _theme = this._theme || (this._isDiablo ? 'diablo' : 'default');
35428
- return _style.STYLE_MAP[_theme] || {};
35432
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
35429
35433
  },
35430
35434
  defaultItemStyle: function defaultItemStyle() {
35431
35435
  var _defaultStyle = this.defaultStyle,
@@ -38132,7 +38136,7 @@ exports.default = {
38132
38136
  computed: {
38133
38137
  themeStyle: function themeStyle() {
38134
38138
  var _theme = this._theme || 'default';
38135
- return _style.STYLE_MAP[_theme] || {};
38139
+ return _style.STYLE_MAP[_theme] || _style.STYLE_MAP['default'];
38136
38140
  },
38137
38141
  isShowMain: function isShowMain() {
38138
38142
  return this.options.length > 0 && this.active !== undefined;