@tuya-miniapp/smart-ui 2.5.0 → 2.5.1-beta-1
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.
- package/dist/action-sheet/index.js +3 -1
- package/dist/action-sheet/index.wxml +1 -1
- package/dist/bottom-sheet/index.css +1 -1
- package/dist/bottom-sheet/index.js +3 -4
- package/dist/bottom-sheet/index.wxml +5 -1
- package/dist/bottom-sheet/index.wxss +1 -1
- package/dist/calendar-header/index.js +2 -2
- package/dist/cascader/index.js +1 -1
- package/dist/cell/index.js +4 -4
- package/dist/checkbox/index.js +1 -1
- package/dist/common/ty.d.ts +2 -0
- package/dist/common/ty.js +12 -0
- package/dist/custom-keyboard/index.wxml +3 -7
- package/dist/dialog/index.js +1 -1
- package/dist/dropdown-item/index.js +3 -3
- package/dist/dropdown-menu/index.js +4 -4
- package/dist/field/index.js +1 -1
- package/dist/image/index.js +2 -2
- package/dist/nav-bar/index.js +1 -1
- package/dist/notice-bar/index.js +2 -2
- package/dist/popup/index.js +1 -1
- package/dist/radio/index.js +2 -2
- package/dist/rate/index.js +2 -2
- package/dist/search/index.js +2 -2
- package/dist/stepper/index.js +2 -2
- package/dist/steps/index.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/toast/icons.js +3 -3
- package/dist/tree-select/index.js +2 -2
- package/lib/action-sheet/index.js +4 -2
- package/lib/action-sheet/index.wxml +1 -1
- package/lib/bottom-sheet/index.css +1 -1
- package/lib/bottom-sheet/index.js +4 -5
- package/lib/bottom-sheet/index.wxml +5 -1
- package/lib/bottom-sheet/index.wxss +1 -1
- package/lib/calendar-header/index.js +4 -7
- package/lib/cascader/index.js +2 -5
- package/lib/cell/index.js +9 -12
- package/lib/checkbox/index.js +2 -5
- package/lib/common/ty.d.ts +2 -0
- package/lib/common/ty.js +12 -0
- package/lib/custom-keyboard/index.wxml +3 -7
- package/lib/dialog/index.js +2 -2
- package/lib/dropdown-item/index.js +4 -4
- package/lib/dropdown-menu/index.js +4 -4
- package/lib/field/index.js +2 -5
- package/lib/image/index.js +2 -5
- package/lib/nav-bar/index.js +2 -5
- package/lib/notice-bar/index.js +4 -7
- package/lib/popup/index.js +3 -6
- package/lib/radio/index.js +2 -5
- package/lib/rate/index.js +4 -7
- package/lib/search/index.js +4 -7
- package/lib/stepper/index.js +4 -4
- package/lib/steps/index.js +2 -5
- package/lib/tag/index.js +2 -5
- package/lib/toast/icons.js +6 -9
- package/lib/tree-select/index.js +2 -5
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
|
-
import checkMarkIcon from '@tuya-miniapp/icons
|
1
|
+
import { Check as checkMarkIcon } from '@tuya-miniapp/icons';
|
2
2
|
import { SmartComponent } from '../common/component';
|
3
|
+
import ty from '../common/ty';
|
3
4
|
import { button } from '../mixins/button';
|
4
5
|
SmartComponent({
|
5
6
|
classes: ['list-class'],
|
@@ -51,6 +52,7 @@ SmartComponent({
|
|
51
52
|
},
|
52
53
|
data: {
|
53
54
|
checkMarkIcon,
|
55
|
+
isWX: ty.isWX(),
|
54
56
|
},
|
55
57
|
methods: {
|
56
58
|
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 wx:if="{{ actions && actions.length }}" class="smart-action-sheet__list list-class">
|
29
|
+
<scroll-view scroll-y="{{isWX}}" 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{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%);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,5 +1,6 @@
|
|
1
|
-
import xmarkIcon from '@tuya-miniapp/icons
|
1
|
+
import { Xmark as xmarkIcon } from '@tuya-miniapp/icons';
|
2
2
|
import { SmartComponent } from '../common/component';
|
3
|
+
import ty from '../common/ty';
|
3
4
|
SmartComponent({
|
4
5
|
props: {
|
5
6
|
show: Boolean,
|
@@ -37,9 +38,7 @@ SmartComponent({
|
|
37
38
|
xmarkIconColor: 'rgba(0, 0, 0, 0.5)',
|
38
39
|
},
|
39
40
|
mounted() {
|
40
|
-
|
41
|
-
// @ts-ignore
|
42
|
-
const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
41
|
+
const themeInfo = ty.getThemeInfo() || {};
|
43
42
|
const xmarkIconColor = this.data.iconColor || themeInfo['--app-B4-N3'] || 'rgba(0, 0, 0, 0.5)';
|
44
43
|
this.setData({ xmarkIconColor });
|
45
44
|
},
|
@@ -25,7 +25,11 @@
|
|
25
25
|
{{ title }}
|
26
26
|
<smart-icon bind:click="onClose" name="{{ xmarkIcon }}" class="smart-bottom-sheet__icon" size="{{ iconSize }}" color="{{ xmarkIconColor }}" />
|
27
27
|
</view>
|
28
|
-
|
28
|
+
|
29
|
+
<view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content" style="{{computed.getHeight(contentHeight)}}">
|
30
|
+
<slot />
|
31
|
+
</view>
|
32
|
+
<scroll-view wx:else class="smart-bottom-sheet__content">
|
29
33
|
<slot />
|
30
34
|
</scroll-view>
|
31
35
|
</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{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%);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,6 +1,6 @@
|
|
1
1
|
import { SmartComponent } from '../common/component';
|
2
|
-
import LeftIcon from '@tuya-miniapp/icons
|
3
|
-
import RightIcon from '@tuya-miniapp/icons
|
2
|
+
import { Left as LeftIcon } from '@tuya-miniapp/icons';
|
3
|
+
import { Right as RightIcon } from '@tuya-miniapp/icons';
|
4
4
|
SmartComponent({
|
5
5
|
props: {
|
6
6
|
title: {
|
package/dist/cascader/index.js
CHANGED
package/dist/cell/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import upIcon from '@tuya-miniapp/icons
|
2
|
-
import downIcon from '@tuya-miniapp/icons
|
3
|
-
import leftIcon from '@tuya-miniapp/icons
|
4
|
-
import rightIcon from '@tuya-miniapp/icons
|
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';
|
5
5
|
import { link } from '../mixins/link';
|
6
6
|
import { SmartComponent } from '../common/component';
|
7
7
|
SmartComponent({
|
package/dist/checkbox/index.js
CHANGED
package/dist/common/ty.d.ts
CHANGED
package/dist/common/ty.js
CHANGED
@@ -17,5 +17,17 @@ const tyApi = {
|
|
17
17
|
(_a = ty.nativeDisabled) === null || _a === void 0 ? void 0 : _a.call(ty, v);
|
18
18
|
}
|
19
19
|
},
|
20
|
+
getThemeInfo: () => {
|
21
|
+
var _a;
|
22
|
+
// @ts-ignore
|
23
|
+
if (typeof ty !== 'undefined') {
|
24
|
+
// @ts-ignore
|
25
|
+
return (_a = ty.getThemeInfo) === null || _a === void 0 ? void 0 : _a.call(ty);
|
26
|
+
}
|
27
|
+
},
|
28
|
+
isWX: () => {
|
29
|
+
// @ts-ignore
|
30
|
+
return typeof ty === 'undefined' && !!wx;
|
31
|
+
},
|
20
32
|
};
|
21
33
|
export default tyApi;
|
@@ -1,8 +1,6 @@
|
|
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}}">
|
4
|
-
{{currValue || placeholder}}
|
5
|
-
</text>
|
3
|
+
<text class="{{prefix}}-pwdText {{currValue !== '' ? prefix + '-password' : null}}" style="{{valueTextStyle}}">{{currValue || placeholder}}</text>
|
6
4
|
</view>
|
7
5
|
<slot name="custom-button" />
|
8
6
|
</view>
|
@@ -14,7 +12,7 @@
|
|
14
12
|
>
|
15
13
|
<view class="{{prefix}}-popup-container">
|
16
14
|
<view class="{{prefix}}-number-wrap" style="height: {{row * 56}}px">
|
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:
|
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' : ''}}">
|
18
16
|
<view
|
19
17
|
wx:if="{{item === -2}}"
|
20
18
|
class="{{prefix}}-hidden-image"
|
@@ -39,9 +37,7 @@
|
|
39
37
|
bind:tap="confirm"
|
40
38
|
hover-class="{{prefix}}-hover-class"
|
41
39
|
>
|
42
|
-
<text class="{{prefix}}-confirm-text" style="{{confirmTextStyle}}">
|
43
|
-
{{confirmText}}
|
44
|
-
</text>
|
40
|
+
<text class="{{prefix}}-confirm-text" space="false" style="{{confirmTextStyle}}">{{confirmText}}</text>
|
45
41
|
</button >
|
46
42
|
</view>
|
47
43
|
</view>
|
package/dist/dialog/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { useParent } from '../common/relation';
|
2
2
|
import { SmartComponent } from '../common/component';
|
3
|
-
import checkMarkIcon from '@tuya-miniapp/icons
|
3
|
+
import { Check as checkMarkIcon } from '@tuya-miniapp/icons';
|
4
|
+
import ty from '../common/ty';
|
4
5
|
SmartComponent({
|
5
6
|
classes: ['item-title-class'],
|
6
7
|
field: true,
|
@@ -48,8 +49,7 @@ SmartComponent({
|
|
48
49
|
},
|
49
50
|
mounted() {
|
50
51
|
var _a;
|
51
|
-
|
52
|
-
const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
52
|
+
const themeInfo = (_a = 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,7 +1,8 @@
|
|
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
|
4
|
+
import { TriangleDown } from '@tuya-miniapp/icons';
|
5
|
+
import ty from '../common/ty';
|
5
6
|
let ARRAY = [];
|
6
7
|
SmartComponent({
|
7
8
|
field: true,
|
@@ -53,14 +54,13 @@ SmartComponent({
|
|
53
54
|
},
|
54
55
|
},
|
55
56
|
data: {
|
56
|
-
triangleDown,
|
57
|
+
triangleDown: TriangleDown,
|
57
58
|
activeColorStatic: '',
|
58
59
|
itemListData: [],
|
59
60
|
},
|
60
61
|
mounted() {
|
61
62
|
var _a;
|
62
|
-
|
63
|
-
const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
63
|
+
const themeInfo = (_a = 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
|
},
|
package/dist/field/index.js
CHANGED
@@ -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';
|
5
5
|
SmartComponent({
|
6
6
|
field: true,
|
7
7
|
classes: ['input-class', 'right-icon-class', 'label-class'],
|
package/dist/image/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SmartComponent } from '../common/component';
|
2
2
|
import { button } from '../mixins/button';
|
3
|
-
import
|
3
|
+
import { Loading } from '@tuya-miniapp/icons';
|
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:
|
49
|
+
loadingSvg: Loading,
|
50
50
|
viewStyle: '',
|
51
51
|
},
|
52
52
|
methods: {
|
package/dist/nav-bar/index.js
CHANGED
package/dist/notice-bar/index.js
CHANGED
@@ -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';
|
4
|
+
import { Right } from '@tuya-miniapp/icons';
|
5
5
|
SmartComponent({
|
6
6
|
props: {
|
7
7
|
text: {
|
package/dist/popup/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import closeIcon from '@tuya-miniapp/icons
|
1
|
+
import { Xmark as closeIcon } from '@tuya-miniapp/icons';
|
2
2
|
import { SmartComponent } from '../common/component';
|
3
3
|
import { transition } from '../mixins/transition';
|
4
4
|
import { getSafeBottomOffset } from '../common/utils';
|
package/dist/radio/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Check } from '@tuya-miniapp/icons';
|
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:
|
34
|
+
icon: Check,
|
35
35
|
preventDefault: false,
|
36
36
|
},
|
37
37
|
methods: {
|
package/dist/rate/index.js
CHANGED
@@ -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';
|
2
|
+
import { CheckmarkCircleVoid } from '@tuya-miniapp/icons';
|
3
3
|
import { getAllRect } from '../common/utils';
|
4
4
|
import { SmartComponent } from '../common/component';
|
5
5
|
import { canIUseModel } from '../common/version';
|
package/dist/search/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SmartComponent } from '../common/component';
|
2
2
|
import { canIUseModel } from '../common/version';
|
3
|
-
import SearchIcon from '@tuya-miniapp/icons
|
4
|
-
import CloseIcon from '@tuya-miniapp/icons
|
3
|
+
import { Search as SearchIcon } from '@tuya-miniapp/icons';
|
4
|
+
import { Close as CloseIcon } from '@tuya-miniapp/icons';
|
5
5
|
SmartComponent({
|
6
6
|
field: true,
|
7
7
|
classes: ['field-class', 'input-class', 'cancel-class'],
|
package/dist/stepper/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { SmartComponent } from '../common/component';
|
2
2
|
import { isDef } from '../common/validator';
|
3
3
|
import ty from '../common/ty';
|
4
|
-
import Minus from '@tuya-miniapp/icons
|
5
|
-
import Plus from '@tuya-miniapp/icons
|
4
|
+
import { Minus } from '@tuya-miniapp/icons';
|
5
|
+
import { Plus } from '@tuya-miniapp/icons';
|
6
6
|
const LONG_PRESS_START_TIME = 600;
|
7
7
|
const LONG_PRESS_INTERVAL = 200;
|
8
8
|
// add num and avoid float number
|
package/dist/steps/index.js
CHANGED
package/dist/tag/index.js
CHANGED
package/dist/toast/icons.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import Warning from '@tuya-miniapp/icons
|
2
|
-
import CheckmarkCircle from '@tuya-miniapp/icons
|
3
|
-
import Cancel from '@tuya-miniapp/icons
|
1
|
+
import { Warning } from '@tuya-miniapp/icons';
|
2
|
+
import { CheckmarkCircle } from '@tuya-miniapp/icons';
|
3
|
+
import { Cancel } from '@tuya-miniapp/icons';
|
4
4
|
export const Success = CheckmarkCircle;
|
5
5
|
export const Alarm = Warning;
|
6
6
|
export const Error = Cancel;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Check } from '@tuya-miniapp/icons';
|
2
2
|
import { SmartComponent } from '../common/component';
|
3
3
|
SmartComponent({
|
4
4
|
classes: [
|
@@ -30,7 +30,7 @@ SmartComponent({
|
|
30
30
|
},
|
31
31
|
selectedIcon: {
|
32
32
|
type: String,
|
33
|
-
value:
|
33
|
+
value: Check,
|
34
34
|
},
|
35
35
|
},
|
36
36
|
data: {
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
6
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
7
|
var component_1 = require("../common/component");
|
8
|
+
var ty_1 = __importDefault(require("../common/ty"));
|
8
9
|
var button_1 = require("../mixins/button");
|
9
10
|
(0, component_1.SmartComponent)({
|
10
11
|
classes: ['list-class'],
|
@@ -55,7 +56,8 @@ var button_1 = require("../mixins/button");
|
|
55
56
|
},
|
56
57
|
},
|
57
58
|
data: {
|
58
|
-
checkMarkIcon:
|
59
|
+
checkMarkIcon: icons_1.Check,
|
60
|
+
isWX: ty_1.default.isWX(),
|
59
61
|
},
|
60
62
|
methods: {
|
61
63
|
onSelect: function (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 wx:if="{{ actions && actions.length }}" class="smart-action-sheet__list list-class">
|
29
|
+
<scroll-view scroll-y="{{isWX}}" 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{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%);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}
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
6
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
7
|
var component_1 = require("../common/component");
|
8
|
+
var ty_1 = __importDefault(require("../common/ty"));
|
8
9
|
(0, component_1.SmartComponent)({
|
9
10
|
props: {
|
10
11
|
show: Boolean,
|
@@ -38,13 +39,11 @@ var component_1 = require("../common/component");
|
|
38
39
|
},
|
39
40
|
},
|
40
41
|
data: {
|
41
|
-
xmarkIcon:
|
42
|
+
xmarkIcon: icons_1.Xmark,
|
42
43
|
xmarkIconColor: 'rgba(0, 0, 0, 0.5)',
|
43
44
|
},
|
44
45
|
mounted: function () {
|
45
|
-
var
|
46
|
-
// @ts-ignore
|
47
|
-
var themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
46
|
+
var themeInfo = ty_1.default.getThemeInfo() || {};
|
48
47
|
var xmarkIconColor = this.data.iconColor || themeInfo['--app-B4-N3'] || 'rgba(0, 0, 0, 0.5)';
|
49
48
|
this.setData({ xmarkIconColor: xmarkIconColor });
|
50
49
|
},
|
@@ -25,7 +25,11 @@
|
|
25
25
|
{{ title }}
|
26
26
|
<smart-icon bind:click="onClose" name="{{ xmarkIcon }}" class="smart-bottom-sheet__icon" size="{{ iconSize }}" color="{{ xmarkIconColor }}" />
|
27
27
|
</view>
|
28
|
-
|
28
|
+
|
29
|
+
<view wx:if="{{ contentHeight !== null }}" class="smart-bottom-sheet__content" style="{{computed.getHeight(contentHeight)}}">
|
30
|
+
<slot />
|
31
|
+
</view>
|
32
|
+
<scroll-view wx:else class="smart-bottom-sheet__content">
|
29
33
|
<slot />
|
30
34
|
</scroll-view>
|
31
35
|
</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{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%);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}
|
@@ -8,13 +8,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
8
8
|
}
|
9
9
|
return to.concat(ar || Array.prototype.slice.call(from));
|
10
10
|
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
12
|
var component_1 = require("../common/component");
|
16
|
-
var
|
17
|
-
var
|
13
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
14
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
18
15
|
(0, component_1.SmartComponent)({
|
19
16
|
props: {
|
20
17
|
title: {
|
@@ -41,8 +38,8 @@ var Right_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Right"));
|
|
41
38
|
},
|
42
39
|
data: {
|
43
40
|
weekdays: [],
|
44
|
-
LeftIcon:
|
45
|
-
RightIcon:
|
41
|
+
LeftIcon: icons_1.Left,
|
42
|
+
RightIcon: icons_2.Right,
|
46
43
|
},
|
47
44
|
created: function () {
|
48
45
|
this.initWeekDay();
|
package/lib/cascader/index.js
CHANGED
@@ -8,12 +8,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
8
8
|
}
|
9
9
|
return to.concat(ar || Array.prototype.slice.call(from));
|
10
10
|
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
12
|
var component_1 = require("../common/component");
|
16
|
-
var
|
13
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
17
14
|
(0, component_1.SmartComponent)({
|
18
15
|
props: {
|
19
16
|
title: String,
|
@@ -54,7 +51,7 @@ var Xmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Xmark"));
|
|
54
51
|
},
|
55
52
|
closeIcon: {
|
56
53
|
type: String,
|
57
|
-
value:
|
54
|
+
value: icons_1.Xmark,
|
58
55
|
},
|
59
56
|
useTitleSlot: Boolean,
|
60
57
|
},
|
package/lib/cell/index.js
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
7
|
-
var
|
8
|
-
var
|
9
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
4
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
5
|
+
var icons_3 = require("@tuya-miniapp/icons");
|
6
|
+
var icons_4 = require("@tuya-miniapp/icons");
|
10
7
|
var link_1 = require("../mixins/link");
|
11
8
|
var component_1 = require("../common/component");
|
12
9
|
(0, component_1.SmartComponent)({
|
@@ -32,12 +29,12 @@ var component_1 = require("../common/component");
|
|
32
29
|
},
|
33
30
|
data: {
|
34
31
|
arrowIcons: {
|
35
|
-
up:
|
36
|
-
down:
|
37
|
-
left:
|
38
|
-
right:
|
32
|
+
up: icons_1.Up,
|
33
|
+
down: icons_2.Down,
|
34
|
+
left: icons_3.Left,
|
35
|
+
right: icons_4.Right,
|
39
36
|
},
|
40
|
-
arrowIcon:
|
37
|
+
arrowIcon: icons_4.Right,
|
41
38
|
},
|
42
39
|
methods: {
|
43
40
|
onClick: function (event) {
|
package/lib/checkbox/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var relation_1 = require("../common/relation");
|
8
5
|
var component_1 = require("../common/component");
|
9
6
|
function emit(target, value) {
|
@@ -36,7 +33,7 @@ function emit(target, value) {
|
|
36
33
|
data: {
|
37
34
|
parentDisabled: false,
|
38
35
|
direction: 'vertical',
|
39
|
-
icon:
|
36
|
+
icon: icons_1.Check,
|
40
37
|
},
|
41
38
|
methods: {
|
42
39
|
emitChange: function (value) {
|
package/lib/common/ty.d.ts
CHANGED
package/lib/common/ty.js
CHANGED
@@ -19,5 +19,17 @@ var tyApi = {
|
|
19
19
|
(_a = ty.nativeDisabled) === null || _a === void 0 ? void 0 : _a.call(ty, v);
|
20
20
|
}
|
21
21
|
},
|
22
|
+
getThemeInfo: function () {
|
23
|
+
var _a;
|
24
|
+
// @ts-ignore
|
25
|
+
if (typeof ty !== 'undefined') {
|
26
|
+
// @ts-ignore
|
27
|
+
return (_a = ty.getThemeInfo) === null || _a === void 0 ? void 0 : _a.call(ty);
|
28
|
+
}
|
29
|
+
},
|
30
|
+
isWX: function () {
|
31
|
+
// @ts-ignore
|
32
|
+
return typeof ty === 'undefined' && !!wx;
|
33
|
+
},
|
22
34
|
};
|
23
35
|
exports.default = tyApi;
|
@@ -1,8 +1,6 @@
|
|
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}}">
|
4
|
-
{{currValue || placeholder}}
|
5
|
-
</text>
|
3
|
+
<text class="{{prefix}}-pwdText {{currValue !== '' ? prefix + '-password' : null}}" style="{{valueTextStyle}}">{{currValue || placeholder}}</text>
|
6
4
|
</view>
|
7
5
|
<slot name="custom-button" />
|
8
6
|
</view>
|
@@ -14,7 +12,7 @@
|
|
14
12
|
>
|
15
13
|
<view class="{{prefix}}-popup-container">
|
16
14
|
<view class="{{prefix}}-number-wrap" style="height: {{row * 56}}px">
|
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:
|
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' : ''}}">
|
18
16
|
<view
|
19
17
|
wx:if="{{item === -2}}"
|
20
18
|
class="{{prefix}}-hidden-image"
|
@@ -39,9 +37,7 @@
|
|
39
37
|
bind:tap="confirm"
|
40
38
|
hover-class="{{prefix}}-hover-class"
|
41
39
|
>
|
42
|
-
<text class="{{prefix}}-confirm-text" style="{{confirmTextStyle}}">
|
43
|
-
{{confirmText}}
|
44
|
-
</text>
|
40
|
+
<text class="{{prefix}}-confirm-text" space="false" style="{{confirmTextStyle}}">{{confirmText}}</text>
|
45
41
|
</button >
|
46
42
|
</view>
|
47
43
|
</view>
|
package/lib/dialog/index.js
CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
6
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
7
|
var component_1 = require("../common/component");
|
8
8
|
var button_1 = require("../mixins/button");
|
9
9
|
var appLog_1 = __importDefault(require("../common/appLog"));
|
@@ -90,7 +90,7 @@ var dialog_1 = require("./dialog");
|
|
90
90
|
},
|
91
91
|
},
|
92
92
|
data: {
|
93
|
-
warningIcon:
|
93
|
+
warningIcon: icons_1.Warning,
|
94
94
|
inputValue: '',
|
95
95
|
loading: {
|
96
96
|
confirm: false,
|
@@ -5,7 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
var relation_1 = require("../common/relation");
|
7
7
|
var component_1 = require("../common/component");
|
8
|
-
var
|
8
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
9
|
+
var ty_1 = __importDefault(require("../common/ty"));
|
9
10
|
(0, component_1.SmartComponent)({
|
10
11
|
classes: ['item-title-class'],
|
11
12
|
field: true,
|
@@ -43,7 +44,7 @@ var Check_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Check"));
|
|
43
44
|
},
|
44
45
|
},
|
45
46
|
data: {
|
46
|
-
checkMarkIcon:
|
47
|
+
checkMarkIcon: icons_1.Check,
|
47
48
|
checkMarkIconColor: '',
|
48
49
|
transition: true,
|
49
50
|
showPopup: false,
|
@@ -53,8 +54,7 @@ var Check_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Check"));
|
|
53
54
|
},
|
54
55
|
mounted: function () {
|
55
56
|
var _a;
|
56
|
-
|
57
|
-
var themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
57
|
+
var themeInfo = (_a = ty_1.default.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
58
58
|
var checkMarkIconColor = this.data.activeColor || themeInfo['--app-M1'] || '#3678E3';
|
59
59
|
this.setData({ checkMarkIconColor: checkMarkIconColor });
|
60
60
|
},
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var component_1 = require("../common/component");
|
7
7
|
var relation_1 = require("../common/relation");
|
8
8
|
var utils_1 = require("../common/utils");
|
9
|
-
var
|
9
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
10
|
+
var ty_1 = __importDefault(require("../common/ty"));
|
10
11
|
var ARRAY = [];
|
11
12
|
(0, component_1.SmartComponent)({
|
12
13
|
field: true,
|
@@ -58,14 +59,13 @@ var ARRAY = [];
|
|
58
59
|
},
|
59
60
|
},
|
60
61
|
data: {
|
61
|
-
triangleDown:
|
62
|
+
triangleDown: icons_1.TriangleDown,
|
62
63
|
activeColorStatic: '',
|
63
64
|
itemListData: [],
|
64
65
|
},
|
65
66
|
mounted: function () {
|
66
67
|
var _a;
|
67
|
-
|
68
|
-
var themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
68
|
+
var themeInfo = (_a = ty_1.default.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
69
69
|
var activeColorStatic = this.data.activeColor || themeInfo['--app-M1'] || '#3678E3';
|
70
70
|
this.setData({ activeColorStatic: activeColorStatic });
|
71
71
|
},
|
package/lib/field/index.js
CHANGED
@@ -10,14 +10,11 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
14
|
var utils_1 = require("../common/utils");
|
18
15
|
var component_1 = require("../common/component");
|
19
16
|
var props_1 = require("./props");
|
20
|
-
var
|
17
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
21
18
|
(0, component_1.SmartComponent)({
|
22
19
|
field: true,
|
23
20
|
classes: ['input-class', 'right-icon-class', 'label-class'],
|
@@ -40,7 +37,7 @@ var Xmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Xmark"));
|
|
40
37
|
value: '6.2em',
|
41
38
|
}, clearIcon: {
|
42
39
|
type: String,
|
43
|
-
value:
|
40
|
+
value: icons_1.Xmark,
|
44
41
|
}, extraEventParams: {
|
45
42
|
type: Boolean,
|
46
43
|
value: false,
|
package/lib/image/index.js
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
var component_1 = require("../common/component");
|
7
4
|
var button_1 = require("../mixins/button");
|
8
|
-
var
|
5
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
9
6
|
(0, component_1.SmartComponent)({
|
10
7
|
mixins: [button_1.button],
|
11
8
|
classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
|
@@ -51,7 +48,7 @@ var Loading_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Loading"))
|
|
51
48
|
data: {
|
52
49
|
error: false,
|
53
50
|
loading: true,
|
54
|
-
loadingSvg:
|
51
|
+
loadingSvg: icons_1.Loading,
|
55
52
|
viewStyle: '',
|
56
53
|
},
|
57
54
|
methods: {
|
package/lib/nav-bar/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var component_1 = require("../common/component");
|
8
5
|
var utils_1 = require("../common/utils");
|
9
6
|
(0, component_1.SmartComponent)({
|
@@ -50,7 +47,7 @@ var utils_1 = require("../common/utils");
|
|
50
47
|
},
|
51
48
|
data: {
|
52
49
|
height: 46,
|
53
|
-
leftArrowIcon:
|
50
|
+
leftArrowIcon: icons_1.Left,
|
54
51
|
},
|
55
52
|
created: function () {
|
56
53
|
var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
|
package/lib/notice-bar/index.js
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
var component_1 = require("../common/component");
|
7
4
|
var utils_1 = require("../common/utils");
|
8
|
-
var
|
9
|
-
var
|
5
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
6
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
10
7
|
(0, component_1.SmartComponent)({
|
11
8
|
props: {
|
12
9
|
text: {
|
@@ -83,8 +80,8 @@ var Right_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Right"));
|
|
83
80
|
wrapable: Boolean,
|
84
81
|
},
|
85
82
|
data: {
|
86
|
-
Xmark:
|
87
|
-
Right:
|
83
|
+
Xmark: icons_1.Xmark,
|
84
|
+
Right: icons_2.Right,
|
88
85
|
show: true,
|
89
86
|
},
|
90
87
|
created: function () {
|
package/lib/popup/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var component_1 = require("../common/component");
|
8
5
|
var transition_1 = require("../mixins/transition");
|
9
6
|
var utils_1 = require("../common/utils");
|
@@ -37,7 +34,7 @@ var utils_1 = require("../common/utils");
|
|
37
34
|
},
|
38
35
|
closeIcon: {
|
39
36
|
type: String,
|
40
|
-
value:
|
37
|
+
value: icons_1.Xmark,
|
41
38
|
},
|
42
39
|
closeIconPosition: {
|
43
40
|
type: String,
|
@@ -78,7 +75,7 @@ var utils_1 = require("../common/utils");
|
|
78
75
|
},
|
79
76
|
},
|
80
77
|
data: {
|
81
|
-
closeIcon:
|
78
|
+
closeIcon: icons_1.Xmark,
|
82
79
|
bottomSafeHeight: 0,
|
83
80
|
},
|
84
81
|
mounted: function () {
|
package/lib/radio/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var version_1 = require("../common/version");
|
8
5
|
var component_1 = require("../common/component");
|
9
6
|
var relation_1 = require("../common/relation");
|
@@ -36,7 +33,7 @@ var relation_1 = require("../common/relation");
|
|
36
33
|
data: {
|
37
34
|
direction: '',
|
38
35
|
parentDisabled: false,
|
39
|
-
icon:
|
36
|
+
icon: icons_1.Check,
|
40
37
|
preventDefault: false,
|
41
38
|
},
|
42
39
|
methods: {
|
package/lib/rate/index.js
CHANGED
@@ -10,12 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var
|
18
|
-
var
|
14
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
15
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
19
16
|
var utils_1 = require("../common/utils");
|
20
17
|
var component_1 = require("../common/component");
|
21
18
|
var version_1 = require("../common/version");
|
@@ -37,11 +34,11 @@ var version_1 = require("../common/version");
|
|
37
34
|
size: null,
|
38
35
|
icon: {
|
39
36
|
type: String,
|
40
|
-
value:
|
37
|
+
value: icons_1.CheckmarkCircle,
|
41
38
|
},
|
42
39
|
voidIcon: {
|
43
40
|
type: String,
|
44
|
-
value:
|
41
|
+
value: icons_2.CheckmarkCircleVoid,
|
45
42
|
},
|
46
43
|
color: {
|
47
44
|
type: String,
|
package/lib/search/index.js
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
var component_1 = require("../common/component");
|
7
4
|
var version_1 = require("../common/version");
|
8
|
-
var
|
9
|
-
var
|
5
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
6
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
10
7
|
(0, component_1.SmartComponent)({
|
11
8
|
field: true,
|
12
9
|
classes: ['field-class', 'input-class', 'cancel-class'],
|
@@ -30,7 +27,7 @@ var Close_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Close"));
|
|
30
27
|
useRightIconSlot: Boolean,
|
31
28
|
leftIcon: {
|
32
29
|
type: String,
|
33
|
-
value:
|
30
|
+
value: icons_1.Search,
|
34
31
|
},
|
35
32
|
rightIcon: String,
|
36
33
|
placeholder: String,
|
@@ -59,7 +56,7 @@ var Close_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Close"));
|
|
59
56
|
},
|
60
57
|
clearIcon: {
|
61
58
|
type: String,
|
62
|
-
value:
|
59
|
+
value: icons_2.Close,
|
63
60
|
},
|
64
61
|
cursorSpacing: {
|
65
62
|
type: Number,
|
package/lib/stepper/index.js
CHANGED
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var component_1 = require("../common/component");
|
18
18
|
var validator_1 = require("../common/validator");
|
19
19
|
var ty_1 = __importDefault(require("../common/ty"));
|
20
|
-
var
|
21
|
-
var
|
20
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
21
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
22
22
|
var LONG_PRESS_START_TIME = 600;
|
23
23
|
var LONG_PRESS_INTERVAL = 200;
|
24
24
|
// add num and avoid float number
|
@@ -83,8 +83,8 @@ function equal(value1, value2) {
|
|
83
83
|
},
|
84
84
|
data: {
|
85
85
|
currentValue: '',
|
86
|
-
Minus:
|
87
|
-
Plus:
|
86
|
+
Minus: icons_1.Minus,
|
87
|
+
Plus: icons_2.Plus,
|
88
88
|
},
|
89
89
|
watch: {
|
90
90
|
value: function () {
|
package/lib/steps/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var component_1 = require("../common/component");
|
8
5
|
var color_1 = require("../common/color");
|
9
6
|
(0, component_1.SmartComponent)({
|
@@ -26,7 +23,7 @@ var color_1 = require("../common/color");
|
|
26
23
|
},
|
27
24
|
activeIcon: {
|
28
25
|
type: String,
|
29
|
-
value:
|
26
|
+
value: icons_1.Checkmark,
|
30
27
|
},
|
31
28
|
inactiveIcon: String,
|
32
29
|
},
|
package/lib/tag/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var component_1 = require("../common/component");
|
8
5
|
(0, component_1.SmartComponent)({
|
9
6
|
props: {
|
@@ -23,7 +20,7 @@ var component_1 = require("../common/component");
|
|
23
20
|
closeable: Boolean,
|
24
21
|
},
|
25
22
|
data: {
|
26
|
-
crossIcon:
|
23
|
+
crossIcon: icons_1.Xmark,
|
27
24
|
closeColor: '#fff',
|
28
25
|
},
|
29
26
|
methods: {
|
package/lib/toast/icons.js
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.Error = exports.Alarm = exports.Success = void 0;
|
7
|
-
var
|
8
|
-
var
|
9
|
-
var
|
10
|
-
exports.Success =
|
11
|
-
exports.Alarm =
|
12
|
-
exports.Error =
|
4
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
5
|
+
var icons_2 = require("@tuya-miniapp/icons");
|
6
|
+
var icons_3 = require("@tuya-miniapp/icons");
|
7
|
+
exports.Success = icons_2.CheckmarkCircle;
|
8
|
+
exports.Alarm = icons_1.Warning;
|
9
|
+
exports.Error = icons_3.Cancel;
|
package/lib/tree-select/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var icons_1 = require("@tuya-miniapp/icons");
|
7
4
|
var component_1 = require("../common/component");
|
8
5
|
(0, component_1.SmartComponent)({
|
9
6
|
classes: [
|
@@ -35,7 +32,7 @@ var component_1 = require("../common/component");
|
|
35
32
|
},
|
36
33
|
selectedIcon: {
|
37
34
|
type: String,
|
38
|
-
value:
|
35
|
+
value: icons_1.Check,
|
39
36
|
},
|
40
37
|
},
|
41
38
|
data: {
|