xmirror-components 1.0.17 → 1.0.18
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/build/dist/index.cjs +13 -13
- package/build/dist/index.mjs +207 -199
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/lib/index.d.ts +4 -0
- package/build/lib/index.js +4 -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
|
@@ -3,4 +3,5 @@ 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
5
|
export { default as IconButton } from './components/IconButton';
|
|
6
|
+
export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
|
|
6
7
|
export { default as useRequest } from './hooks/useRequest';
|
package/build/es/index.js
CHANGED
|
@@ -3,4 +3,5 @@ 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
5
|
export { default as IconButton } from './components/IconButton';
|
|
6
|
+
export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
|
|
6
7
|
export { default as useRequest } from './hooks/useRequest';
|
package/build/lib/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ 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 function GlobalLoading(): React_2.JSX.Element;
|
|
55
|
+
|
|
54
56
|
export declare const IconButton: React_2.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React_2.RefAttributes<any>>;
|
|
55
57
|
|
|
56
58
|
declare interface IconButtonProps {
|
|
@@ -127,6 +129,8 @@ declare interface Options<TData, TParams extends unknown[]> extends Options_2<TD
|
|
|
127
129
|
errorMessage?: boolean;
|
|
128
130
|
}
|
|
129
131
|
|
|
132
|
+
export declare let setGlobalLoading: (_value: boolean) => void;
|
|
133
|
+
|
|
130
134
|
/**
|
|
131
135
|
* Switch 可自定义 value
|
|
132
136
|
*/
|
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.IconButton = exports.SwitchValue = exports.CheckboxValue = exports.IconFont = exports.modal = exports.notification = exports.message = exports.App = void 0;
|
|
6
|
+
exports.useRequest = exports.setGlobalLoading = exports.GlobalLoading = 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; } });
|
|
@@ -17,5 +17,8 @@ var SwitchValue_1 = require("./components/SwitchValue");
|
|
|
17
17
|
Object.defineProperty(exports, "SwitchValue", { enumerable: true, get: function () { return __importDefault(SwitchValue_1).default; } });
|
|
18
18
|
var IconButton_1 = require("./components/IconButton");
|
|
19
19
|
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
|
|
20
|
+
var GlobalLoading_1 = require("./components/GlobalLoading");
|
|
21
|
+
Object.defineProperty(exports, "GlobalLoading", { enumerable: true, get: function () { return __importDefault(GlobalLoading_1).default; } });
|
|
22
|
+
Object.defineProperty(exports, "setGlobalLoading", { enumerable: true, get: function () { return GlobalLoading_1.setGlobalLoading; } });
|
|
20
23
|
var useRequest_1 = require("./hooks/useRequest");
|
|
21
24
|
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
|
@@ -3,4 +3,5 @@ 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
5
|
export { default as IconButton } from './components/IconButton';
|
|
6
|
+
export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
|
|
6
7
|
export { default as useRequest } from './hooks/useRequest';
|