@pisell/common 0.0.15-1 → 0.0.16
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 +29 -25
- package/es/business-components/rechargeOption/index.js +72 -55
- package/es/business-components/selectTag/index.d.ts +1 -1
- package/es/business-components/selectTag/index.js +44 -36
- package/es/business-components/sortModal/index.d.ts +1 -1
- package/es/business-components/sortModal/index.js +19 -14
- package/es/business-components/statistics/index.js +23 -17
- package/es/business-components/tagModal/index.d.ts +1 -1
- package/es/business-components/tagModal/index.js +16 -12
- package/es/business-hooks/useModal/index.d.ts +1 -1
- package/es/business-hooks/useModal/index.js +11 -4
- package/es/business-hooks/useTagModal/index.d.ts +1 -2
- package/es/business-hooks/useTagModal/index.js +16 -12
- package/es/components/ColorPicker/index.js +6 -4
- package/es/components/DragSort/index.d.ts +1 -2
- package/es/components/DragSort/index.js +39 -28
- package/es/components/EditorPreview/index.d.ts +1 -1
- package/es/components/EditorPreview/index.js +8 -3
- package/es/components/Iconfont/index.js +8 -2
- package/es/components/agreement/Detail/index.d.ts +2 -2
- package/es/components/agreement/Detail/index.js +15 -12
- package/es/components/agreement/index.js +18 -14
- package/es/components/avatar/index.js +8 -2
- package/es/components/button/index.d.ts +2 -3
- package/es/components/button/index.js +9 -3
- package/es/components/card/index.d.ts +1 -1
- package/es/components/card/index.js +11 -5
- package/es/components/checkbox/index.d.ts +2 -3
- package/es/components/checkbox/index.js +9 -3
- package/es/components/datePicker/index.d.ts +1 -2
- package/es/components/datePicker/index.js +8 -2
- package/es/components/index.d.ts +1 -1
- package/es/components/input/index.d.ts +5 -6
- package/es/components/input/index.js +12 -6
- package/es/components/inputNumber/index.d.ts +1 -2
- package/es/components/inputNumber/index.js +8 -2
- package/es/components/pagination/index.js +8 -1
- package/es/components/radio/index.d.ts +2 -3
- package/es/components/radio/index.js +9 -3
- package/es/components/select/index.d.ts +6 -2
- package/es/components/select/index.js +13 -2
- package/es/components/switch/index.js +8 -1
- package/es/hooks/useTableModal/index.d.ts +1 -1
- package/es/hooks/useTableModal/index.js +5 -2
- package/lib/business-components/selectTag/index.d.ts +1 -1
- package/lib/business-components/sortModal/index.d.ts +1 -1
- package/lib/business-components/tagModal/index.d.ts +1 -1
- package/lib/business-hooks/useModal/index.d.ts +1 -1
- package/lib/business-hooks/useTagModal/index.d.ts +1 -2
- package/lib/components/DragSort/index.d.ts +1 -2
- package/lib/components/DragSort/index.js +5 -6
- package/lib/components/EditorPreview/index.d.ts +1 -1
- package/lib/components/EditorPreview/index.js +1 -12
- package/lib/components/agreement/Detail/index.d.ts +2 -2
- package/lib/components/agreement/Detail/index.js +2 -2
- package/lib/components/button/index.d.ts +2 -3
- package/lib/components/button/index.js +2 -13
- package/lib/components/card/index.d.ts +1 -1
- package/lib/components/card/index.js +1 -2
- package/lib/components/checkbox/index.d.ts +2 -3
- package/lib/components/checkbox/index.js +2 -13
- package/lib/components/datePicker/index.d.ts +1 -2
- package/lib/components/datePicker/index.js +1 -12
- package/lib/components/index.d.ts +1 -1
- package/lib/components/input/index.d.ts +5 -6
- package/lib/components/input/index.js +5 -16
- package/lib/components/inputNumber/index.d.ts +1 -2
- package/lib/components/inputNumber/index.js +1 -12
- package/lib/components/radio/index.d.ts +2 -3
- package/lib/components/radio/index.js +2 -13
- package/lib/components/select/index.d.ts +6 -2
- package/lib/components/select/index.js +6 -12
- package/lib/hooks/useTableModal/index.d.ts +1 -1
- package/package.json +7 -17
- package/build/lowcode/assets-daily.json +0 -67
- package/build/lowcode/assets-dev.json +0 -67
- package/build/lowcode/assets-prod.json +0 -67
- package/build/lowcode/designer.html +0 -302
- package/build/lowcode/index.html +0 -304
- package/build/lowcode/index.js +0 -1
- package/build/lowcode/meta.js +0 -1
- package/build/lowcode/preview.css +0 -1
- package/build/lowcode/preview.html +0 -33
- package/build/lowcode/preview.js +0 -27
- package/build/lowcode/render/default/view.js +0 -20
- package/build/lowcode/view.js +0 -20
- package/es/lowcode/button/index.d.ts +0 -5
- package/es/lowcode/button/index.js +0 -6
- package/es/lowcode/checkbox/index.d.ts +0 -10
- package/es/lowcode/checkbox/index.js +0 -11
- package/es/lowcode/index.d.ts +0 -4
- package/es/lowcode/index.js +0 -2
- package/lib/lowcode/button/index.d.ts +0 -5
- package/lib/lowcode/button/index.js +0 -42
- package/lib/lowcode/checkbox/index.d.ts +0 -10
- package/lib/lowcode/checkbox/index.js +0 -42
- package/lib/lowcode/index.d.ts +0 -4
- package/lib/lowcode/index.js +0 -42
- package/lowcode/button/meta.ts +0 -324
- package/lowcode/checkbox/meta.ts +0 -92
|
@@ -9,6 +9,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
9
9
|
//@ts-ignore
|
|
10
10
|
import { SwatchesPicker } from 'react-color';
|
|
11
11
|
import "./index.less";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
var ColorPicker = function ColorPicker(_ref) {
|
|
13
14
|
var keyName = _ref.keyName,
|
|
14
15
|
value = _ref.value,
|
|
@@ -31,17 +32,18 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
31
32
|
useEffect(function () {
|
|
32
33
|
setVal(value);
|
|
33
34
|
}, [value]);
|
|
34
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/_jsx(Popover, {
|
|
35
36
|
trigger: "click",
|
|
36
37
|
overlayClassName: "colorPickerBtn-Popover",
|
|
37
38
|
placement: "rightTop",
|
|
38
|
-
content: /*#__PURE__*/
|
|
39
|
+
content: /*#__PURE__*/_jsx(SwatchesPicker, {
|
|
39
40
|
triangle: "hide",
|
|
40
41
|
color: val,
|
|
41
42
|
onChange: handleChange,
|
|
42
43
|
onChangeComplete: handleConfirm
|
|
43
|
-
})
|
|
44
|
-
|
|
44
|
+
}),
|
|
45
|
+
children: children
|
|
46
|
+
});
|
|
45
47
|
};
|
|
46
48
|
ColorPicker.defaultProps = {
|
|
47
49
|
keyName: 'hex'
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const DragDrop: ({ onChange, children, list, droppableId, draggableIdKey, droppableClassName, draggableClassName, footer, direction, isDragDisabled, }: any) => React.JSX.Element;
|
|
1
|
+
declare const DragDrop: ({ onChange, children, list, droppableId, draggableIdKey, droppableClassName, draggableClassName, footer, direction, isDragDisabled, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default DragDrop;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
function
|
|
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); }
|
|
2
7
|
// @ts-ignore
|
|
8
|
+
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
3
9
|
import arrayMove from 'array-move';
|
|
4
10
|
import classNames from 'classnames';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
|
|
7
11
|
import { getUniqueId } from "../../utils";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
14
|
var DragDrop = function DragDrop(_ref) {
|
|
9
15
|
var onChange = _ref.onChange,
|
|
10
|
-
|
|
16
|
+
_children = _ref.children,
|
|
11
17
|
list = _ref.list,
|
|
12
18
|
droppableId = _ref.droppableId,
|
|
13
19
|
draggableIdKey = _ref.draggableIdKey,
|
|
@@ -17,7 +23,7 @@ var DragDrop = function DragDrop(_ref) {
|
|
|
17
23
|
_ref$direction = _ref.direction,
|
|
18
24
|
direction = _ref$direction === void 0 ? 'vertical' : _ref$direction,
|
|
19
25
|
isDragDisabled = _ref.isDragDisabled;
|
|
20
|
-
|
|
26
|
+
droppableId = droppableId || getUniqueId('droppableId_');
|
|
21
27
|
var handleDragEnd = function handleDragEnd(result) {
|
|
22
28
|
if (result.destination) {
|
|
23
29
|
onChange && onChange(arrayMove(list, result.source.index, result.destination.index), result);
|
|
@@ -30,28 +36,33 @@ var DragDrop = function DragDrop(_ref) {
|
|
|
30
36
|
return draggableIdKey ? String(item[draggableIdKey]) : String(item);
|
|
31
37
|
}
|
|
32
38
|
};
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
-
onDragEnd: handleDragEnd
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
39
|
+
return /*#__PURE__*/_jsx(DragDropContext, {
|
|
40
|
+
onDragEnd: handleDragEnd,
|
|
41
|
+
children: /*#__PURE__*/_jsx(Droppable, {
|
|
42
|
+
droppableId: droppableId,
|
|
43
|
+
direction: direction,
|
|
44
|
+
children: function children(provided) {
|
|
45
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({}, provided.droppableProps), {}, {
|
|
46
|
+
ref: provided.innerRef,
|
|
47
|
+
className: classNames(droppableClassName),
|
|
48
|
+
children: [list.map(function (item, index) {
|
|
49
|
+
return /*#__PURE__*/_jsx(Draggable, {
|
|
50
|
+
draggableId: getDraggableId(item, index),
|
|
51
|
+
index: index,
|
|
52
|
+
isDragDisabled: !!isDragDisabled,
|
|
53
|
+
children: function children(provided) {
|
|
54
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread(_objectSpread({
|
|
55
|
+
className: classNames(typeof draggableClassName === 'function' ? draggableClassName(item, index) : draggableClassName),
|
|
56
|
+
ref: provided.innerRef
|
|
57
|
+
}, provided.draggableProps), provided.dragHandleProps), {}, {
|
|
58
|
+
children: _children(item, index)
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
}, getDraggableId(item, index));
|
|
62
|
+
}), provided.placeholder, footer]
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
});
|
|
56
67
|
};
|
|
57
68
|
export default DragDrop;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
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); }
|
|
3
7
|
import "./index.less";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
9
|
var EditorPreivew = function EditorPreivew(props) {
|
|
5
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
6
11
|
className: "pisell-editor-tiny-css ".concat(props.className)
|
|
7
12
|
}));
|
|
8
13
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
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); }
|
|
1
2
|
var _getConfig, _getConfig$ENV;
|
|
2
|
-
function
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
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); }
|
|
3
8
|
/*
|
|
4
9
|
* @Title: Iconfont
|
|
5
10
|
* @Describe: 通过不同的className来渲染不同的icon
|
|
@@ -11,12 +16,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
11
16
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
12
17
|
import React from 'react';
|
|
13
18
|
import { getConfig } from "../../config";
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
20
|
var MyIcon = createFromIconfontCN({
|
|
15
21
|
scriptUrl: ((_getConfig = getConfig()) === null || _getConfig === void 0 ? void 0 : (_getConfig$ENV = _getConfig.ENV) === null || _getConfig$ENV === void 0 ? void 0 : _getConfig$ENV.static) + '/static/fonts/iconfont/iconfont.js?q=' + new Date().getTime() // 在 iconfont.cn 上生成
|
|
16
22
|
});
|
|
17
23
|
|
|
18
24
|
var IconFont = function IconFont(props) {
|
|
19
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/_jsx(MyIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
20
26
|
className: props.className
|
|
21
27
|
}));
|
|
22
28
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -13,10 +13,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
14
14
|
import { useRequest } from 'ahooks';
|
|
15
15
|
import { Spin } from 'antd5';
|
|
16
|
-
import
|
|
16
|
+
import { forwardRef, useImperativeHandle, useMemo, useState } from 'react';
|
|
17
17
|
import { useModal } from "../../../business-hooks";
|
|
18
18
|
import EditorPreview from "../../EditorPreview";
|
|
19
19
|
import { getPolicyDetail } from "./serve";
|
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
21
|
var AgreementDetail = function AgreementDetail(_ref, ref) {
|
|
21
22
|
_objectDestructuringEmpty(_ref);
|
|
22
23
|
var _useState = useState({}),
|
|
@@ -44,17 +45,19 @@ var AgreementDetail = function AgreementDetail(_ref, ref) {
|
|
|
44
45
|
}, [data, current]);
|
|
45
46
|
var _useModal = useModal({
|
|
46
47
|
title: detail.title,
|
|
47
|
-
children: /*#__PURE__*/
|
|
48
|
-
spinning: _getPolicyDetail.loading
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
children: /*#__PURE__*/_jsx(Spin, {
|
|
49
|
+
spinning: _getPolicyDetail.loading,
|
|
50
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
51
|
+
style: {
|
|
52
|
+
minHeight: 400
|
|
53
|
+
},
|
|
54
|
+
children: /*#__PURE__*/_jsx(EditorPreview, {
|
|
55
|
+
dangerouslySetInnerHTML: {
|
|
56
|
+
__html: detail.content
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
})
|
|
58
61
|
}),
|
|
59
62
|
showModal = _useModal.showModal,
|
|
60
63
|
content = _useModal.content;
|
|
@@ -3,6 +3,8 @@ import classNames from 'classnames';
|
|
|
3
3
|
import React, { useMemo, useRef } from 'react';
|
|
4
4
|
import AgreementDetail from "./Detail";
|
|
5
5
|
import "./index.less";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
8
|
var Agreement = function Agreement(_ref) {
|
|
7
9
|
var className = _ref.className,
|
|
8
10
|
style = _ref.style,
|
|
@@ -15,27 +17,29 @@ var Agreement = function Agreement(_ref) {
|
|
|
15
17
|
};
|
|
16
18
|
var _agreements = useMemo(function () {
|
|
17
19
|
return agreements === null || agreements === void 0 ? void 0 : agreements.map(function (item) {
|
|
18
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/_jsx("a", {
|
|
19
21
|
className: "pisell-agreement",
|
|
20
|
-
key: item.id,
|
|
21
22
|
onClick: function onClick(e) {
|
|
22
23
|
e.preventDefault();
|
|
23
24
|
e.stopPropagation();
|
|
24
25
|
onRead(item);
|
|
25
|
-
}
|
|
26
|
-
|
|
26
|
+
},
|
|
27
|
+
children: item.title
|
|
28
|
+
}, item.id);
|
|
27
29
|
});
|
|
28
30
|
}, [agreements]);
|
|
29
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
30
32
|
className: classNames('pisell-agreements', className),
|
|
31
|
-
style: style
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
style: style,
|
|
34
|
+
children: [/*#__PURE__*/_jsxs(Checkbox, {
|
|
35
|
+
value: value,
|
|
36
|
+
onChange: function onChange(e) {
|
|
37
|
+
_onChange && _onChange(e.target.value);
|
|
38
|
+
},
|
|
39
|
+
children: ["\u60A8\u5DF2\u9605\u8BFB\u5E76\u540C\u610F ", _agreements]
|
|
40
|
+
}), /*#__PURE__*/_jsx(AgreementDetail, {
|
|
41
|
+
ref: detailRef
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
40
44
|
};
|
|
41
45
|
export default Agreement;
|
|
@@ -1,3 +1,9 @@
|
|
|
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); }
|
|
1
7
|
import { Avatar as AntAvatar } from 'antd5';
|
|
2
8
|
import React from 'react';
|
|
3
9
|
|
|
@@ -7,13 +13,13 @@ import React from 'react';
|
|
|
7
13
|
// export interface AvatarProps extends AntAvatarProps {
|
|
8
14
|
// [key: string]: any
|
|
9
15
|
// }
|
|
10
|
-
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
17
|
/**
|
|
12
18
|
* 头像
|
|
13
19
|
* @param props
|
|
14
20
|
* @constructor
|
|
15
21
|
*/
|
|
16
22
|
var Avatar = function Avatar(props) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/_jsx(AntAvatar, _objectSpread({}, props));
|
|
18
24
|
};
|
|
19
25
|
export default Avatar;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ButtonProps as AntButtonProps } from 'antd5';
|
|
2
2
|
import type { ButtonGroupProps as AntButtonGroupProps } from 'antd5/es/button';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
/**
|
|
5
4
|
* 后续可添加属性
|
|
6
5
|
*/
|
|
@@ -12,7 +11,7 @@ export declare type ButtonGroupProps = AntButtonGroupProps;
|
|
|
12
11
|
* @constructor
|
|
13
12
|
*/
|
|
14
13
|
declare const Button: {
|
|
15
|
-
(props: ButtonProps):
|
|
16
|
-
Group: (props: ButtonGroupProps) =>
|
|
14
|
+
(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
Group: (props: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
};
|
|
18
17
|
export default Button;
|
|
@@ -1,5 +1,11 @@
|
|
|
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); }
|
|
1
7
|
import { Button as AntButton } from 'antd5';
|
|
2
|
-
import
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
9
|
var AntGroup = AntButton.Group;
|
|
4
10
|
|
|
5
11
|
/**
|
|
@@ -15,7 +21,7 @@ var AntGroup = AntButton.Group;
|
|
|
15
21
|
* @constructor
|
|
16
22
|
*/
|
|
17
23
|
var Button = function Button(props) {
|
|
18
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/_jsx(AntButton, _objectSpread({}, props));
|
|
19
25
|
};
|
|
20
26
|
|
|
21
27
|
/**
|
|
@@ -24,7 +30,7 @@ var Button = function Button(props) {
|
|
|
24
30
|
* @constructor
|
|
25
31
|
*/
|
|
26
32
|
var Group = function Group(props) {
|
|
27
|
-
return /*#__PURE__*/
|
|
33
|
+
return /*#__PURE__*/_jsx(AntGroup, _objectSpread({}, props));
|
|
28
34
|
};
|
|
29
35
|
Button.Group = Group;
|
|
30
36
|
export default Button;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
function
|
|
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); }
|
|
2
7
|
import classNames from 'classnames';
|
|
3
|
-
import React from 'react';
|
|
4
8
|
import "./index.less";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
10
|
var Card = function Card(props) {
|
|
6
|
-
return /*#__PURE__*/
|
|
7
|
-
className: classNames('pisell-card', props.className)
|
|
8
|
-
|
|
11
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
12
|
+
className: classNames('pisell-card', props.className),
|
|
13
|
+
children: props.children
|
|
14
|
+
}));
|
|
9
15
|
};
|
|
10
16
|
export default Card;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
|
|
2
2
|
import type { CheckboxProps as AntCheckboxProps } from 'antd5';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
/**
|
|
5
4
|
* 后续可添加属性
|
|
6
5
|
*/
|
|
@@ -15,7 +14,7 @@ export declare type CheckboxGroupProps = AntCheckboxGroupProps;
|
|
|
15
14
|
* @constructor
|
|
16
15
|
*/
|
|
17
16
|
declare const Checkbox: {
|
|
18
|
-
(props: CheckboxProps):
|
|
19
|
-
Group: (props: AntCheckboxGroupProps) =>
|
|
17
|
+
(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
Group: (props: AntCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
};
|
|
21
20
|
export default Checkbox;
|
|
@@ -1,5 +1,11 @@
|
|
|
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); }
|
|
1
7
|
import { Checkbox as AntCheckbox } from 'antd5';
|
|
2
|
-
import
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
9
|
var AntGroup = AntCheckbox.Group;
|
|
4
10
|
|
|
5
11
|
/**
|
|
@@ -22,7 +28,7 @@ var AntGroup = AntCheckbox.Group;
|
|
|
22
28
|
* @constructor
|
|
23
29
|
*/
|
|
24
30
|
var Checkbox = function Checkbox(props) {
|
|
25
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/_jsx(AntCheckbox, _objectSpread({}, props));
|
|
26
32
|
};
|
|
27
33
|
|
|
28
34
|
/**
|
|
@@ -31,7 +37,7 @@ var Checkbox = function Checkbox(props) {
|
|
|
31
37
|
* @constructor
|
|
32
38
|
*/
|
|
33
39
|
var Group = function Group(props) {
|
|
34
|
-
return /*#__PURE__*/
|
|
40
|
+
return /*#__PURE__*/_jsx(AntGroup, _objectSpread({}, props));
|
|
35
41
|
};
|
|
36
42
|
Checkbox.Group = Group;
|
|
37
43
|
export default Checkbox;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DatePickerProps as AntDatePickerProps } from 'antd5';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export declare type DatePickerProps = AntDatePickerProps;
|
|
4
3
|
/**
|
|
5
4
|
* 日期选择框
|
|
6
5
|
* @param props
|
|
7
6
|
* @constructor
|
|
8
7
|
*/
|
|
9
|
-
declare const DatePicker: (props: DatePickerProps) =>
|
|
8
|
+
declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default DatePicker;
|
|
@@ -1,11 +1,17 @@
|
|
|
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); }
|
|
1
7
|
import { DatePicker as AntDatePicker } from 'antd5';
|
|
2
|
-
import
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
9
|
/**
|
|
4
10
|
* 日期选择框
|
|
5
11
|
* @param props
|
|
6
12
|
* @constructor
|
|
7
13
|
*/
|
|
8
14
|
var DatePicker = function DatePicker(props) {
|
|
9
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/_jsx(AntDatePicker, _objectSpread({}, props));
|
|
10
16
|
};
|
|
11
17
|
export default DatePicker;
|
package/es/components/index.d.ts
CHANGED
|
@@ -25,6 +25,6 @@ export type { PaginationProps } from './pagination';
|
|
|
25
25
|
export { default as Radio } from './radio';
|
|
26
26
|
export type { RadioGroupProps, RadioProps } from './radio';
|
|
27
27
|
export { default as Select } from './select';
|
|
28
|
-
export type { SelectProps } from './select';
|
|
28
|
+
export type { SelectOptionProps, SelectProps } from './select';
|
|
29
29
|
export { default as Switch } from './switch';
|
|
30
30
|
export type { SwitchProps } from './switch';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { InputProps as AntInputProps } from 'antd5';
|
|
2
2
|
import { GroupProps as AntGroupProps, PasswordProps as AntPasswordProps, SearchProps as AntSearchProps, TextAreaProps as AntTextAreaProps } from 'antd5/es/input';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
/**
|
|
5
4
|
* 后续可添加属性
|
|
6
5
|
*/
|
|
@@ -27,10 +26,10 @@ export declare type GroupProps = AntGroupProps;
|
|
|
27
26
|
* @constructor
|
|
28
27
|
*/
|
|
29
28
|
declare const Input: {
|
|
30
|
-
(props: InputProps):
|
|
31
|
-
TextArea: (props: TextAreaProps) =>
|
|
32
|
-
Search: (props: SearchProps) =>
|
|
33
|
-
Password: (props: PasswordProps) =>
|
|
34
|
-
Group: (props: GroupProps) =>
|
|
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;
|
|
35
34
|
};
|
|
36
35
|
export default Input;
|
|
@@ -1,5 +1,11 @@
|
|
|
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); }
|
|
1
7
|
import { Input as AntInput } from 'antd5';
|
|
2
|
-
import
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
9
|
var AntTextArea = AntInput.TextArea,
|
|
4
10
|
AntSearch = AntInput.Search,
|
|
5
11
|
AntPassword = AntInput.Password,
|
|
@@ -46,7 +52,7 @@ var AntTextArea = AntInput.TextArea,
|
|
|
46
52
|
* @constructor
|
|
47
53
|
*/
|
|
48
54
|
var Input = function Input(props) {
|
|
49
|
-
return /*#__PURE__*/
|
|
55
|
+
return /*#__PURE__*/_jsx(AntInput, _objectSpread({}, props));
|
|
50
56
|
};
|
|
51
57
|
|
|
52
58
|
/**
|
|
@@ -55,7 +61,7 @@ var Input = function Input(props) {
|
|
|
55
61
|
* @constructor
|
|
56
62
|
*/
|
|
57
63
|
var TextArea = function TextArea(props) {
|
|
58
|
-
return /*#__PURE__*/
|
|
64
|
+
return /*#__PURE__*/_jsx(AntTextArea, _objectSpread({}, props));
|
|
59
65
|
};
|
|
60
66
|
|
|
61
67
|
/**
|
|
@@ -64,7 +70,7 @@ var TextArea = function TextArea(props) {
|
|
|
64
70
|
* @constructor
|
|
65
71
|
*/
|
|
66
72
|
var Search = function Search(props) {
|
|
67
|
-
return /*#__PURE__*/
|
|
73
|
+
return /*#__PURE__*/_jsx(AntSearch, _objectSpread({}, props));
|
|
68
74
|
};
|
|
69
75
|
|
|
70
76
|
/**
|
|
@@ -73,7 +79,7 @@ var Search = function Search(props) {
|
|
|
73
79
|
* @constructor
|
|
74
80
|
*/
|
|
75
81
|
var Password = function Password(props) {
|
|
76
|
-
return /*#__PURE__*/
|
|
82
|
+
return /*#__PURE__*/_jsx(AntPassword, _objectSpread({}, props));
|
|
77
83
|
};
|
|
78
84
|
|
|
79
85
|
/**
|
|
@@ -82,7 +88,7 @@ var Password = function Password(props) {
|
|
|
82
88
|
* @constructor
|
|
83
89
|
*/
|
|
84
90
|
var Group = function Group(props) {
|
|
85
|
-
return /*#__PURE__*/
|
|
91
|
+
return /*#__PURE__*/_jsx(AntGroup, _objectSpread({}, props));
|
|
86
92
|
};
|
|
87
93
|
Input.TextArea = TextArea;
|
|
88
94
|
Input.Search = Search;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { InputNumberProps as AntInputNumberProps } from 'antd5';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export declare type InputNumberProps = AntInputNumberProps;
|
|
4
3
|
/**
|
|
5
4
|
* 数字输入框
|
|
6
5
|
* @param props
|
|
7
6
|
* @constructor
|
|
8
7
|
*/
|
|
9
|
-
declare const InputNumber: (props: InputNumberProps) =>
|
|
8
|
+
declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default InputNumber;
|