@pisell/common 0.0.18 → 1.0.1
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/.fatherrc.ts +7 -0
- package/CHANGELOG.md +7 -0
- package/README.md +1 -38
- package/{lib/components → es}/button/index.d.ts +5 -4
- package/es/button/index.d.ts.map +1 -0
- package/es/button/index.js +33 -0
- package/{es/components → lib}/button/index.d.ts +5 -4
- package/lib/button/index.d.ts.map +1 -0
- package/lib/{components/avatar → button}/index.js +14 -11
- package/package.json +20 -77
- package/src/button/index.md +17 -0
- package/src/button/index.tsx +38 -0
- package/tsconfig.json +14 -0
- package/LICENSE +0 -21
- package/es/bin/pisell.js +0 -2
- package/es/business-components/colorInput/index.d.ts +0 -21
- package/es/business-components/colorInput/index.js +0 -43
- package/es/business-components/colorInput/index.less +0 -10
- package/es/business-components/index.d.ts +0 -11
- package/es/business-components/index.js +0 -7
- package/es/business-components/rechargeOption/index.d.ts +0 -36
- package/es/business-components/rechargeOption/index.js +0 -132
- package/es/business-components/rechargeOption/index.less +0 -0
- package/es/business-components/selectTag/index.d.ts +0 -25
- package/es/business-components/selectTag/index.js +0 -179
- package/es/business-components/selectTag/index.less +0 -22
- package/es/business-components/sortModal/index.d.ts +0 -30
- package/es/business-components/sortModal/index.js +0 -85
- package/es/business-components/sortModal/index.less +0 -29
- package/es/business-components/statistics/index.d.ts +0 -12
- package/es/business-components/statistics/index.js +0 -38
- package/es/business-components/statistics/index.less +0 -64
- package/es/business-components/tagModal/index.d.ts +0 -17
- package/es/business-components/tagModal/index.js +0 -58
- package/es/business-hooks/index.d.ts +0 -2
- package/es/business-hooks/index.js +0 -2
- package/es/business-hooks/useModal/index.d.ts +0 -31
- package/es/business-hooks/useModal/index.js +0 -91
- package/es/business-hooks/useModal/index.less +0 -0
- package/es/business-hooks/useTagModal/index.d.ts +0 -17
- package/es/business-hooks/useTagModal/index.js +0 -47
- package/es/components/ColorPicker/index.d.ts +0 -22
- package/es/components/ColorPicker/index.js +0 -51
- package/es/components/ColorPicker/index.less +0 -17
- package/es/components/DragSort/index.d.ts +0 -2
- package/es/components/DragSort/index.js +0 -68
- package/es/components/EditorPreview/index.d.ts +0 -5
- package/es/components/EditorPreview/index.js +0 -14
- package/es/components/EditorPreview/index.less +0 -81
- package/es/components/Iconfont/index.d.ts +0 -6
- package/es/components/Iconfont/index.js +0 -29
- package/es/components/Iconfont/index.less +0 -0
- package/es/components/agreement/Detail/index.d.ts +0 -3
- package/es/components/agreement/Detail/index.js +0 -77
- package/es/components/agreement/Detail/serve.d.ts +0 -1
- package/es/components/agreement/Detail/serve.js +0 -6
- package/es/components/agreement/index.d.ts +0 -11
- package/es/components/agreement/index.js +0 -45
- package/es/components/agreement/index.less +0 -20
- package/es/components/avatar/index.d.ts +0 -13
- package/es/components/avatar/index.js +0 -25
- package/es/components/button/index.js +0 -36
- package/es/components/card/index.d.ts +0 -5
- package/es/components/card/index.js +0 -16
- package/es/components/card/index.less +0 -9
- package/es/components/checkbox/index.d.ts +0 -20
- package/es/components/checkbox/index.js +0 -43
- package/es/components/configProvider/index.d.ts +0 -113
- package/es/components/configProvider/index.js +0 -114
- package/es/components/datePicker/index.d.ts +0 -9
- package/es/components/datePicker/index.js +0 -17
- package/es/components/index.d.ts +0 -30
- package/es/components/index.js +0 -16
- package/es/components/input/index.d.ts +0 -35
- package/es/components/input/index.js +0 -97
- package/es/components/inputNumber/index.d.ts +0 -9
- package/es/components/inputNumber/index.js +0 -17
- package/es/components/pagination/index.d.ts +0 -10
- package/es/components/pagination/index.js +0 -18
- package/es/components/radio/index.d.ts +0 -13
- package/es/components/radio/index.js +0 -28
- package/es/components/select/index.d.ts +0 -9
- package/es/components/select/index.js +0 -17
- package/es/components/switch/index.d.ts +0 -10
- package/es/components/switch/index.js +0 -18
- package/es/config/index.d.ts +0 -30
- package/es/config/index.js +0 -18
- package/es/config/request.d.ts +0 -7
- package/es/config/request.js +0 -67
- package/es/config/utils.d.ts +0 -0
- package/es/config/utils.js +0 -0
- package/es/hooks/index.d.ts +0 -8
- package/es/hooks/index.js +0 -8
- package/es/hooks/useCountDown/index.d.ts +0 -10
- package/es/hooks/useCountDown/index.js +0 -48
- package/es/hooks/useDocumentScroll/index.d.ts +0 -8
- package/es/hooks/useDocumentScroll/index.js +0 -41
- package/es/hooks/useDocumentScroll/index.less +0 -0
- package/es/hooks/useMousemove/index.d.ts +0 -8
- package/es/hooks/useMousemove/index.js +0 -61
- package/es/hooks/useResponsive/index.d.ts +0 -2
- package/es/hooks/useResponsive/index.js +0 -29
- package/es/hooks/useResponsive/index.less +0 -0
- package/es/hooks/useSize/index.d.ts +0 -2
- package/es/hooks/useSize/index.js +0 -27
- package/es/hooks/useSize/index.less +0 -0
- package/es/hooks/useStateMulti/index.d.ts +0 -2
- package/es/hooks/useStateMulti/index.js +0 -29
- package/es/hooks/useStateWithCb/index.d.ts +0 -2
- package/es/hooks/useStateWithCb/index.js +0 -42
- package/es/hooks/useTable/index.d.ts +0 -12
- package/es/hooks/useTable/index.js +0 -74
- package/es/hooks/useTable/index.less +0 -0
- package/es/hooks/useTableModal/index.d.ts +0 -12
- package/es/hooks/useTableModal/index.js +0 -25
- package/es/hooks/useTableModal/index.less +0 -0
- package/es/hooks/useUrlState/index.d.ts +0 -2
- package/es/hooks/useUrlState/index.js +0 -56
- package/es/hooks/useWebSocket/index.d.ts +0 -13
- package/es/hooks/useWebSocket/index.js +0 -121
- package/es/index.d.ts +0 -4
- package/es/index.js +0 -4
- package/es/locales/en-US.d.ts +0 -11
- package/es/locales/en-US.js +0 -10
- package/es/locales/index.d.ts +0 -1
- package/es/locales/index.js +0 -23
- package/es/locales/zh-CN.d.ts +0 -11
- package/es/locales/zh-CN.js +0 -10
- package/es/locales/zh-TW.d.ts +0 -11
- package/es/locales/zh-TW.js +0 -10
- package/es/script/constants/index.js +0 -8
- package/es/script/deploy.js +0 -47
- package/es/script/index.js +0 -40
- package/es/script/package.json +0 -4
- package/es/script/release/index.js +0 -161
- package/es/script/release/release.js +0 -163
- package/es/script/uploadCode/index.js +0 -278
- package/es/script/uploadCode/uploadCode.js +0 -401
- package/es/script/utils/index.js +0 -321
- package/es/utils/index.d.ts +0 -3
- package/es/utils/index.js +0 -3
- package/es/utils/otherUtils.d.ts +0 -8
- package/es/utils/otherUtils.js +0 -12
- package/es/utils/storage.d.ts +0 -30
- package/es/utils/storage.js +0 -70
- package/es/utils/typeUtils.d.ts +0 -42
- package/es/utils/typeUtils.js +0 -86
- package/lib/bin/pisell.js +0 -26
- package/lib/business-components/colorInput/index.d.ts +0 -21
- package/lib/business-components/colorInput/index.js +0 -70
- package/lib/business-components/colorInput/index.less +0 -10
- package/lib/business-components/index.d.ts +0 -11
- package/lib/business-components/index.js +0 -54
- package/lib/business-components/rechargeOption/index.d.ts +0 -36
- package/lib/business-components/rechargeOption/index.js +0 -112
- package/lib/business-components/rechargeOption/index.less +0 -0
- package/lib/business-components/selectTag/index.d.ts +0 -25
- package/lib/business-components/selectTag/index.js +0 -181
- package/lib/business-components/selectTag/index.less +0 -22
- package/lib/business-components/sortModal/index.d.ts +0 -30
- package/lib/business-components/sortModal/index.js +0 -100
- package/lib/business-components/sortModal/index.less +0 -29
- package/lib/business-components/statistics/index.d.ts +0 -12
- package/lib/business-components/statistics/index.js +0 -63
- package/lib/business-components/statistics/index.less +0 -64
- package/lib/business-components/tagModal/index.d.ts +0 -17
- package/lib/business-components/tagModal/index.js +0 -66
- package/lib/business-hooks/index.d.ts +0 -2
- package/lib/business-hooks/index.js +0 -42
- package/lib/business-hooks/useModal/index.d.ts +0 -31
- package/lib/business-hooks/useModal/index.js +0 -68
- package/lib/business-hooks/useModal/index.less +0 -0
- package/lib/business-hooks/useTagModal/index.d.ts +0 -17
- package/lib/business-hooks/useTagModal/index.js +0 -61
- package/lib/components/ColorPicker/index.d.ts +0 -22
- package/lib/components/ColorPicker/index.js +0 -80
- package/lib/components/ColorPicker/index.less +0 -17
- package/lib/components/DragSort/index.d.ts +0 -2
- package/lib/components/DragSort/index.js +0 -101
- package/lib/components/EditorPreview/index.d.ts +0 -5
- package/lib/components/EditorPreview/index.js +0 -37
- package/lib/components/EditorPreview/index.less +0 -81
- package/lib/components/Iconfont/index.d.ts +0 -6
- package/lib/components/Iconfont/index.js +0 -48
- package/lib/components/Iconfont/index.less +0 -0
- package/lib/components/agreement/Detail/index.d.ts +0 -3
- package/lib/components/agreement/Detail/index.js +0 -86
- package/lib/components/agreement/Detail/serve.d.ts +0 -1
- package/lib/components/agreement/Detail/serve.js +0 -30
- package/lib/components/agreement/index.d.ts +0 -11
- package/lib/components/agreement/index.js +0 -82
- package/lib/components/agreement/index.less +0 -20
- package/lib/components/avatar/index.d.ts +0 -13
- package/lib/components/button/index.js +0 -36
- package/lib/components/card/index.d.ts +0 -5
- package/lib/components/card/index.js +0 -42
- package/lib/components/card/index.less +0 -9
- package/lib/components/checkbox/index.d.ts +0 -20
- package/lib/components/checkbox/index.js +0 -36
- package/lib/components/configProvider/index.d.ts +0 -113
- package/lib/components/configProvider/index.js +0 -159
- package/lib/components/datePicker/index.d.ts +0 -9
- package/lib/components/datePicker/index.js +0 -31
- package/lib/components/index.d.ts +0 -30
- package/lib/components/index.js +0 -83
- package/lib/components/input/index.d.ts +0 -35
- package/lib/components/input/index.js +0 -53
- package/lib/components/inputNumber/index.d.ts +0 -9
- package/lib/components/inputNumber/index.js +0 -31
- package/lib/components/pagination/index.d.ts +0 -10
- package/lib/components/pagination/index.js +0 -42
- package/lib/components/radio/index.d.ts +0 -13
- package/lib/components/radio/index.js +0 -36
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/select/index.js +0 -36
- package/lib/components/switch/index.d.ts +0 -10
- package/lib/components/switch/index.js +0 -42
- package/lib/config/index.d.ts +0 -30
- package/lib/config/index.js +0 -39
- package/lib/config/request.d.ts +0 -7
- package/lib/config/request.js +0 -76
- package/lib/config/utils.d.ts +0 -0
- package/lib/config/utils.js +0 -0
- package/lib/hooks/index.d.ts +0 -8
- package/lib/hooks/index.js +0 -57
- package/lib/hooks/useCountDown/index.d.ts +0 -10
- package/lib/hooks/useCountDown/index.js +0 -57
- package/lib/hooks/useDocumentScroll/index.d.ts +0 -8
- package/lib/hooks/useDocumentScroll/index.js +0 -54
- package/lib/hooks/useDocumentScroll/index.less +0 -0
- package/lib/hooks/useMousemove/index.d.ts +0 -8
- package/lib/hooks/useMousemove/index.js +0 -70
- package/lib/hooks/useResponsive/index.d.ts +0 -2
- package/lib/hooks/useResponsive/index.js +0 -47
- package/lib/hooks/useResponsive/index.less +0 -0
- package/lib/hooks/useSize/index.d.ts +0 -2
- package/lib/hooks/useSize/index.js +0 -45
- package/lib/hooks/useSize/index.less +0 -0
- package/lib/hooks/useStateMulti/index.d.ts +0 -2
- package/lib/hooks/useStateMulti/index.js +0 -43
- package/lib/hooks/useStateWithCb/index.d.ts +0 -2
- package/lib/hooks/useStateWithCb/index.js +0 -53
- package/lib/hooks/useTable/index.d.ts +0 -12
- package/lib/hooks/useTable/index.js +0 -75
- package/lib/hooks/useTable/index.less +0 -0
- package/lib/hooks/useTableModal/index.d.ts +0 -12
- package/lib/hooks/useTableModal/index.js +0 -43
- package/lib/hooks/useTableModal/index.less +0 -0
- package/lib/hooks/useUrlState/index.d.ts +0 -2
- package/lib/hooks/useUrlState/index.js +0 -59
- package/lib/hooks/useWebSocket/index.d.ts +0 -13
- package/lib/hooks/useWebSocket/index.js +0 -91
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -22
- package/lib/locales/en-US.d.ts +0 -11
- package/lib/locales/en-US.js +0 -36
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/index.js +0 -59
- package/lib/locales/zh-CN.d.ts +0 -11
- package/lib/locales/zh-CN.js +0 -36
- package/lib/locales/zh-TW.d.ts +0 -11
- package/lib/locales/zh-TW.js +0 -36
- package/lib/script/constants/index.js +0 -35
- package/lib/script/deploy.js +0 -61
- package/lib/script/index.js +0 -61
- package/lib/script/package.json +0 -4
- package/lib/script/release/index.js +0 -116
- package/lib/script/release/release.js +0 -89
- package/lib/script/uploadCode/index.js +0 -202
- package/lib/script/uploadCode/uploadCode.js +0 -208
- package/lib/script/utils/index.js +0 -248
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/index.js +0 -21
- package/lib/utils/otherUtils.d.ts +0 -8
- package/lib/utils/otherUtils.js +0 -31
- package/lib/utils/storage.d.ts +0 -30
- package/lib/utils/storage.js +0 -63
- package/lib/utils/typeUtils.d.ts +0 -42
- package/lib/utils/typeUtils.js +0 -75
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/radio/index.tsx
|
|
20
|
-
var radio_exports = {};
|
|
21
|
-
__export(radio_exports, {
|
|
22
|
-
default: () => radio_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(radio_exports);
|
|
25
|
-
var import_antd5 = require("antd5");
|
|
26
|
-
var { Group: AntGroup } = import_antd5.Radio;
|
|
27
|
-
var Radio = (props) => {
|
|
28
|
-
return /* @__PURE__ */ React.createElement(import_antd5.Radio, { ...props });
|
|
29
|
-
};
|
|
30
|
-
var Group = (props) => {
|
|
31
|
-
return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
|
|
32
|
-
};
|
|
33
|
-
Radio.Group = Group;
|
|
34
|
-
var radio_default = Radio;
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SelectProps as AntSelectProps } from 'antd5';
|
|
2
|
-
import { OptionProps as AntOptionProps } from 'rc-select/es/Option';
|
|
3
|
-
export declare type SelectProps = AntSelectProps;
|
|
4
|
-
export declare type SelectOptionProps = AntOptionProps;
|
|
5
|
-
declare const Select: {
|
|
6
|
-
(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
Option: (props: AntOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export default Select;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/select/index.tsx
|
|
20
|
-
var select_exports = {};
|
|
21
|
-
__export(select_exports, {
|
|
22
|
-
default: () => select_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(select_exports);
|
|
25
|
-
var import_antd5 = require("antd5");
|
|
26
|
-
var { Option: AntOption } = import_antd5.Select;
|
|
27
|
-
var Option = (props) => {
|
|
28
|
-
return /* @__PURE__ */ React.createElement(AntOption, { ...props });
|
|
29
|
-
};
|
|
30
|
-
var Select = (props) => {
|
|
31
|
-
return /* @__PURE__ */ React.createElement(import_antd5.Select, { ...props });
|
|
32
|
-
};
|
|
33
|
-
Select.Option = Option;
|
|
34
|
-
var select_default = Select;
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SwitchProps as AntSwitchProps } from 'antd5';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare type SwitchProps = AntSwitchProps;
|
|
4
|
-
/**
|
|
5
|
-
* 开关
|
|
6
|
-
* @param props
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
declare const Switch: React.FC<SwitchProps>;
|
|
10
|
-
export default Switch;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/switch/index.tsx
|
|
30
|
-
var switch_exports = {};
|
|
31
|
-
__export(switch_exports, {
|
|
32
|
-
default: () => switch_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(switch_exports);
|
|
35
|
-
var import_antd5 = require("antd5");
|
|
36
|
-
var import_react = __toESM(require("react"));
|
|
37
|
-
var Switch = (props) => {
|
|
38
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Switch, { ...props });
|
|
39
|
-
};
|
|
40
|
-
var switch_default = Switch;
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {});
|
package/lib/config/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare type PisellConfigType = {
|
|
2
|
-
ENV: {
|
|
3
|
-
host: string;
|
|
4
|
-
socket: string;
|
|
5
|
-
helpHost: string;
|
|
6
|
-
boxlocal_h5: string;
|
|
7
|
-
accounts: string;
|
|
8
|
-
domain: string;
|
|
9
|
-
googleMap: string;
|
|
10
|
-
appCenter: string;
|
|
11
|
-
static: string;
|
|
12
|
-
};
|
|
13
|
-
/** 当前主项目类型 */
|
|
14
|
-
platform: 'shop' | string;
|
|
15
|
-
/** 包内请求 由主项目注入 */
|
|
16
|
-
request: {
|
|
17
|
-
get: RequestMethod;
|
|
18
|
-
post: RequestMethod;
|
|
19
|
-
put: RequestMethod;
|
|
20
|
-
remove: RequestMethod;
|
|
21
|
-
request: RequestMethod;
|
|
22
|
-
};
|
|
23
|
-
/** 消息通知url */
|
|
24
|
-
webhookUrl?: string;
|
|
25
|
-
};
|
|
26
|
-
export interface RequestMethod {
|
|
27
|
-
<T = any>(url: string, data?: Record<string, any>, config?: any): Promise<T>;
|
|
28
|
-
}
|
|
29
|
-
export declare const initConfig: (options: PisellConfigType) => void;
|
|
30
|
-
export declare const getConfig: () => PisellConfigType;
|
package/lib/config/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/config/index.ts
|
|
20
|
-
var config_exports = {};
|
|
21
|
-
__export(config_exports, {
|
|
22
|
-
getConfig: () => getConfig,
|
|
23
|
-
initConfig: () => initConfig
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(config_exports);
|
|
26
|
-
var PisellConfig = {};
|
|
27
|
-
var initConfig = (options) => {
|
|
28
|
-
Object.entries(options).forEach(([key, value]) => {
|
|
29
|
-
PisellConfig[key] = value;
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
var getConfig = () => {
|
|
33
|
-
return PisellConfig;
|
|
34
|
-
};
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
getConfig,
|
|
38
|
-
initConfig
|
|
39
|
-
});
|
package/lib/config/request.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RequestMethod } from './index';
|
|
2
|
-
declare const get: RequestMethod;
|
|
3
|
-
declare const post: RequestMethod;
|
|
4
|
-
declare const put: RequestMethod;
|
|
5
|
-
declare const remove: RequestMethod;
|
|
6
|
-
declare const request: RequestMethod;
|
|
7
|
-
export { get, post, put, remove, request };
|
package/lib/config/request.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/config/request.ts
|
|
20
|
-
var request_exports = {};
|
|
21
|
-
__export(request_exports, {
|
|
22
|
-
get: () => get,
|
|
23
|
-
post: () => post,
|
|
24
|
-
put: () => put,
|
|
25
|
-
remove: () => remove,
|
|
26
|
-
request: () => request
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(request_exports);
|
|
29
|
-
var import_index = require("./index");
|
|
30
|
-
var importRequest = function() {
|
|
31
|
-
let request2 = null;
|
|
32
|
-
return () => {
|
|
33
|
-
if (request2) {
|
|
34
|
-
return request2;
|
|
35
|
-
}
|
|
36
|
-
({ request: request2 } = (0, import_index.getConfig)());
|
|
37
|
-
return request2;
|
|
38
|
-
};
|
|
39
|
-
}();
|
|
40
|
-
var defaultFunction = async (...arg) => {
|
|
41
|
-
console.log("请先初始化request配置", ...arg);
|
|
42
|
-
return "";
|
|
43
|
-
};
|
|
44
|
-
var get = (...arg) => {
|
|
45
|
-
var _a;
|
|
46
|
-
const func = ((_a = importRequest()) == null ? void 0 : _a.get) || defaultFunction;
|
|
47
|
-
return func(...arg);
|
|
48
|
-
};
|
|
49
|
-
var post = (...arg) => {
|
|
50
|
-
var _a;
|
|
51
|
-
const func = ((_a = importRequest()) == null ? void 0 : _a.post) || defaultFunction;
|
|
52
|
-
return func(...arg);
|
|
53
|
-
};
|
|
54
|
-
var put = (...arg) => {
|
|
55
|
-
var _a;
|
|
56
|
-
const func = ((_a = importRequest()) == null ? void 0 : _a.put) || defaultFunction;
|
|
57
|
-
return func(...arg);
|
|
58
|
-
};
|
|
59
|
-
var remove = (...arg) => {
|
|
60
|
-
var _a;
|
|
61
|
-
const func = ((_a = importRequest()) == null ? void 0 : _a.remove) || defaultFunction;
|
|
62
|
-
return func(...arg);
|
|
63
|
-
};
|
|
64
|
-
var request = (...arg) => {
|
|
65
|
-
var _a;
|
|
66
|
-
const func = ((_a = importRequest()) == null ? void 0 : _a.request) || defaultFunction;
|
|
67
|
-
return func(...arg);
|
|
68
|
-
};
|
|
69
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
-
0 && (module.exports = {
|
|
71
|
-
get,
|
|
72
|
-
post,
|
|
73
|
-
put,
|
|
74
|
-
remove,
|
|
75
|
-
request
|
|
76
|
-
});
|
package/lib/config/utils.d.ts
DELETED
|
File without changes
|
package/lib/config/utils.js
DELETED
|
File without changes
|
package/lib/hooks/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import useMousemove from './useMousemove';
|
|
2
|
-
import useResponsive from './useResponsive';
|
|
3
|
-
import useSize from './useSize';
|
|
4
|
-
import useStateMulti from './useStateMulti';
|
|
5
|
-
import useStateWithCb from './useStateWithCb';
|
|
6
|
-
import useTable from './useTable';
|
|
7
|
-
import useUrlState from './useUrlState';
|
|
8
|
-
export { useStateMulti, useStateWithCb, useResponsive, useUrlState, useSize, useMousemove, useTable, };
|
package/lib/hooks/index.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/hooks/index.ts
|
|
30
|
-
var hooks_exports = {};
|
|
31
|
-
__export(hooks_exports, {
|
|
32
|
-
useMousemove: () => import_useMousemove.default,
|
|
33
|
-
useResponsive: () => import_useResponsive.default,
|
|
34
|
-
useSize: () => import_useSize.default,
|
|
35
|
-
useStateMulti: () => import_useStateMulti.default,
|
|
36
|
-
useStateWithCb: () => import_useStateWithCb.default,
|
|
37
|
-
useTable: () => import_useTable.default,
|
|
38
|
-
useUrlState: () => import_useUrlState.default
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(hooks_exports);
|
|
41
|
-
var import_useMousemove = __toESM(require("./useMousemove"));
|
|
42
|
-
var import_useResponsive = __toESM(require("./useResponsive"));
|
|
43
|
-
var import_useSize = __toESM(require("./useSize"));
|
|
44
|
-
var import_useStateMulti = __toESM(require("./useStateMulti"));
|
|
45
|
-
var import_useStateWithCb = __toESM(require("./useStateWithCb"));
|
|
46
|
-
var import_useTable = __toESM(require("./useTable"));
|
|
47
|
-
var import_useUrlState = __toESM(require("./useUrlState"));
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
useMousemove,
|
|
51
|
-
useResponsive,
|
|
52
|
-
useSize,
|
|
53
|
-
useStateMulti,
|
|
54
|
-
useStateWithCb,
|
|
55
|
-
useTable,
|
|
56
|
-
useUrlState
|
|
57
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/hooks/useCountDown/index.ts
|
|
20
|
-
var useCountDown_exports = {};
|
|
21
|
-
__export(useCountDown_exports, {
|
|
22
|
-
default: () => useCountDown_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(useCountDown_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var useCountDown = ({ second = 60, running = false } = {}) => {
|
|
27
|
-
const [_running, setRunning] = (0, import_react.useState)(running);
|
|
28
|
-
const [_second, setSecond] = (0, import_react.useState)(second);
|
|
29
|
-
const timer = (0, import_react.useRef)();
|
|
30
|
-
const stop = (0, import_react.useCallback)(() => {
|
|
31
|
-
setRunning(false);
|
|
32
|
-
clearInterval(timer.current);
|
|
33
|
-
}, []);
|
|
34
|
-
const start = (0, import_react.useCallback)(() => {
|
|
35
|
-
setSecond(second);
|
|
36
|
-
setRunning(true);
|
|
37
|
-
timer.current = setInterval(() => {
|
|
38
|
-
setSecond((s) => {
|
|
39
|
-
s = s - 1;
|
|
40
|
-
if (s <= 0) {
|
|
41
|
-
s = 0;
|
|
42
|
-
stop();
|
|
43
|
-
}
|
|
44
|
-
return s;
|
|
45
|
-
});
|
|
46
|
-
}, 1e3);
|
|
47
|
-
}, [second, stop]);
|
|
48
|
-
return {
|
|
49
|
-
running: _running,
|
|
50
|
-
second: _second,
|
|
51
|
-
start,
|
|
52
|
-
stop
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
var useCountDown_default = useCountDown;
|
|
56
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
-
0 && (module.exports = {});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/hooks/useDocumentScroll/index.tsx
|
|
20
|
-
var useDocumentScroll_exports = {};
|
|
21
|
-
__export(useDocumentScroll_exports, {
|
|
22
|
-
default: () => useDocumentScroll_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(useDocumentScroll_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var import_ahooks = require("ahooks");
|
|
27
|
-
var initValue = {
|
|
28
|
-
left: 0,
|
|
29
|
-
top: 0,
|
|
30
|
-
// 窗口高度
|
|
31
|
-
innerHeight: 0,
|
|
32
|
-
// 当前窗口高度
|
|
33
|
-
newInnerHeight: 0
|
|
34
|
-
};
|
|
35
|
-
var useDocumentScroll = () => {
|
|
36
|
-
const _innerHeight = (0, import_react.useMemo)(() => {
|
|
37
|
-
return document.documentElement.clientHeight;
|
|
38
|
-
}, []);
|
|
39
|
-
const _scroll = (0, import_ahooks.useScroll)(document);
|
|
40
|
-
const _result = (0, import_react.useMemo)(() => {
|
|
41
|
-
return {
|
|
42
|
-
...initValue,
|
|
43
|
-
..._scroll,
|
|
44
|
-
// 窗口高度
|
|
45
|
-
innerHeight: _innerHeight,
|
|
46
|
-
// 当前窗口高度
|
|
47
|
-
newInnerHeight: window.innerHeight
|
|
48
|
-
};
|
|
49
|
-
}, [_innerHeight, _scroll]);
|
|
50
|
-
return _result;
|
|
51
|
-
};
|
|
52
|
-
var useDocumentScroll_default = useDocumentScroll;
|
|
53
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
-
0 && (module.exports = {});
|
|
File without changes
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/hooks/useMousemove/index.ts
|
|
20
|
-
var useMousemove_exports = {};
|
|
21
|
-
__export(useMousemove_exports, {
|
|
22
|
-
default: () => useMousemove_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(useMousemove_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var count = 0;
|
|
27
|
-
var timer = null;
|
|
28
|
-
var useMousemove = ({ time = 60 }) => {
|
|
29
|
-
const [isMove, setIsMove] = (0, import_react.useState)(false);
|
|
30
|
-
const go = () => {
|
|
31
|
-
count++;
|
|
32
|
-
if (count >= time) {
|
|
33
|
-
setIsMove(true);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const init = () => {
|
|
37
|
-
timer = setInterval(go, 1e3);
|
|
38
|
-
let x;
|
|
39
|
-
let y;
|
|
40
|
-
document.onmousemove = (event) => {
|
|
41
|
-
let x1 = event.clientX;
|
|
42
|
-
let y1 = event.clientY;
|
|
43
|
-
if (x != x1 || y != y1) {
|
|
44
|
-
count = 0;
|
|
45
|
-
setIsMove(false);
|
|
46
|
-
}
|
|
47
|
-
x = x1;
|
|
48
|
-
y = y1;
|
|
49
|
-
};
|
|
50
|
-
document.onkeydown = () => {
|
|
51
|
-
count = 0;
|
|
52
|
-
setIsMove(false);
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
(0, import_react.useEffect)(() => {
|
|
56
|
-
init();
|
|
57
|
-
return () => {
|
|
58
|
-
clearInterval(timer);
|
|
59
|
-
setIsMove(false);
|
|
60
|
-
document.onmousemove = null;
|
|
61
|
-
document.onkeydown = null;
|
|
62
|
-
};
|
|
63
|
-
}, []);
|
|
64
|
-
return {
|
|
65
|
-
isMove
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
var useMousemove_default = useMousemove;
|
|
69
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
-
0 && (module.exports = {});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/hooks/useResponsive/index.tsx
|
|
20
|
-
var useResponsive_exports = {};
|
|
21
|
-
__export(useResponsive_exports, {
|
|
22
|
-
default: () => useResponsive_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(useResponsive_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var import_ahooks = require("ahooks");
|
|
27
|
-
(0, import_ahooks.configResponsive)({
|
|
28
|
-
phone: 0,
|
|
29
|
-
ipad: 700,
|
|
30
|
-
pc: 1080
|
|
31
|
-
});
|
|
32
|
-
var useLmResponsive = () => {
|
|
33
|
-
const responsive = (0, import_ahooks.useResponsive)();
|
|
34
|
-
const current = (0, import_react.useMemo)(() => {
|
|
35
|
-
if (responsive == null ? void 0 : responsive.pc) {
|
|
36
|
-
return "pc";
|
|
37
|
-
}
|
|
38
|
-
if (responsive == null ? void 0 : responsive.ipad) {
|
|
39
|
-
return "ipad";
|
|
40
|
-
}
|
|
41
|
-
return "phone";
|
|
42
|
-
}, [responsive]);
|
|
43
|
-
return current;
|
|
44
|
-
};
|
|
45
|
-
var useResponsive_default = useLmResponsive;
|
|
46
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
-
0 && (module.exports = {});
|
|
File without changes
|