xmirror-components 1.0.19 → 1.0.20

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.
@@ -2,4 +2,6 @@ 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';
6
+ export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
5
7
  export { default as useRequest } from './hooks/useRequest';
package/build/es/index.js CHANGED
@@ -2,6 +2,6 @@ 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';
6
- // export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
5
+ export { default as IconButton } from './components/IconButton';
6
+ export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
7
7
  export { default as useRequest } from './hooks/useRequest';
@@ -51,6 +51,49 @@ 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
+
56
+ export declare const IconButton: React_2.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React_2.RefAttributes<any>>;
57
+
58
+ declare interface IconButtonProps {
59
+ /**
60
+ * 图标
61
+ */
62
+ icon?: React_2.ReactNode | string;
63
+ /**
64
+ * 是否禁用 tooltip
65
+ */
66
+ tooltipDisabled?: boolean;
67
+ /**
68
+ * 点击事件
69
+ */
70
+ onClick?: (e: React_2.MouseEvent<HTMLElement>) => void;
71
+ /**
72
+ * 是否禁用
73
+ */
74
+ disabled?: boolean;
75
+ /**
76
+ * 大小
77
+ */
78
+ size?: 'small' | 'middle' | 'large';
79
+ /**
80
+ * 样式
81
+ */
82
+ style?: React_2.CSSProperties;
83
+ /**
84
+ * 类名
85
+ */
86
+ className?: string;
87
+ /**
88
+ * 是否加载中
89
+ */
90
+ loading?: boolean;
91
+ /**
92
+ * 其他属性
93
+ */
94
+ [key: string]: any;
95
+ }
96
+
54
97
  export declare const IconFont: React_2.ForwardRefExoticComponent<((IconFontCommonProps & React_2.HTMLAttributes<HTMLElement> & {
55
98
  symbol?: false;
56
99
  }) | Omit<IconFontCommonProps & React_2.SVGProps<SVGSVGElement> & {
@@ -86,6 +129,8 @@ declare interface Options<TData, TParams extends unknown[]> extends Options_2<TD
86
129
  errorMessage?: boolean;
87
130
  }
88
131
 
132
+ export declare let setGlobalLoading: (_value: boolean) => void;
133
+
89
134
  /**
90
135
  * Switch 可自定义 value
91
136
  */
@@ -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.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; } });
@@ -15,7 +15,10 @@ 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
- // export { default as IconButton } from './components/IconButton';
19
- // export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
18
+ var IconButton_1 = require("./components/IconButton");
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; } });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmirror-components",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "main": "build/lib/index.js",
6
6
  "module": "build/es/index.js",
@@ -19,8 +19,7 @@
19
19
  "lint": "eslint .",
20
20
  "preview": "vite preview",
21
21
  "prepublishOnly": "npm run build",
22
- "publish:npm": "npm publish --access public",
23
- "build:component-css": "node scripts/build-component-css.cjs"
22
+ "publish:npm": "npm publish --access public"
24
23
  },
25
24
  "peerDependencies": {
26
25
  "antd": ">=5.0.0",
@@ -2,4 +2,6 @@ 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';
6
+ export { default as GlobalLoading, setGlobalLoading } from './components/GlobalLoading';
5
7
  export { default as useRequest } from './hooks/useRequest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmirror-components",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "main": "build/lib/index.js",
6
6
  "module": "build/es/index.js",
@@ -19,8 +19,7 @@
19
19
  "lint": "eslint .",
20
20
  "preview": "vite preview",
21
21
  "prepublishOnly": "npm run build",
22
- "publish:npm": "npm publish --access public",
23
- "build:component-css": "node scripts/build-component-css.cjs"
22
+ "publish:npm": "npm publish --access public"
24
23
  },
25
24
  "peerDependencies": {
26
25
  "antd": ">=5.0.0",