@pisell/common 0.0.19 → 0.0.21-bata
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/es/script/constants/index.js +5 -0
- package/es/script/release/index.js +1 -1
- package/es/script/release/release.js +1 -1
- package/es/script/uploadCode/uploadCode.js +1 -1
- package/es/script/utils/index.js +22 -7
- package/lib/script/constants/index.js +5 -0
- package/lib/script/release/index.js +1 -1
- package/lib/script/release/release.js +1 -1
- package/lib/script/uploadCode/uploadCode.js +1 -1
- package/lib/script/utils/index.js +5 -1
- package/package.json +1 -1
- package/es/components/DragSort/index.d.ts +0 -2
- package/es/components/EditorPreview/index.d.ts +0 -5
- package/es/components/agreement/Detail/index.d.ts +0 -3
- package/es/components/button/index.d.ts +0 -17
- package/es/components/card/index.d.ts +0 -5
- package/es/components/checkbox/index.d.ts +0 -20
- package/es/components/datePicker/index.d.ts +0 -9
- package/es/components/index.d.ts +0 -30
- package/es/components/input/index.d.ts +0 -35
- package/es/components/inputNumber/index.d.ts +0 -9
- package/es/components/radio/index.d.ts +0 -13
- package/es/components/select/index.d.ts +0 -9
- package/es/config/index.d.ts +0 -30
- package/lib/components/DragSort/index.d.ts +0 -2
- package/lib/components/EditorPreview/index.d.ts +0 -5
- package/lib/components/agreement/Detail/index.d.ts +0 -3
- package/lib/components/button/index.d.ts +0 -17
- package/lib/components/card/index.d.ts +0 -5
- package/lib/components/checkbox/index.d.ts +0 -20
- package/lib/components/datePicker/index.d.ts +0 -9
- package/lib/components/index.d.ts +0 -30
- package/lib/components/input/index.d.ts +0 -35
- package/lib/components/inputNumber/index.d.ts +0 -9
- package/lib/components/radio/index.d.ts +0 -13
- package/lib/components/select/index.d.ts +0 -9
- package/lib/config/index.d.ts +0 -30
|
@@ -3,6 +3,11 @@ var outPathMap = {
|
|
|
3
3
|
prod: '../data/release/project/mypisel_shop',
|
|
4
4
|
release: '../data/release/project/my_pisel_shop',
|
|
5
5
|
pre: '../data/release/project/my_pisel_shop'
|
|
6
|
+
},
|
|
7
|
+
admin: {
|
|
8
|
+
prod: '../data/release/project/pisell_v2',
|
|
9
|
+
release: '../data/release/project/pisell_v2',
|
|
10
|
+
pre: '../data/release/project/pisell_v2'
|
|
6
11
|
}
|
|
7
12
|
};
|
|
8
13
|
export { outPathMap };
|
|
@@ -71,7 +71,7 @@ var getVersionList = /*#__PURE__*/function () {
|
|
|
71
71
|
case 0:
|
|
72
72
|
env = _ref.env, project = _ref.project;
|
|
73
73
|
_context.next = 3;
|
|
74
|
-
return getServerConfig();
|
|
74
|
+
return getServerConfig(project.fileName);
|
|
75
75
|
case 3:
|
|
76
76
|
config = _context.sent;
|
|
77
77
|
host = config[env].host;
|
|
@@ -43,7 +43,7 @@ var Release = /*#__PURE__*/function () {
|
|
|
43
43
|
while (1) switch (_context.prev = _context.next) {
|
|
44
44
|
case 0:
|
|
45
45
|
_context.next = 2;
|
|
46
|
-
return getServerConfig();
|
|
46
|
+
return getServerConfig(this.projectName);
|
|
47
47
|
case 2:
|
|
48
48
|
serverConfigMap = _context.sent;
|
|
49
49
|
serverConfig = serverConfigMap[this.env]; // 选择release默认用国内cn服务器
|
|
@@ -66,7 +66,7 @@ var UploadCode = /*#__PURE__*/function () {
|
|
|
66
66
|
while (1) switch (_context.prev = _context.next) {
|
|
67
67
|
case 0:
|
|
68
68
|
_context.next = 2;
|
|
69
|
-
return getServerConfig();
|
|
69
|
+
return getServerConfig(this.projectName);
|
|
70
70
|
case 2:
|
|
71
71
|
serverConfigMap = _context.sent;
|
|
72
72
|
if (serverConfigMap) {
|
package/es/script/utils/index.js
CHANGED
|
@@ -62,27 +62,42 @@ var getGitCurrentBranch = /*#__PURE__*/function () {
|
|
|
62
62
|
};
|
|
63
63
|
}();
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* monorepo项目名称
|
|
67
|
+
* @type {string[]}
|
|
68
|
+
*/
|
|
69
|
+
var monorepoProjectNameArr = ['admin'];
|
|
70
|
+
|
|
65
71
|
/**
|
|
66
72
|
* @Title: 获取本地lm_config.json配置信息
|
|
67
|
-
* @Describe
|
|
73
|
+
* @Describe:·
|
|
68
74
|
* @Author: Zsj
|
|
69
75
|
*/
|
|
70
76
|
var getServerConfig = /*#__PURE__*/function () {
|
|
71
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
77
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(project) {
|
|
72
78
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
73
79
|
while (1) switch (_context3.prev = _context3.next) {
|
|
74
80
|
case 0:
|
|
75
|
-
|
|
81
|
+
if (!monorepoProjectNameArr.includes(project)) {
|
|
82
|
+
_context3.next = 4;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
_context3.next = 3;
|
|
86
|
+
return fs.readJson('../../lm_config.json');
|
|
87
|
+
case 3:
|
|
88
|
+
return _context3.abrupt("return", _context3.sent);
|
|
89
|
+
case 4:
|
|
90
|
+
_context3.next = 6;
|
|
76
91
|
return fs.readJson('../lm_config.json');
|
|
77
|
-
case
|
|
92
|
+
case 6:
|
|
78
93
|
return _context3.abrupt("return", _context3.sent);
|
|
79
|
-
case
|
|
94
|
+
case 7:
|
|
80
95
|
case "end":
|
|
81
96
|
return _context3.stop();
|
|
82
97
|
}
|
|
83
98
|
}, _callee3);
|
|
84
99
|
}));
|
|
85
|
-
return function getServerConfig() {
|
|
100
|
+
return function getServerConfig(_x) {
|
|
86
101
|
return _ref3.apply(this, arguments);
|
|
87
102
|
};
|
|
88
103
|
}();
|
|
@@ -314,7 +329,7 @@ var sendWebhook = /*#__PURE__*/function () {
|
|
|
314
329
|
}
|
|
315
330
|
}, _callee5);
|
|
316
331
|
}));
|
|
317
|
-
return function sendWebhook(
|
|
332
|
+
return function sendWebhook(_x2) {
|
|
318
333
|
return _ref9.apply(this, arguments);
|
|
319
334
|
};
|
|
320
335
|
}();
|
|
@@ -27,6 +27,11 @@ var outPathMap = {
|
|
|
27
27
|
prod: "../data/release/project/mypisel_shop",
|
|
28
28
|
release: "../data/release/project/my_pisel_shop",
|
|
29
29
|
pre: "../data/release/project/my_pisel_shop"
|
|
30
|
+
},
|
|
31
|
+
admin: {
|
|
32
|
+
prod: "../data/release/project/pisell_v2",
|
|
33
|
+
release: "../data/release/project/pisell_v2",
|
|
34
|
+
pre: "../data/release/project/pisell_v2"
|
|
30
35
|
}
|
|
31
36
|
};
|
|
32
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -79,7 +79,7 @@ var inquirerResult = (versionList) => {
|
|
|
79
79
|
};
|
|
80
80
|
var ignoreName = ["master", ".git", "pre-master"];
|
|
81
81
|
var getVersionList = async ({ env, project }) => {
|
|
82
|
-
const config = await (0, import_utils.getServerConfig)();
|
|
82
|
+
const config = await (0, import_utils.getServerConfig)(project.fileName);
|
|
83
83
|
let host = config[env].host;
|
|
84
84
|
if (env === "release") {
|
|
85
85
|
host = config.cn[env].host;
|
|
@@ -39,7 +39,7 @@ var Release = class {
|
|
|
39
39
|
* @Author: Zsj
|
|
40
40
|
*/
|
|
41
41
|
async setConfig() {
|
|
42
|
-
const serverConfigMap = await (0, import_utils.getServerConfig)();
|
|
42
|
+
const serverConfigMap = await (0, import_utils.getServerConfig)(this.projectName);
|
|
43
43
|
let serverConfig = serverConfigMap[this.env];
|
|
44
44
|
if (this.env === "release") {
|
|
45
45
|
serverConfig = serverConfigMap.cn[this.env];
|
|
@@ -66,7 +66,7 @@ var UploadCode = class {
|
|
|
66
66
|
* @Author: Zsj
|
|
67
67
|
*/
|
|
68
68
|
async check() {
|
|
69
|
-
const serverConfigMap = await (0, import_utils.getServerConfig)();
|
|
69
|
+
const serverConfigMap = await (0, import_utils.getServerConfig)(this.projectName);
|
|
70
70
|
if (!serverConfigMap) {
|
|
71
71
|
console.log("未找到发布脚本!");
|
|
72
72
|
return false;
|
|
@@ -54,7 +54,11 @@ var getGitCurrentBranch = async () => {
|
|
|
54
54
|
const v = await $`git symbolic-ref --short HEAD`;
|
|
55
55
|
return v.stdout;
|
|
56
56
|
};
|
|
57
|
-
var
|
|
57
|
+
var monorepoProjectNameArr = ["admin"];
|
|
58
|
+
var getServerConfig = async (project) => {
|
|
59
|
+
if (monorepoProjectNameArr.includes(project)) {
|
|
60
|
+
return await fs.readJson("../../lm_config.json");
|
|
61
|
+
}
|
|
58
62
|
return await fs.readJson("../lm_config.json");
|
|
59
63
|
};
|
|
60
64
|
var connectServer = (config2) => {
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps as AntButtonProps } from 'antd5';
|
|
2
|
-
import type { ButtonGroupProps as AntButtonGroupProps } from 'antd5/es/button';
|
|
3
|
-
/**
|
|
4
|
-
* 后续可添加属性
|
|
5
|
-
*/
|
|
6
|
-
export declare type ButtonProps = AntButtonProps;
|
|
7
|
-
export declare type ButtonGroupProps = AntButtonGroupProps;
|
|
8
|
-
/**
|
|
9
|
-
* 按钮组件
|
|
10
|
-
* @param props
|
|
11
|
-
* @constructor
|
|
12
|
-
*/
|
|
13
|
-
declare const Button: {
|
|
14
|
-
(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
Group: (props: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export default Button;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
|
|
2
|
-
import type { CheckboxProps as AntCheckboxProps } from 'antd5';
|
|
3
|
-
/**
|
|
4
|
-
* 后续可添加属性
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* 后续可添加属性
|
|
8
|
-
*/
|
|
9
|
-
export declare type CheckboxProps = AntCheckboxProps;
|
|
10
|
-
export declare type CheckboxGroupProps = AntCheckboxGroupProps;
|
|
11
|
-
/**
|
|
12
|
-
* 多选框
|
|
13
|
-
* @param props
|
|
14
|
-
* @constructor
|
|
15
|
-
*/
|
|
16
|
-
declare const Checkbox: {
|
|
17
|
-
(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
Group: (props: AntCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
};
|
|
20
|
-
export default Checkbox;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DatePickerProps as AntDatePickerProps } from 'antd5';
|
|
2
|
-
export declare type DatePickerProps = AntDatePickerProps;
|
|
3
|
-
/**
|
|
4
|
-
* 日期选择框
|
|
5
|
-
* @param props
|
|
6
|
-
* @constructor
|
|
7
|
-
*/
|
|
8
|
-
declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default DatePicker;
|
package/es/components/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export { default as Agreement } from './agreement';
|
|
2
|
-
export type { AgreementProps } from './agreement';
|
|
3
|
-
export { default as Avatar } from './avatar';
|
|
4
|
-
export type { AvatarProps } from './avatar';
|
|
5
|
-
export { default as Button } from './button';
|
|
6
|
-
export type { ButtonGroupProps, ButtonProps } from './button';
|
|
7
|
-
export { default as Card } from './card';
|
|
8
|
-
export type { CardProps } from './card';
|
|
9
|
-
export { default as Checkbox } from './checkbox';
|
|
10
|
-
export type { CheckboxGroupProps, CheckboxProps } from './checkbox';
|
|
11
|
-
export { default as ColorPicker } from './ColorPicker';
|
|
12
|
-
export type { ColorPickerProps } from './ColorPicker';
|
|
13
|
-
export * from './configProvider';
|
|
14
|
-
export { default as DatePicker } from './datePicker';
|
|
15
|
-
export type { DatePickerProps } from './datePicker';
|
|
16
|
-
export { default as DragSort } from './DragSort';
|
|
17
|
-
export { default as IconFont } from './Iconfont';
|
|
18
|
-
export type { IconFontProps } from './Iconfont';
|
|
19
|
-
export { default as Input } from './input';
|
|
20
|
-
export type { GroupProps, InputProps, PasswordProps, SearchProps, TextAreaProps, } from './input';
|
|
21
|
-
export { default as InputNumber } from './inputNumber';
|
|
22
|
-
export type { InputNumberProps } from './inputNumber';
|
|
23
|
-
export { default as Pagination } from './pagination';
|
|
24
|
-
export type { PaginationProps } from './pagination';
|
|
25
|
-
export { default as Radio } from './radio';
|
|
26
|
-
export type { RadioGroupProps, RadioProps } from './radio';
|
|
27
|
-
export { default as Select } from './select';
|
|
28
|
-
export type { SelectOptionProps, SelectProps } from './select';
|
|
29
|
-
export { default as Switch } from './switch';
|
|
30
|
-
export type { SwitchProps } from './switch';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { InputProps as AntInputProps } from 'antd5';
|
|
2
|
-
import { GroupProps as AntGroupProps, PasswordProps as AntPasswordProps, SearchProps as AntSearchProps, TextAreaProps as AntTextAreaProps } from 'antd5/es/input';
|
|
3
|
-
/**
|
|
4
|
-
* 后续可添加属性
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* 后续可添加属性
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* 后续可添加属性
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* 后续可添加属性
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* 后续可添加属性
|
|
17
|
-
*/
|
|
18
|
-
export declare type InputProps = AntInputProps;
|
|
19
|
-
export declare type TextAreaProps = AntTextAreaProps;
|
|
20
|
-
export declare type SearchProps = AntSearchProps;
|
|
21
|
-
export declare type PasswordProps = AntPasswordProps;
|
|
22
|
-
export declare type GroupProps = AntGroupProps;
|
|
23
|
-
/**
|
|
24
|
-
* input输入框
|
|
25
|
-
* @param props
|
|
26
|
-
* @constructor
|
|
27
|
-
*/
|
|
28
|
-
declare const Input: {
|
|
29
|
-
(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
TextArea: (props: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
Search: (props: SearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
Password: (props: PasswordProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
Group: (props: GroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
};
|
|
35
|
-
export default Input;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { InputNumberProps as AntInputNumberProps } from 'antd5';
|
|
2
|
-
export declare type InputNumberProps = AntInputNumberProps;
|
|
3
|
-
/**
|
|
4
|
-
* 数字输入框
|
|
5
|
-
* @param props
|
|
6
|
-
* @constructor
|
|
7
|
-
*/
|
|
8
|
-
declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default InputNumber;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { RadioGroupProps as AntRadioGroupProps, RadioProps as AntRadioProps } from 'antd5';
|
|
2
|
-
export declare type RadioGroupProps = AntRadioGroupProps;
|
|
3
|
-
export declare type RadioProps = AntRadioProps;
|
|
4
|
-
/**
|
|
5
|
-
* 单选框
|
|
6
|
-
* @param props
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
declare const Radio: {
|
|
10
|
-
(props: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
Group: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
export default Radio;
|
|
@@ -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;
|
package/es/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;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps as AntButtonProps } from 'antd5';
|
|
2
|
-
import type { ButtonGroupProps as AntButtonGroupProps } from 'antd5/es/button';
|
|
3
|
-
/**
|
|
4
|
-
* 后续可添加属性
|
|
5
|
-
*/
|
|
6
|
-
export declare type ButtonProps = AntButtonProps;
|
|
7
|
-
export declare type ButtonGroupProps = AntButtonGroupProps;
|
|
8
|
-
/**
|
|
9
|
-
* 按钮组件
|
|
10
|
-
* @param props
|
|
11
|
-
* @constructor
|
|
12
|
-
*/
|
|
13
|
-
declare const Button: {
|
|
14
|
-
(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
Group: (props: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export default Button;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
|
|
2
|
-
import type { CheckboxProps as AntCheckboxProps } from 'antd5';
|
|
3
|
-
/**
|
|
4
|
-
* 后续可添加属性
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* 后续可添加属性
|
|
8
|
-
*/
|
|
9
|
-
export declare type CheckboxProps = AntCheckboxProps;
|
|
10
|
-
export declare type CheckboxGroupProps = AntCheckboxGroupProps;
|
|
11
|
-
/**
|
|
12
|
-
* 多选框
|
|
13
|
-
* @param props
|
|
14
|
-
* @constructor
|
|
15
|
-
*/
|
|
16
|
-
declare const Checkbox: {
|
|
17
|
-
(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
Group: (props: AntCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
};
|
|
20
|
-
export default Checkbox;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DatePickerProps as AntDatePickerProps } from 'antd5';
|
|
2
|
-
export declare type DatePickerProps = AntDatePickerProps;
|
|
3
|
-
/**
|
|
4
|
-
* 日期选择框
|
|
5
|
-
* @param props
|
|
6
|
-
* @constructor
|
|
7
|
-
*/
|
|
8
|
-
declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default DatePicker;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export { default as Agreement } from './agreement';
|
|
2
|
-
export type { AgreementProps } from './agreement';
|
|
3
|
-
export { default as Avatar } from './avatar';
|
|
4
|
-
export type { AvatarProps } from './avatar';
|
|
5
|
-
export { default as Button } from './button';
|
|
6
|
-
export type { ButtonGroupProps, ButtonProps } from './button';
|
|
7
|
-
export { default as Card } from './card';
|
|
8
|
-
export type { CardProps } from './card';
|
|
9
|
-
export { default as Checkbox } from './checkbox';
|
|
10
|
-
export type { CheckboxGroupProps, CheckboxProps } from './checkbox';
|
|
11
|
-
export { default as ColorPicker } from './ColorPicker';
|
|
12
|
-
export type { ColorPickerProps } from './ColorPicker';
|
|
13
|
-
export * from './configProvider';
|
|
14
|
-
export { default as DatePicker } from './datePicker';
|
|
15
|
-
export type { DatePickerProps } from './datePicker';
|
|
16
|
-
export { default as DragSort } from './DragSort';
|
|
17
|
-
export { default as IconFont } from './Iconfont';
|
|
18
|
-
export type { IconFontProps } from './Iconfont';
|
|
19
|
-
export { default as Input } from './input';
|
|
20
|
-
export type { GroupProps, InputProps, PasswordProps, SearchProps, TextAreaProps, } from './input';
|
|
21
|
-
export { default as InputNumber } from './inputNumber';
|
|
22
|
-
export type { InputNumberProps } from './inputNumber';
|
|
23
|
-
export { default as Pagination } from './pagination';
|
|
24
|
-
export type { PaginationProps } from './pagination';
|
|
25
|
-
export { default as Radio } from './radio';
|
|
26
|
-
export type { RadioGroupProps, RadioProps } from './radio';
|
|
27
|
-
export { default as Select } from './select';
|
|
28
|
-
export type { SelectOptionProps, SelectProps } from './select';
|
|
29
|
-
export { default as Switch } from './switch';
|
|
30
|
-
export type { SwitchProps } from './switch';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { InputProps as AntInputProps } from 'antd5';
|
|
2
|
-
import { GroupProps as AntGroupProps, PasswordProps as AntPasswordProps, SearchProps as AntSearchProps, TextAreaProps as AntTextAreaProps } from 'antd5/es/input';
|
|
3
|
-
/**
|
|
4
|
-
* 后续可添加属性
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* 后续可添加属性
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* 后续可添加属性
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* 后续可添加属性
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* 后续可添加属性
|
|
17
|
-
*/
|
|
18
|
-
export declare type InputProps = AntInputProps;
|
|
19
|
-
export declare type TextAreaProps = AntTextAreaProps;
|
|
20
|
-
export declare type SearchProps = AntSearchProps;
|
|
21
|
-
export declare type PasswordProps = AntPasswordProps;
|
|
22
|
-
export declare type GroupProps = AntGroupProps;
|
|
23
|
-
/**
|
|
24
|
-
* input输入框
|
|
25
|
-
* @param props
|
|
26
|
-
* @constructor
|
|
27
|
-
*/
|
|
28
|
-
declare const Input: {
|
|
29
|
-
(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
TextArea: (props: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
Search: (props: SearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
Password: (props: PasswordProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
Group: (props: GroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
};
|
|
35
|
-
export default Input;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { InputNumberProps as AntInputNumberProps } from 'antd5';
|
|
2
|
-
export declare type InputNumberProps = AntInputNumberProps;
|
|
3
|
-
/**
|
|
4
|
-
* 数字输入框
|
|
5
|
-
* @param props
|
|
6
|
-
* @constructor
|
|
7
|
-
*/
|
|
8
|
-
declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default InputNumber;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { RadioGroupProps as AntRadioGroupProps, RadioProps as AntRadioProps } from 'antd5';
|
|
2
|
-
export declare type RadioGroupProps = AntRadioGroupProps;
|
|
3
|
-
export declare type RadioProps = AntRadioProps;
|
|
4
|
-
/**
|
|
5
|
-
* 单选框
|
|
6
|
-
* @param props
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
declare const Radio: {
|
|
10
|
-
(props: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
Group: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
export default Radio;
|
|
@@ -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;
|
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;
|