@tuya-miniapp/smart-ui 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- @import '../common/index.css';.contain{--thumb-active-color:var(var(--app-B3,#fff),#fff)}
1
+ @import '../common/index.css';.contain{--thumb-active-color:var(--app-B3,#fff)}
@@ -1 +1 @@
1
- @import '../common/index.wxss';.contain{--thumb-active-color:var(var(--app-B3,#fff),#fff)}
1
+ @import '../common/index.wxss';.contain{--thumb-active-color:var(--app-B3,#fff)}
@@ -174,7 +174,14 @@ SmartComponent({
174
174
  animate: true,
175
175
  duration: DEFAULT_DURATION,
176
176
  }).then(() => {
177
- userAction && (this.fireChange = true);
177
+ if (!userAction)
178
+ return;
179
+ if ([0, data.optionsV.length - 1].includes(index)) {
180
+ this.$emit('change', index);
181
+ return;
182
+ }
183
+ ;
184
+ this.fireChange = true;
178
185
  });
179
186
  });
180
187
  }
@@ -1 +1 @@
1
- @import '../common/index.css';.contain{--thumb-active-color:var(var(--app-B3,#fff),#fff)}
1
+ @import '../common/index.css';.contain{--thumb-active-color:var(--app-B3,#fff)}
@@ -1 +1 @@
1
- @import '../common/index.wxss';.contain{--thumb-active-color:var(var(--app-B3,#fff),#fff)}
1
+ @import '../common/index.wxss';.contain{--thumb-active-color:var(--app-B3,#fff)}
@@ -177,7 +177,14 @@ var DEFAULT_DURATION = 200;
177
177
  animate: true,
178
178
  duration: DEFAULT_DURATION,
179
179
  }).then(function () {
180
- userAction && (_this.fireChange = true);
180
+ if (!userAction)
181
+ return;
182
+ if ([0, data.optionsV.length - 1].includes(index)) {
183
+ _this.$emit('change', index);
184
+ return;
185
+ }
186
+ ;
187
+ _this.fireChange = true;
181
188
  });
182
189
  });
183
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",
@@ -66,7 +66,7 @@
66
66
  "iOS >= 9"
67
67
  ],
68
68
  "dependencies": {
69
- "@ray-js/components-ty-slider": "^0.2.44",
69
+ "@ray-js/components-ty-slider": "^0.2.48",
70
70
  "@tuya-miniapp/icons": "^1.0.0"
71
71
  },
72
72
  "maintainers": [