@cloudbase/weda-ui-mp 3.21.2 → 3.21.4

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.
@@ -148,8 +148,6 @@ Component({
148
148
  dpr: canvasDpr,
149
149
  });
150
150
  }
151
-
152
- this.domObserver && this.domObserver.disconnect();
153
151
  }
154
152
  });
155
153
  },
@@ -167,16 +167,19 @@ Component({
167
167
  ],
168
168
  };
169
169
  try {
170
- if (dataSource?.type === 'database') {
170
+ if (dataSource?.type === 'database' && dataSource?.name) {
171
171
  return await callWedaApi({
172
172
  action: 'DescribeChartCardData',
173
173
  data: params,
174
174
  });
175
175
  }
176
- return await callDataSource({
177
- dataSourceName: dataSource?.name,
178
- methodName: dataSource?.methodName,
179
- });
176
+ if (dataSource?.name && dataSource?.methodName) {
177
+ return await callDataSource({
178
+ dataSourceName: dataSource?.name,
179
+ methodName: dataSource?.methodName,
180
+ });
181
+ }
182
+ return [];
180
183
  } catch {
181
184
  return [];
182
185
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "component": true,
3
- "styleIsolation": "isolated"
3
+ "styleIsolation": "shared"
4
4
  }
@@ -1,5 +1,5 @@
1
1
  <wxs module="tools"> function includes(array, item) { return array.map(function (v) { return v.value }).indexOf(item.value) !== -1 } module.exports = { includes: includes } </wxs>
2
- <view class="weda-ui-custom-picker">
2
+ <view class="weda-ui-custom-picker wd-select-modal">
3
3
  <view class="weda-ui-custom-mask" data-clear="false" bindtap="cancelPicker"></view>
4
4
  <view class="weda-ui-custom-picker__inner" style="height: {{height}};">
5
5
  <view wx:if="{{!focus}}" class="weda-ui-custom-picker__header">
@@ -19,8 +19,8 @@
19
19
  </view>
20
20
  <scroll-view wx:if="{{status !== -1}}" class="weda-ui-custom-picker__body" scroll-y="true" enhanced="true" bindscrolltolower="bindscrolltolower">
21
21
  <view class="weda-ui-custom-picker__columns">
22
- <view class="weda-ui-custom-picker__column">
23
- <view wx:for="{{showOption}}" wx:key="i" wx:for-index="i" class="weda-ui-custom-picker__column-item {{multiple?'multiple':''}} {{ tools.includes(selectedCache, item) ? 'is-selected':''}} {{ (item.disabled) ? 'is-disabled':''}}" bindtap="onItemClick" data-value="{{item}}">
22
+ <view class="weda-ui-custom-picker__column wd-select-list">
23
+ <view wx:for="{{showOption}}" wx:key="i" wx:for-index="i" class="weda-ui-custom-picker__column-item wd-select-list-item {{multiple?'multiple':''}} {{ tools.includes(selectedCache, item) ? 'is-selected':''}} {{ (item.disabled) ? 'is-disabled':''}}" bindtap="onItemClick" data-value="{{item}}">
24
24
  <text class="weda-ui-custom-picker__column-item-text {{multiple?'multiple':''}}">{{item.label||item.value}}</text>
25
25
  </view>
26
26
  <view wx:if="{{status === 1}}" class="weda-ui-custom-picker__status weda-ui-custom-picker__status--loading"> <i class="weda-ui-custom-picker__loading-icon"></i>加载中... </view>
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.21.2",
6
+ "version": "3.21.4",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"