@apdesign/web-react 1.4.2 → 1.4.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.
@@ -6,7 +6,7 @@ export declare type HotkeyInfo = {
6
6
  type: 'sibling' | 'generation' | 'enter';
7
7
  };
8
8
  export declare type ResetHotkeyInfo = (activeKey?: string) => void;
9
- declare const MenuContext: import("react").Context<Pick<MenuProps, "collapse" | "inDropdown" | "theme" | "mode" | "levelIndent" | "icons" | "autoScrollIntoView" | "selectedKeys" | "openKeys" | "scrollConfig" | "triggerProps" | "tooltipProps"> & {
9
+ declare const MenuContext: import("react").Context<Pick<MenuProps, "collapse" | "icons" | "mode" | "inDropdown" | "theme" | "levelIndent" | "autoScrollIntoView" | "selectedKeys" | "openKeys" | "scrollConfig" | "triggerProps" | "tooltipProps"> & {
10
10
  id?: string;
11
11
  prefixCls?: string;
12
12
  onClickMenuItem?: (key: string, event: any) => void;
@@ -457,7 +457,8 @@ function Select(baseProps, ref) {
457
457
  if (isMultipleMode) {
458
458
  checkOption(optionValue, value.indexOf(optionValue) === -1 ? 'add' : 'remove');
459
459
  // 点击一个选项时,清空输入框内容
460
- if (!isObject(showSearch) || !showSearch.retainInputValueWhileSelect) {
460
+ if (!isMultipleQuickSelectMode &&
461
+ (!isObject(showSearch) || !showSearch.retainInputValueWhileSelect)) {
461
462
  tryUpdateInputValue('', 'optionChecked');
462
463
  }
463
464
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TypographyParagraphProps, TypographyTitleProps } from './interface';
3
3
  declare const _default: React.ForwardRefExoticComponent<TypographyParagraphProps & TypographyTitleProps & import("./interface").CommonProps & {
4
- componentType: "Title" | "Paragraph" | "Text";
4
+ componentType: "Paragraph" | "Title" | "Text";
5
5
  } & React.RefAttributes<unknown>>;
6
6
  export default _default;
package/es/index.d.ts CHANGED
@@ -139,4 +139,4 @@ export type { WatermarkProps } from './Watermark/interface';
139
139
  export { default as Watermark } from './Watermark';
140
140
  export type { ImageProps, ImagePreviewProps, ImagePreviewActionProps, ImagePreviewGroupProps } from './Image/interface';
141
141
  export { default as Image } from './Image';
142
- export declare const version = "1.4.2";
142
+ export declare const version = "1.4.3";
package/es/index.js CHANGED
@@ -69,4 +69,4 @@ export { default as Upload } from './Upload';
69
69
  export { default as Mentions } from './Mentions';
70
70
  export { default as Watermark } from './Watermark';
71
71
  export { default as Image } from './Image';
72
- export var version = '1.4.2';
72
+ export var version = '1.4.3';
@@ -481,7 +481,8 @@ function Select(baseProps, ref) {
481
481
  if (isMultipleMode) {
482
482
  checkOption(optionValue, value.indexOf(optionValue) === -1 ? 'add' : 'remove');
483
483
  // 点击一个选项时,清空输入框内容
484
- if (!(0, is_1.isObject)(showSearch) || !showSearch.retainInputValueWhileSelect) {
484
+ if (!isMultipleQuickSelectMode &&
485
+ (!(0, is_1.isObject)(showSearch) || !showSearch.retainInputValueWhileSelect)) {
485
486
  tryUpdateInputValue('', 'optionChecked');
486
487
  }
487
488
  }
package/lib/index.d.ts CHANGED
@@ -139,4 +139,4 @@ export type { WatermarkProps } from './Watermark/interface';
139
139
  export { default as Watermark } from './Watermark';
140
140
  export type { ImageProps, ImagePreviewProps, ImagePreviewActionProps, ImagePreviewGroupProps } from './Image/interface';
141
141
  export { default as Image } from './Image';
142
- export declare const version = "1.4.2";
142
+ export declare const version = "1.4.3";
package/lib/index.js CHANGED
@@ -147,4 +147,4 @@ var Watermark_1 = require("./Watermark");
147
147
  Object.defineProperty(exports, "Watermark", { enumerable: true, get: function () { return __importDefault(Watermark_1).default; } });
148
148
  var Image_1 = require("./Image");
149
149
  Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(Image_1).default; } });
150
- exports.version = '1.4.2';
150
+ exports.version = '1.4.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apdesign/web-react",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "AP Design React UI Library.",
5
5
  "module": "./es/index.js",
6
6
  "main": "./lib/index.js",