@tuya-miniapp/smart-ui 1.3.1-beta-3 → 1.3.1-beta-5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/action-sheet/demo/index.d.ts +1 -0
- package/dist/action-sheet/demo/index.js +105 -0
- package/dist/action-sheet/index.js +2 -2
- package/dist/area/demo/index.d.ts +1 -0
- package/dist/area/demo/index.js +41 -0
- package/dist/area/index.js +4 -5
- package/dist/battery/demo/index.d.ts +1 -0
- package/dist/battery/demo/index.js +2 -0
- package/dist/battery/index.js +1 -3
- package/dist/bottom-sheet/demo/index.d.ts +1 -0
- package/dist/bottom-sheet/demo/index.js +24 -0
- package/dist/bottom-sheet/index.css +1 -1
- package/dist/bottom-sheet/index.js +3 -2
- package/dist/bottom-sheet/index.wxml +3 -1
- package/dist/bottom-sheet/index.wxss +1 -1
- package/dist/button/demo/index.d.ts +1 -0
- package/dist/button/demo/index.js +9 -0
- package/dist/button/index.css +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button/index.wxss +1 -1
- package/dist/calendar/components/header/index.css +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header/index.wxml +3 -3
- package/dist/calendar/components/header/index.wxss +1 -1
- package/dist/calendar/components/month/index.css +1 -1
- package/dist/calendar/components/month/index.js +3 -5
- package/dist/calendar/components/month/index.wxs +1 -4
- package/dist/calendar/components/month/index.wxss +1 -1
- package/dist/calendar/components/month-list/index.css +1 -1
- package/dist/calendar/components/month-list/index.js +4 -17
- package/dist/calendar/components/month-list/index.wxml +15 -13
- package/dist/calendar/components/month-list/index.wxss +1 -1
- package/dist/calendar/components/year-list/index.css +1 -1
- package/dist/calendar/components/year-list/index.js +3 -3
- package/dist/calendar/components/year-list/index.wxml +1 -1
- package/dist/calendar/components/year-list/index.wxss +1 -1
- package/dist/calendar/demo/index.d.ts +1 -0
- package/dist/calendar/demo/index.js +103 -0
- package/dist/calendar/index.js +9 -14
- package/dist/calendar/index.wxs +4 -7
- package/dist/calendar/utils.js +2 -4
- package/dist/cascader/demo/index.d.ts +1 -0
- package/dist/cascader/demo/index.js +191 -0
- package/dist/cascader/index.js +3 -3
- package/dist/cell/demo/index.d.ts +1 -0
- package/dist/cell/demo/index.js +14 -0
- package/dist/cell/index.js +1 -7
- package/dist/checkbox/demo/index.d.ts +1 -0
- package/dist/checkbox/demo/index.js +34 -0
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox-group/index.js +1 -1
- package/dist/circle/demo/index.d.ts +1 -0
- package/dist/circle/demo/index.js +19 -0
- package/dist/col/demo/index.d.ts +1 -0
- package/dist/col/demo/index.js +4 -0
- package/dist/collapse/demo/index.d.ts +1 -0
- package/dist/collapse/demo/index.js +36 -0
- package/dist/collapse/index.js +1 -1
- package/dist/collapse-item/animate.js +1 -1
- package/dist/common/component.js +1 -1
- package/dist/common/utils.js +3 -3
- package/dist/config-provider/demo/index.d.ts +1 -0
- package/dist/config-provider/demo/index.js +22 -0
- package/dist/count-down/demo/index.d.ts +1 -0
- package/dist/count-down/demo/index.js +33 -0
- package/dist/custom-keyboard/demo/index.d.ts +1 -0
- package/dist/custom-keyboard/demo/index.js +17 -0
- package/dist/custom-keyboard/index.js +1 -3
- package/dist/datetime-picker/demo/index.d.ts +1 -0
- package/dist/datetime-picker/demo/index.js +63 -0
- package/dist/datetime-picker/index.js +4 -5
- package/dist/dialog/demo/index.d.ts +1 -0
- package/dist/dialog/demo/index.js +134 -0
- package/dist/dialog/dialog.js +3 -5
- package/dist/dialog/index.js +1 -1
- package/dist/divider/demo/index.d.ts +1 -0
- package/dist/divider/demo/index.js +4 -0
- package/dist/dropdown-item/index.js +4 -4
- package/dist/dropdown-item/index.wxml +1 -7
- package/dist/dropdown-menu/demo/index.d.ts +1 -0
- package/dist/dropdown-menu/demo/index.js +47 -0
- package/dist/dropdown-menu/index.js +8 -10
- package/dist/empty/demo/index.d.ts +1 -0
- package/dist/empty/demo/index.js +13 -0
- package/dist/empty/index.css +1 -1
- package/dist/empty/index.wxs +1 -1
- package/dist/empty/index.wxss +1 -1
- package/dist/field/demo/index.d.ts +1 -0
- package/dist/field/demo/index.js +21 -0
- package/dist/goods-action/demo/index.d.ts +1 -0
- package/dist/goods-action/demo/index.js +12 -0
- package/dist/goods-action/index.css +1 -1
- package/dist/goods-action/index.js +1 -1
- package/dist/goods-action/index.wxss +1 -1
- package/dist/goods-action-button/index.css +1 -1
- package/dist/goods-action-button/index.wxss +1 -1
- package/dist/grid/demo/index.d.ts +1 -0
- package/dist/grid/demo/index.js +9 -0
- package/dist/grid/index.js +1 -1
- package/dist/grid-item/index.js +1 -1
- package/dist/icon/demo/index.d.ts +1 -0
- package/dist/icon/demo/index.js +26 -0
- package/dist/image/demo/index.d.ts +1 -0
- package/dist/image/demo/index.js +15 -0
- package/dist/index-anchor/index.js +1 -1
- package/dist/index-bar/demo/index.d.ts +1 -0
- package/dist/index-bar/demo/index.js +21 -0
- package/dist/index-bar/index.js +9 -16
- package/dist/loading/demo/index.d.ts +1 -0
- package/dist/loading/demo/index.js +4 -0
- package/dist/loading/index.js +25 -1
- package/dist/loading/index.wxml +2 -2
- package/dist/loading/index.wxs +6 -21
- package/dist/mixins/basic.js +2 -2
- package/dist/mixins/link.js +1 -2
- package/dist/mixins/page-scroll.js +1 -1
- package/dist/mixins/touch.js +1 -2
- package/dist/mixins/transition.js +1 -1
- package/dist/nav-bar/demo/index.d.ts +1 -0
- package/dist/nav-bar/demo/index.js +26 -0
- package/dist/nav-bar/index.css +1 -1
- package/dist/nav-bar/index.js +1 -1
- package/dist/nav-bar/index.wxml +1 -1
- package/dist/nav-bar/index.wxss +1 -1
- package/dist/normal-slider/demo/index.d.ts +1 -0
- package/dist/normal-slider/demo/index.js +19 -0
- package/dist/notice-bar/demo/index.d.ts +1 -0
- package/dist/notice-bar/demo/index.js +11 -0
- package/dist/notice-bar/index.js +3 -6
- package/dist/notice-bar/index.wxml +1 -5
- package/dist/notify/demo/index.d.ts +1 -0
- package/dist/notify/demo/index.js +45 -0
- package/dist/overlay/demo/index.d.ts +1 -0
- package/dist/overlay/demo/index.js +22 -0
- package/dist/picker/demo/index.d.ts +1 -0
- package/dist/picker/demo/index.js +76 -0
- package/dist/picker/index.css +1 -1
- package/dist/picker/index.js +2 -2
- package/dist/picker/index.wxml +1 -0
- package/dist/picker/index.wxss +1 -1
- package/dist/picker-column/index.js +3 -8
- package/dist/popup/demo/index.d.ts +1 -0
- package/dist/popup/demo/index.js +79 -0
- package/dist/progress/demo/index.d.ts +1 -0
- package/dist/progress/demo/index.js +4 -0
- package/dist/progress/index.js +1 -4
- package/dist/radio/demo/index.d.ts +1 -0
- package/dist/radio/demo/index.js +31 -0
- package/dist/radio/index.js +2 -2
- package/dist/radio-group/index.js +1 -1
- package/dist/rate/demo/index.d.ts +1 -0
- package/dist/rate/demo/index.js +25 -0
- package/dist/rate/index.js +2 -2
- package/dist/row/index.js +1 -1
- package/dist/search/demo/index.d.ts +1 -0
- package/dist/search/demo/index.js +43 -0
- package/dist/sidebar/demo/index.d.ts +1 -0
- package/dist/sidebar/demo/index.js +9 -0
- package/dist/skeleton/demo/index.d.ts +1 -0
- package/dist/skeleton/demo/index.js +11 -0
- package/dist/slider/demo/index.d.ts +1 -0
- package/dist/slider/demo/index.js +19 -0
- package/dist/slider/index.js +5 -7
- package/dist/stepper/demo/index.d.ts +1 -0
- package/dist/stepper/demo/index.js +19 -0
- package/dist/steps/demo/index.d.ts +1 -0
- package/dist/steps/demo/index.js +42 -0
- package/dist/sticky/demo/index.d.ts +1 -0
- package/dist/sticky/demo/index.js +26 -0
- package/dist/sticky/index.js +2 -2
- package/dist/swipe-cell/demo/index.d.ts +1 -0
- package/dist/swipe-cell/demo/index.js +45 -0
- package/dist/swipe-cell/index.js +3 -5
- package/dist/switch/demo/index.d.ts +1 -0
- package/dist/switch/demo/index.js +29 -0
- package/dist/switch/index.css +1 -1
- package/dist/switch/index.wxss +1 -1
- package/dist/tab/demo/index.d.ts +1 -0
- package/dist/tab/demo/index.js +55 -0
- package/dist/tabbar/demo/index.d.ts +1 -0
- package/dist/tabbar/demo/index.js +34 -0
- package/dist/tabbar/index.js +1 -1
- package/dist/tabs/index.js +7 -25
- package/dist/tag/demo/index.d.ts +1 -0
- package/dist/tag/demo/index.js +16 -0
- package/dist/tag/index.css +1 -1
- package/dist/tag/index.wxss +1 -1
- package/dist/toast/demo/index.d.ts +1 -0
- package/dist/toast/demo/index.js +67 -0
- package/dist/toast/toast.js +3 -5
- package/dist/transition/demo/index.d.ts +1 -0
- package/dist/transition/demo/index.js +67 -0
- package/dist/tree-select/demo/index.d.ts +1 -0
- package/dist/tree-select/demo/index.js +113 -0
- package/dist/tree-select/index.js +1 -1
- package/lib/action-sheet/demo/index.d.ts +1 -0
- package/lib/action-sheet/demo/index.js +119 -0
- package/lib/action-sheet/index.js +2 -2
- package/lib/area/demo/index.d.ts +1 -0
- package/lib/area/demo/index.js +47 -0
- package/lib/area/index.js +1 -2
- package/lib/battery/demo/index.d.ts +1 -0
- package/lib/battery/demo/index.js +4 -0
- package/lib/battery/index.js +1 -3
- package/lib/bottom-sheet/demo/index.d.ts +1 -0
- package/lib/bottom-sheet/demo/index.js +27 -0
- package/lib/bottom-sheet/index.css +1 -1
- package/lib/bottom-sheet/index.js +3 -2
- package/lib/bottom-sheet/index.wxml +3 -1
- package/lib/bottom-sheet/index.wxss +1 -1
- package/lib/button/demo/index.d.ts +1 -0
- package/lib/button/demo/index.js +14 -0
- package/lib/button/index.css +1 -1
- package/lib/button/index.wxss +1 -1
- package/lib/calendar/components/header/index.css +1 -1
- package/lib/calendar/components/header/index.wxml +3 -3
- package/lib/calendar/components/header/index.wxss +1 -1
- package/lib/calendar/components/month/index.css +1 -1
- package/lib/calendar/components/month/index.js +2 -6
- package/lib/calendar/components/month/index.wxs +1 -4
- package/lib/calendar/components/month/index.wxss +1 -1
- package/lib/calendar/components/month-list/index.css +1 -1
- package/lib/calendar/components/month-list/index.js +3 -16
- package/lib/calendar/components/month-list/index.wxml +15 -13
- package/lib/calendar/components/month-list/index.wxss +1 -1
- package/lib/calendar/components/year-list/index.css +1 -1
- package/lib/calendar/components/year-list/index.js +1 -1
- package/lib/calendar/components/year-list/index.wxml +1 -1
- package/lib/calendar/components/year-list/index.wxss +1 -1
- package/lib/calendar/demo/index.d.ts +1 -0
- package/lib/calendar/demo/index.js +105 -0
- package/lib/calendar/index.js +7 -14
- package/lib/calendar/index.wxs +4 -7
- package/lib/calendar/utils.js +1 -3
- package/lib/cascader/demo/index.d.ts +1 -0
- package/lib/cascader/demo/index.js +197 -0
- package/lib/cell/demo/index.d.ts +1 -0
- package/lib/cell/demo/index.js +39 -0
- package/lib/cell/index.js +1 -7
- package/lib/checkbox/demo/index.d.ts +1 -0
- package/lib/checkbox/demo/index.js +38 -0
- package/lib/checkbox/index.js +2 -2
- package/lib/circle/demo/index.d.ts +1 -0
- package/lib/circle/demo/index.js +21 -0
- package/lib/col/demo/index.d.ts +1 -0
- package/lib/col/demo/index.js +6 -0
- package/lib/collapse/demo/index.d.ts +1 -0
- package/lib/collapse/demo/index.js +42 -0
- package/lib/config-provider/demo/index.d.ts +1 -0
- package/lib/config-provider/demo/index.js +24 -0
- package/lib/count-down/demo/index.d.ts +1 -0
- package/lib/count-down/demo/index.js +38 -0
- package/lib/custom-keyboard/demo/index.d.ts +1 -0
- package/lib/custom-keyboard/demo/index.js +19 -0
- package/lib/custom-keyboard/index.js +1 -3
- package/lib/datetime-picker/demo/index.d.ts +1 -0
- package/lib/datetime-picker/demo/index.js +68 -0
- package/lib/datetime-picker/index.js +4 -3
- package/lib/dialog/demo/index.d.ts +1 -0
- package/lib/dialog/demo/index.js +144 -0
- package/lib/dialog/dialog.js +1 -3
- package/lib/divider/demo/index.d.ts +1 -0
- package/lib/divider/demo/index.js +6 -0
- package/lib/dropdown-item/index.js +2 -2
- package/lib/dropdown-item/index.wxml +1 -7
- package/lib/dropdown-menu/demo/index.d.ts +1 -0
- package/lib/dropdown-menu/demo/index.js +52 -0
- package/lib/dropdown-menu/index.js +2 -4
- package/lib/empty/demo/index.d.ts +1 -0
- package/lib/empty/demo/index.js +15 -0
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.wxs +1 -1
- package/lib/empty/index.wxss +1 -1
- package/lib/field/demo/index.d.ts +1 -0
- package/lib/field/demo/index.js +23 -0
- package/lib/goods-action/demo/index.d.ts +1 -0
- package/lib/goods-action/demo/index.js +17 -0
- package/lib/goods-action/index.css +1 -1
- package/lib/goods-action/index.wxss +1 -1
- package/lib/goods-action-button/index.css +1 -1
- package/lib/goods-action-button/index.wxss +1 -1
- package/lib/grid/demo/index.d.ts +1 -0
- package/lib/grid/demo/index.js +11 -0
- package/lib/icon/demo/index.d.ts +1 -0
- package/lib/icon/demo/index.js +54 -0
- package/lib/image/demo/index.d.ts +1 -0
- package/lib/image/demo/index.js +17 -0
- package/lib/index-bar/demo/index.d.ts +1 -0
- package/lib/index-bar/demo/index.js +23 -0
- package/lib/index-bar/index.js +3 -10
- package/lib/loading/demo/index.d.ts +1 -0
- package/lib/loading/demo/index.js +6 -0
- package/lib/loading/index.js +27 -1
- package/lib/loading/index.wxml +2 -2
- package/lib/loading/index.wxs +6 -21
- package/lib/mixins/link.js +1 -2
- package/lib/mixins/touch.js +1 -2
- package/lib/nav-bar/demo/index.d.ts +1 -0
- package/lib/nav-bar/demo/index.js +31 -0
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.wxml +1 -1
- package/lib/nav-bar/index.wxss +1 -1
- package/lib/normal-slider/demo/index.d.ts +1 -0
- package/lib/normal-slider/demo/index.js +21 -0
- package/lib/notice-bar/demo/index.d.ts +1 -0
- package/lib/notice-bar/demo/index.js +16 -0
- package/lib/notice-bar/index.js +2 -5
- package/lib/notice-bar/index.wxml +1 -5
- package/lib/notify/demo/index.d.ts +1 -0
- package/lib/notify/demo/index.js +50 -0
- package/lib/overlay/demo/index.d.ts +1 -0
- package/lib/overlay/demo/index.js +24 -0
- package/lib/picker/demo/index.d.ts +1 -0
- package/lib/picker/demo/index.js +82 -0
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +1 -3
- package/lib/picker/index.wxml +1 -0
- package/lib/picker/index.wxss +1 -1
- package/lib/picker-column/index.js +2 -7
- package/lib/popup/demo/index.d.ts +1 -0
- package/lib/popup/demo/index.js +85 -0
- package/lib/progress/demo/index.d.ts +1 -0
- package/lib/progress/demo/index.js +6 -0
- package/lib/progress/index.js +1 -4
- package/lib/radio/demo/index.d.ts +1 -0
- package/lib/radio/demo/index.js +34 -0
- package/lib/radio/index.js +2 -2
- package/lib/rate/demo/index.d.ts +1 -0
- package/lib/rate/demo/index.js +30 -0
- package/lib/search/demo/index.d.ts +1 -0
- package/lib/search/demo/index.js +48 -0
- package/lib/sidebar/demo/index.d.ts +1 -0
- package/lib/sidebar/demo/index.js +14 -0
- package/lib/skeleton/demo/index.d.ts +1 -0
- package/lib/skeleton/demo/index.js +14 -0
- package/lib/slider/demo/index.d.ts +1 -0
- package/lib/slider/demo/index.js +21 -0
- package/lib/slider/index.js +1 -3
- package/lib/stepper/demo/index.d.ts +1 -0
- package/lib/stepper/demo/index.js +25 -0
- package/lib/steps/demo/index.d.ts +1 -0
- package/lib/steps/demo/index.js +47 -0
- package/lib/sticky/demo/index.d.ts +1 -0
- package/lib/sticky/demo/index.js +30 -0
- package/lib/sticky/index.js +3 -1
- package/lib/swipe-cell/demo/index.d.ts +1 -0
- package/lib/swipe-cell/demo/index.js +50 -0
- package/lib/swipe-cell/index.js +1 -3
- package/lib/switch/demo/index.d.ts +1 -0
- package/lib/switch/demo/index.js +37 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.wxss +1 -1
- package/lib/tab/demo/index.d.ts +1 -0
- package/lib/tab/demo/index.js +57 -0
- package/lib/tabbar/demo/index.d.ts +1 -0
- package/lib/tabbar/demo/index.js +41 -0
- package/lib/tabs/index.js +6 -24
- package/lib/tag/demo/index.d.ts +1 -0
- package/lib/tag/demo/index.js +19 -0
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.wxss +1 -1
- package/lib/toast/demo/index.d.ts +1 -0
- package/lib/toast/demo/index.js +74 -0
- package/lib/toast/toast.js +1 -3
- package/lib/transition/demo/index.d.ts +1 -0
- package/lib/transition/demo/index.js +71 -0
- package/lib/tree-select/demo/index.d.ts +1 -0
- package/lib/tree-select/demo/index.js +130 -0
- package/lib/tree-select/index.js +2 -2
- package/package.json +2 -2
@@ -32,7 +32,7 @@ function useAnimation(context, expanded, mounted, height) {
|
|
32
32
|
}
|
33
33
|
export function setContentAnimate(context, expanded, mounted) {
|
34
34
|
getRect(context, '.smart-collapse-item__content')
|
35
|
-
.then(
|
35
|
+
.then(rect => rect.height)
|
36
36
|
.then((height) => {
|
37
37
|
useAnimation(context, expanded, mounted, height);
|
38
38
|
});
|
package/dist/common/component.js
CHANGED
package/dist/common/utils.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { isDef, isNumber, isPlainObject, isPromise } from './validator';
|
2
|
-
import { canIUseGroupSetData, canIUseNextTick, getSystemInfoSync
|
2
|
+
import { canIUseGroupSetData, canIUseNextTick, getSystemInfoSync } from './version';
|
3
3
|
export { isDef } from './validator';
|
4
4
|
export { getSystemInfoSync } from './version';
|
5
5
|
export function range(num, min, max) {
|
@@ -39,7 +39,7 @@ export function pickExclude(obj, keys) {
|
|
39
39
|
}, {});
|
40
40
|
}
|
41
41
|
export function getRect(context, selector) {
|
42
|
-
return new Promise(
|
42
|
+
return new Promise(resolve => {
|
43
43
|
wx.createSelectorQuery()
|
44
44
|
.in(context)
|
45
45
|
.select(selector)
|
@@ -48,7 +48,7 @@ export function getRect(context, selector) {
|
|
48
48
|
});
|
49
49
|
}
|
50
50
|
export function getAllRect(context, selector) {
|
51
|
-
return new Promise(
|
51
|
+
return new Promise(resolve => {
|
52
52
|
wx.createSelectorQuery()
|
53
53
|
.in(context)
|
54
54
|
.selectAll(selector)
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { SmartComponent } from '../../common/component';
|
2
|
+
SmartComponent({
|
3
|
+
data: {
|
4
|
+
rate: 4,
|
5
|
+
slider: 50,
|
6
|
+
themeVars: {
|
7
|
+
buttonPrimaryBorderColor: 'red',
|
8
|
+
buttonPrimaryBackgroundColor: 'red',
|
9
|
+
},
|
10
|
+
},
|
11
|
+
methods: {
|
12
|
+
onChange(event) {
|
13
|
+
const { color } = event.currentTarget.dataset;
|
14
|
+
this.setData({
|
15
|
+
themeVars: {
|
16
|
+
buttonPrimaryBorderColor: color,
|
17
|
+
buttonPrimaryBackgroundColor: color,
|
18
|
+
},
|
19
|
+
});
|
20
|
+
},
|
21
|
+
},
|
22
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { SmartComponent } from '../../common/component';
|
2
|
+
import Toast from '../../toast/toast';
|
3
|
+
SmartComponent({
|
4
|
+
data: {
|
5
|
+
time: 30 * 60 * 60 * 1000,
|
6
|
+
timeData: {},
|
7
|
+
},
|
8
|
+
methods: {
|
9
|
+
onChange(e) {
|
10
|
+
this.setData({
|
11
|
+
timeData: e.detail,
|
12
|
+
});
|
13
|
+
},
|
14
|
+
start() {
|
15
|
+
const countDown = this.selectComponent('.control-count-down');
|
16
|
+
countDown.start();
|
17
|
+
},
|
18
|
+
pause() {
|
19
|
+
const countDown = this.selectComponent('.control-count-down');
|
20
|
+
countDown.pause();
|
21
|
+
},
|
22
|
+
reset() {
|
23
|
+
const countDown = this.selectComponent('.control-count-down');
|
24
|
+
countDown.reset();
|
25
|
+
},
|
26
|
+
finished() {
|
27
|
+
Toast({
|
28
|
+
context: this,
|
29
|
+
message: I18n.t('countdownEnded'),
|
30
|
+
});
|
31
|
+
},
|
32
|
+
},
|
33
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { SmartComponent } from '../../common/component';
|
2
|
+
SmartComponent({
|
3
|
+
data: {
|
4
|
+
value: '222',
|
5
|
+
},
|
6
|
+
methods: {
|
7
|
+
onChange(v) {
|
8
|
+
console.log('onChange value =====>', v.detail);
|
9
|
+
},
|
10
|
+
onConfirm(v) {
|
11
|
+
console.log('onConfirm value ====>', v.detail);
|
12
|
+
},
|
13
|
+
handleBtn() {
|
14
|
+
this.setData({ value: '1234' });
|
15
|
+
},
|
16
|
+
},
|
17
|
+
});
|
@@ -136,9 +136,7 @@ SmartComponent({
|
|
136
136
|
toSvgCssBackground(svgString) {
|
137
137
|
let res = svgString;
|
138
138
|
res = svgString
|
139
|
-
.replace('<svg', ~svgString.indexOf('xmlns')
|
140
|
-
? '<svg'
|
141
|
-
: '<svg xmlns="http://www.w3.org/2000/svg"')
|
139
|
+
.replace('<svg', ~svgString.indexOf('xmlns') ? '<svg' : '<svg xmlns="http://www.w3.org/2000/svg"')
|
142
140
|
.replace(/"/g, "'")
|
143
141
|
.replace(/%/g, '%25')
|
144
142
|
.replace(/#/g, '%23')
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { SmartComponent } from '../../common/component';
|
2
|
+
import Toast from '../../toast/toast';
|
3
|
+
SmartComponent({
|
4
|
+
data: {
|
5
|
+
minHour: 10,
|
6
|
+
maxHour: 20,
|
7
|
+
minDate: new Date(2018, 0, 1).getTime(),
|
8
|
+
maxDate: new Date(2019, 10, 1).getTime(),
|
9
|
+
currentDate1: new Date(2018, 2, 31).getTime(),
|
10
|
+
currentDate2: null,
|
11
|
+
currentDate3: new Date(2018, 0, 1),
|
12
|
+
currentDate4: '12:00',
|
13
|
+
loading: false,
|
14
|
+
formatter(type, value) {
|
15
|
+
if (type === 'year') {
|
16
|
+
return `${value}${I18n.t('year')}`;
|
17
|
+
}
|
18
|
+
if (type === 'month') {
|
19
|
+
return `${value}${I18n.t('month')}`;
|
20
|
+
}
|
21
|
+
return value;
|
22
|
+
},
|
23
|
+
filter(type, options) {
|
24
|
+
if (type === 'minute') {
|
25
|
+
return options.filter((option) => option % 5 === 0);
|
26
|
+
}
|
27
|
+
return options;
|
28
|
+
},
|
29
|
+
locale: {
|
30
|
+
year: I18n.t('year'),
|
31
|
+
month: I18n.t('month'),
|
32
|
+
day: I18n.t('sun'),
|
33
|
+
hour: I18n.t('time'),
|
34
|
+
minute: I18n.t('minute'),
|
35
|
+
second: I18n.t('second'),
|
36
|
+
},
|
37
|
+
},
|
38
|
+
methods: {
|
39
|
+
onInput(event) {
|
40
|
+
const { detail, currentTarget } = event;
|
41
|
+
const result = this.getResult(detail, currentTarget.dataset.type);
|
42
|
+
Toast({
|
43
|
+
context: this,
|
44
|
+
message: result,
|
45
|
+
});
|
46
|
+
},
|
47
|
+
getResult(time, type) {
|
48
|
+
const date = new Date(time);
|
49
|
+
switch (type) {
|
50
|
+
case 'datetime':
|
51
|
+
return date.toLocaleString();
|
52
|
+
case 'date':
|
53
|
+
return date.toLocaleDateString();
|
54
|
+
case 'year-month':
|
55
|
+
return `${date.getFullYear()}/${date.getMonth() + 1}`;
|
56
|
+
case 'time':
|
57
|
+
return time;
|
58
|
+
default:
|
59
|
+
return '';
|
60
|
+
}
|
61
|
+
},
|
62
|
+
},
|
63
|
+
});
|
@@ -100,8 +100,8 @@ SmartComponent({
|
|
100
100
|
},
|
101
101
|
updateColumns() {
|
102
102
|
const { formatter = defaultFormatter, locale } = this.data;
|
103
|
-
const results = this.getOriginColumns().map(
|
104
|
-
values: column.values.map(
|
103
|
+
const results = this.getOriginColumns().map(column => ({
|
104
|
+
values: column.values.map(value => formatter(column.type, value)),
|
105
105
|
unit: locale === null || locale === void 0 ? void 0 : locale[column.type],
|
106
106
|
}));
|
107
107
|
return this.set({ columns: results });
|
@@ -109,7 +109,7 @@ SmartComponent({
|
|
109
109
|
getOriginColumns() {
|
110
110
|
const { filter } = this.data;
|
111
111
|
const results = this.getRanges().map(({ type, range }) => {
|
112
|
-
let values = times(range[1] - range[0] + 1,
|
112
|
+
let values = times(range[1] - range[0] + 1, index => {
|
113
113
|
const value = range[0] + index;
|
114
114
|
return type === 'year' ? `${value}` : padZero(value);
|
115
115
|
});
|
@@ -234,8 +234,7 @@ SmartComponent({
|
|
234
234
|
const originColumns = this.getOriginColumns();
|
235
235
|
if (data.type === 'time') {
|
236
236
|
const indexes = picker.getIndexes();
|
237
|
-
value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1]
|
238
|
-
.values[indexes[1]]}`;
|
237
|
+
value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1].values[indexes[1]]}`;
|
239
238
|
}
|
240
239
|
else {
|
241
240
|
const indexes = picker.getIndexes();
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import { SmartComponent } from '../../common/component';
|
2
|
+
import Dialog from '../../dialog/dialog';
|
3
|
+
const message = 'Body';
|
4
|
+
SmartComponent({
|
5
|
+
data: {
|
6
|
+
show: false,
|
7
|
+
inputValue: '',
|
8
|
+
},
|
9
|
+
methods: {
|
10
|
+
showCustomDialog() {
|
11
|
+
this.setData({ show: true });
|
12
|
+
},
|
13
|
+
getUserInfo(event) {
|
14
|
+
console.log(event.detail);
|
15
|
+
},
|
16
|
+
onClickThemeAlert() {
|
17
|
+
console.log('=== click theme alert');
|
18
|
+
Dialog.alert({
|
19
|
+
context: this,
|
20
|
+
title: 'Title',
|
21
|
+
theme: 'round-button',
|
22
|
+
icon: false,
|
23
|
+
message,
|
24
|
+
confirmButtonText: I18n.t('confirm'),
|
25
|
+
cancelButtonText: I18n.t('cancel'),
|
26
|
+
});
|
27
|
+
},
|
28
|
+
onClickThemeAlert2() {
|
29
|
+
console.log('=== 222 click theme alert');
|
30
|
+
Dialog.alert({
|
31
|
+
context: this,
|
32
|
+
theme: 'round-button',
|
33
|
+
message,
|
34
|
+
confirmButtonText: I18n.t('confirm'),
|
35
|
+
cancelButtonText: I18n.t('cancel'),
|
36
|
+
});
|
37
|
+
},
|
38
|
+
onClickAlert() {
|
39
|
+
Dialog.alert({
|
40
|
+
context: this,
|
41
|
+
title: 'Title',
|
42
|
+
icon: false,
|
43
|
+
message,
|
44
|
+
confirmButtonText: I18n.t('confirm'),
|
45
|
+
cancelButtonText: I18n.t('cancel'),
|
46
|
+
});
|
47
|
+
},
|
48
|
+
onClickAlert2() {
|
49
|
+
Dialog.alert({
|
50
|
+
context: this,
|
51
|
+
message: 'Title',
|
52
|
+
confirmButtonText: I18n.t('confirm'),
|
53
|
+
cancelButtonText: I18n.t('cancel'),
|
54
|
+
});
|
55
|
+
},
|
56
|
+
onClickConfirm() {
|
57
|
+
Dialog.confirm({
|
58
|
+
context: this,
|
59
|
+
title: 'Title',
|
60
|
+
icon: false,
|
61
|
+
message,
|
62
|
+
cancelButtonText: 'Sub Action',
|
63
|
+
confirmButtonText: I18n.t('confirm'),
|
64
|
+
});
|
65
|
+
},
|
66
|
+
onClickConfirmIcon() {
|
67
|
+
Dialog.confirm({
|
68
|
+
context: this,
|
69
|
+
title: 'Title',
|
70
|
+
icon: true,
|
71
|
+
message,
|
72
|
+
cancelButtonText: 'Sub Action',
|
73
|
+
confirmButtonText: I18n.t('confirm'),
|
74
|
+
});
|
75
|
+
},
|
76
|
+
onClickInput() {
|
77
|
+
const beforeClose = (action, value) => new Promise((resolve) => {
|
78
|
+
setTimeout(() => {
|
79
|
+
if (action === 'confirm') {
|
80
|
+
// 不存在输入值则拦截确认操作
|
81
|
+
resolve(!!value);
|
82
|
+
}
|
83
|
+
else {
|
84
|
+
resolve(true);
|
85
|
+
}
|
86
|
+
}, 1000);
|
87
|
+
});
|
88
|
+
Dialog.input({
|
89
|
+
context: this,
|
90
|
+
title: 'Title',
|
91
|
+
value: this.data.inputValue,
|
92
|
+
cancelButtonText: 'Sub Action',
|
93
|
+
beforeClose,
|
94
|
+
confirmButtonText: I18n.t('confirm'),
|
95
|
+
})
|
96
|
+
.then((res) => {
|
97
|
+
var _a;
|
98
|
+
console.log('=== onConfirm', res);
|
99
|
+
const inputValue = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.inputValue;
|
100
|
+
this.setData({ inputValue });
|
101
|
+
})
|
102
|
+
.catch((res) => {
|
103
|
+
console.log('=== onCancel', res);
|
104
|
+
});
|
105
|
+
},
|
106
|
+
onClickAsyncClose() {
|
107
|
+
const beforeClose = (action) => new Promise((resolve) => {
|
108
|
+
setTimeout(() => {
|
109
|
+
if (action === 'confirm') {
|
110
|
+
resolve(true);
|
111
|
+
}
|
112
|
+
else {
|
113
|
+
// 拦截取消操作
|
114
|
+
resolve(false);
|
115
|
+
}
|
116
|
+
}, 1000);
|
117
|
+
});
|
118
|
+
Dialog.confirm({
|
119
|
+
context: this,
|
120
|
+
title: 'Title',
|
121
|
+
icon: false,
|
122
|
+
message,
|
123
|
+
beforeClose,
|
124
|
+
confirmButtonText: I18n.t('confirm'),
|
125
|
+
cancelButtonText: I18n.t('cancel'),
|
126
|
+
});
|
127
|
+
},
|
128
|
+
onClose() {
|
129
|
+
this.setData({
|
130
|
+
show: false,
|
131
|
+
});
|
132
|
+
},
|
133
|
+
},
|
134
|
+
});
|
package/dist/dialog/dialog.js
CHANGED
@@ -35,9 +35,7 @@ function getContext() {
|
|
35
35
|
const Dialog = (options) => {
|
36
36
|
options = Object.assign(Object.assign({}, currentOptions), options);
|
37
37
|
return new Promise((resolve, reject) => {
|
38
|
-
const context = (typeof options.context === 'function'
|
39
|
-
? options.context()
|
40
|
-
: options.context) || getContext();
|
38
|
+
const context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
|
41
39
|
const dialog = context.selectComponent(options.selector);
|
42
40
|
delete options.context;
|
43
41
|
delete options.selector;
|
@@ -63,13 +61,13 @@ Dialog.alert = (options) => Dialog(options);
|
|
63
61
|
Dialog.confirm = (options) => Dialog(Object.assign({ showCancelButton: true }, options));
|
64
62
|
Dialog.input = ((options) => Dialog(Object.assign({ showCancelButton: true }, options)));
|
65
63
|
Dialog.close = () => {
|
66
|
-
queue.forEach(
|
64
|
+
queue.forEach(dialog => {
|
67
65
|
dialog.close();
|
68
66
|
});
|
69
67
|
queue = [];
|
70
68
|
};
|
71
69
|
Dialog.stopLoading = () => {
|
72
|
-
queue.forEach(
|
70
|
+
queue.forEach(dialog => {
|
73
71
|
dialog.stopLoading();
|
74
72
|
});
|
75
73
|
};
|
package/dist/dialog/index.js
CHANGED
@@ -137,7 +137,7 @@ SmartComponent({
|
|
137
137
|
[`loading.${action}`]: true,
|
138
138
|
});
|
139
139
|
if (beforeClose) {
|
140
|
-
toPromise(beforeClose(action, this.data.inputValue)).then(
|
140
|
+
toPromise(beforeClose(action, this.data.inputValue)).then(value => {
|
141
141
|
if (value) {
|
142
142
|
this.close(action);
|
143
143
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useParent } from '../common/relation';
|
2
2
|
import { SmartComponent } from '../common/component';
|
3
|
-
import checkMarkIcon from '@tuya-miniapp/icons/dist/svg/
|
3
|
+
import checkMarkIcon from '@tuya-miniapp/icons/dist/svg/Check';
|
4
4
|
SmartComponent({
|
5
5
|
classes: ['item-title-class'],
|
6
6
|
field: true,
|
@@ -61,7 +61,7 @@ SmartComponent({
|
|
61
61
|
},
|
62
62
|
updateDataFromParent() {
|
63
63
|
if (this.parent) {
|
64
|
-
const { overlay, duration, activeColor, closeOnClickOverlay, direction, safeAreaTabBar
|
64
|
+
const { overlay, duration, activeColor, closeOnClickOverlay, direction, safeAreaTabBar } = this.parent.data;
|
65
65
|
this.setData({
|
66
66
|
overlay,
|
67
67
|
duration,
|
@@ -104,7 +104,7 @@ SmartComponent({
|
|
104
104
|
if (show === showPopup) {
|
105
105
|
return;
|
106
106
|
}
|
107
|
-
this.onBeforeToggle(show).then(
|
107
|
+
this.onBeforeToggle(show).then(status => {
|
108
108
|
var _a;
|
109
109
|
if (!status) {
|
110
110
|
return;
|
@@ -129,7 +129,7 @@ SmartComponent({
|
|
129
129
|
if (!useBeforeToggle) {
|
130
130
|
return Promise.resolve(true);
|
131
131
|
}
|
132
|
-
return new Promise(
|
132
|
+
return new Promise(resolve => {
|
133
133
|
this.$emit('before-toggle', {
|
134
134
|
status,
|
135
135
|
callback: (value) => resolve(value),
|
@@ -25,13 +25,7 @@
|
|
25
25
|
wx:for="{{ options }}"
|
26
26
|
wx:key="value"
|
27
27
|
data-option="{{ item }}"
|
28
|
-
class="{{ utils.bem(
|
29
|
-
'dropdown-item__option',
|
30
|
-
{
|
31
|
-
active: item.value === value,
|
32
|
-
first: direction === 'up' ? index === options.length-1 : !index,
|
33
|
-
up: direction === 'up'
|
34
|
-
} ) }}"
|
28
|
+
class="{{ utils.bem('dropdown-item__option', { active: item.value === value, first: direction === 'up' ? index === options.length-1 : !index, up: direction === 'up' }) }}"
|
35
29
|
clickable
|
36
30
|
icon="{{ item.icon }}"
|
37
31
|
bind:tap="onOptionTap"
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { SmartComponent } from '../../common/component';
|
2
|
+
SmartComponent({
|
3
|
+
data: {
|
4
|
+
switchTitle1: I18n.t('freeShipping'),
|
5
|
+
switchTitle2: I18n.t('groupBuy'),
|
6
|
+
itemTitle: I18n.t('filter'),
|
7
|
+
option1: [
|
8
|
+
{ text: I18n.t('allProducts'), value: 0 },
|
9
|
+
{ text: I18n.t('newProduct'), value: 1 },
|
10
|
+
{ text: I18n.t('promotionalItems'), value: 2 },
|
11
|
+
],
|
12
|
+
option2: [
|
13
|
+
{ text: I18n.t('defaultSorting'), value: 'a' },
|
14
|
+
{ text: I18n.t('sortByPositiveReviews'), value: 'b' },
|
15
|
+
{ text: I18n.t('sortBySales'), value: 'c' },
|
16
|
+
],
|
17
|
+
switch1: true,
|
18
|
+
switch2: false,
|
19
|
+
value1: 0,
|
20
|
+
value2: 'a',
|
21
|
+
},
|
22
|
+
methods: {
|
23
|
+
onConfirm() {
|
24
|
+
this.selectComponent('#item').toggle();
|
25
|
+
},
|
26
|
+
onSwitch1Change({ detail }) {
|
27
|
+
this.setData({ switch1: detail });
|
28
|
+
},
|
29
|
+
onSwitch2Change({ detail }) {
|
30
|
+
this.setData({ switch2: detail });
|
31
|
+
},
|
32
|
+
onBeforeChange({ detail: { status, callback } }) {
|
33
|
+
wx.showModal({
|
34
|
+
title: I18n.t('asynchronousOnOff'),
|
35
|
+
content: `${I18n.t('areYouSureYouWantTo')}${status ? I18n.t('open') : I18n.t('close')}${I18n.t('dropdownMenu')}`,
|
36
|
+
success: (res) => {
|
37
|
+
if (res.confirm) {
|
38
|
+
callback(true);
|
39
|
+
}
|
40
|
+
else if (res.cancel) {
|
41
|
+
callback(false);
|
42
|
+
}
|
43
|
+
},
|
44
|
+
});
|
45
|
+
},
|
46
|
+
},
|
47
|
+
});
|
@@ -50,7 +50,7 @@ SmartComponent({
|
|
50
50
|
type: String,
|
51
51
|
value: '#CCCCCC',
|
52
52
|
observer: 'updateChildrenData',
|
53
|
-
}
|
53
|
+
},
|
54
54
|
},
|
55
55
|
data: {
|
56
56
|
triangleDown,
|
@@ -70,16 +70,16 @@ SmartComponent({
|
|
70
70
|
ARRAY.push(this);
|
71
71
|
},
|
72
72
|
destroyed() {
|
73
|
-
ARRAY = ARRAY.filter(
|
73
|
+
ARRAY = ARRAY.filter(item => item !== this);
|
74
74
|
},
|
75
75
|
methods: {
|
76
76
|
updateItemListData() {
|
77
77
|
this.setData({
|
78
|
-
itemListData: this.children.map(
|
78
|
+
itemListData: this.children.map(child => child.data),
|
79
79
|
});
|
80
80
|
},
|
81
81
|
updateChildrenData() {
|
82
|
-
this.children.forEach(
|
82
|
+
this.children.forEach(child => {
|
83
83
|
child.updateDataFromParent();
|
84
84
|
});
|
85
85
|
},
|
@@ -95,13 +95,13 @@ SmartComponent({
|
|
95
95
|
});
|
96
96
|
},
|
97
97
|
close() {
|
98
|
-
this.children.forEach(
|
98
|
+
this.children.forEach(child => {
|
99
99
|
child.toggle(false, { immediate: true });
|
100
100
|
});
|
101
101
|
},
|
102
102
|
getChildWrapperStyle() {
|
103
103
|
const { zIndex, direction } = this.data;
|
104
|
-
return getRect(this, '.smart-dropdown-menu').then(
|
104
|
+
return getRect(this, '.smart-dropdown-menu').then(rect => {
|
105
105
|
const { top = 0, bottom = 0 } = rect;
|
106
106
|
const offset = direction === 'down' ? bottom : this.windowHeight - top;
|
107
107
|
let wrapperStyle = `z-index: ${zIndex};`;
|
@@ -118,10 +118,8 @@ SmartComponent({
|
|
118
118
|
const { index } = event.currentTarget.dataset;
|
119
119
|
const child = this.children[index];
|
120
120
|
if (!child.data.disabled) {
|
121
|
-
ARRAY.forEach(
|
122
|
-
if (menuItem &&
|
123
|
-
menuItem.data.closeOnClickOutside &&
|
124
|
-
menuItem !== this) {
|
121
|
+
ARRAY.forEach(menuItem => {
|
122
|
+
if (menuItem && menuItem.data.closeOnClickOutside && menuItem !== this) {
|
125
123
|
menuItem.close();
|
126
124
|
}
|
127
125
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/empty/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
|
1
|
+
@import '../common/index.css';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);font-weight:var(--empty-title-font-weight,normal);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);font-weight:var(--empty-description-font-weight,normal);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
|
package/dist/empty/index.wxs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
|
2
|
+
var defaultIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFoCAMAAABNO5HnAAAAAXNSR0IArs4c6QAAADlQTFRFR3BMqKionZ2dhISEkJCQjo6OioqK1NTUjY2NjY2NgoKCkJCQubm5jIyMiIiIoqKiqqqqfn5+e3t7k4/mfgAAABN0Uk5TAGZgBQ4JMmgWIVJcaFJrPTQCUrfY0bAAAA6PSURBVHja7NlLautAFARQEcsgDUyV97/ZB09xbDlxMpBI4nBOow/qWXHpnwYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4Y45tHpkP8tnJeUyS04MrmUS0jzHJp1EfZbSHQ5LkJZ8Q0h7mXLw8uDJLabtDvlYxbXeZCR8xH+6kUdLfIjfm3GhNhzsac3UeptVo0bwZJbXRtB4fblO/rEesO3ZwvgtzNVhU0Ptp3vQ+6NlsuJ8+ruizoL8h6FVFV9CbNenSlqCb5ctS0UuPit5B7sfoS7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HgTUs1zdjDqi5bN9QPZbzUwQfotMzar3KVOXoQ1VEwDkkhDTsAHkkBzQ+ivPYJD2FdCL7Q+WjNtBnUxlw+VBVD9rYlSerS8NFDdTloytIR86ZANKBE+4A+JHffzzpsTyrmqVSQUcNzh+n4mDQePCzFWpA+efko79+PJbzydVghBbDR6o6NKDLd1CzP9W8B+mCnvW0FWro0Gwf99VHhkeZ5NRhwZFQPiU8ivJdVHHhYbhesMcbq6RfdURMJ4oeOsDSRaLooyIFx5OUDP0kFcnQb2HpIslbdxk64fPXmAz9JI3J0KcHnfQ3Jc6n5AyN6fjjkZSUlJSUlJSUlJSUlJSU9GL9B+ab4VEvVpgKAAAAAElFTkSuQmCC";
|
3
3
|
|
4
4
|
function imageUrl(image) {
|
5
5
|
if (image === 'default') {
|
package/dist/empty/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
|
1
|
+
@import '../common/index.wxss';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);font-weight:var(--empty-title-font-weight,normal);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);font-weight:var(--empty-description-font-weight,normal);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|