tntd 2.0.13 → 2.0.15
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/drawer/drawer.js +1 -1
- package/es/drawer/drawer.js.map +1 -1
- package/es/drawer/drawer.less +13 -11
- package/es/modal/index.js +11 -2
- package/es/modal/index.js.map +1 -1
- package/es/modal/modal.js +44 -0
- package/es/modal/modal.js.map +1 -0
- package/es/modal/modal.less +27 -25
- package/es/steps/style/nav.less +3 -1
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +1 -1
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/drawer/drawer.less +13 -11
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.d.ts.map +1 -1
- package/lib/modal/index.js +12 -6
- package/lib/modal/index.js.map +1 -1
- package/lib/modal/modal.d.ts +15 -0
- package/lib/modal/modal.d.ts.map +1 -0
- package/lib/modal/modal.js +66 -0
- package/lib/modal/modal.js.map +1 -0
- package/lib/modal/modal.less +27 -25
- package/lib/steps/style/nav.less +3 -1
- package/package.json +1 -1
package/es/drawer/drawer.js
CHANGED
|
@@ -24,7 +24,7 @@ export const Drawer = _a => {
|
|
|
24
24
|
return React.createElement(LocaleReceiver, {
|
|
25
25
|
componentName: "Drawer"
|
|
26
26
|
}, () => React.createElement(AntdDrawer, Object.assign({
|
|
27
|
-
className: classNames(prefixCls, className, {
|
|
27
|
+
className: classNames(prefixCls, 'tntd-drawer', className, {
|
|
28
28
|
[`${prefixCls}-contain-closable`]: closable !== false
|
|
29
29
|
}),
|
|
30
30
|
closable: closable
|
package/es/drawer/drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;AASA,OAAO,cAAc,MAAM,wCAAwC,CAAA;AACnE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAwB,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAAO,OAAA,CAC/E,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxC,OAAO,CACL,oBAAC,cAAc,IAAC,aAAa,EAAC,QAAQ,IACnC,GAAG,EAAE,CAAC,CACL,oBAAC,UAAU,kBACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE;gBACzD,CAAC,GAAG,SAAS,mBAAmB,CAAC,EAAE,QAAQ,KAAK,KAAK;aACtD,CAAC,EACF,QAAQ,EAAE,QAAQ,IACd,IAAI,EACR,CACH,CACc,CAClB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 16:45:46\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 18:56:20\n * @FilePath: /tntd/packages/tntd/src/drawer/drawer.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport type { DrawerProps as AntdDrawerProps } from 'antd/es/drawer'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport classNames from 'classnames'\nimport React, { FC } from 'react'\n\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport { default as AntdDrawer } from 'antd/es/drawer'\n\nexport const Drawer: FC<AntdDrawerProps> = ({ closable, className, ...rest }) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('drawer')\n return (\n <LocaleReceiver componentName=\"Drawer\">\n {() => (\n <AntdDrawer\n className={classNames(prefixCls, 'tntd-drawer', className, {\n [`${prefixCls}-contain-closable`]: closable !== false,\n })}\n closable={closable}\n {...rest}\n />\n )}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n"]}
|
package/es/drawer/drawer.less
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
.tntd-drawer{
|
|
4
|
+
&.@{drawer-prefix-cls} {
|
|
5
|
+
.@{drawer-prefix-cls}-title {
|
|
6
|
+
font-size: @font-size-lg + 2px;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
.@{drawer-prefix-cls}-close {
|
|
10
|
+
color: fade(@text-color, 50%);;
|
|
11
|
+
top: -4px;
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
.@{drawer-prefix-cls}-contain-closable{
|
|
15
|
+
.@{drawer-prefix-cls}-header{
|
|
16
|
+
padding: 12px 36px 12px 20px;
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
}
|
package/es/modal/index.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
3
|
+
* @Date: 2023-03-08 16:45:46
|
|
4
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
5
|
+
* @LastEditTime: 2023-03-08 18:33:42
|
|
6
|
+
* @FilePath: /tntd/packages/tntd/src/modal/index.ts
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
// import Modal from 'antd/es/modal'
|
|
2
10
|
import 'antd/es/modal/style';
|
|
11
|
+
import { Modal } from './modal';
|
|
3
12
|
import './modal.less';
|
|
4
|
-
export * from '
|
|
13
|
+
export * from './modal';
|
|
5
14
|
export default Modal;
|
package/es/modal/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oCAAoC;AACpC,OAAO,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,cAAc,CAAA;AAErB,cAAc,SAAS,CAAA;AAEvB,eAAe,KAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 16:45:46\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 18:33:42\n * @FilePath: /tntd/packages/tntd/src/modal/index.ts\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\n// import Modal from 'antd/es/modal'\nimport 'antd/es/modal/style'\nimport { Modal } from './modal'\n\nimport './modal.less'\n\nexport * from './modal'\n\nexport default Modal\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
5
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
/*
|
|
10
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
11
|
+
* @Date: 2023-03-08 17:45:01
|
|
12
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
13
|
+
* @LastEditTime: 2023-03-08 19:01:48
|
|
14
|
+
* @FilePath: /tntd/packages/tntd/src/modal/modal.tsx
|
|
15
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import 'antd/es/locale-provider/LocaleReceiver';
|
|
19
|
+
import classNames from 'classnames';
|
|
20
|
+
import { ConfigConsumer } from 'antd/es/config-provider';
|
|
21
|
+
import { default as AntdModal } from 'antd/es/modal';
|
|
22
|
+
export * from 'antd/es/modal';
|
|
23
|
+
export {} from 'antd/es/modal';
|
|
24
|
+
export function Modal(_a) {
|
|
25
|
+
var {
|
|
26
|
+
className
|
|
27
|
+
} = _a,
|
|
28
|
+
rest = __rest(_a, ["className"]);
|
|
29
|
+
return React.createElement(ConfigConsumer, null, ({
|
|
30
|
+
getPrefixCls
|
|
31
|
+
}) => {
|
|
32
|
+
const prefixCls = getPrefixCls('modal');
|
|
33
|
+
return React.createElement(AntdModal, Object.assign({
|
|
34
|
+
className: classNames(prefixCls, 'tntd-modal', className)
|
|
35
|
+
}, rest));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
Modal.info = AntdModal.info;
|
|
39
|
+
Modal.success = AntdModal.success;
|
|
40
|
+
Modal.error = AntdModal.error;
|
|
41
|
+
Modal.warning = AntdModal.warning;
|
|
42
|
+
Modal.warn = AntdModal.warn;
|
|
43
|
+
Modal.confirm = AntdModal.confirm;
|
|
44
|
+
Modal.destroyAll = AntdModal.destroyAll;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAA2B,wCAAwC,CAAA;AAEnE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAEpD,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAiD,MAAM,eAAe,CAAA;AAE7E,MAAM,UAAU,KAAK,CAAC,EAAsC;QAAtC,EAAE,SAAS,OAA2B,EAAtB,IAAI,cAApB,aAAsB,CAAF;IACxC,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;QACvC,OAAO,oBAAC,SAAS,kBAAC,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC,IAAM,IAAI,EAAI,CAAA;IAC3F,CAAC,CACc,CAClB,CAAA;AACH,CAAC;AAED,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;AAC3B,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AACjC,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAA;AAC7B,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AACjC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;AAC3B,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AACjC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 19:01:48\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React from 'react'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport type { ModalProps as AntdModalProps } from 'antd/es/modal'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from 'antd/es/config-provider'\n\nimport { default as AntdModal } from 'antd/es/modal'\n\nexport * from 'antd/es/modal'\nexport { ActionButtonProps, ModalProps, ModalFuncProps } from 'antd/es/modal'\n\nexport function Modal({ className, ...rest }: AntdModalProps): JSX.Element {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('modal')\n return <AntdModal className={classNames(prefixCls, 'tntd-modal', className)} {...rest} />\n }}\n </ConfigConsumer>\n )\n}\n\nModal.info = AntdModal.info\nModal.success = AntdModal.success\nModal.error = AntdModal.error\nModal.warning = AntdModal.warning\nModal.warn = AntdModal.warn\nModal.confirm = AntdModal.confirm\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
package/es/modal/modal.less
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
@dialog-prefix-cls: ~'@{ant-prefix}-modal';
|
|
2
2
|
@modal-footer-padding-vertical: 10px;
|
|
3
3
|
@modal-footer-padding-horizontal: 20px;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-close {
|
|
13
|
-
color: fade(@text-color, 50%);;
|
|
14
|
-
&-x {
|
|
15
|
-
height: 40px;
|
|
16
|
-
line-height: 40px;
|
|
4
|
+
.tntd-modal{
|
|
5
|
+
&.@{dialog-prefix-cls} {
|
|
6
|
+
.@{dialog-prefix-cls}-title {
|
|
7
|
+
line-height: 20px;
|
|
8
|
+
font-weight: normal;
|
|
9
|
+
font-size: @font-size-base;
|
|
17
10
|
}
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
|
|
12
|
+
.@{dialog-prefix-cls}-close {
|
|
13
|
+
color: fade(@text-color, 50%);;
|
|
14
|
+
&-x {
|
|
15
|
+
height: 40px;
|
|
16
|
+
line-height: 40px;
|
|
17
|
+
}
|
|
18
|
+
+.@{dialog-prefix-cls}-header{
|
|
19
|
+
padding: 10px 30px 10px 20px;
|
|
20
|
+
}
|
|
20
21
|
}
|
|
21
|
-
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
.@{dialog-prefix-cls}-header {
|
|
24
|
+
padding: 10px 20px;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
}
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
.@{dialog-prefix-cls}-footer {
|
|
30
|
+
padding: @modal-footer-padding-vertical @modal-footer-padding-horizontal;
|
|
31
|
+
button + button {
|
|
32
|
+
margin-left: 10px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
35
36
|
}
|
|
37
|
+
|
package/es/steps/style/nav.less
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGpE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAKjC,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,eAAe,CAmBtC,CAAA"}
|
package/lib/drawer/drawer.js
CHANGED
|
@@ -35,7 +35,7 @@ var Drawer = function Drawer(_a) {
|
|
|
35
35
|
componentName: "Drawer"
|
|
36
36
|
}, function () {
|
|
37
37
|
return _react["default"].createElement(_drawer["default"], Object.assign({
|
|
38
|
-
className: (0, _classnames["default"])(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-contain-closable"), closable !== false)),
|
|
38
|
+
className: (0, _classnames["default"])(prefixCls, 'tntd-drawer', className, _defineProperty({}, "".concat(prefixCls, "-contain-closable"), closable !== false)),
|
|
39
39
|
closable: closable
|
|
40
40
|
}, rest));
|
|
41
41
|
});
|
package/lib/drawer/drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AASA,4FAAmE;AACnE,4DAAmC;AACnC,kDAAiC;AAEjC,6DAAwD;AACxD,4DAAsD;AAE/C,MAAM,MAAM,GAAwB,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAAO,OAAA,CAC/E,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxC,OAAO,CACL,8BAAC,wBAAc,IAAC,aAAa,EAAC,QAAQ,IACnC,GAAG,EAAE,CAAC,CACL,8BAAC,gBAAU,kBACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE;gBACzD,CAAC,GAAG,SAAS,mBAAmB,CAAC,EAAE,QAAQ,KAAK,KAAK;aACtD,CAAC,EACF,QAAQ,EAAE,QAAQ,IACd,IAAI,EACR,CACH,CACc,CAClB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA;AAnBY,QAAA,MAAM,UAmBlB","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 16:45:46\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 18:56:20\n * @FilePath: /tntd/packages/tntd/src/drawer/drawer.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport type { DrawerProps as AntdDrawerProps } from 'antd/lib/drawer'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport classNames from 'classnames'\nimport React, { FC } from 'react'\n\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport { default as AntdDrawer } from 'antd/lib/drawer'\n\nexport const Drawer: FC<AntdDrawerProps> = ({ closable, className, ...rest }) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('drawer')\n return (\n <LocaleReceiver componentName=\"Drawer\">\n {() => (\n <AntdDrawer\n className={classNames(prefixCls, 'tntd-drawer', className, {\n [`${prefixCls}-contain-closable`]: closable !== false,\n })}\n closable={closable}\n {...rest}\n />\n )}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n"]}
|
package/lib/drawer/drawer.less
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
.tntd-drawer{
|
|
4
|
+
&.@{drawer-prefix-cls} {
|
|
5
|
+
.@{drawer-prefix-cls}-title {
|
|
6
|
+
font-size: @font-size-lg + 2px;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
.@{drawer-prefix-cls}-close {
|
|
10
|
+
color: fade(@text-color, 50%);;
|
|
11
|
+
top: -4px;
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
.@{drawer-prefix-cls}-contain-closable{
|
|
15
|
+
.@{drawer-prefix-cls}-header{
|
|
16
|
+
padding: 12px 36px 12px 20px;
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
}
|
package/lib/modal/index.d.ts
CHANGED
package/lib/modal/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"AASA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,cAAc,CAAA;AAErB,cAAc,SAAS,CAAA;AAEvB,eAAe,KAAK,CAAA"}
|
package/lib/modal/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
var _exportNames = {};
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
8
|
+
require("antd/lib/modal/style");
|
|
9
|
+
var _modal = require("./modal");
|
|
10
10
|
Object.keys(_modal).forEach(function (key) {
|
|
11
11
|
if (key === "default" || key === "__esModule") return;
|
|
12
12
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -18,9 +18,15 @@ Object.keys(_modal).forEach(function (key) {
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
require("antd/lib/modal/style");
|
|
22
21
|
require("./modal.less");
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
/*
|
|
23
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
24
|
+
* @Date: 2023-03-08 16:45:46
|
|
25
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
26
|
+
* @LastEditTime: 2023-03-08 18:33:42
|
|
27
|
+
* @FilePath: /tntd/packages/tntd/src/modal/index.ts
|
|
28
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
29
|
+
*/
|
|
30
|
+
// import Modal from 'antd/lib/modal'
|
|
31
|
+
var _default = _modal.Modal;
|
|
26
32
|
exports["default"] = _default;
|
package/lib/modal/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,oCAAoC;AACpC,+BAA4B;AAC5B,mCAA+B;AAE/B,wBAAqB;AAErB,0CAAuB;AAEvB,kBAAe,aAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 16:45:46\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 18:33:42\n * @FilePath: /tntd/packages/tntd/src/modal/index.ts\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\n// import Modal from 'antd/lib/modal'\nimport 'antd/lib/modal/style'\nimport { Modal } from './modal'\n\nimport './modal.less'\n\nexport * from './modal'\n\nexport default Modal\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ModalProps as AntdModalProps } from 'antd/lib/modal';
|
|
3
|
+
export * from 'antd/lib/modal';
|
|
4
|
+
export { ActionButtonProps, ModalProps, ModalFuncProps } from 'antd/lib/modal';
|
|
5
|
+
export declare function Modal({ className, ...rest }: AntdModalProps): JSX.Element;
|
|
6
|
+
export declare namespace Modal {
|
|
7
|
+
var info: import("antd/lib/modal/Modal").ModalFunc;
|
|
8
|
+
var success: import("antd/lib/modal/Modal").ModalFunc;
|
|
9
|
+
var error: import("antd/lib/modal/Modal").ModalFunc;
|
|
10
|
+
var warning: import("antd/lib/modal/Modal").ModalFunc;
|
|
11
|
+
var warn: import("antd/lib/modal/Modal").ModalFunc;
|
|
12
|
+
var confirm: import("antd/lib/modal/Modal").ModalFunc;
|
|
13
|
+
var destroyAll: () => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAMjE,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE7E,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CASzE;yBATe,KAAK"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
var _exportNames = {
|
|
8
|
+
Modal: true
|
|
9
|
+
};
|
|
10
|
+
exports.Modal = Modal;
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
require("antd/lib/locale-provider/LocaleReceiver");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _configProvider = require("antd/lib/config-provider");
|
|
15
|
+
var _modal = _interopRequireWildcard(require("antd/lib/modal"));
|
|
16
|
+
Object.keys(_modal).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _modal[key]) return;
|
|
20
|
+
Object.defineProperty(exports, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _modal[key];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
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); }
|
|
28
|
+
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; }
|
|
29
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
30
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
31
|
+
var t = {};
|
|
32
|
+
for (var p in s) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
34
|
+
}
|
|
35
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
36
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
};
|
|
40
|
+
/*
|
|
41
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
42
|
+
* @Date: 2023-03-08 17:45:01
|
|
43
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
44
|
+
* @LastEditTime: 2023-03-08 19:01:48
|
|
45
|
+
* @FilePath: /tntd/packages/tntd/src/modal/modal.tsx
|
|
46
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
function Modal(_a) {
|
|
50
|
+
var className = _a.className,
|
|
51
|
+
rest = __rest(_a, ["className"]);
|
|
52
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
53
|
+
var getPrefixCls = _ref.getPrefixCls;
|
|
54
|
+
var prefixCls = getPrefixCls('modal');
|
|
55
|
+
return _react["default"].createElement(_modal["default"], Object.assign({
|
|
56
|
+
className: (0, _classnames["default"])(prefixCls, 'tntd-modal', className)
|
|
57
|
+
}, rest));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
Modal.info = _modal["default"].info;
|
|
61
|
+
Modal.success = _modal["default"].success;
|
|
62
|
+
Modal.error = _modal["default"].error;
|
|
63
|
+
Modal.warning = _modal["default"].warning;
|
|
64
|
+
Modal.warn = _modal["default"].warn;
|
|
65
|
+
Modal.confirm = _modal["default"].confirm;
|
|
66
|
+
Modal.destroyAll = _modal["default"].destroyAll;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,kDAAyB;AACzB,kDAAmE;AAEnE,4DAAmC;AACnC,6DAAwD;AAExD,0DAAoD;AAEpD,gDAA6B;AAC7B,uCAA6E;AAE7E,SAAgB,KAAK,CAAC,EAAsC;QAAtC,EAAE,SAAS,OAA2B,EAAtB,IAAI,cAApB,aAAsB,CAAF;IACxC,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;QACvC,OAAO,8BAAC,eAAS,kBAAC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC,IAAM,IAAI,EAAI,CAAA;IAC3F,CAAC,CACc,CAClB,CAAA;AACH,CAAC;AATD,sBASC;AAED,KAAK,CAAC,IAAI,GAAG,eAAS,CAAC,IAAI,CAAA;AAC3B,KAAK,CAAC,OAAO,GAAG,eAAS,CAAC,OAAO,CAAA;AACjC,KAAK,CAAC,KAAK,GAAG,eAAS,CAAC,KAAK,CAAA;AAC7B,KAAK,CAAC,OAAO,GAAG,eAAS,CAAC,OAAO,CAAA;AACjC,KAAK,CAAC,IAAI,GAAG,eAAS,CAAC,IAAI,CAAA;AAC3B,KAAK,CAAC,OAAO,GAAG,eAAS,CAAC,OAAO,CAAA;AACjC,KAAK,CAAC,UAAU,GAAG,eAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 19:01:48\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React from 'react'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport type { ModalProps as AntdModalProps } from 'antd/lib/modal'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\n\nimport { default as AntdModal } from 'antd/lib/modal'\n\nexport * from 'antd/lib/modal'\nexport { ActionButtonProps, ModalProps, ModalFuncProps } from 'antd/lib/modal'\n\nexport function Modal({ className, ...rest }: AntdModalProps): JSX.Element {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('modal')\n return <AntdModal className={classNames(prefixCls, 'tntd-modal', className)} {...rest} />\n }}\n </ConfigConsumer>\n )\n}\n\nModal.info = AntdModal.info\nModal.success = AntdModal.success\nModal.error = AntdModal.error\nModal.warning = AntdModal.warning\nModal.warn = AntdModal.warn\nModal.confirm = AntdModal.confirm\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
package/lib/modal/modal.less
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
@dialog-prefix-cls: ~'@{ant-prefix}-modal';
|
|
2
2
|
@modal-footer-padding-vertical: 10px;
|
|
3
3
|
@modal-footer-padding-horizontal: 20px;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-close {
|
|
13
|
-
color: fade(@text-color, 50%);;
|
|
14
|
-
&-x {
|
|
15
|
-
height: 40px;
|
|
16
|
-
line-height: 40px;
|
|
4
|
+
.tntd-modal{
|
|
5
|
+
&.@{dialog-prefix-cls} {
|
|
6
|
+
.@{dialog-prefix-cls}-title {
|
|
7
|
+
line-height: 20px;
|
|
8
|
+
font-weight: normal;
|
|
9
|
+
font-size: @font-size-base;
|
|
17
10
|
}
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
|
|
12
|
+
.@{dialog-prefix-cls}-close {
|
|
13
|
+
color: fade(@text-color, 50%);;
|
|
14
|
+
&-x {
|
|
15
|
+
height: 40px;
|
|
16
|
+
line-height: 40px;
|
|
17
|
+
}
|
|
18
|
+
+.@{dialog-prefix-cls}-header{
|
|
19
|
+
padding: 10px 30px 10px 20px;
|
|
20
|
+
}
|
|
20
21
|
}
|
|
21
|
-
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
.@{dialog-prefix-cls}-header {
|
|
24
|
+
padding: 10px 20px;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
}
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
.@{dialog-prefix-cls}-footer {
|
|
30
|
+
padding: @modal-footer-padding-vertical @modal-footer-padding-horizontal;
|
|
31
|
+
button + button {
|
|
32
|
+
margin-left: 10px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
35
36
|
}
|
|
37
|
+
|
package/lib/steps/style/nav.less
CHANGED