@pisell/common 0.0.6 → 0.0.7
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/business-components/colorInput/index.js +1 -1
- package/es/business-components/rechargeOption/index.d.ts +4 -4
- package/es/business-components/rechargeOption/index.js +1 -1
- package/es/business-components/selectTag/index.d.ts +1 -1
- package/es/business-components/selectTag/index.js +1 -1
- package/es/business-components/statistics/index.js +1 -1
- package/es/business-components/tagModal/index.js +1 -1
- package/es/business-hooks/useModal/index.js +1 -1
- package/es/business-hooks/useTagModal/index.js +1 -1
- package/es/components/ColorPicker/index.js +1 -1
- package/es/components/Iconfont/index.d.ts +1 -1
- package/es/components/avatar/index.d.ts +13 -0
- package/es/components/avatar/index.js +25 -0
- package/es/components/button/index.d.ts +17 -3
- package/es/components/button/index.js +28 -4
- package/es/components/checkbox/index.d.ts +20 -0
- package/es/components/checkbox/index.js +43 -0
- package/es/components/configProvider/index.d.ts +109 -0
- package/es/components/configProvider/index.js +111 -0
- package/es/components/index.d.ts +17 -0
- package/es/components/index.js +8 -1
- package/es/components/input/index.d.ts +35 -0
- package/es/components/input/index.js +97 -0
- package/es/components/pagination/index.d.ts +10 -0
- package/es/components/pagination/index.js +18 -0
- package/es/components/radio/index.d.ts +13 -0
- package/es/components/radio/index.js +28 -0
- package/es/components/switch/index.d.ts +10 -0
- package/es/components/switch/index.js +18 -0
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/lib/business-components/colorInput/index.js +2 -2
- package/lib/business-components/rechargeOption/index.d.ts +4 -4
- package/lib/business-components/rechargeOption/index.js +13 -13
- package/lib/business-components/selectTag/index.d.ts +1 -1
- package/lib/business-components/selectTag/index.js +3 -3
- package/lib/business-components/statistics/index.js +2 -2
- package/lib/business-components/tagModal/index.js +4 -4
- package/lib/business-hooks/useModal/index.js +2 -2
- package/lib/business-hooks/useTagModal/index.js +4 -4
- package/lib/components/ColorPicker/index.js +2 -2
- package/lib/components/Iconfont/index.d.ts +1 -1
- package/lib/components/avatar/index.d.ts +13 -0
- package/lib/components/avatar/index.js +42 -0
- package/lib/components/button/index.d.ts +17 -3
- package/lib/components/button/index.js +9 -4
- package/lib/components/checkbox/index.d.ts +20 -0
- package/lib/components/checkbox/index.js +36 -0
- package/lib/components/configProvider/index.d.ts +109 -0
- package/lib/components/configProvider/index.js +140 -0
- package/lib/components/index.d.ts +17 -0
- package/lib/components/index.js +22 -2
- package/lib/components/input/index.d.ts +35 -0
- package/lib/components/input/index.js +53 -0
- package/lib/components/pagination/index.d.ts +10 -0
- package/lib/components/pagination/index.js +42 -0
- package/lib/components/radio/index.d.ts +13 -0
- package/lib/components/radio/index.js +36 -0
- package/lib/components/switch/index.d.ts +10 -0
- package/lib/components/switch/index.js +42 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -12
- package/package.json +2 -3
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import { Input as AntInput } from 'antd5';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
var AntTextArea = AntInput.TextArea,
|
|
10
|
+
AntSearch = AntInput.Search,
|
|
11
|
+
AntPassword = AntInput.Password,
|
|
12
|
+
AntGroup = AntInput.Group;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 后续可添加属性
|
|
16
|
+
*/
|
|
17
|
+
// export interface InputProps extends AntInputProps {
|
|
18
|
+
// [key: string]: any
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 后续可添加属性
|
|
23
|
+
*/
|
|
24
|
+
// export interface TextAreaProps extends AntTextAreaProps {
|
|
25
|
+
// [key: string]: any
|
|
26
|
+
// }
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 后续可添加属性
|
|
30
|
+
*/
|
|
31
|
+
// export interface SearchProps extends AntSearchProps {
|
|
32
|
+
// [key: string]: any
|
|
33
|
+
// }
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 后续可添加属性
|
|
37
|
+
*/
|
|
38
|
+
// export interface PasswordProps extends AntPasswordProps {
|
|
39
|
+
// [key: string]: any
|
|
40
|
+
// }
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 后续可添加属性
|
|
44
|
+
*/
|
|
45
|
+
// export interface GroupProps extends AntGroupProps {
|
|
46
|
+
// [key: string]: any
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* input输入框
|
|
51
|
+
* @param props
|
|
52
|
+
* @constructor
|
|
53
|
+
*/
|
|
54
|
+
var Input = function Input(props) {
|
|
55
|
+
return /*#__PURE__*/_jsx(AntInput, _objectSpread({}, props));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 文本域
|
|
60
|
+
* @param props
|
|
61
|
+
* @constructor
|
|
62
|
+
*/
|
|
63
|
+
var TextArea = function TextArea(props) {
|
|
64
|
+
return /*#__PURE__*/_jsx(AntTextArea, _objectSpread({}, props));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 搜索
|
|
69
|
+
* @param props
|
|
70
|
+
* @constructor
|
|
71
|
+
*/
|
|
72
|
+
var Search = function Search(props) {
|
|
73
|
+
return /*#__PURE__*/_jsx(AntSearch, _objectSpread({}, props));
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 密码输入
|
|
78
|
+
* @param props
|
|
79
|
+
* @constructor
|
|
80
|
+
*/
|
|
81
|
+
var Password = function Password(props) {
|
|
82
|
+
return /*#__PURE__*/_jsx(AntPassword, _objectSpread({}, props));
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 组
|
|
87
|
+
* @param props
|
|
88
|
+
* @constructor
|
|
89
|
+
*/
|
|
90
|
+
var Group = function Group(props) {
|
|
91
|
+
return /*#__PURE__*/_jsx(AntGroup, _objectSpread({}, props));
|
|
92
|
+
};
|
|
93
|
+
Input.TextArea = TextArea;
|
|
94
|
+
Input.Search = Search;
|
|
95
|
+
Input.Password = Password;
|
|
96
|
+
Input.Group = Group;
|
|
97
|
+
export default Input;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PaginationProps as AntPaginationProps } from 'antd5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare type PaginationProps = AntPaginationProps;
|
|
4
|
+
/**
|
|
5
|
+
* 分页
|
|
6
|
+
* @param props
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
10
|
+
export default Pagination;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import { Pagination as AntPagination } from 'antd5';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
/**
|
|
11
|
+
* 分页
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
var Pagination = function Pagination(props) {
|
|
16
|
+
return /*#__PURE__*/_jsx(AntPagination, _objectSpread({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default Pagination;
|
|
@@ -0,0 +1,13 @@
|
|
|
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): JSX.Element;
|
|
11
|
+
Group: (props: RadioGroupProps) => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export default Radio;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import { Radio as AntRadio } from 'antd5';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
var AntGroup = AntRadio.Group;
|
|
10
|
+
/**
|
|
11
|
+
* 单选框
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
var Radio = function Radio(props) {
|
|
16
|
+
return /*#__PURE__*/_jsx(AntRadio, _objectSpread({}, props));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 单选框组
|
|
21
|
+
* @param props
|
|
22
|
+
* @constructor
|
|
23
|
+
*/
|
|
24
|
+
var Group = function Group(props) {
|
|
25
|
+
return /*#__PURE__*/_jsx(AntGroup, _objectSpread({}, props));
|
|
26
|
+
};
|
|
27
|
+
Radio.Group = Group;
|
|
28
|
+
export default Radio;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import { Switch as AntSwitch } from 'antd5';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
/**
|
|
11
|
+
* 开关
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
var Switch = function Switch(props) {
|
|
16
|
+
return /*#__PURE__*/_jsx(AntSwitch, _objectSpread({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default Switch;
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(colorInput_exports, {
|
|
|
32
32
|
default: () => colorInput_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(colorInput_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_components = require("../../components");
|
|
38
38
|
var import_index = require("./index.less");
|
|
@@ -50,7 +50,7 @@ var ColorInput = (props) => {
|
|
|
50
50
|
className: `${prefix}color-block`
|
|
51
51
|
}
|
|
52
52
|
)), /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
|
|
53
|
+
import_antd5.Input,
|
|
54
54
|
{
|
|
55
55
|
value: value.replace("#", ""),
|
|
56
56
|
prefix: "#",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ColProps } from '
|
|
2
|
-
import type { FormItemProps } from '
|
|
3
|
-
import type { FormListFieldData, FormListProps } from '
|
|
1
|
+
import type { ColProps } from 'antd5/lib/col';
|
|
2
|
+
import type { FormItemProps } from 'antd5/lib/form/FormItem';
|
|
3
|
+
import type { FormListFieldData, FormListProps } from 'antd5/lib/form/FormList';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import type { SortModalProps } from '../sortModal';
|
|
6
|
-
import type { FormInstance } from '
|
|
6
|
+
import type { FormInstance } from 'antd5/es/form/hooks/useForm';
|
|
7
7
|
export interface RechargeOptionProps {
|
|
8
8
|
name: FormListProps['name'];
|
|
9
9
|
/** 是否展示编辑按钮 */
|
|
@@ -33,7 +33,7 @@ __export(rechargeOption_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(rechargeOption_exports);
|
|
35
35
|
var import_icons = require("@ant-design/icons");
|
|
36
|
-
var
|
|
36
|
+
var import_antd5 = require("antd5");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_utils = require("../../utils");
|
|
39
39
|
var import_locales = require("../../locales");
|
|
@@ -66,20 +66,20 @@ var RechargeOption = (props) => {
|
|
|
66
66
|
(_a = sortModalRef.current) == null ? void 0 : _a.showModal();
|
|
67
67
|
}
|
|
68
68
|
}));
|
|
69
|
-
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
70
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
71
|
-
})), /* @__PURE__ */ import_react.default.createElement(
|
|
72
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
73
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
74
|
-
|
|
69
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(import_antd5.Row, { gutter: 10, style: { marginBottom: "10px" } }, columnOption.map((item) => {
|
|
70
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Col, { span: item.span, key: item.label }, item.label);
|
|
71
|
+
})), /* @__PURE__ */ import_react.default.createElement(import_antd5.Form.List, { name, initialValue: [initValue] }, (fields, { add, remove }) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, fields.map((bundle, i) => {
|
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Form.Item, { key: bundle.key, noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_antd5.Row, { gutter: 10 }, columnOption.map((item) => {
|
|
73
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Col, { span: item.span, key: item.label }, /* @__PURE__ */ import_react.default.createElement(
|
|
74
|
+
import_antd5.Form.Item,
|
|
75
75
|
{
|
|
76
76
|
name: [bundle.name, item.field],
|
|
77
77
|
rules: item.rules
|
|
78
78
|
},
|
|
79
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
79
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd5.Input, { style: { width: "100%" } })
|
|
80
80
|
));
|
|
81
|
-
}), isShowEditButton && /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
-
|
|
81
|
+
}), isShowEditButton && /* @__PURE__ */ import_react.default.createElement(import_antd5.Col, { span: 3 }, /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
import_antd5.Button,
|
|
83
83
|
{
|
|
84
84
|
onClick: () => {
|
|
85
85
|
(0, import_utils.isFunction)(onEditClick) && onEditClick(bundle);
|
|
@@ -88,8 +88,8 @@ var RechargeOption = (props) => {
|
|
|
88
88
|
editBtnText || (0, import_locales.getText)(
|
|
89
89
|
"pisell-design.recharge.option.button.edit"
|
|
90
90
|
)
|
|
91
|
-
)), /* @__PURE__ */ import_react.default.createElement(
|
|
92
|
-
|
|
91
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd5.Col, { span: 2 }, i !== 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
92
|
+
import_antd5.Button,
|
|
93
93
|
{
|
|
94
94
|
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.DeleteOutlined, null),
|
|
95
95
|
onClick: () => {
|
|
@@ -98,7 +98,7 @@ var RechargeOption = (props) => {
|
|
|
98
98
|
}
|
|
99
99
|
))));
|
|
100
100
|
}), /* @__PURE__ */ import_react.default.createElement(
|
|
101
|
-
|
|
101
|
+
import_antd5.Button,
|
|
102
102
|
{
|
|
103
103
|
onClick: () => {
|
|
104
104
|
add(genDefaultData({ id: fields.length + 1 }));
|
|
@@ -32,7 +32,7 @@ __export(selectTag_exports, {
|
|
|
32
32
|
default: () => selectTag_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(selectTag_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_business_hooks = require("../../business-hooks");
|
|
38
38
|
var import_DragSort = __toESM(require("../../components/DragSort"));
|
|
@@ -106,7 +106,7 @@ var SelectTag = (props) => {
|
|
|
106
106
|
event.stopPropagation();
|
|
107
107
|
};
|
|
108
108
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
109
|
-
|
|
109
|
+
import_antd5.Tag,
|
|
110
110
|
{
|
|
111
111
|
onMouseDown: onPreventMouseDown,
|
|
112
112
|
closable,
|
|
@@ -142,7 +142,7 @@ var SelectTag = (props) => {
|
|
|
142
142
|
}
|
|
143
143
|
}, [value, isColorSelect]);
|
|
144
144
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
145
|
-
|
|
145
|
+
import_antd5.Select,
|
|
146
146
|
{
|
|
147
147
|
...props,
|
|
148
148
|
value: selectValue,
|
|
@@ -32,7 +32,7 @@ __export(statistics_exports, {
|
|
|
32
32
|
default: () => statistics_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(statistics_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_classnames = __toESM(require("classnames"));
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_hooks = require("../../hooks");
|
|
@@ -54,7 +54,7 @@ var Statistics = (props) => {
|
|
|
54
54
|
style: props.style
|
|
55
55
|
},
|
|
56
56
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-statistics-options" }, options.map((d, i) => {
|
|
57
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { key: i, className: "pisell-statistics-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-statistics-label" }, d.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-statistics-value" }, loading ? /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { key: i, className: "pisell-statistics-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-statistics-label" }, d.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-statistics-value" }, loading ? /* @__PURE__ */ import_react.default.createElement(import_antd5.Skeleton.Input, { active: true, size: "default" }) : d.value));
|
|
58
58
|
}))
|
|
59
59
|
);
|
|
60
60
|
};
|
|
@@ -32,21 +32,21 @@ __export(tagModal_exports, {
|
|
|
32
32
|
default: () => tagModal_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(tagModal_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_useModal = __toESM(require("../../business-hooks/useModal"));
|
|
38
38
|
var TagModal = (props) => {
|
|
39
39
|
const { data, onChange, value, tagModalRef, ...others } = props;
|
|
40
40
|
const Content = (0, import_react.useMemo)(() => {
|
|
41
41
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
-
|
|
42
|
+
import_antd5.Checkbox.Group,
|
|
43
43
|
{
|
|
44
44
|
style: { width: "100%" },
|
|
45
45
|
onChange: (val) => onChange(val),
|
|
46
46
|
value
|
|
47
47
|
},
|
|
48
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
49
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd5.Row, { gutter: 10 }, data.map((d, i) => {
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Col, { span: 8, key: i }, /* @__PURE__ */ import_react.default.createElement(import_antd5.Checkbox, { value: d.value }, d.label));
|
|
50
50
|
}))
|
|
51
51
|
);
|
|
52
52
|
}, [data]);
|
|
@@ -32,7 +32,7 @@ __export(useModal_exports, {
|
|
|
32
32
|
default: () => useModal_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(useModal_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var useModal = (props) => {
|
|
38
38
|
const [visible, setVisible] = (0, import_react.useState)(false);
|
|
@@ -60,7 +60,7 @@ var useModal = (props) => {
|
|
|
60
60
|
showModal,
|
|
61
61
|
hideModal,
|
|
62
62
|
visible,
|
|
63
|
-
content: /* @__PURE__ */ import_react.default.createElement(
|
|
63
|
+
content: /* @__PURE__ */ import_react.default.createElement(import_antd5.Modal, { open: visible, onOk: _onOk, onCancel: _onCancel, ...props }, props.children)
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
var useModal_default = useModal;
|
|
@@ -32,21 +32,21 @@ __export(useTagModal_exports, {
|
|
|
32
32
|
default: () => useTagModal_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(useTagModal_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_useModal = __toESM(require("../useModal"));
|
|
38
38
|
var useTagModal = (props) => {
|
|
39
39
|
const { data, onChange, value, ...others } = props;
|
|
40
40
|
const Content = (0, import_react.useMemo)(() => {
|
|
41
41
|
return /* @__PURE__ */ React.createElement(
|
|
42
|
-
|
|
42
|
+
import_antd5.Checkbox.Group,
|
|
43
43
|
{
|
|
44
44
|
style: { width: "100%" },
|
|
45
45
|
onChange: (val) => onChange == null ? void 0 : onChange(val),
|
|
46
46
|
value
|
|
47
47
|
},
|
|
48
|
-
/* @__PURE__ */ React.createElement(
|
|
49
|
-
return /* @__PURE__ */ React.createElement(
|
|
48
|
+
/* @__PURE__ */ React.createElement(import_antd5.Row, { gutter: 10 }, data.map((d, i) => {
|
|
49
|
+
return /* @__PURE__ */ React.createElement(import_antd5.Col, { span: 8, key: i }, /* @__PURE__ */ React.createElement(import_antd5.Checkbox, { value: d.value }, d.label));
|
|
50
50
|
}))
|
|
51
51
|
);
|
|
52
52
|
}, [data, value]);
|
|
@@ -32,7 +32,7 @@ __export(ColorPicker_exports, {
|
|
|
32
32
|
default: () => ColorPicker_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(ColorPicker_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_react_color = require("react-color");
|
|
38
38
|
var import_index = require("./index.less");
|
|
@@ -54,7 +54,7 @@ var ColorPicker = ({
|
|
|
54
54
|
setVal(value);
|
|
55
55
|
}, [value]);
|
|
56
56
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
-
|
|
57
|
+
import_antd5.Popover,
|
|
58
58
|
{
|
|
59
59
|
trigger: "click",
|
|
60
60
|
overlayClassName: "colorPickerBtn-Popover",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface IconFontProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
2
|
+
export interface IconFontProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
3
|
type: string;
|
|
4
4
|
}
|
|
5
5
|
declare const IconFont: React.FC<IconFontProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AvatarProps as AntAvatarProps } from 'antd5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* 后续可添加属性
|
|
5
|
+
*/
|
|
6
|
+
export declare type AvatarProps = AntAvatarProps;
|
|
7
|
+
/**
|
|
8
|
+
* 头像
|
|
9
|
+
* @param props
|
|
10
|
+
* @constructor
|
|
11
|
+
*/
|
|
12
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
13
|
+
export default Avatar;
|
|
@@ -0,0 +1,42 @@
|
|
|
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/avatar/index.tsx
|
|
30
|
+
var avatar_exports = {};
|
|
31
|
+
__export(avatar_exports, {
|
|
32
|
+
default: () => avatar_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(avatar_exports);
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var Avatar = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Avatar, { ...props });
|
|
39
|
+
};
|
|
40
|
+
var avatar_default = Avatar;
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {});
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import type { ButtonProps } from '
|
|
2
|
-
|
|
3
|
-
|
|
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): JSX.Element;
|
|
15
|
+
Group: (props: ButtonGroupProps) => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export default Button;
|
|
@@ -22,10 +22,15 @@ __export(button_exports, {
|
|
|
22
22
|
default: () => button_default
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(button_exports);
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
25
|
+
var import_antd5 = require("antd5");
|
|
26
|
+
var { Group: AntGroup } = import_antd5.Button;
|
|
27
|
+
var Button = (props) => {
|
|
28
|
+
return /* @__PURE__ */ React.createElement(import_antd5.Button, { ...props });
|
|
28
29
|
};
|
|
29
|
-
var
|
|
30
|
+
var Group = (props) => {
|
|
31
|
+
return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
|
|
32
|
+
};
|
|
33
|
+
Button.Group = Group;
|
|
34
|
+
var button_default = Button;
|
|
30
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
36
|
0 && (module.exports = {});
|
|
@@ -0,0 +1,20 @@
|
|
|
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): JSX.Element;
|
|
18
|
+
Group: (props: CheckboxGroupProps) => JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export default Checkbox;
|
|
@@ -0,0 +1,36 @@
|
|
|
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/checkbox/index.tsx
|
|
20
|
+
var checkbox_exports = {};
|
|
21
|
+
__export(checkbox_exports, {
|
|
22
|
+
default: () => checkbox_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(checkbox_exports);
|
|
25
|
+
var import_antd5 = require("antd5");
|
|
26
|
+
var { Group: AntGroup } = import_antd5.Checkbox;
|
|
27
|
+
var Checkbox = (props) => {
|
|
28
|
+
return /* @__PURE__ */ React.createElement(import_antd5.Checkbox, { ...props });
|
|
29
|
+
};
|
|
30
|
+
var Group = (props) => {
|
|
31
|
+
return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
|
|
32
|
+
};
|
|
33
|
+
Checkbox.Group = Group;
|
|
34
|
+
var checkbox_default = Checkbox;
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {});
|