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

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.
Files changed (113) hide show
  1. package/dist/action-sheet/index.js +1 -3
  2. package/dist/action-sheet/index.wxml +1 -1
  3. package/dist/bottom-sheet/index.css +1 -1
  4. package/dist/bottom-sheet/index.js +4 -4
  5. package/dist/bottom-sheet/index.wxml +1 -7
  6. package/dist/bottom-sheet/index.wxss +1 -1
  7. package/dist/button/index.js +7 -2
  8. package/dist/calendar/calendar.wxml +1 -1
  9. package/dist/calendar/index.wxs +3 -3
  10. package/dist/calendar-header/index.js +2 -2
  11. package/dist/calendar-month/index.wxs +2 -2
  12. package/dist/cascader/index.js +1 -1
  13. package/dist/cell/index.js +4 -4
  14. package/dist/checkbox/index.js +1 -1
  15. package/dist/circle/index.rjs +1 -2
  16. package/dist/common/appLog.js +1 -1
  17. package/dist/custom-keyboard/index.wxml +7 -3
  18. package/dist/dialog/index.css +1 -1
  19. package/dist/dialog/index.js +1 -1
  20. package/dist/dialog/index.wxss +1 -1
  21. package/dist/dropdown-item/index.js +3 -3
  22. package/dist/dropdown-menu/index.js +4 -4
  23. package/dist/field/index.js +1 -1
  24. package/dist/image/index.js +2 -2
  25. package/dist/image/index.wxs +1 -1
  26. package/dist/loading/index.wxs +2 -2
  27. package/dist/mixins/transition.js +6 -4
  28. package/dist/nav-bar/index.js +1 -1
  29. package/dist/notice-bar/index.js +2 -2
  30. package/dist/picker-column/index.js +1 -1
  31. package/dist/picker-column/index.wxs +4 -4
  32. package/dist/popover/index.js +0 -5
  33. package/dist/popover/index.wxml +2 -10
  34. package/dist/popup/index.css +1 -1
  35. package/dist/popup/index.js +1 -1
  36. package/dist/popup/index.wxs +1 -1
  37. package/dist/popup/index.wxss +1 -1
  38. package/dist/radio/index.js +2 -2
  39. package/dist/rate/index.js +2 -2
  40. package/dist/search/index.js +2 -2
  41. package/dist/skeleton/index.css +1 -1
  42. package/dist/skeleton/index.wxss +1 -1
  43. package/dist/stepper/index.js +3 -3
  44. package/dist/steps/index.js +1 -1
  45. package/dist/switch/index.css +1 -1
  46. package/dist/switch/index.wxss +1 -1
  47. package/dist/tag/index.js +1 -1
  48. package/dist/toast/icons.js +3 -3
  49. package/dist/toast/index.css +1 -1
  50. package/dist/toast/index.wxml +1 -1
  51. package/dist/toast/index.wxss +1 -1
  52. package/dist/toast/toast.js +8 -4
  53. package/dist/tree-select/index.js +2 -2
  54. package/lib/action-sheet/index.js +2 -4
  55. package/lib/action-sheet/index.wxml +1 -1
  56. package/lib/bottom-sheet/index.css +1 -1
  57. package/lib/bottom-sheet/index.js +5 -5
  58. package/lib/bottom-sheet/index.wxml +1 -7
  59. package/lib/bottom-sheet/index.wxss +1 -1
  60. package/lib/button/index.js +7 -2
  61. package/lib/calendar/calendar.wxml +1 -1
  62. package/lib/calendar/index.wxs +3 -3
  63. package/lib/calendar-header/index.js +7 -4
  64. package/lib/calendar-month/index.wxs +2 -2
  65. package/lib/cascader/index.js +5 -2
  66. package/lib/cell/index.js +12 -9
  67. package/lib/checkbox/index.js +5 -2
  68. package/lib/circle/index.rjs +1 -2
  69. package/lib/common/appLog.js +1 -1
  70. package/lib/custom-keyboard/index.wxml +7 -3
  71. package/lib/dialog/index.css +1 -1
  72. package/lib/dialog/index.js +2 -2
  73. package/lib/dialog/index.wxss +1 -1
  74. package/lib/dropdown-item/index.js +4 -4
  75. package/lib/dropdown-menu/index.js +4 -4
  76. package/lib/field/index.js +5 -2
  77. package/lib/image/index.js +5 -2
  78. package/lib/image/index.wxs +1 -1
  79. package/lib/loading/index.wxs +2 -2
  80. package/lib/mixins/transition.js +10 -11
  81. package/lib/nav-bar/index.js +5 -2
  82. package/lib/notice-bar/index.js +7 -4
  83. package/lib/picker-column/index.js +2 -5
  84. package/lib/picker-column/index.wxs +4 -4
  85. package/lib/popover/index.js +0 -5
  86. package/lib/popover/index.wxml +2 -10
  87. package/lib/popup/index.css +1 -1
  88. package/lib/popup/index.js +6 -3
  89. package/lib/popup/index.wxs +1 -1
  90. package/lib/popup/index.wxss +1 -1
  91. package/lib/radio/index.js +5 -2
  92. package/lib/rate/index.js +7 -4
  93. package/lib/search/index.js +7 -4
  94. package/lib/skeleton/index.css +1 -1
  95. package/lib/skeleton/index.wxss +1 -1
  96. package/lib/stepper/index.js +6 -6
  97. package/lib/steps/index.js +5 -2
  98. package/lib/switch/index.css +1 -1
  99. package/lib/switch/index.wxss +1 -1
  100. package/lib/tag/index.js +5 -2
  101. package/lib/toast/icons.js +9 -6
  102. package/lib/toast/index.css +1 -1
  103. package/lib/toast/index.wxml +1 -1
  104. package/lib/toast/index.wxss +1 -1
  105. package/lib/toast/toast.js +8 -4
  106. package/lib/tree-select/index.js +5 -2
  107. package/package.json +1 -1
  108. package/dist/bottom-sheet/index.wxs +0 -12
  109. package/dist/common/ty.d.ts +0 -7
  110. package/dist/common/ty.js +0 -33
  111. package/lib/bottom-sheet/index.wxs +0 -12
  112. package/lib/common/ty.d.ts +0 -7
  113. package/lib/common/ty.js +0 -35
