weifuwu 0.80.0 → 0.81.1

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.
@@ -6,4 +6,13 @@ export interface SearchInputProps {
6
6
  onInput?: (e: Event) => void;
7
7
  onClear?: () => void;
8
8
  }
9
+ /**
10
+ * SearchInput —— 搜索输入框(受控/非受控统一 + IME 门控)
11
+ *
12
+ * - 受控(value 显式传入):input.value 由 value 回写,清除按钮随 value 显隐;
13
+ * 非受控(不传 value):DOM 值透传 onInput,组件不回写(§5.3 输入态不依赖受控回流)
14
+ * - IME 组合(中文拼音):组合期间跳过 onInput(composing + e.isComposing 门控)——
15
+ * 避免受控 value 重置打断输入法(AutoComplete/Mentions/TagsInput 同款纪律);
16
+ * 组合结束 onCompositionEnd 处理最终中文值
17
+ */
9
18
  export declare const SearchInput: Component<SearchInputProps>;