@tuya-miniapp/smart-ui 1.2.2 → 1.2.4-beta-1

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,14 +1,10 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.4-beta-1",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",
7
7
  "description": "轻量、可靠的智能小程序 UI 组件库",
8
- "publishConfig": {
9
- "access": "public",
10
- "registry": "https://registry.npmjs.org/"
11
- },
12
8
  "scripts": {
13
9
  "dev": "NODE_OPTIONS=--no-experimental-fetch node build/dev.mjs",
14
10
  "lint": "eslint ./packages --ext .js,.ts --fix && stylelint \"packages/**/*.less\" --fix",
@@ -66,7 +62,7 @@
66
62
  "iOS >= 9"
67
63
  ],
68
64
  "dependencies": {
69
- "@ray-js/components-ty-slider": "^0.2.44",
65
+ "@ray-js/components-ty-slider": "^0.2.48",
70
66
  "@tuya-miniapp/icons": "^1.0.0"
71
67
  },
72
68
  "maintainers": [