@@ -1,6 +1,5 @@
1
- import { Check as checkMarkIcon } from '@tuya-miniapp/icons';
1
+ import checkMarkIcon from '@tuya-miniapp/icons/dist/svg/Check';
2
2
  import { SmartComponent } from '../common/component';
3
- import ty from '../common/ty';
4
3
  import { button } from '../mixins/button';
5
4
  SmartComponent({
6
5
  classes: ['list-class'],
@@ -52,7 +51,6 @@ SmartComponent({
52
51
  },
53
52
  data: {
54
53
  checkMarkIcon,
55
- isWX: ty.isWX(),
56
54
  },
57
55
  methods: {
58
56
  onSelect(event) {
@@ -26,7 +26,7 @@
26
26
  <view wx:if="{{ description }}" class="smart-action-sheet__description smart-hairline--bottom">
27
27
  {{ description }}
28
28
  </view>
29
- <scroll-view scroll-y="{{isWX}}" wx:if="{{ actions && actions.length }}" class="smart-action-sheet__list list-class">
29
+ <scroll-view wx:if="{{ actions && actions.length }}" class="smart-action-sheet__list list-class">
30
30
  <!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
31
31
  <button
32
32
  wx:for="{{ actions }}"
@@ -1 +1 @@
1
- @import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
1
+ @import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%)!important;min-height:var(--bottom-sheet-min-height,auto);padding:var(--bottom-sheet-padding,0 16px);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)!important}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);text-align:center}.smart-bottom-sheet__content{overflow-y:scroll}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
@@ -1,6 +1,5 @@
1
- import { Xmark as xmarkIcon } from '@tuya-miniapp/icons';
1
+ import xmarkIcon from '@tuya-miniapp/icons/dist/svg/Xmark';
2
2
  import { SmartComponent } from '../common/component';
3
- import ty from '../common/ty';
4
3
  SmartComponent({
5
4
  props: {
6
5
  show: Boolean,
@@ -11,7 +10,6 @@ SmartComponent({
11
10
  type: null,
12
11
  value: 24,
13
12
  },
14
- contentHeight: null,
15
13
  round: {
16
14
  type: Boolean,
17
15
  value: true,
@@ -38,7 +36,9 @@ SmartComponent({
38
36
  xmarkIconColor: 'rgba(0, 0, 0, 0.5)',
39
37
  },
40
38
  mounted() {
41
- const themeInfo = ty.getThemeInfo() || {};
39
+ var _a;
40
+ // @ts-ignore
41
+ const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
42
42
  const xmarkIconColor = this.data.iconColor || themeInfo['--app-B4-N3'] || 'rgba(0, 0, 0, 0.5)';
43
43
  this.setData({ xmarkIconColor });
44
44
  },
@@ -1,5 +1,4 @@
1
1
  <wxs src="../wxs/utils.wxs" module="utils" />
2
- <wxs src="./index.wxs" module="computed" />
3
2
 
4
3
  <smart-popup
5
4
  show="{{ show }}"
@@ -9,7 +8,6 @@
9
8
  overlay="{{ overlay }}"
10
9
  custom-class="smart-bottom-sheet custom-class"
11
10
  native-disabled="{{ nativeDisabled }}"
12
- customStyle="{{contentHeight ? 'max-height: fit-content;' : ''}}"
13
11
  safe-area-inset-bottom="{{false}}"
14
12
  close-on-click-overlay="{{ closeOnClickOverlay }}"
15
13
  root-portal="{{ rootPortal }}"
@@ -25,11 +23,7 @@
25
23
  {{ title }}
26
24
  <smart-icon bind:click="onClose" name="{{ xmarkIcon }}" class="smart-bottom-sheet__icon" size="{{ iconSize }}" color="{{ xmarkIconColor }}" />
27
25
  </view>
28
-
29
- <view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content" style="{{computed.getHeight(contentHeight)}}">
26
+ <view class="smart-bottom-sheet__content">
30
27
  <slot />
31
28
  </view>
32
- <scroll-view wx:else class="smart-bottom-sheet__content">
33
- <slot />
34
- </scroll-view>
35
29
  </smart-popup>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%);min-height:var(--bottom-sheet-min-height,auto);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);padding:var(--bottom-sheet-header-padding,0 16px);text-align:center}.smart-bottom-sheet__content{box-sizing:border-box;overflow-y:auto;padding:var(--bottom-sheet-padding,0 16px);position:relative}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
1
+ @import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%)!important;min-height:var(--bottom-sheet-min-height,auto);padding:var(--bottom-sheet-padding,0 16px);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)!important}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);text-align:center}.smart-bottom-sheet__content{overflow-y:scroll}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
@@ -1,7 +1,12 @@
1
1
  import { SmartComponent } from '../common/component';
