@tuya-miniapp/smart-ui 2.1.5 → 2.1.6

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.
@@ -12,7 +12,7 @@
12
12
  <view
13
13
  class="smart-toast smart-toast--{{ (type === 'text' || type === 'html') ? 'text' : 'icon' }} smart-toast--{{ position }}"
14
14
  catch:touchmove="noop"
15
- style="width: {{ width !== '100%' ? (width + 'px') : '100%' }}"
15
+ style="{{ width ? ('width: ' + width + 'px') : '' }}"
16
16
  >
17
17
  <!-- text only -->
18
18
  <text wx:if="{{ type === 'text' }}">{{ message }}</text>
@@ -10,7 +10,7 @@ const defaultOptions = {
10
10
  forbidClick: false,
11
11
  loadingType: 'circular',
12
12
  selector: '#smart-toast',
13
- width: '100%',
13
+ width: '',
14
14
  };
15
15
  let queue = [];
16
16
  // @ts-expect-error
@@ -12,7 +12,7 @@
12
12
  <view
13
13
  class="smart-toast smart-toast--{{ (type === 'text' || type === 'html') ? 'text' : 'icon' }} smart-toast--{{ position }}"
14
14
  catch:touchmove="noop"
15
- style="width: {{ width !== '100%' ? (width + 'px') : '100%' }}"
15
+ style="{{ width ? ('width: ' + width + 'px') : '' }}"
16
16
  >
17
17
  <!-- text only -->
18
18
  <text wx:if="{{ type === 'text' }}">{{ message }}</text>
@@ -23,7 +23,7 @@ var defaultOptions = {
23
23
  forbidClick: false,
24
24
  loadingType: 'circular',
25
25
  selector: '#smart-toast',
26
- width: '100%',
26
+ width: '',
27
27
  };
28
28
  var queue = [];
29
29
  // @ts-expect-error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",
@@ -77,7 +77,7 @@
77
77
  "iOS >= 9"
78
78
  ],
79
79
  "dependencies": {
80
- "@ray-js/components-ty-slider": "^0.2.48",
80
+ "@ray-js/components-ty-slider": "^0.2.52",
81
81
  "@tuya-miniapp/icons": "2.1.0"
82
82
  },
83
83
  "maintainers": [