@tuya-miniapp/smart-ui 2.1.2-beta-1 → 2.1.3-beta-1
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/dist/calendar/demo/index.js +1 -1
- package/dist/calendar-month-list/index.wxml +1 -1
- package/dist/calendar-year-list/index.wxml +1 -1
- package/dist/tabs/index.js +2 -2
- package/lib/calendar/demo/index.js +1 -1
- package/lib/calendar-month-list/index.wxml +1 -1
- package/lib/calendar-year-list/index.wxml +1 -1
- package/lib/tabs/index.js +2 -2
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
<view class="contain">
|
2
2
|
<smart-row>
|
3
|
-
<smart-col wx:for="{{months}}" span="6" custom-class="col_item">
|
3
|
+
<smart-col wx:for="{{months}}" wx:key="index" span="6" custom-class="col_item">
|
4
4
|
<view wx:if="{{item.type === 'disabled'}}" class="item item_disabled" data-index="{{index}}">
|
5
5
|
{{item.text}}
|
6
6
|
</view>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<view class="contain">
|
2
2
|
<smart-row>
|
3
|
-
<smart-col wx:for="{{years}}" span="6" custom-class="col_item">
|
3
|
+
<smart-col wx:for="{{years}}" wx:key="index" span="6" custom-class="col_item">
|
4
4
|
<view wx:if="{{item.type === 'disabled'}}" class="item item_disabled" data-index="{{index}}">
|
5
5
|
{{item.text}}
|
6
6
|
</view>
|
package/dist/tabs/index.js
CHANGED
@@ -190,8 +190,8 @@ SmartComponent({
|
|
190
190
|
getAllRect(this, '.smart-tab'),
|
191
191
|
type === 'line' ? getRect(this, '.smart-tabs__line') : Promise.resolve({ width: 0 }),
|
192
192
|
]).then(([rects = [], lineRect]) => {
|
193
|
-
const rect = rects[currentIndex];
|
194
|
-
if (rect == null) {
|
193
|
+
const rect = rects === null || rects === void 0 ? void 0 : rects[currentIndex];
|
194
|
+
if (rect == null || rect === undefined) {
|
195
195
|
return;
|
196
196
|
}
|
197
197
|
const { width: cardWidth, height: cardHeight } = rects[currentIndex];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<view class="contain">
|
2
2
|
<smart-row>
|
3
|
-
<smart-col wx:for="{{months}}" span="6" custom-class="col_item">
|
3
|
+
<smart-col wx:for="{{months}}" wx:key="index" span="6" custom-class="col_item">
|
4
4
|
<view wx:if="{{item.type === 'disabled'}}" class="item item_disabled" data-index="{{index}}">
|
5
5
|
{{item.text}}
|
6
6
|
</view>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<view class="contain">
|
2
2
|
<smart-row>
|
3
|
-
<smart-col wx:for="{{years}}" span="6" custom-class="col_item">
|
3
|
+
<smart-col wx:for="{{years}}" wx:key="index" span="6" custom-class="col_item">
|
4
4
|
<view wx:if="{{item.type === 'disabled'}}" class="item item_disabled" data-index="{{index}}">
|
5
5
|
{{item.text}}
|
6
6
|
</view>
|
package/lib/tabs/index.js
CHANGED
@@ -211,8 +211,8 @@ var relation_1 = require("../common/relation");
|
|
211
211
|
type === 'line' ? (0, utils_1.getRect)(this, '.smart-tabs__line') : Promise.resolve({ width: 0 }),
|
212
212
|
]).then(function (_a) {
|
213
213
|
var _b = _a[0], rects = _b === void 0 ? [] : _b, lineRect = _a[1];
|
214
|
-
var rect = rects[currentIndex];
|
215
|
-
if (rect == null) {
|
214
|
+
var rect = rects === null || rects === void 0 ? void 0 : rects[currentIndex];
|
215
|
+
if (rect == null || rect === undefined) {
|
216
216
|
return;
|
217
217
|
}
|
218
218
|
var _c = rects[currentIndex], cardWidth = _c.width, cardHeight = _c.height;
|