@nutui/nutui-react-taro 2.7.10 → 2.7.11
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/CHANGELOG.md +15 -5
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/nutui-react.es.js +1 -1
- package/dist/esm/{searchbar.taro-BgwUn_Ma.js → searchbar.taro-B7UhNlBh.js} +22 -16
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +27 -23
- package/dist/nutui.react.umd.js +27 -23
- package/dist/packages/searchbar/searchbar.scss +2 -0
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +4 -0
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +11 -5
- package/package.json +1 -1
|
@@ -996,6 +996,10 @@ $calendar-day-active-border-radius: var(
|
|
|
996
996
|
--nutui-calendar-day-active-border-radius,
|
|
997
997
|
4px
|
|
998
998
|
) !default;
|
|
999
|
+
$calendar-panel-item-width: var(
|
|
1000
|
+
--nutui-calendar-panel-item-width,
|
|
1001
|
+
24.85%
|
|
1002
|
+
) !default;
|
|
999
1003
|
|
|
1000
1004
|
//overlay(✅)
|
|
1001
1005
|
$overlay-bg-color: var(--nutui-overlay-bg-color, $color-mask) !default;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { default as React, FunctionComponent,
|
|
1
|
+
import { default as React, FunctionComponent, MouseEvent } from 'react';
|
|
2
|
+
import { InputProps, ITouchEvent } from '@tarojs/components';
|
|
3
|
+
import { BaseEventOrig } from '@tarojs/components/types/common';
|
|
2
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
|
+
type inputEventDetail = InputProps.inputEventDetail;
|
|
6
|
+
type inputForceEventDetail = InputProps.inputForceEventDetail;
|
|
7
|
+
type inputValueEventDetail = InputProps.inputValueEventDetail;
|
|
3
8
|
export interface SearchBarProps extends BasicComponent {
|
|
4
9
|
/**
|
|
5
10
|
* 当前输入的值
|
|
@@ -75,17 +80,17 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
75
80
|
* 输入内容时触发
|
|
76
81
|
* @default -
|
|
77
82
|
*/
|
|
78
|
-
onChange?: (value: string, event?:
|
|
83
|
+
onChange?: (value: string, event?: BaseEventOrig<inputEventDetail>) => void
|
|
79
84
|
/**
|
|
80
85
|
* 聚焦时触发
|
|
81
86
|
* @default -
|
|
82
87
|
*/
|
|
83
|
-
onFocus?: (value: string, event:
|
|
88
|
+
onFocus?: (value: string, event: BaseEventOrig<inputForceEventDetail>) => void
|
|
84
89
|
/**
|
|
85
90
|
* 失焦时触发
|
|
86
91
|
* @default -
|
|
87
92
|
*/
|
|
88
|
-
onBlur?: (value: string, event:
|
|
93
|
+
onBlur?: (value: string, event: BaseEventOrig<inputValueEventDetail>) => void
|
|
89
94
|
/**
|
|
90
95
|
* 点击清空时触发
|
|
91
96
|
* @default -
|
|
@@ -95,6 +100,7 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
95
100
|
* 点击输入区域时触发
|
|
96
101
|
* @default -
|
|
97
102
|
*/
|
|
98
|
-
onInputClick?: (event:
|
|
103
|
+
onInputClick?: (event: ITouchEvent) => void
|
|
99
104
|
}
|
|
100
105
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
106
|
+
export {};
|