@ucloud-fe/react-components 1.3.3 → 1.3.7
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 +25 -0
- package/README.md +4 -2
- package/dist/main.min.js +4 -4
- package/index.d.ts +29 -24
- package/lib/components/ActionList/ActionList.d.ts +9 -4
- package/lib/components/ActionList/index.d.ts +4 -2
- package/lib/components/Badge/Badge.d.ts +1 -1
- package/lib/components/Badge/index.d.ts +7 -2
- package/lib/components/Badge/index.js +6 -2
- package/lib/components/Breadcrumb/Item.d.ts +2 -2
- package/lib/components/Breadcrumb/index.d.ts +1 -1
- package/lib/components/Checkbox/index.d.ts +4 -2
- package/lib/components/Modal/Modal.js +2 -2
- package/lib/components/Notice/Notice.d.ts +16 -33
- package/lib/components/Notice/Notice.js +81 -130
- package/lib/components/Notice/index.d.ts +16 -2
- package/lib/components/Notice/index.js +13 -3
- package/lib/components/Notice/style/index.d.ts +12 -9
- package/lib/components/Notice/style/index.js +53 -112
- package/lib/components/NumberInput/style/index.js +5 -5
- package/lib/components/Switch/Switch.d.ts +1 -1
- package/lib/components/Switch/index.d.ts +2 -1
- package/lib/components/Tabs/Pane.d.ts +3 -2
- package/lib/components/Tabs/index.d.ts +5 -3
- package/lib/components/Tag/style/index.js +12 -12
- package/package.json +1 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
1
|
+
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface DefinedTabPaneProps {
|
|
3
3
|
/** @ignore */
|
|
4
4
|
className?: string;
|
|
5
5
|
/**
|
|
@@ -25,5 +25,6 @@ export interface TabPaneProps {
|
|
|
25
25
|
/** tab 的 key,由于 react 会在某些情况下改变传递的 key,顾直接使用 key 是不安全的,如发现 key 被修改,可使用 tabKey 来替换 */
|
|
26
26
|
tabKey?: string;
|
|
27
27
|
}
|
|
28
|
+
export declare type TabPaneProps = DefinedTabPaneProps & Omit<HTMLAttributes<HTMLDivElement>, keyof DefinedTabPaneProps>;
|
|
28
29
|
declare const _default: React.MemoExoticComponent<({ className, active, destroyInactiveTabPane, forceRender, placeholder, children, tabKey, ...rest }: TabPaneProps) => JSX.Element>;
|
|
29
30
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { TabsProps } from './Tabs';
|
|
3
|
+
import Pane, { TabPaneProps } from './Pane';
|
|
3
4
|
import { TabBarPositions, Sizes, StyleTypes } from './shared';
|
|
4
|
-
declare const ExportTabs: import("react").NamedExoticComponent<
|
|
5
|
-
readonly type: ({ activeKey: _activeKey, defaultActiveKey, onChange: _onChange, destroyInactiveTabPane, children, className, tabBarPosition, direction, styleType, size, ...restProps }:
|
|
5
|
+
declare const ExportTabs: import("react").NamedExoticComponent<TabsProps> & {
|
|
6
|
+
readonly type: ({ activeKey: _activeKey, defaultActiveKey, onChange: _onChange, destroyInactiveTabPane, children, className, tabBarPosition, direction, styleType, size, ...restProps }: TabsProps) => JSX.Element;
|
|
6
7
|
} & {
|
|
7
8
|
Pane: typeof Pane;
|
|
8
9
|
/** @private 请勿使用 */
|
|
@@ -19,3 +20,4 @@ declare const ExportTabs: import("react").NamedExoticComponent<import("./Tabs").
|
|
|
19
20
|
Position: typeof TabBarPositions;
|
|
20
21
|
};
|
|
21
22
|
export default ExportTabs;
|
|
23
|
+
export type { TabsProps, TabPaneProps };
|