@tuya-miniapp/smart-ui 2.8.1-beta-5 → 2.8.1-beta-6
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/search/index.js +0 -2
- package/lib/search/index.js +0 -2
- package/package.json +1 -1
package/dist/search/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { SmartComponent } from '../common/component';
|
|
|
2
2
|
import { canIUseModel } from '../common/version';
|
|
3
3
|
import SearchIcon from '@tuya-miniapp/icons/dist/svg/Search';
|
|
4
4
|
import CloseIcon from '@tuya-miniapp/icons/dist/svg/Close';
|
|
5
|
-
import tyApi from '../common/ty';
|
|
6
5
|
SmartComponent({
|
|
7
6
|
field: true,
|
|
8
7
|
classes: ['field-class', 'input-class', 'cancel-class'],
|
|
@@ -86,7 +85,6 @@ SmartComponent({
|
|
|
86
85
|
this.$emit('search', this.data.value);
|
|
87
86
|
},
|
|
88
87
|
onFocus(event) {
|
|
89
|
-
tyApi.selectionVibrate();
|
|
90
88
|
this.$emit('focus', event.detail);
|
|
91
89
|
},
|
|
92
90
|
onBlur(event) {
|
package/lib/search/index.js
CHANGED
|
@@ -7,7 +7,6 @@ var component_1 = require("../common/component");
|
|
|
7
7
|
var version_1 = require("../common/version");
|
|
8
8
|
var Search_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Search"));
|
|
9
9
|
var Close_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Close"));
|
|
10
|
-
var ty_1 = __importDefault(require("../common/ty"));
|
|
11
10
|
(0, component_1.SmartComponent)({
|
|
12
11
|
field: true,
|
|
13
12
|
classes: ['field-class', 'input-class', 'cancel-class'],
|
|
@@ -92,7 +91,6 @@ var ty_1 = __importDefault(require("../common/ty"));
|
|
|
92
91
|
this.$emit('search', this.data.value);
|
|
93
92
|
},
|
|
94
93
|
onFocus: function (event) {
|
|
95
|
-
ty_1.default.selectionVibrate();
|
|
96
94
|
this.$emit('focus', event.detail);
|
|
97
95
|
},
|
|
98
96
|
onBlur: function (event) {
|