@tuya-miniapp/smart-ui 2.5.1-beta-1 → 2.5.1-beta-3

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.
@@ -1,5 +1,5 @@
1
1
  <wxs src="./index.wxs" module="computed" />
2
2
 
3
- <view class="smart-config-provider" style="{{ computed.mapThemeVarsToCSSVars(themeVars) }}">
3
+ <view class="smart-config-provider custom-class" style="{{ computed.mapThemeVarsToCSSVars(themeVars) }}">
4
4
  <slot />
5
5
  </view>
@@ -69,10 +69,10 @@ export function transition(showDefaultValue) {
69
69
  const { duration, name } = this.data;
70
70
  const classNames = getClassNames(name);
71
71
  const currentDuration = isObj(duration) ? duration.enter : duration;
72
- this.$emit('before-enter');
73
72
  if (this.data.nativeDisabled) {
74
73
  ty.nativeDisabled(true);
75
74
  }
75
+ this.$emit('before-enter');
76
76
  yield requestAnimationFrame();
77
77
  this.$emit('enter');
78
78
  this.setData({
@@ -126,10 +126,10 @@ export function transition(showDefaultValue) {
126
126
  clearTimeout(this.timer);
127
127
  setTimeout(() => {
128
128
  this.enterFinishedPromise = null;
129
- this.$emit('after-leave');
130
129
  if (this.data.nativeDisabled) {
131
130
  ty.nativeDisabled(false);
132
131
  }
132
+ this.$emit('after-leave');
133
133
  this.setData({
134
134
  display: false,
135
135
  animating: false,
@@ -1,5 +1,5 @@
1
1
  <wxs src="./index.wxs" module="computed" />
2
2
 
3
- <view class="smart-config-provider" style="{{ computed.mapThemeVarsToCSSVars(themeVars) }}">
3
+ <view class="smart-config-provider custom-class" style="{{ computed.mapThemeVarsToCSSVars(themeVars) }}">
4
4
  <slot />
5
5
  </view>
@@ -108,10 +108,10 @@ function transition(showDefaultValue) {
108
108
  _a = this.data, duration = _a.duration, name = _a.name;
109
109
  classNames = getClassNames(name);
110
110
  currentDuration = (0, validator_1.isObj)(duration) ? duration.enter : duration;
111
- this.$emit('before-enter');
112
111
  if (this.data.nativeDisabled) {
113
112
  ty_1.default.nativeDisabled(true);
114
113
  }
114
+ this.$emit('before-enter');
115
115
  return [4 /*yield*/, (0, utils_1.requestAnimationFrame)()];
116
116
  case 1:
117
117
  _b.sent();
@@ -183,10 +183,10 @@ function transition(showDefaultValue) {
183
183
  clearTimeout(this.timer);
184
184
  setTimeout(function () {
185
185
  _this.enterFinishedPromise = null;
186
- _this.$emit('after-leave');
187
186
  if (_this.data.nativeDisabled) {
188
187
  ty_1.default.nativeDisabled(false);
189
188
  }
189
+ _this.$emit('after-leave');
190
190
  _this.setData({
191
191
  display: false,
192
192
  animating: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.5.1-beta-1",
3
+ "version": "2.5.1-beta-3",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",