2
2
  import { button } from '../mixins/button';
3
+ // import { canIUseFormFieldButton } from '../common/version';
4
+ const mixins = [button];
5
+ // if (canIUseFormFieldButton()) {
6
+ // mixins.push('wx://form-field-button');
7
+ // }
3
8
  SmartComponent({
4
- mixins: [button],
9
+ mixins,
5
10
  classes: ['hover-class', 'loading-class'],
6
11
  data: {
7
12
  baseStyle: '',
@@ -47,7 +52,7 @@ SmartComponent({
47
52
  onClick(event) {
48
53
  this.$emit('click', event);
49
54
  const { canIUseGetUserProfile, openType, getUserProfileDesc, lang } = this.data;
50
- if (openType === 'getUserInfo' && canIUseGetUserProfile && typeof wx !== 'undefined') {
55
+ if (openType === 'getUserInfo' && canIUseGetUserProfile) {
51
56
  wx.getUserProfile({
52
57
  desc: getUserProfileDesc || ' ',
53
58
  lang: lang || 'en',
@@ -1,6 +1,6 @@
1
1
  <wxs src="./index.wxs" module="computed" />
2
2
  <wxs src="../wxs/utils.wxs" module="utils" />
3
- <view class="smart-calendar custom-class">
3
+ <view class="smart-calendar">
4
4
  <header
5
5
  title="{{ title }}"
6
6
  showTitle="{{ showTitle }}"
@@ -38,15 +38,15 @@ function getVisible(visibleIndex, curIndex) {
38
38
  function formatMonthTitle(date, formatter = 'YYYY-MM') {
39
39
  if (!date) return '';
40
40
  date = getDate(date);
41
- var year = date.getFullYear();
42
- var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 + '';
41
+ const year = date.getFullYear();
42
+ const month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 + '';
43
43
  return formatter.replace('YYYY', year + '').replace('MM', month);
44
44
  }
45
45
 
46
46
  function formatYearTitle(date, offset, formatter = 'YYYY') {
47
47
  if (!date) return '';
48
48
  date = getDate(date);
49
- var year = date.getFullYear();
49
+ const year = date.getFullYear();
50
50
  return formatter.replace('YYYY', year + '');
51
51
  }
52
52
 
@@ -1,6 +1,6 @@
1
1
  import { SmartComponent } from '../common/component';
2
- import { Left as LeftIcon } from '@tuya-miniapp/icons';
3
- import { Right as RightIcon } from '@tuya-miniapp/icons';
2
+ import LeftIcon from '@tuya-miniapp/icons/dist/svg/Left';
3
+ import RightIcon from '@tuya-miniapp/icons/dist/svg/Right';
4
4
  SmartComponent({
5
5
  props: {
6
6
  title: {
@@ -48,8 +48,8 @@ function getDayStyle(type, index, date, rowHeight, color, firstDayOfWeek) {
48
48
 
49
49
  function formatMonthTitle(date, formatter = 'YYYY-MM') {
50
50
  date = getDate(date);
51
- var year = date.getFullYear();
52
- var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1 + "";
51
+ const year = date.getFullYear();
52
+ const month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1 + "";
53
53
  return formatter.replace('YYYY', year + '').replace('MM', month);
54
54
  }
55
55
 
@@ -1,5 +1,5 @@
1
1
  import { SmartComponent } from '../common/component';
2
- import { Xmark as closeIcon } from '@tuya-miniapp/icons';
2
+ import closeIcon from '@tuya-miniapp/icons/dist/svg/Xmark';
3
3
  SmartComponent({
4
4
  props: {
5
5
  title: String,
@@ -1,7 +1,7 @@
1
- import { Up as upIcon } from '@tuya-miniapp/icons';
2
- import { Down as downIcon } from '@tuya-miniapp/icons';
3
- import { Left as leftIcon } from '@tuya-miniapp/icons';
4
- import { Right as rightIcon } from '@tuya-miniapp/icons';
1
+ import upIcon from '@tuya-miniapp/icons/dist/svg/Up';
2
+ import downIcon from '@tuya-miniapp/icons/dist/svg/Down';
3
+ import leftIcon from '@tuya-miniapp/icons/dist/svg/Left';
4
+ import rightIcon from '@tuya-miniapp/icons/dist/svg/Right';
5
5
  import { link } from '../mixins/link';
6
6
  import { SmartComponent } from '../common/component';
7
7
  SmartComponent({
@@ -1,4 +1,4 @@
1
- import { Check as CheckIcon } from '@tuya-miniapp/icons';
1
+ import CheckIcon from '@tuya-miniapp/icons/dist/svg/Check';
2
2
  import { useParent } from '../common/relation';
3
3
  import { SmartComponent } from '../common/component';
4
4
  function emit(target, value) {
@@ -190,7 +190,7 @@ export default Render({
190
190
  ctx.stroke();
191
191
 
192
192
  // 绘制进度条
193
- const progressAngle = progress * (Math.PI * 2.12); // 根据进度计算角度
193
+ const progressAngle = progress * (Math.PI * 2); // 根据进度计算角度
194
194
  ctx.beginPath();
195
195
  ctx.arc(this.width / 2, this.height / 2, radius, startAngle, startAngle + progressAngle);
196
196
  ctx.lineWidth = lineWidth;
@@ -217,7 +217,6 @@ export default Render({
217
217
  drawProgressBar(progress, this.fillColor); // 25%的蓝色进度条
218
218
  },
219
219
  render(val) {
220
- val = Math.min(Math.max(0, val), 100)
221
220
  if (this.mode === 'basic') {
222
221
  this.renderAll(val / 100, this.round ? { lineCap: 'round' } : { lineCap: '' });
223
222
  }
@@ -12,7 +12,7 @@ export const init = (tag) => {
12
12
  return Log;
13
13
  }
14
14
  // @ts-ignore
15
- if (typeof ty === 'undefined' || (typeof ty !== 'undefined' && !ty.getLogManager)) {
15
+ if (typeof ty !== 'undefined' && !ty.getLogManager) {
16
16
  // console.warn('不支持ty.getLogManager');
17
17
  return null;
18
18
  }
@@ -1,6 +1,8 @@
1
1
  <view class="{{prefix}} {{prefix}}-container" style="{{inputContainerStyle}}">
2
2
  <view class="{{prefix}}-textView" bind:tap="handlePassword">
3
- <text class="{{prefix}}-pwdText {{currValue !== '' ? prefix + '-password' : null}}" style="{{valueTextStyle}}">{{currValue || placeholder}}</text>
3
+ <text class="{{prefix}}-pwdText {{currValue !== '' ? prefix + '-password' : null}}" style="{{valueTextStyle}}">
4
+ {{currValue || placeholder}}
5
+ </text>
4
6
  </view>
5
7
  <slot name="custom-button" />
6
8
  </view>
@@ -12,7 +14,7 @@
12
14
  >
13
15
  <view class="{{prefix}}-popup-container">
14
16
  <view class="{{prefix}}-number-wrap" style="height: {{row * 56}}px">
15
- <view wx:for="{{numberArray}}" wx:key="index" bind:tap="changeValue" hover-class="{{prefix}}-hover-class" data-item="{{ item }}" class="{{prefix}}-number-item" style="{{(item === 0 || item === 10) && numberArray.length === 11 ? 'width: 345rpx' : ''}}">
17
+ <view wx:for="{{numberArray}}" wx:key="index" bind:tap="changeValue" hover-class="{{prefix}}-hover-class" data-item="{{ item }}" class="{{prefix}}-number-item" style="{{(item === 0 || item === 10) && numberArray.length === 11 ? 'width: 175px' : ''}}">
16
18
  <view
17
19
  wx:if="{{item === -2}}"
18
20
  class="{{prefix}}-hidden-image"
@@ -37,7 +39,9 @@
37
39
  bind:tap="confirm"
38
40
  hover-class="{{prefix}}-hover-class"
39
41
  >
40
- <text class="{{prefix}}-confirm-text" space="false" style="{{confirmTextStyle}}">{{confirmText}}</text>
42
+ <text class="{{prefix}}-confirm-text" style="{{confirmTextStyle}}">
43
+ {{confirmText}}
44
+ </text>
41
45
  </button >
42
46
  </view>
43
47
  </view>
@@ -1 +1 @@
1
- @import '../common/index.css';.smart-dialog{background-color:var(--dialog-background-color,var(--app-B4,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding:var(--dialog-header-padding,0);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{--hairline-right-width:0;padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{--hairline-right-width:0;height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog__cancel,.smart-dialog__confirm{border:0!important;border-radius:0!important}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}.smart-dialog--round-button .smart-dialog__cancel,.smart-dialog--round-button .smart-dialog__confirm{border-radius:var(--dialog--round-button-border-radius,20px)!important}
1
+ @import '../common/index.css';.smart-dialog{background-color:var(--dialog-background-color,var(--app-B4,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding:var(--dialog-header-padding,0);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}.smart-dialog--round-button .smart-dialog__cancel,.smart-dialog--round-button .smart-dialog__confirm{border-radius:var(--dialog--round-button-border-radius,20px)!important}
@@ -1,4 +1,4 @@
1
- import { Warning as warningIcon } from '@tuya-miniapp/icons';
1
+ import warningIcon from '@tuya-miniapp/icons/dist/svg/Warning';
2
2
  import { SmartComponent } from '../common/component';
3
3
  import { button } from '../mixins/button';
4
4
  import appLog from '../common/appLog';
@@ -1 +1 @@
1
- @import '../common/index.wxss';.smart-dialog{background-color:var(--dialog-background-color,var(--app-B4,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding:var(--dialog-header-padding,0);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{--hairline-right-width:0;padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{--hairline-right-width:0;height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog__cancel,.smart-dialog__confirm{border:0!important;border-radius:0!important}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}.smart-dialog--round-button .smart-dialog__cancel,.smart-dialog--round-button .smart-dialog__confirm{border-radius:var(--dialog--round-button-border-radius,20px)!important}
1
+ @import '../common/index.wxss';.smart-dialog{background-color:var(--dialog-background-color,var(--app-B4,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding:var(--dialog-header-padding,0);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}.smart-dialog--round-button .smart-dialog__cancel,.smart-dialog--round-button .smart-dialog__confirm{border-radius:var(--dialog--round-button-border-radius,20px)!important}
@@ -1,7 +1,6 @@
1
1
  import { useParent } from '../common/relation';
2
2
  import { SmartComponent } from '../common/component';
3
- import { Check as checkMarkIcon } from '@tuya-miniapp/icons';
4
- import ty from '../common/ty';
3
+ import checkMarkIcon from '@tuya-miniapp/icons/dist/svg/Check';
5
4
  SmartComponent({
6
5
  classes: ['item-title-class'],
7
6
  field: true,
@@ -49,7 +48,8 @@ SmartComponent({
49
48
  },
50
49
  mounted() {
51
50
  var _a;
52
- const themeInfo = (_a = ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
51
+ // @ts-ignore
52
+ const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
53
53
  const checkMarkIconColor = this.data.activeColor || themeInfo['--app-M1'] || '#3678E3';
54
54
  this.setData({ checkMarkIconColor });
55
55
  },
@@ -1,8 +1,7 @@
1
1
  import { SmartComponent } from '../common/component';
2
2
  import { useChildren } from '../common/relation';
3
3
  import { addUnit, getRect, getSystemInfoSync } from '../common/utils';
4
- import { TriangleDown } from '@tuya-miniapp/icons';
5
- import ty from '../common/ty';
4
+ import triangleDown from '@tuya-miniapp/icons/dist/svg/TriangleDown';
6
5
  let ARRAY = [];
7
6
  SmartComponent({
8
7
  field: true,
@@ -54,13 +53,14 @@ SmartComponent({
54
53
  },
55
54
  },
56
55
  data: {
57
- triangleDown: TriangleDown,
56
+ triangleDown,
58
57
  activeColorStatic: '',
59
58
  itemListData: [],
60
59
  },
61
60
  mounted() {
62
61
  var _a;
63
- const themeInfo = (_a = ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
62
+ // @ts-ignore
63
+ const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
64
64
  const activeColorStatic = this.data.activeColor || themeInfo['--app-M1'] || '#3678E3';
65
65
  this.setData({ activeColorStatic });
66
66
  },
@@ -1,7 +1,7 @@
1
1
  import { nextTick } from '../common/utils';
2
2
  import { SmartComponent } from '../common/component';
3
3
  import { commonProps, inputProps, textareaProps } from './props';
4
- import { Xmark } from '@tuya-miniapp/icons';
4
+ import Xmark from '@tuya-miniapp/icons/dist/svg/Xmark';
5
5
  SmartComponent({
6
6
  field: true,
7
7
  classes: ['input-class', 'right-icon-class', 'label-class'],
@@ -1,6 +1,6 @@
1
1
  import { SmartComponent } from '../common/component';
2
2
  import { button } from '../mixins/button';
3
- import { Loading } from '@tuya-miniapp/icons';
3
+ import LoadingSvg from '@tuya-miniapp/icons/dist/svg/Loading';
4
4
  SmartComponent({
5
5
  mixins: [button],
6
6
  classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
@@ -46,7 +46,7 @@ SmartComponent({
46
46
  data: {
47
47
  error: false,
48
48
  loading: true,
49
- loadingSvg: Loading,
49
+ loadingSvg: LoadingSvg,
50
50
  viewStyle: '',
51
51
  },
52
52
  methods: {
@@ -30,7 +30,7 @@ function mode(fit) {
30
30
 
31
31
 
32
32
  function maskStyle(url, color) {
33
- var str = 'mask-image: url(' + url + ');-webkit-mask-image: url(' + url + ');background: ' + color + ';'
33
+ const str = 'mask-image: url(' + url + ');-webkit-mask-image: url(' + url + ');background: ' + color + ';'
34
34
  return str
35
35
  }
36
36
 
@@ -3,7 +3,7 @@ var style = require('../wxs/style.wxs');
3
3
  var addUnit = require('../wxs/add-unit.wxs');
4
4
 
5
5
  function textStyle(data) {
6
- var ret = style({
6
+ const ret = style({
7
7
  'font-size': addUnit(data.textSize),
8
8
  color: data.color,
9
9
  });
@@ -12,7 +12,7 @@ function textStyle(data) {
12
12
  }
13
13
 
14
14
  function loadingStyle(data) {
15
- var iconSrc = ''
15
+ let iconSrc = ''
16
16
 
17
17
  if (data.type === 'spinner') {
18
18
  iconSrc = data.spinner
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  // @ts-nocheck
11
11
  import { requestAnimationFrame } from '../common/utils';
12
12
  import { isObj } from '../common/validator';
13
- import ty from '../common/ty';
14
13
  const getClassNames = (name) => ({
15
14
  enter: `smart-${name}-enter smart-${name}-enter-active enter-class enter-active-class`,
16
15
  'enter-to': `smart-${name}-enter-to smart-${name}-enter-active enter-to-class enter-active-class`,
@@ -66,12 +65,13 @@ export function transition(showDefaultValue) {
66
65
  });
67
66
  // eslint-disable-next-line no-async-promise-executor
68
67
  this.enterFinishedPromise = new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
68
+ var _a;
69
69
  const { duration, name } = this.data;
70
70
  const classNames = getClassNames(name);
71
71
  const currentDuration = isObj(duration) ? duration.enter : duration;
72
72
  this.$emit('before-enter');
73
73
  if (this.data.nativeDisabled) {
74
- ty.nativeDisabled(true);
74
+ (_a = ty === null || ty === void 0 ? void 0 : ty.nativeDisabled) === null || _a === void 0 ? void 0 : _a.call(ty, true);
75
75
  }
76
76
  yield requestAnimationFrame();
77
77
  this.$emit('enter');
@@ -125,10 +125,11 @@ export function transition(showDefaultValue) {
125
125
  this.transitionEnded = false;
126
126
  clearTimeout(this.timer);
127
127
  setTimeout(() => {
128
+ var _a;
128
129
  this.enterFinishedPromise = null;
129
130
  this.$emit('after-leave');
130
131
  if (this.data.nativeDisabled) {
131
- ty.nativeDisabled(false);
132
+ (_a = ty === null || ty === void 0 ? void 0 : ty.nativeDisabled) === null || _a === void 0 ? void 0 : _a.call(ty, false);
132
133
  }
133
134
  this.setData({
134
135
  display: false,
@@ -139,12 +140,13 @@ export function transition(showDefaultValue) {
139
140
  this.setData({ classes: classNames['leave-to'] });
140
141
  }))
141
142
  .catch(err => {
143
+ var _a;
142
144
  this.enterFinishedPromise = null;
143
145
  this.setData({ animating: false });
144
146
  console.log(err, '---error-leave');
145
147
  this.$emit('leave-error', err);
146
148
  if (this.data.nativeDisabled) {
147
- ty.nativeDisabled(false);
149
+ (_a = ty === null || ty === void 0 ? void 0 : ty.nativeDisabled) === null || _a === void 0 ? void 0 : _a.call(ty, false);
148
150
  }
149
151
  });
150
152
  });
@@ -1,4 +1,4 @@
1
- import { Left } from '@tuya-miniapp/icons';
1
+ import Left from '@tuya-miniapp/icons/dist/svg/Left';
2
2
  import { SmartComponent } from '../common/component';
3
3
  import { getRect, getSystemInfoSync } from '../common/utils';
4
4
  SmartComponent({
@@ -1,7 +1,7 @@
1
1
  import { SmartComponent } from '../common/component';
2
2
  import { getRect, requestAnimationFrame } from '../common/utils';
3
- import { Xmark } from '@tuya-miniapp/icons';
4
- import { Right } from '@tuya-miniapp/icons';
3
+ import Xmark from '@tuya-miniapp/icons/dist/svg/Xmark';
4
+ import Right from '@tuya-miniapp/icons/dist/svg/Right';
5
5
  SmartComponent({
6
6
  props: {
7
7
  text: {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { SmartComponent } from '../common/component';
11
11
  import { range } from '../common/utils';
12
12
  import { isObj } from '../common/validator';
13
- import ty from '../common/ty';
14
13
  const DEFAULT_DURATION = 400;
15
14
  SmartComponent({
16
15
  classes: ['active-class'],
@@ -227,6 +226,7 @@ SmartComponent({
227
226
  },
228
227
  vibrateShort(count, time = 1000) {
229
228
  if (!count) {
229
+ // @ts-ignore
230
230
  ty.vibrateShort({ type: 'light' });
231
231
  return;
232
232
  }
@@ -52,10 +52,10 @@ function wrapperItemStyle(data) {
52
52
  }
53
53
 
54
54
  // function wrapperItemStyle(data) {
55
- // var { index, animationIndex: currentIndex } = data;
56
- // var offsetIndex = currentIndex - index;
57
- // var rotateX = offsetIndex * 25 > 0 ? Math.min(offsetIndex * 25, 25 * 2) : Math.max(offsetIndex * 25, -25 * 2)
58
- // var scale = Math.min(Math.abs(offsetIndex * 0.05), 0.05 * 2)
55
+ // const { index, animationIndex: currentIndex } = data;
56
+ // const offsetIndex = currentIndex - index;
57
+ // const rotateX = offsetIndex * 25 > 0 ? Math.min(offsetIndex * 25, 25 * 2) : Math.max(offsetIndex * 25, -25 * 2)
58
+ // const scale = Math.min(Math.abs(offsetIndex * 0.05), 0.05 * 2)
59
59
  // return style({
60
60
  // transition: 'transform ' + data.duration + 'ms ease-out',
61
61
  // transform: `rotateX(${rotateX}deg) scale(${1 - scale})`
@@ -43,11 +43,6 @@ SmartComponent({
43
43
  type: String,
44
44
  value: '',
45
45
  },
46
- trigger: {
47
- type: String,
48
- // tap | longpress
49
- value: 'tap',
50
- },
51
46
  zIndex: {
52
47
  type: Number,
53
48
  value: 101,
@@ -1,4 +1,4 @@
1
- <view class="smart-popover custom-class">
1
+ <view class="smart-popover">
2
2
 
3
3
  <smart-overlay
4
4
  show="{{ currentShow }}"
@@ -12,15 +12,7 @@
12
12
 
13
13
  </smart-overlay>
14
14
 
15
- <view wx:if="{{trigger === 'longpress'}}" class="smart-popover-button" catch:longpress="onClick">
16
- <slot />
17
- <view catch:tap="noop" wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
18
- <slot name="overlay" />
19
- <smart-icon class="smart-popover-overlay-arrow" name="{{iconSrc}}" style=" transform: {{iconTransform}}; {{iconPos}}: {{iconPosVal}}px;background-size: {{iconWidth}} {{iconHeight}};{{iconStyle}}"></smart-icon>
20
- </view>
21
- </view>
22
-
23
- <view wx:else class="smart-popover-button" catch:tap="onClick">
15
+ <view class="smart-popover-button" catch:tap="onClick">
24
16
  <slot />
25
17
  <view catch:tap="noop" wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
26
18
  <slot name="overlay" />
@@ -1 +1 @@
1
- @import '../common/index.css';.smart-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,var(--app-B4,#fff));box-sizing:border-box;max-height:100%;position:fixed;transition-timing-function:ease}.smart-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.smart-popup--center.smart-popup--round{border-radius:var(--popup-round-border-radius,16px);overflow:hidden}.smart-popup--top{left:0;top:0;width:100%}.smart-popup--top.smart-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px));overflow:hidden}.smart-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--right.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px));overflow:hidden}.smart-popup--bottom{bottom:0;left:0;width:100%}.smart-popup--bottom.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0;overflow:hidden}.smart-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--left.smart-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0;overflow:hidden}.smart-popup--bottom.smart-popup--safeTabBar,.smart-popup--top.smart-popup--safeTabBar{bottom:var(--tabbar-height,55px)}.smart-popup--safeTop{padding-top:env(safe-area-inset-top)}.smart-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,24px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.smart-popup__close-icon--top-left{left:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--top-right{right:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,12px);left:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,12px);right:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon:active{opacity:.6}.smart-scale-enter-active,.smart-scale-leave-active{transition-property:opacity,transform}.smart-scale-enter,.smart-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-fade-enter-active,.smart-fade-leave-active{transition-property:opacity}.smart-fade-enter,.smart-fade-leave-to{opacity:0}.smart-center-enter-active,.smart-center-leave-active{transition-property:opacity}.smart-center-enter,.smart-center-leave-to{opacity:0}.smart-bottom-enter-active,.smart-bottom-leave-active,.smart-left-enter-active,.smart-left-leave-active,.smart-right-enter-active,.smart-right-leave-active,.smart-top-enter-active,.smart-top-leave-active{transition-property:transform}.smart-bottom-enter,.smart-bottom-leave-to{transform:translate3d(0,100%,0)}.smart-top-enter,.smart-top-leave-to{transform:translate3d(0,-100%,0)}.smart-left-enter,.smart-left-leave-to{transform:translate3d(-100%,-50%,0)}.smart-right-enter,.smart-right-leave-to{transform:translate3d(100%,-50%,0)}
1
+ @import '../common/index.css';.smart-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,var(--app-B4,#fff));box-sizing:border-box;max-height:100%;position:fixed;transition-timing-function:ease}.smart-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.smart-popup--center.smart-popup--round{border-radius:var(--popup-round-border-radius,16px)}.smart-popup--top{left:0;top:0;width:100%}.smart-popup--top.smart-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--right.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--bottom{bottom:0;left:0;width:100%}.smart-popup--bottom.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.smart-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--left.smart-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.smart-popup--bottom.smart-popup--safeTabBar,.smart-popup--top.smart-popup--safeTabBar{bottom:var(--tabbar-height,55px)}.smart-popup--safeTop{padding-top:env(safe-area-inset-top)}.smart-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,24px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.smart-popup__close-icon--top-left{left:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--top-right{right:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,12px);left:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,12px);right:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon:active{opacity:.6}.smart-scale-enter-active,.smart-scale-leave-active{transition-property:opacity,transform}.smart-scale-enter,.smart-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-fade-enter-active,.smart-fade-leave-active{transition-property:opacity}.smart-fade-enter,.smart-fade-leave-to{opacity:0}.smart-center-enter-active,.smart-center-leave-active{transition-property:opacity}.smart-center-enter,.smart-center-leave-to{opacity:0}.smart-bottom-enter-active,.smart-bottom-leave-active,.smart-left-enter-active,.smart-left-leave-active,.smart-right-enter-active,.smart-right-leave-active,.smart-top-enter-active,.smart-top-leave-active{transition-property:transform}.smart-bottom-enter,.smart-bottom-leave-to{transform:translate3d(0,100%,0)}.smart-top-enter,.smart-top-leave-to{transform:translate3d(0,-100%,0)}.smart-left-enter,.smart-left-leave-to{transform:translate3d(-100%,-50%,0)}.smart-right-enter,.smart-right-leave-to{transform:translate3d(100%,-50%,0)}
@@ -1,4 +1,4 @@
1
- import { Xmark as closeIcon } from '@tuya-miniapp/icons';
1
+ import closeIcon from '@tuya-miniapp/icons/dist/svg/Xmark';
2
2
  import { SmartComponent } from '../common/component';
3
3
  import { transition } from '../mixins/transition';
4
4
  import { getSafeBottomOffset } from '../common/utils';
@@ -2,7 +2,7 @@
2
2
  var style = require('../wxs/style.wxs');
3
3
 
4
4
  function popupStyle(data) {
5
- var transformStyle = data.position === 'bottom' ? "transform: translate3d(0, calc(100% + " + data.bottomSafeHeight + "px), 0)" : null;
5
+ const transformStyle = data.position === 'bottom' ? "transform: translate3d(0, calc(100% + " + data.bottomSafeHeight + "px), 0)" : null;
6
6
 
7
7
  return style([
8
8
  {
@@ -1 +1 @@
1
- @import '../common/index.wxss';.smart-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,var(--app-B4,#fff));box-sizing:border-box;max-height:100%;position:fixed;transition-timing-function:ease}.smart-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.smart-popup--center.smart-popup--round{border-radius:var(--popup-round-border-radius,16px);overflow:hidden}.smart-popup--top{left:0;top:0;width:100%}.smart-popup--top.smart-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px));overflow:hidden}.smart-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--right.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px));overflow:hidden}.smart-popup--bottom{bottom:0;left:0;width:100%}.smart-popup--bottom.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0;overflow:hidden}.smart-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--left.smart-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0;overflow:hidden}.smart-popup--bottom.smart-popup--safeTabBar,.smart-popup--top.smart-popup--safeTabBar{bottom:var(--tabbar-height,55px)}.smart-popup--safeTop{padding-top:env(safe-area-inset-top)}.smart-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,24px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.smart-popup__close-icon--top-left{left:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--top-right{right:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,12px);left:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,12px);right:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon:active{opacity:.6}.smart-scale-enter-active,.smart-scale-leave-active{transition-property:opacity,transform}.smart-scale-enter,.smart-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-fade-enter-active,.smart-fade-leave-active{transition-property:opacity}.smart-fade-enter,.smart-fade-leave-to{opacity:0}.smart-center-enter-active,.smart-center-leave-active{transition-property:opacity}.smart-center-enter,.smart-center-leave-to{opacity:0}.smart-bottom-enter-active,.smart-bottom-leave-active,.smart-left-enter-active,.smart-left-leave-active,.smart-right-enter-active,.smart-right-leave-active,.smart-top-enter-active,.smart-top-leave-active{transition-property:transform}.smart-bottom-enter,.smart-bottom-leave-to{transform:translate3d(0,100%,0)}.smart-top-enter,.smart-top-leave-to{transform:translate3d(0,-100%,0)}.smart-left-enter,.smart-left-leave-to{transform:translate3d(-100%,-50%,0)}.smart-right-enter,.smart-right-leave-to{transform:translate3d(100%,-50%,0)}
1
+ @import '../common/index.wxss';.smart-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,var(--app-B4,#fff));box-sizing:border-box;max-height:100%;position:fixed;transition-timing-function:ease}.smart-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.smart-popup--center.smart-popup--round{border-radius:var(--popup-round-border-radius,16px)}.smart-popup--top{left:0;top:0;width:100%}.smart-popup--top.smart-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--right.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--bottom{bottom:0;left:0;width:100%}.smart-popup--bottom.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.smart-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--left.smart-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.smart-popup--bottom.smart-popup--safeTabBar,.smart-popup--top.smart-popup--safeTabBar{bottom:var(--tabbar-height,55px)}.smart-popup--safeTop{padding-top:env(safe-area-inset-top)}.smart-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,24px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.smart-popup__close-icon--top-left{left:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--top-right{right:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,12px);left:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,12px);right:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon:active{opacity:.6}.smart-scale-enter-active,.smart-scale-leave-active{transition-property:opacity,transform}.smart-scale-enter,.smart-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-fade-enter-active,.smart-fade-leave-active{transition-property:opacity}.smart-fade-enter,.smart-fade-leave-to{opacity:0}.smart-center-enter-active,.smart-center-leave-active{transition-property:opacity}.smart-center-enter,.smart-center-leave-to{opacity:0}.smart-bottom-enter-active,.smart-bottom-leave-active,.smart-left-enter-active,.smart-left-leave-active,.smart-right-enter-active,.smart-right-leave-active,.smart-top-enter-active,.smart-top-leave-active{transition-property:transform}.smart-bottom-enter,.smart-bottom-leave-to{transform:translate3d(0,100%,0)}.smart-top-enter,.smart-top-leave-to{transform:translate3d(0,-100%,0)}.smart-left-enter,.smart-left-leave-to{transform:translate3d(-100%,-50%,0)}.smart-right-enter,.smart-right-leave-to{transform:translate3d(100%,-50%,0)}
@@ -1,4 +1,4 @@
1
- import { Check } from '@tuya-miniapp/icons';
1
+ import CheckIcon from '@tuya-miniapp/icons/dist/svg/Check';
2
2
  import { canIUseModel } from '../common/version';
3
3
  import { SmartComponent } from '../common/component';
4
4
  import { useParent } from '../common/relation';
@@ -31,7 +31,7 @@ SmartComponent({
31
31
  data: {
32
32
  direction: '',
33
33
  parentDisabled: false,
34
- icon: Check,
34
+ icon: CheckIcon,
35
35
  preventDefault: false,
36
36
  },
37
37
  methods: {
@@ -1,5 +1,5 @@
1
- import { CheckmarkCircle } from '@tuya-miniapp/icons';
2
- import { CheckmarkCircleVoid } from '@tuya-miniapp/icons';
1
+ import CheckmarkCircle from '@tuya-miniapp/icons/dist/svg/CheckmarkCircle';
2
+ import CheckmarkCircleVoid from '@tuya-miniapp/icons/dist/svg/CheckmarkCircleVoid';
3
3
  import { getAllRect } from '../common/utils';
4
4
  import { SmartComponent } from '../common/component';
5
5
  import { canIUseModel } from '../common/version';