@tuya-miniapp/smart-ui 2.8.1-beta-2 → 2.8.1-beta-3
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SmartComponent } from '../common/component';
|
|
2
|
+
import ty from '../common/ty';
|
|
2
3
|
SmartComponent({
|
|
3
4
|
props: {
|
|
4
5
|
/**
|
|
@@ -120,6 +121,7 @@ SmartComponent({
|
|
|
120
121
|
currValue: newValue,
|
|
121
122
|
});
|
|
122
123
|
this.$emit('change', newValue);
|
|
124
|
+
ty.vibrateShort({ type: 'light' });
|
|
123
125
|
},
|
|
124
126
|
handlePassword() {
|
|
125
127
|
this.setData({ visible: true });
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
var component_1 = require("../common/component");
|
|
7
|
+
var ty_1 = __importDefault(require("../common/ty"));
|
|
4
8
|
(0, component_1.SmartComponent)({
|
|
5
9
|
props: {
|
|
6
10
|
/**
|
|
@@ -122,6 +126,7 @@ var component_1 = require("../common/component");
|
|
|
122
126
|
currValue: newValue,
|
|
123
127
|
});
|
|
124
128
|
this.$emit('change', newValue);
|
|
129
|
+
ty_1.default.vibrateShort({ type: 'light' });
|
|
125
130
|
},
|
|
126
131
|
handlePassword: function () {
|
|
127
132
|
this.setData({ visible: true });
|