@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.
@@ -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, ChangeEvent, FocusEvent, MouseEvent } from 'react';
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?: ChangeEvent<HTMLInputElement>) => void
83
+ onChange?: (value: string, event?: BaseEventOrig<inputEventDetail>) => void
79
84
  /**
80
85
  * 聚焦时触发
81
86
  * @default -
82
87
  */
83
- onFocus?: (value: string, event: FocusEvent<HTMLInputElement>) => void
88
+ onFocus?: (value: string, event: BaseEventOrig<inputForceEventDetail>) => void
84
89
  /**
85
90
  * 失焦时触发
86
91
  * @default -
87
92
  */
88
- onBlur?: (value: string, event: FocusEvent<HTMLInputElement>) => void
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: MouseEvent<HTMLInputElement>) => void
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "2.7.10",
3
+ "version": "2.7.11",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",