tntd 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/input/index.js +1 -0
- package/es/input/index.js.map +1 -1
- package/es/input/input.js +70 -12
- package/es/input/input.js.map +1 -1
- package/es/select/select.js.map +1 -1
- package/lib/input/index.d.ts +1 -0
- package/lib/input/index.d.ts.map +1 -1
- package/lib/input/index.js +12 -0
- package/lib/input/index.js.map +1 -1
- package/lib/input/input.d.ts +20 -3
- package/lib/input/input.d.ts.map +1 -1
- package/lib/input/input.js +60 -39
- package/lib/input/input.js.map +1 -1
- package/lib/query-form/Field/fieldsMap.d.ts +1 -1
- package/lib/select/select.d.ts +2 -1
- package/lib/select/select.d.ts.map +1 -1
- package/lib/select/select.js.map +1 -1
- package/package.json +1 -1
package/es/input/index.js
CHANGED
package/es/input/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,cAAc,CAAA;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAe,KAAK,CAAA","sourcesContent":["import 'antd/es/input/style'\nimport './input.less'\n\nimport { Input } from './input'\n\nexport default Input\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,cAAc,CAAA;AAErB,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAe,KAAK,CAAA","sourcesContent":["import 'antd/es/input/style'\nimport './input.less'\n\nexport * from './input'\n\nimport { Input } from './input'\n\nexport default Input\n"]}
|
package/es/input/input.js
CHANGED
|
@@ -10,8 +10,7 @@ import { ConfigConsumer } from 'antd/es/config-provider';
|
|
|
10
10
|
import { default as AntdInput } from 'antd/es/input';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import React from 'react';
|
|
13
|
-
export
|
|
14
|
-
const InputHoc = Component => _a => {
|
|
13
|
+
export const Input = _a => {
|
|
15
14
|
var {
|
|
16
15
|
className,
|
|
17
16
|
borderStyle
|
|
@@ -21,19 +20,78 @@ const InputHoc = Component => _a => {
|
|
|
21
20
|
getPrefixCls
|
|
22
21
|
}) => {
|
|
23
22
|
const prefixCls = getPrefixCls('input');
|
|
24
|
-
return React.createElement(
|
|
23
|
+
return React.createElement(AntdInput, Object.assign({}, props, {
|
|
25
24
|
className: classNames(className, {
|
|
26
25
|
[`${prefixCls}-outline`]: borderStyle === 'outline'
|
|
27
26
|
})
|
|
28
27
|
}));
|
|
29
28
|
});
|
|
30
29
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
Input.Group = _a => {
|
|
31
|
+
var {
|
|
32
|
+
className,
|
|
33
|
+
borderStyle
|
|
34
|
+
} = _a,
|
|
35
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
36
|
+
return React.createElement(ConfigConsumer, null, ({
|
|
37
|
+
getPrefixCls
|
|
38
|
+
}) => {
|
|
39
|
+
const prefixCls = getPrefixCls('input');
|
|
40
|
+
return React.createElement(AntdInput.Group, Object.assign({}, props, {
|
|
41
|
+
className: classNames(className, {
|
|
42
|
+
[`${prefixCls}-outline`]: borderStyle === 'outline'
|
|
43
|
+
})
|
|
44
|
+
}));
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Input.Search = _a => {
|
|
48
|
+
var {
|
|
49
|
+
className,
|
|
50
|
+
borderStyle
|
|
51
|
+
} = _a,
|
|
52
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
53
|
+
return React.createElement(ConfigConsumer, null, ({
|
|
54
|
+
getPrefixCls
|
|
55
|
+
}) => {
|
|
56
|
+
const prefixCls = getPrefixCls('input');
|
|
57
|
+
return React.createElement(AntdInput.Search, Object.assign({}, props, {
|
|
58
|
+
className: classNames(className, {
|
|
59
|
+
[`${prefixCls}-outline`]: borderStyle === 'outline'
|
|
60
|
+
})
|
|
61
|
+
}));
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
Input.TextArea = _a => {
|
|
65
|
+
var {
|
|
66
|
+
className,
|
|
67
|
+
borderStyle
|
|
68
|
+
} = _a,
|
|
69
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
70
|
+
return React.createElement(ConfigConsumer, null, ({
|
|
71
|
+
getPrefixCls
|
|
72
|
+
}) => {
|
|
73
|
+
const prefixCls = getPrefixCls('input');
|
|
74
|
+
return React.createElement(AntdInput.TextArea, Object.assign({}, props, {
|
|
75
|
+
className: classNames(className, {
|
|
76
|
+
[`${prefixCls}-outline`]: borderStyle === 'outline'
|
|
77
|
+
})
|
|
78
|
+
}));
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
Input.Password = _a => {
|
|
82
|
+
var {
|
|
83
|
+
className,
|
|
84
|
+
borderStyle
|
|
85
|
+
} = _a,
|
|
86
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
87
|
+
return React.createElement(ConfigConsumer, null, ({
|
|
88
|
+
getPrefixCls
|
|
89
|
+
}) => {
|
|
90
|
+
const prefixCls = getPrefixCls('input');
|
|
91
|
+
return React.createElement(AntdInput.Password, Object.assign({}, props, {
|
|
92
|
+
className: classNames(className, {
|
|
93
|
+
[`${prefixCls}-outline`]: borderStyle === 'outline'
|
|
94
|
+
})
|
|
95
|
+
}));
|
|
96
|
+
});
|
|
97
|
+
};
|
package/es/input/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/input/input.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,y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AAA;QAEvC,OAAO,CACL,oBAAC,SAAS,CAAC,QAAQ,oBACb,KAAK,IACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;gBAC/B,CAAC,GAAG,SAAS,UAAU,CAAC,EAAE,WAAW,KAAK,SAAS;aACpD,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA","sourcesContent":["import { ConfigConsumer } from 'antd/es/config-provider'\nimport type {\n GroupProps as AntdGroupProps,\n InputProps as AntdInputProps,\n TextAreaProps as AntdTextAreaProps,\n PasswordProps as AntdPasswordProps,\n SearchProps as AntdSearchProps,\n} from 'antd/es/input'\nimport { default as AntdInput } from 'antd/es/input'\nimport classNames from 'classnames'\n\nimport React from 'react'\n\nexport interface InputProps extends AntdInputProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface GroupProps extends AntdGroupProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface TextAreaProps extends AntdTextAreaProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface PasswordProps extends AntdPasswordProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface SearchProps extends AntdSearchProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport const Input = ({ className, borderStyle, ...props }: InputProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\n\nInput.Group = ({ className, borderStyle, ...props }: GroupProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.Group\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\nInput.Search = ({ className, borderStyle, ...props }: SearchProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.Search\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\nInput.TextArea = ({ className, borderStyle, ...props }: TextAreaProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.TextArea\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\nInput.Password = ({ className, borderStyle, ...props }: PasswordProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.Password\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\n"]}
|
package/es/select/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,UAAU,MAAM,YAAY,CAAA;AAQnC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAiD,EAAE,EAAE;QAArD,EAAE,SAAS,EAAE,WAAW,OAAyB,EAApB,KAAK,cAAlC,4BAAoC,CAAF;IACvD,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QAExC,OAAO,CACL,oBAAC,UAAU,oBACL,KAAK,IACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;gBAC/B,CAAC,GAAG,SAAS,UAAU,CAAC,EAAE,WAAW,KAAK,SAAS;aACpD,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAA;AACrC,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAA","sourcesContent":["import React, { ReactNode } from 'react'\nimport { default as AntdSelect } from 'antd/es/select'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport type { SelectProps as AntdSelectProps } from 'antd/es/select'\nimport classNames from 'classnames'\n\nexport interface SelectProps extends AntdSelectProps {\n // 线框风格\n borderStyle?: 'outline'\n children?: ReactNode\n}\n\nexport const Select = ({ className, borderStyle, ...props }: SelectProps) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('select')\n\n return (\n <AntdSelect\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nSelect.OptGroup = AntdSelect.OptGroup\nSelect.Option = AntdSelect.Option\n"]}
|
package/lib/input/index.d.ts
CHANGED
package/lib/input/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,cAAc,CAAA;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAe,KAAK,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,cAAc,CAAA;AAErB,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAe,KAAK,CAAA"}
|
package/lib/input/index.js
CHANGED
|
@@ -3,9 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {};
|
|
6
7
|
exports["default"] = void 0;
|
|
7
8
|
require("antd/lib/input/style");
|
|
8
9
|
require("./input.less");
|
|
9
10
|
var _input2 = require("./input");
|
|
11
|
+
Object.keys(_input2).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
14
|
+
if (key in exports && exports[key] === _input2[key]) return;
|
|
15
|
+
Object.defineProperty(exports, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function get() {
|
|
18
|
+
return _input2[key];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
10
22
|
var _default = _input2.Input;
|
|
11
23
|
exports["default"] = _default;
|
package/lib/input/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+BAA4B;AAC5B,wBAAqB;AAErB,0CAAuB;AAEvB,mCAA+B;AAE/B,kBAAe,aAAK,CAAA","sourcesContent":["import 'antd/lib/input/style'\nimport './input.less'\n\nexport * from './input'\n\nimport { Input } from './input'\n\nexport default Input\n"]}
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { InputProps as AntdInputProps } from 'antd/lib/input';
|
|
3
|
-
export * from 'antd/lib/input';
|
|
2
|
+
import type { GroupProps as AntdGroupProps, InputProps as AntdInputProps, TextAreaProps as AntdTextAreaProps, PasswordProps as AntdPasswordProps, SearchProps as AntdSearchProps } from 'antd/lib/input';
|
|
4
3
|
export interface InputProps extends AntdInputProps {
|
|
5
4
|
borderStyle?: 'outline';
|
|
6
5
|
}
|
|
7
|
-
export
|
|
6
|
+
export interface GroupProps extends AntdGroupProps {
|
|
7
|
+
borderStyle?: 'outline';
|
|
8
|
+
}
|
|
9
|
+
export interface TextAreaProps extends AntdTextAreaProps {
|
|
10
|
+
borderStyle?: 'outline';
|
|
11
|
+
}
|
|
12
|
+
export interface PasswordProps extends AntdPasswordProps {
|
|
13
|
+
borderStyle?: 'outline';
|
|
14
|
+
}
|
|
15
|
+
export interface SearchProps extends AntdSearchProps {
|
|
16
|
+
borderStyle?: 'outline';
|
|
17
|
+
}
|
|
18
|
+
export declare const Input: {
|
|
19
|
+
({ className, borderStyle, ...props }: InputProps): JSX.Element;
|
|
20
|
+
Group({ className, borderStyle, ...props }: GroupProps): JSX.Element;
|
|
21
|
+
Search({ className, borderStyle, ...props }: SearchProps): JSX.Element;
|
|
22
|
+
TextArea({ className, borderStyle, ...props }: TextAreaProps): JSX.Element;
|
|
23
|
+
Password({ className, borderStyle, ...props }: PasswordProps): JSX.Element;
|
|
24
|
+
};
|
|
8
25
|
//# sourceMappingURL=input.d.ts.map
|
package/lib/input/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/input/input.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/input/input.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,UAAU,IAAI,cAAc,EAC5B,aAAa,IAAI,iBAAiB,EAClC,aAAa,IAAI,iBAAiB,EAClC,WAAW,IAAI,eAAe,EAC/B,MAAM,eAAe,CAAA;AAMtB,MAAM,WAAW,UAAW,SAAQ,cAAc;IAEhD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc;IAEhD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IAEtD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IAEtD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe;IAElD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,eAAO,MAAM,KAAK;2CAA0C,UAAU;gDAiBjB,UAAU;iDAgBT,WAAW;mDAgBT,aAAa;mDAgBb,aAAa;CAlDpE,CAAA"}
|
package/lib/input/input.js
CHANGED
|
@@ -3,28 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Input: true
|
|
8
|
-
};
|
|
9
6
|
exports.Input = void 0;
|
|
10
7
|
var _configProvider = require("antd/lib/config-provider");
|
|
11
|
-
var _input =
|
|
12
|
-
Object.keys(_input).forEach(function (key) {
|
|
13
|
-
if (key === "default" || key === "__esModule") return;
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
15
|
-
if (key in exports && exports[key] === _input[key]) return;
|
|
16
|
-
Object.defineProperty(exports, key, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _input[key];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
8
|
+
var _input = _interopRequireDefault(require("antd/lib/input"));
|
|
23
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
10
|
var _react = _interopRequireDefault(require("react"));
|
|
25
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
28
12
|
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); }
|
|
29
13
|
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; }
|
|
30
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
@@ -39,27 +23,64 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
39
23
|
}
|
|
40
24
|
return t;
|
|
41
25
|
};
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
};
|
|
26
|
+
var Input = function Input(_a) {
|
|
27
|
+
var className = _a.className,
|
|
28
|
+
borderStyle = _a.borderStyle,
|
|
29
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
30
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
31
|
+
var getPrefixCls = _ref.getPrefixCls;
|
|
32
|
+
var prefixCls = getPrefixCls('input');
|
|
33
|
+
return _react["default"].createElement(_input["default"], Object.assign({}, props, {
|
|
34
|
+
className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(prefixCls, "-outline"), borderStyle === 'outline'))
|
|
35
|
+
}));
|
|
36
|
+
});
|
|
55
37
|
};
|
|
56
|
-
var Input = InputHoc(_input["default"]);
|
|
57
|
-
// @ts-ignore
|
|
58
38
|
exports.Input = Input;
|
|
59
|
-
Input.Group =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
39
|
+
Input.Group = function (_a) {
|
|
40
|
+
var className = _a.className,
|
|
41
|
+
borderStyle = _a.borderStyle,
|
|
42
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
43
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref2) {
|
|
44
|
+
var getPrefixCls = _ref2.getPrefixCls;
|
|
45
|
+
var prefixCls = getPrefixCls('input');
|
|
46
|
+
return _react["default"].createElement(_input["default"].Group, Object.assign({}, props, {
|
|
47
|
+
className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(prefixCls, "-outline"), borderStyle === 'outline'))
|
|
48
|
+
}));
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
Input.Search = function (_a) {
|
|
52
|
+
var className = _a.className,
|
|
53
|
+
borderStyle = _a.borderStyle,
|
|
54
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
55
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref3) {
|
|
56
|
+
var getPrefixCls = _ref3.getPrefixCls;
|
|
57
|
+
var prefixCls = getPrefixCls('input');
|
|
58
|
+
return _react["default"].createElement(_input["default"].Search, Object.assign({}, props, {
|
|
59
|
+
className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(prefixCls, "-outline"), borderStyle === 'outline'))
|
|
60
|
+
}));
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
Input.TextArea = function (_a) {
|
|
64
|
+
var className = _a.className,
|
|
65
|
+
borderStyle = _a.borderStyle,
|
|
66
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
67
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref4) {
|
|
68
|
+
var getPrefixCls = _ref4.getPrefixCls;
|
|
69
|
+
var prefixCls = getPrefixCls('input');
|
|
70
|
+
return _react["default"].createElement(_input["default"].TextArea, Object.assign({}, props, {
|
|
71
|
+
className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(prefixCls, "-outline"), borderStyle === 'outline'))
|
|
72
|
+
}));
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
Input.Password = function (_a) {
|
|
76
|
+
var className = _a.className,
|
|
77
|
+
borderStyle = _a.borderStyle,
|
|
78
|
+
props = __rest(_a, ["className", "borderStyle"]);
|
|
79
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref5) {
|
|
80
|
+
var getPrefixCls = _ref5.getPrefixCls;
|
|
81
|
+
var prefixCls = getPrefixCls('input');
|
|
82
|
+
return _react["default"].createElement(_input["default"].Password, Object.assign({}, props, {
|
|
83
|
+
className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(prefixCls, "-outline"), borderStyle === 'outline'))
|
|
84
|
+
}));
|
|
85
|
+
});
|
|
86
|
+
};
|
package/lib/input/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/input/input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/input/input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAAwD;AAQxD,0DAAoD;AACpD,4DAAmC;AAEnC,kDAAyB;AA2BlB,MAAM,KAAK,GAAG,CAAC,EAAgD,EAAE,EAAE;QAApD,EAAE,SAAS,EAAE,WAAW,OAAwB,EAAnB,KAAK,cAAlC,4BAAoC,CAAF;IAAmB,OAAA,CACzE,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;QAEvC,OAAO,CACL,8BAAC,eAAS,oBACJ,KAAK,IACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;gBAC/B,CAAC,GAAG,SAAS,UAAU,CAAC,EAAE,WAAW,KAAK,SAAS;aACpD,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA;AAfY,QAAA,KAAK,SAejB;AAED,aAAK,CAAC,KAAK,GAAG,CAAC,EAAgD,EAAE,EAAE;QAApD,EAAE,SAAS,EAAE,WAAW,OAAwB,EAAnB,KAAK,cAAlC,4BAAoC,CAAF;IAAmB,OAAA,CAClE,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;QAEvC,OAAO,CACL,8BAAC,eAAS,CAAC,KAAK,oBACV,KAAK,IACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;gBAC/B,CAAC,GAAG,SAAS,UAAU,CAAC,EAAE,WAAW,KAAK,SAAS;aACpD,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA;AACD,aAAK,CAAC,MAAM,GAAG,CAAC,EAAiD,EAAE,EAAE;QAAr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,KAAK,IACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;gBAC/B,CAAC,GAAG,SAAS,UAAU,CAAC,EAAE,WAAW,KAAK,SAAS;aACpD,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA","sourcesContent":["import { ConfigConsumer } from 'antd/lib/config-provider'\nimport type {\n GroupProps as AntdGroupProps,\n InputProps as AntdInputProps,\n TextAreaProps as AntdTextAreaProps,\n PasswordProps as AntdPasswordProps,\n SearchProps as AntdSearchProps,\n} from 'antd/lib/input'\nimport { default as AntdInput } from 'antd/lib/input'\nimport classNames from 'classnames'\n\nimport React from 'react'\n\nexport interface InputProps extends AntdInputProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface GroupProps extends AntdGroupProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface TextAreaProps extends AntdTextAreaProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface PasswordProps extends AntdPasswordProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport interface SearchProps extends AntdSearchProps {\n // 线框风格\n borderStyle?: 'outline'\n}\n\nexport const Input = ({ className, borderStyle, ...props }: InputProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\n\nInput.Group = ({ className, borderStyle, ...props }: GroupProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.Group\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\nInput.Search = ({ className, borderStyle, ...props }: SearchProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.Search\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\nInput.TextArea = ({ className, borderStyle, ...props }: TextAreaProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.TextArea\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\nInput.Password = ({ className, borderStyle, ...props }: PasswordProps) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('input')\n\n return (\n <AntdInput.Password\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n)\n"]}
|
|
@@ -3,7 +3,7 @@ export function getFieldWidth(type: any): any;
|
|
|
3
3
|
declare namespace _default {
|
|
4
4
|
export { Input as string };
|
|
5
5
|
export { Input as input };
|
|
6
|
-
export const search:
|
|
6
|
+
export const search: ({ className, borderStyle, ...props }: import("../../input").SearchProps) => JSX.Element;
|
|
7
7
|
export { InputNumber as inputNumber };
|
|
8
8
|
export { InputNumber as number };
|
|
9
9
|
export { SelectField as select };
|
package/lib/select/select.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import type { SelectProps as AntdSelectProps } from 'antd/lib/select';
|
|
3
3
|
export interface SelectProps extends AntdSelectProps {
|
|
4
4
|
borderStyle?: 'outline';
|
|
5
|
+
children?: ReactNode;
|
|
5
6
|
}
|
|
6
7
|
export declare const Select: {
|
|
7
8
|
({ className, borderStyle, ...props }: SelectProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGpE,MAAM,WAAW,WAAY,SAAQ,eAAe;IAElD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,eAAO,MAAM,MAAM;2CAA0C,WAAW;;;CAiBvE,CAAA"}
|
package/lib/select/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAwC;AACxC,4DAAsD;AACtD,6DAAwD;AAExD,4DAAmC;AAQ5B,MAAM,MAAM,GAAG,CAAC,EAAiD,EAAE,EAAE;QAArD,EAAE,SAAS,EAAE,WAAW,OAAyB,EAApB,KAAK,cAAlC,4BAAoC,CAAF;IACvD,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QAExC,OAAO,CACL,8BAAC,gBAAU,oBACL,KAAK,IACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;gBAC/B,CAAC,GAAG,SAAS,UAAU,CAAC,EAAE,WAAW,KAAK,SAAS;aACpD,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,MAAM,UAiBlB;AAED,cAAM,CAAC,QAAQ,GAAG,gBAAU,CAAC,QAAQ,CAAA;AACrC,cAAM,CAAC,MAAM,GAAG,gBAAU,CAAC,MAAM,CAAA","sourcesContent":["import React, { ReactNode } from 'react'\nimport { default as AntdSelect } from 'antd/lib/select'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport type { SelectProps as AntdSelectProps } from 'antd/lib/select'\nimport classNames from 'classnames'\n\nexport interface SelectProps extends AntdSelectProps {\n // 线框风格\n borderStyle?: 'outline'\n children?: ReactNode\n}\n\nexport const Select = ({ className, borderStyle, ...props }: SelectProps) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('select')\n\n return (\n <AntdSelect\n {...props}\n className={classNames(className, {\n [`${prefixCls}-outline`]: borderStyle === 'outline',\n })}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nSelect.OptGroup = AntdSelect.OptGroup\nSelect.Option = AntdSelect.Option\n"]}
|