@tuya-miniapp/smart-ui 1.3.1-beta-2 → 1.3.1-beta-4
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 +101 -0
- package/dist/action-sheet/index.js +1 -1
- 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.js +1 -1
- package/dist/calendar/calendar.wxml +13 -8
- package/dist/calendar/components/header/index.css +1 -1
- package/dist/calendar/components/header/index.js +7 -3
- 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 +26 -41
- package/dist/calendar/components/month-list/index.wxml +8 -2
- 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 +17 -4
- package/dist/calendar/components/year-list/index.wxml +8 -2
- 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 +32 -39
- package/dist/calendar/index.wxs +5 -8
- package/dist/calendar/utils.d.ts +4 -0
- package/dist/calendar/utils.js +30 -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-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 +3 -3
- 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.js +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.css +1 -1
- package/dist/notice-bar/index.js +3 -6
- package/dist/notice-bar/index.wxml +1 -5
- package/dist/notice-bar/index.wxss +1 -1
- 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-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/search/index.css +1 -1
- package/dist/search/index.js +1 -5
- package/dist/search/index.wxml +1 -1
- package/dist/search/index.wxss +1 -1
- 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.css +1 -1
- package/dist/tabs/index.js +7 -25
- package/dist/tabs/index.wxss +1 -1
- 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 +5 -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/wxs/style.wxs +0 -7
- package/lib/action-sheet/demo/index.d.ts +1 -0
- package/lib/action-sheet/demo/index.js +115 -0
- 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/calendar/calendar.wxml +13 -8
- package/lib/calendar/components/header/index.css +1 -1
- package/lib/calendar/components/header/index.js +6 -2
- 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 +25 -40
- package/lib/calendar/components/month-list/index.wxml +8 -2
- 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 +15 -2
- package/lib/calendar/components/year-list/index.wxml +8 -2
- 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 +29 -38
- package/lib/calendar/index.wxs +5 -8
- package/lib/calendar/utils.d.ts +4 -0
- package/lib/calendar/utils.js +31 -4
- 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/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.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/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.css +1 -1
- package/lib/notice-bar/index.js +2 -5
- package/lib/notice-bar/index.wxml +1 -5
- package/lib/notice-bar/index.wxss +1 -1
- 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/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/search/index.css +1 -1
- package/lib/search/index.js +1 -5
- package/lib/search/index.wxml +1 -1
- package/lib/search/index.wxss +1 -1
- 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.css +1 -1
- package/lib/tabs/index.js +6 -24
- package/lib/tabs/index.wxss +1 -1
- 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 +3 -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/wxs/style.wxs +0 -7
- package/package.json +15 -3
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
var icons = __importStar(require("@tuya-miniapp/icons"));
|
27
|
+
var component_1 = require("../../common/component");
|
28
|
+
(0, component_1.SmartComponent)({
|
29
|
+
data: {
|
30
|
+
sunMaxFill: icons.Sun,
|
31
|
+
checkMark: icons.Checkmark,
|
32
|
+
},
|
33
|
+
methods: {
|
34
|
+
onNavTo: function () {
|
35
|
+
// @ts-ignore
|
36
|
+
ty.openInnerH5({ url: 'https://www.tuya.com', title: 'Tuya' });
|
37
|
+
},
|
38
|
+
},
|
39
|
+
});
|
package/lib/cell/index.js
CHANGED
@@ -10,13 +10,7 @@ var Right_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Right"));
|
|
10
10
|
var link_1 = require("../mixins/link");
|
11
11
|
var component_1 = require("../common/component");
|
12
12
|
(0, component_1.SmartComponent)({
|
13
|
-
classes: [
|
14
|
-
'title-class',
|
15
|
-
'label-class',
|
16
|
-
'value-class',
|
17
|
-
'right-icon-class',
|
18
|
-
'hover-class',
|
19
|
-
],
|
13
|
+
classes: ['title-class', 'label-class', 'value-class', 'right-icon-class', 'hover-class'],
|
20
14
|
mixins: [link_1.link],
|
21
15
|
props: {
|
22
16
|
title: null,
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var component_1 = require("../../common/component");
|
4
|
+
(0, component_1.SmartComponent)({
|
5
|
+
data: {
|
6
|
+
checkbox1: true,
|
7
|
+
checkbox2: true,
|
8
|
+
checkbox3: true,
|
9
|
+
checkboxLabel: true,
|
10
|
+
checkboxSize: true,
|
11
|
+
checkboxShape: true,
|
12
|
+
list: ['a', 'b', 'c'],
|
13
|
+
result: ['a', 'b'],
|
14
|
+
result2: [],
|
15
|
+
result3: [],
|
16
|
+
result4: [],
|
17
|
+
activeIcon: 'https://images.tuyacn.com/content-platform/hestia/1730877912e76cbdb7563.png',
|
18
|
+
inactiveIcon: '',
|
19
|
+
},
|
20
|
+
methods: {
|
21
|
+
onChange: function (event) {
|
22
|
+
var _a;
|
23
|
+
var key = event.currentTarget.dataset.key;
|
24
|
+
this.setData((_a = {}, _a[key] = event.detail, _a));
|
25
|
+
},
|
26
|
+
onChange2: function (event) {
|
27
|
+
var _a;
|
28
|
+
var key = event.currentTarget.dataset.key;
|
29
|
+
this.setData((_a = {}, _a[key] = !event.detail, _a));
|
30
|
+
},
|
31
|
+
toggle: function (event) {
|
32
|
+
var index = event.currentTarget.dataset.index;
|
33
|
+
var checkbox = this.selectComponent(".checkboxes-".concat(index));
|
34
|
+
checkbox.toggle();
|
35
|
+
},
|
36
|
+
noop: function () { },
|
37
|
+
},
|
38
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var component_1 = require("../../common/component");
|
4
|
+
var format = function (rate) { return Math.min(Math.max(rate, 0), 100); };
|
5
|
+
(0, component_1.SmartComponent)({
|
6
|
+
data: {
|
7
|
+
value: 25,
|
8
|
+
gradientColor: {
|
9
|
+
'0%': '#ffd01e',
|
10
|
+
'100%': '#ee0a24',
|
11
|
+
},
|
12
|
+
},
|
13
|
+
methods: {
|
14
|
+
run: function (e) {
|
15
|
+
var step = parseFloat(e.currentTarget.dataset.step);
|
16
|
+
this.setData({
|
17
|
+
value: format((this.data.value += step)),
|
18
|
+
});
|
19
|
+
},
|
20
|
+
},
|
21
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var component_1 = require("../../common/component");
|
7
|
+
var toast_1 = __importDefault(require("../../toast/toast"));
|
8
|
+
(0, component_1.SmartComponent)({
|
9
|
+
data: {
|
10
|
+
active1: [0],
|
11
|
+
active2: 0,
|
12
|
+
active3: [],
|
13
|
+
active4: [],
|
14
|
+
title1: I18n.t('title') + '1',
|
15
|
+
title2: I18n.t('title') + '2',
|
16
|
+
title3: I18n.t('title') + '3',
|
17
|
+
content1: I18n.t('codeIsWrittenForHumansToReadAndIncidentallyToRunOnMachines'),
|
18
|
+
content2: I18n.t('codeIsWrittenForHumansToReadAndIncidentallyToRunOnMachines'),
|
19
|
+
content3: I18n.t('codeIsWrittenForHumansToReadAndIncidentallyToRunOnMachines'),
|
20
|
+
},
|
21
|
+
methods: {
|
22
|
+
onChange: function (event) {
|
23
|
+
var _a;
|
24
|
+
var key = event.currentTarget.dataset.key;
|
25
|
+
this.setData((_a = {},
|
26
|
+
_a[key] = event.detail,
|
27
|
+
_a));
|
28
|
+
},
|
29
|
+
onOpen: function (event) {
|
30
|
+
(0, toast_1.default)({
|
31
|
+
context: this,
|
32
|
+
message: "".concat(I18n.t('expand'), ": ").concat(event.detail),
|
33
|
+
});
|
34
|
+
},
|
35
|
+
onClose: function (event) {
|
36
|
+
(0, toast_1.default)({
|
37
|
+
context: this,
|
38
|
+
message: "".concat(I18n.t('close'), ": ").concat(event.detail),
|
39
|
+
});
|
40
|
+
},
|
41
|
+
},
|
42
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var component_1 = require("../../common/component");
|
4
|
+
(0, component_1.SmartComponent)({
|
5
|
+
data: {
|
6
|
+
rate: 4,
|
7
|
+
slider: 50,
|
8
|
+
themeVars: {
|
9
|
+
buttonPrimaryBorderColor: 'red',
|
10
|
+
buttonPrimaryBackgroundColor: 'red',
|
11
|
+
},
|
12
|
+
},
|
13
|
+
methods: {
|
14
|
+
onChange: function (event) {
|
15
|
+
var color = event.currentTarget.dataset.color;
|
16
|
+
this.setData({
|
17
|
+
themeVars: {
|
18
|
+
buttonPrimaryBorderColor: color,
|
19
|
+
buttonPrimaryBackgroundColor: color,
|
20
|
+
},
|
21
|
+
});
|
22
|
+
},
|
23
|
+
},
|
24
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var component_1 = require("../../common/component");
|
7
|
+
var toast_1 = __importDefault(require("../../toast/toast"));
|
8
|
+
(0, component_1.SmartComponent)({
|
9
|
+
data: {
|
10
|
+
time: 30 * 60 * 60 * 1000,
|
11
|
+
timeData: {},
|
12
|
+
},
|
13
|
+
methods: {
|
14
|
+
onChange: function (e) {
|
15
|
+
this.setData({
|
16
|
+
timeData: e.detail,
|
17
|
+
});
|
18
|
+
},
|
19
|
+
start: function () {
|
20
|
+
var countDown = this.selectComponent('.control-count-down');
|
21
|
+
countDown.start();
|
22
|
+
},
|
23
|
+
pause: function () {
|
24
|
+
var countDown = this.selectComponent('.control-count-down');
|
25
|
+
countDown.pause();
|
26
|
+
},
|
27
|
+
reset: function () {
|
28
|
+
var countDown = this.selectComponent('.control-count-down');
|
29
|
+
countDown.reset();
|
30
|
+
},
|
31
|
+
finished: function () {
|
32
|
+
(0, toast_1.default)({
|
33
|
+
context: this,
|
34
|
+
message: I18n.t('countdownEnded'),
|
35
|
+
});
|
36
|
+
},
|
37
|
+
},
|
38
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var component_1 = require("../../common/component");
|
4
|
+
(0, component_1.SmartComponent)({
|
5
|
+
data: {
|
6
|
+
value: '222',
|
7
|
+
},
|
8
|
+
methods: {
|
9
|
+
onChange: function (v) {
|
10
|
+
console.log('onChange value =====>', v.detail);
|
11
|
+
},
|
12
|
+
onConfirm: function (v) {
|
13
|
+
console.log('onConfirm value ====>', v.detail);
|
14
|
+
},
|
15
|
+
handleBtn: function () {
|
16
|
+
this.setData({ value: '1234' });
|
17
|
+
},
|
18
|
+
},
|
19
|
+
});
|
@@ -138,9 +138,7 @@ var component_1 = require("../common/component");
|
|
138
138
|
toSvgCssBackground: function (svgString) {
|
139
139
|
var res = svgString;
|
140
140
|
res = svgString
|
141
|
-
.replace('<svg', ~svgString.indexOf('xmlns')
|
142
|
-
? '<svg'
|
143
|
-
: '<svg xmlns="http://www.w3.org/2000/svg"')
|
141
|
+
.replace('<svg', ~svgString.indexOf('xmlns') ? '<svg' : '<svg xmlns="http://www.w3.org/2000/svg"')
|
144
142
|
.replace(/"/g, "'")
|
145
143
|
.replace(/%/g, '%25')
|
146
144
|
.replace(/#/g, '%23')
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var component_1 = require("../../common/component");
|
7
|
+
var toast_1 = __importDefault(require("../../toast/toast"));
|
8
|
+
(0, component_1.SmartComponent)({
|
9
|
+
data: {
|
10
|
+
minHour: 10,
|
11
|
+
maxHour: 20,
|
12
|
+
minDate: new Date(2018, 0, 1).getTime(),
|
13
|
+
maxDate: new Date(2019, 10, 1).getTime(),
|
14
|
+
currentDate1: new Date(2018, 2, 31).getTime(),
|
15
|
+
currentDate2: null,
|
16
|
+
currentDate3: new Date(2018, 0, 1),
|
17
|
+
currentDate4: '12:00',
|
18
|
+
loading: false,
|
19
|
+
formatter: function (type, value) {
|
20
|
+
if (type === 'year') {
|
21
|
+
return "".concat(value).concat(I18n.t('year'));
|
22
|
+
}
|
23
|
+
if (type === 'month') {
|
24
|
+
return "".concat(value).concat(I18n.t('month'));
|
25
|
+
}
|
26
|
+
return value;
|
27
|
+
},
|
28
|
+
filter: function (type, options) {
|
29
|
+
if (type === 'minute') {
|
30
|
+
return options.filter(function (option) { return option % 5 === 0; });
|
31
|
+
}
|
32
|
+
return options;
|
33
|
+
},
|
34
|
+
locale: {
|
35
|
+
year: I18n.t('year'),
|
36
|
+
month: I18n.t('month'),
|
37
|
+
day: I18n.t('sun'),
|
38
|
+
hour: I18n.t('time'),
|
39
|
+
minute: I18n.t('minute'),
|
40
|
+
second: I18n.t('second'),
|
41
|
+
},
|
42
|
+
},
|
43
|
+
methods: {
|
44
|
+
onInput: function (event) {
|
45
|
+
var detail = event.detail, currentTarget = event.currentTarget;
|
46
|
+
var result = this.getResult(detail, currentTarget.dataset.type);
|
47
|
+
(0, toast_1.default)({
|
48
|
+
context: this,
|
49
|
+
message: result,
|
50
|
+
});
|
51
|
+
},
|
52
|
+
getResult: function (time, type) {
|
53
|
+
var date = new Date(time);
|
54
|
+
switch (type) {
|
55
|
+
case 'datetime':
|
56
|
+
return date.toLocaleString();
|
57
|
+
case 'date':
|
58
|
+
return date.toLocaleDateString();
|
59
|
+
case 'year-month':
|
60
|
+
return "".concat(date.getFullYear(), "/").concat(date.getMonth() + 1);
|
61
|
+
case 'time':
|
62
|
+
return time;
|
63
|
+
default:
|
64
|
+
return '';
|
65
|
+
}
|
66
|
+
},
|
67
|
+
},
|
68
|
+
});
|
@@ -53,7 +53,9 @@ function getTrueValue(formattedValue) {
|
|
53
53
|
function getMonthEndDay(year, month) {
|
54
54
|
return 32 - new Date(year, month - 1, 32).getDate();
|
55
55
|
}
|
56
|
-
var defaultFormatter = function (type, value) {
|
56
|
+
var defaultFormatter = function (type, value) {
|
57
|
+
return value;
|
58
|
+
};
|
57
59
|
(0, component_1.SmartComponent)({
|
58
60
|
classes: ['active-class', 'toolbar-class', 'column-class'],
|
59
61
|
props: __assign(__assign({}, shared_1.pickerProps), { value: {
|
@@ -266,8 +268,7 @@ var defaultFormatter = function (type, value) { return value; };
|
|
266
268
|
var originColumns = this.getOriginColumns();
|
267
269
|
if (data.type === 'time') {
|
268
270
|
var indexes = picker.getIndexes();
|
269
|
-
value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1]
|
270
|
-
.values[indexes[1]]);
|
271
|
+
value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
|
271
272
|
}
|
272
273
|
else {
|
273
274
|
var indexes = picker.getIndexes();
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,144 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var component_1 = require("../../common/component");
|
7
|
+
var dialog_1 = __importDefault(require("../../dialog/dialog"));
|
8
|
+
var message = 'Body';
|
9
|
+
(0, component_1.SmartComponent)({
|
10
|
+
data: {
|
11
|
+
show: false,
|
12
|
+
inputValue: '',
|
13
|
+
},
|
14
|
+
methods: {
|
15
|
+
showCustomDialog: function () {
|
16
|
+
this.setData({ show: true });
|
17
|
+
},
|
18
|
+
getUserInfo: function (event) {
|
19
|
+
console.log(event.detail);
|
20
|
+
},
|
21
|
+
onClickThemeAlert: function () {
|
22
|
+
console.log('=== click theme alert');
|
23
|
+
dialog_1.default.alert({
|
24
|
+
context: this,
|
25
|
+
title: 'Title',
|
26
|
+
theme: 'round-button',
|
27
|
+
icon: false,
|
28
|
+
message: message,
|
29
|
+
confirmButtonText: I18n.t('confirm'),
|
30
|
+
cancelButtonText: I18n.t('cancel'),
|
31
|
+
});
|
32
|
+
},
|
33
|
+
onClickThemeAlert2: function () {
|
34
|
+
console.log('=== 222 click theme alert');
|
35
|
+
dialog_1.default.alert({
|
36
|
+
context: this,
|
37
|
+
theme: 'round-button',
|
38
|
+
message: message,
|
39
|
+
confirmButtonText: I18n.t('confirm'),
|
40
|
+
cancelButtonText: I18n.t('cancel'),
|
41
|
+
});
|
42
|
+
},
|
43
|
+
onClickAlert: function () {
|
44
|
+
dialog_1.default.alert({
|
45
|
+
context: this,
|
46
|
+
title: 'Title',
|
47
|
+
icon: false,
|
48
|
+
message: message,
|
49
|
+
confirmButtonText: I18n.t('confirm'),
|
50
|
+
cancelButtonText: I18n.t('cancel'),
|
51
|
+
});
|
52
|
+
},
|
53
|
+
onClickAlert2: function () {
|
54
|
+
dialog_1.default.alert({
|
55
|
+
context: this,
|
56
|
+
message: 'Title',
|
57
|
+
confirmButtonText: I18n.t('confirm'),
|
58
|
+
cancelButtonText: I18n.t('cancel'),
|
59
|
+
});
|
60
|
+
},
|
61
|
+
onClickConfirm: function () {
|
62
|
+
dialog_1.default.confirm({
|
63
|
+
context: this,
|
64
|
+
title: 'Title',
|
65
|
+
icon: false,
|
66
|
+
message: message,
|
67
|
+
cancelButtonText: 'Sub Action',
|
68
|
+
confirmButtonText: I18n.t('confirm'),
|
69
|
+
});
|
70
|
+
},
|
71
|
+
onClickConfirmIcon: function () {
|
72
|
+
dialog_1.default.confirm({
|
73
|
+
context: this,
|
74
|
+
title: 'Title',
|
75
|
+
icon: true,
|
76
|
+
message: message,
|
77
|
+
cancelButtonText: 'Sub Action',
|
78
|
+
confirmButtonText: I18n.t('confirm'),
|
79
|
+
});
|
80
|
+
},
|
81
|
+
onClickInput: function () {
|
82
|
+
var _this = this;
|
83
|
+
var beforeClose = function (action, value) {
|
84
|
+
return new Promise(function (resolve) {
|
85
|
+
setTimeout(function () {
|
86
|
+
if (action === 'confirm') {
|
87
|
+
// 不存在输入值则拦截确认操作
|
88
|
+
resolve(!!value);
|
89
|
+
}
|
90
|
+
else {
|
91
|
+
resolve(true);
|
92
|
+
}
|
93
|
+
}, 1000);
|
94
|
+
});
|
95
|
+
};
|
96
|
+
dialog_1.default.input({
|
97
|
+
context: this,
|
98
|
+
title: 'Title',
|
99
|
+
value: this.data.inputValue,
|
100
|
+
cancelButtonText: 'Sub Action',
|
101
|
+
beforeClose: beforeClose,
|
102
|
+
confirmButtonText: I18n.t('confirm'),
|
103
|
+
})
|
104
|
+
.then(function (res) {
|
105
|
+
var _a;
|
106
|
+
console.log('=== onConfirm', res);
|
107
|
+
var inputValue = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.inputValue;
|
108
|
+
_this.setData({ inputValue: inputValue });
|
109
|
+
})
|
110
|
+
.catch(function (res) {
|
111
|
+
console.log('=== onCancel', res);
|
112
|
+
});
|
113
|
+
},
|
114
|
+
onClickAsyncClose: function () {
|
115
|
+
var beforeClose = function (action) {
|
116
|
+
return new Promise(function (resolve) {
|
117
|
+
setTimeout(function () {
|
118
|
+
if (action === 'confirm') {
|
119
|
+
resolve(true);
|
120
|
+
}
|
121
|
+
else {
|
122
|
+
// 拦截取消操作
|
123
|
+
resolve(false);
|
124
|
+
}
|
125
|
+
}, 1000);
|
126
|
+
});
|
127
|
+
};
|
128
|
+
dialog_1.default.confirm({
|
129
|
+
context: this,
|
130
|
+
title: 'Title',
|
131
|
+
icon: false,
|
132
|
+
message: message,
|
133
|
+
beforeClose: beforeClose,
|
134
|
+
confirmButtonText: I18n.t('confirm'),
|
135
|
+
cancelButtonText: I18n.t('cancel'),
|
136
|
+
});
|
137
|
+
},
|
138
|
+
onClose: function () {
|
139
|
+
this.setData({
|
140
|
+
show: false,
|
141
|
+
});
|
142
|
+
},
|
143
|
+
},
|
144
|
+
});
|
package/lib/dialog/dialog.js
CHANGED
@@ -48,9 +48,7 @@ function getContext() {
|
|
48
48
|
var Dialog = function (options) {
|
49
49
|
options = __assign(__assign({}, currentOptions), options);
|
50
50
|
return new Promise(function (resolve, reject) {
|
51
|
-
var context = (typeof options.context === 'function'
|
52
|
-
? options.context()
|
53
|
-
: options.context) || getContext();
|
51
|
+
var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
|
54
52
|
var dialog = context.selectComponent(options.selector);
|
55
53
|
delete options.context;
|
56
54
|
delete options.selector;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var component_1 = require("../../common/component");
|
4
|
+
(0, component_1.SmartComponent)({
|
5
|
+
data: {
|
6
|
+
switchTitle1: I18n.t('freeShipping'),
|
7
|
+
switchTitle2: I18n.t('groupBuy'),
|
8
|
+
itemTitle: I18n.t('filter'),
|
9
|
+
option1: [
|
10
|
+
{ text: I18n.t('allProducts'), value: 0 },
|
11
|
+
{ text: I18n.t('newProduct'), value: 1 },
|
12
|
+
{ text: I18n.t('promotionalItems'), value: 2 },
|
13
|
+
],
|
14
|
+
option2: [
|
15
|
+
{ text: I18n.t('defaultSorting'), value: 'a' },
|
16
|
+
{ text: I18n.t('sortByPositiveReviews'), value: 'b' },
|
17
|
+
{ text: I18n.t('sortBySales'), value: 'c' },
|
18
|
+
],
|
19
|
+
switch1: true,
|
20
|
+
switch2: false,
|
21
|
+
value1: 0,
|
22
|
+
value2: 'a',
|
23
|
+
},
|
24
|
+
methods: {
|
25
|
+
onConfirm: function () {
|
26
|
+
this.selectComponent('#item').toggle();
|
27
|
+
},
|
28
|
+
onSwitch1Change: function (_a) {
|
29
|
+
var detail = _a.detail;
|
30
|
+
this.setData({ switch1: detail });
|
31
|
+
},
|
32
|
+
onSwitch2Change: function (_a) {
|
33
|
+
var detail = _a.detail;
|
34
|
+
this.setData({ switch2: detail });
|
35
|
+
},
|
36
|
+
onBeforeChange: function (_a) {
|
37
|
+
var _b = _a.detail, status = _b.status, callback = _b.callback;
|
38
|
+
wx.showModal({
|
39
|
+
title: I18n.t('asynchronousOnOff'),
|
40
|
+
content: "".concat(I18n.t('areYouSureYouWantTo')).concat(status ? I18n.t('open') : I18n.t('close')).concat(I18n.t('dropdownMenu')),
|
41
|
+
success: function (res) {
|
42
|
+
if (res.confirm) {
|
43
|
+
callback(true);
|
44
|
+
}
|
45
|
+
else if (res.cancel) {
|
46
|
+
callback(false);
|
47
|
+
}
|
48
|
+
},
|
49
|
+
});
|
50
|
+
},
|
51
|
+
},
|
52
|
+
});
|
@@ -55,7 +55,7 @@ var ARRAY = [];
|
|
55
55
|
type: String,
|
56
56
|
value: '#CCCCCC',
|
57
57
|
observer: 'updateChildrenData',
|
58
|
-
}
|
58
|
+
},
|
59
59
|
},
|
60
60
|
data: {
|
61
61
|
triangleDown: TriangleDown_1.default,
|
@@ -127,9 +127,7 @@ var ARRAY = [];
|
|
127
127
|
var child = this.children[index];
|
128
128
|
if (!child.data.disabled) {
|
129
129
|
ARRAY.forEach(function (menuItem) {
|
130
|
-
if (menuItem &&
|
131
|
-
menuItem.data.closeOnClickOutside &&
|
132
|
-
menuItem !== _this) {
|
130
|
+
if (menuItem && menuItem.data.closeOnClickOutside && menuItem !== _this) {
|
133
131
|
menuItem.close();
|
134
132
|
}
|
135
133
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var component_1 = require("../../common/component");
|
4
|
+
(0, component_1.SmartComponent)({
|
5
|
+
data: {
|
6
|
+
activeTab: 0,
|
7
|
+
},
|
8
|
+
methods: {
|
9
|
+
onChange: function (event) {
|
10
|
+
this.setData({
|
11
|
+
activeTab: event.detail.name,
|
12
|
+
});
|
13
|
+
},
|
14
|
+
},
|
15
|
+
});
|