xmirror-components 1.0.14 → 1.0.16
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/README.md +264 -52
- package/build/dist/index.cjs +16 -11
- package/build/dist/index.mjs +1000 -775
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/lib/index.d.ts +41 -0
- package/build/lib/index.js +3 -1
- package/build/package.json +1 -1
- package/build/types/index.d.ts +1 -0
- package/package.json +1 -1
package/build/es/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { default as App, message, notification, modal } from './components/AntdA
|
|
|
2
2
|
export { default as IconFont } from './components/IconFont';
|
|
3
3
|
export { default as CheckboxValue } from './components/CheckboxValue';
|
|
4
4
|
export { default as SwitchValue } from './components/SwitchValue';
|
|
5
|
+
export { default as IconButton } from './components/IconButton';
|
|
5
6
|
export { default as useRequest } from './hooks/useRequest';
|
package/build/es/index.js
CHANGED
|
@@ -2,4 +2,5 @@ export { default as App, message, notification, modal } from './components/AntdA
|
|
|
2
2
|
export { default as IconFont } from './components/IconFont';
|
|
3
3
|
export { default as CheckboxValue } from './components/CheckboxValue';
|
|
4
4
|
export { default as SwitchValue } from './components/SwitchValue';
|
|
5
|
+
export { default as IconButton } from './components/IconButton';
|
|
5
6
|
export { default as useRequest } from './hooks/useRequest';
|
package/build/lib/index.d.ts
CHANGED
|
@@ -51,6 +51,47 @@ declare interface CheckboxValueProps<T = any, F = any> extends Omit<React_2.Comp
|
|
|
51
51
|
children?: React_2.ReactNode;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export declare const IconButton: React_2.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React_2.RefAttributes<any>>;
|
|
55
|
+
|
|
56
|
+
declare interface IconButtonProps {
|
|
57
|
+
/**
|
|
58
|
+
* 图标
|
|
59
|
+
*/
|
|
60
|
+
icon?: React_2.ReactNode | string;
|
|
61
|
+
/**
|
|
62
|
+
* 是否禁用 tooltip
|
|
63
|
+
*/
|
|
64
|
+
tooltipDisabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 点击事件
|
|
67
|
+
*/
|
|
68
|
+
onClick?: (e: React_2.MouseEvent<HTMLElement>) => void;
|
|
69
|
+
/**
|
|
70
|
+
* 是否禁用
|
|
71
|
+
*/
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* 大小
|
|
75
|
+
*/
|
|
76
|
+
size?: 'small' | 'middle' | 'large';
|
|
77
|
+
/**
|
|
78
|
+
* 样式
|
|
79
|
+
*/
|
|
80
|
+
style?: React_2.CSSProperties;
|
|
81
|
+
/**
|
|
82
|
+
* 类名
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
/**
|
|
86
|
+
* 是否加载中
|
|
87
|
+
*/
|
|
88
|
+
loading?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 其他属性
|
|
91
|
+
*/
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
}
|
|
94
|
+
|
|
54
95
|
export declare const IconFont: React_2.ForwardRefExoticComponent<((IconFontCommonProps & React_2.HTMLAttributes<HTMLElement> & {
|
|
55
96
|
symbol?: false;
|
|
56
97
|
}) | Omit<IconFontCommonProps & React_2.SVGProps<SVGSVGElement> & {
|
package/build/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useRequest = exports.SwitchValue = exports.CheckboxValue = exports.IconFont = exports.modal = exports.notification = exports.message = exports.App = void 0;
|
|
6
|
+
exports.useRequest = exports.IconButton = exports.SwitchValue = exports.CheckboxValue = exports.IconFont = exports.modal = exports.notification = exports.message = exports.App = void 0;
|
|
7
7
|
var AntdApp_1 = require("./components/AntdApp");
|
|
8
8
|
Object.defineProperty(exports, "App", { enumerable: true, get: function () { return __importDefault(AntdApp_1).default; } });
|
|
9
9
|
Object.defineProperty(exports, "message", { enumerable: true, get: function () { return AntdApp_1.message; } });
|
|
@@ -15,5 +15,7 @@ var CheckboxValue_1 = require("./components/CheckboxValue");
|
|
|
15
15
|
Object.defineProperty(exports, "CheckboxValue", { enumerable: true, get: function () { return __importDefault(CheckboxValue_1).default; } });
|
|
16
16
|
var SwitchValue_1 = require("./components/SwitchValue");
|
|
17
17
|
Object.defineProperty(exports, "SwitchValue", { enumerable: true, get: function () { return __importDefault(SwitchValue_1).default; } });
|
|
18
|
+
var IconButton_1 = require("./components/IconButton");
|
|
19
|
+
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
|
|
18
20
|
var useRequest_1 = require("./hooks/useRequest");
|
|
19
21
|
Object.defineProperty(exports, "useRequest", { enumerable: true, get: function () { return __importDefault(useRequest_1).default; } });
|
package/build/package.json
CHANGED
package/build/types/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { default as App, message, notification, modal } from './components/AntdA
|
|
|
2
2
|
export { default as IconFont } from './components/IconFont';
|
|
3
3
|
export { default as CheckboxValue } from './components/CheckboxValue';
|
|
4
4
|
export { default as SwitchValue } from './components/SwitchValue';
|
|
5
|
+
export { default as IconButton } from './components/IconButton';
|
|
5
6
|
export { default as useRequest } from './hooks/useRequest';
|