Bläddra i källkod

dev&build: 调整打包策略,打包.d.ts文件

Roxas 4 år sedan
förälder
incheckning
d2f650b030
100 ändrade filer med 35791 tillägg och 33866 borttagningar
  1. 0
    7
      .yarnrc
  2. 34
    0
      eslib/AllocWantedModal/index.d.ts
  3. 36
    95
      eslib/AllocWantedModal/index.js
  4. 1
    1
      eslib/AllocWantedModal/index.js.map
  5. 5
    0
      eslib/BraftEditor/index.d.ts
  6. 17470
    16600
      eslib/BraftEditor/index.js
  7. 1
    1
      eslib/BraftEditor/index.js.map
  8. 1
    0
      eslib/Common/index.d.ts
  9. 2
    6
      eslib/Common/index.js
  10. 1
    1
      eslib/Common/index.js.map
  11. 29
    0
      eslib/ConsumeListView/index.d.ts
  12. 19
    10
      eslib/ConsumeListView/index.js
  13. 1
    1
      eslib/ConsumeListView/index.js.map
  14. 0
    0
      eslib/Draft-eeda2ee2.d.ts
  15. 2
    2
      eslib/Draft-eeda2ee2.js
  16. 1
    1
      eslib/Draft-eeda2ee2.js.map
  17. 3
    0
      eslib/Editor/index.d.ts
  18. 4
    4
      eslib/Editor/index.js
  19. 0
    13
      eslib/Modal-67d33baf.js
  20. 0
    1
      eslib/Modal-67d33baf.js.map
  21. 12
    0
      eslib/Modal/index.d.ts
  22. 17
    7
      eslib/Modal/index.js
  23. 1
    1
      eslib/Modal/index.js.map
  24. 28
    0
      eslib/PayPlatformOptions/index.d.ts
  25. 27
    13
      eslib/PayPlatformOptions/index.js
  26. 1
    1
      eslib/PayPlatformOptions/index.js.map
  27. 7
    0
      eslib/Payment/index.d.ts
  28. 5
    5
      eslib/Payment/index.js
  29. 23
    0
      eslib/PriceOptions/index.d.ts
  30. 16
    7
      eslib/PriceOptions/index.js
  31. 1
    1
      eslib/PriceOptions/index.js.map
  32. 21
    0
      eslib/RichTextEditor/index.d.ts
  33. 13
    24
      eslib/RichTextEditor/index.js
  34. 1
    1
      eslib/RichTextEditor/index.js.map
  35. 3
    0
      eslib/RichTextEditorForSlate/index.d.ts
  36. 26
    23
      eslib/RichTextEditorForSlate/index.js
  37. 1
    1
      eslib/RichTextEditorForSlate/index.js.map
  38. 14
    0
      eslib/WaitPayInfoView/index.d.ts
  39. 10
    9
      eslib/WaitPayInfoView/index.js
  40. 1
    1
      eslib/WaitPayInfoView/index.js.map
  41. 23
    0
      eslib/WantedPublishPopover/index.d.ts
  42. 17
    13
      eslib/WantedPublishPopover/index.js
  43. 1
    1
      eslib/WantedPublishPopover/index.js.map
  44. 20
    0
      eslib/WantedPublishView/index.d.ts
  45. 23
    5
      eslib/WantedPublishView/index.js
  46. 1
    1
      eslib/WantedPublishView/index.js.map
  47. 0
    0
      eslib/_commonjsHelpers-97e6d7b1.d.ts
  48. 0
    0
      eslib/_rollupPluginBabelHelpers-22a1b8cb.d.ts
  49. 4
    20
      eslib/_rollupPluginBabelHelpers-22a1b8cb.js
  50. 1
    1
      eslib/_rollupPluginBabelHelpers-22a1b8cb.js.map
  51. 0
    0
      eslib/index-c9837619.d.ts
  52. 1
    1
      eslib/index-c9837619.js.map
  53. 2
    0
      eslib/index.d.ts
  54. 5
    74
      eslib/index.js
  55. 1
    1
      eslib/index.js.map
  56. 0
    0
      eslib/style-inject.es-1f59c1d0.d.ts
  57. 1
    1
      eslib/style-inject.es-1f59c1d0.js.map
  58. 0
    75
      eslib/test-3e7def9a.js
  59. 0
    1
      eslib/test-3e7def9a.js.map
  60. 17
    0
      eslib/utils-3a540bc8.d.ts
  61. 2
    3
      eslib/utils-3a540bc8.js
  62. 1
    1
      eslib/utils-3a540bc8.js.map
  63. 34
    0
      lib/AllocWantedModal/index.d.ts
  64. 37
    97
      lib/AllocWantedModal/index.js
  65. 1
    1
      lib/AllocWantedModal/index.js.map
  66. 5
    0
      lib/BraftEditor/index.d.ts
  67. 17470
    16600
      lib/BraftEditor/index.js
  68. 1
    1
      lib/BraftEditor/index.js.map
  69. 1
    0
      lib/Common/index.d.ts
  70. 4
    9
      lib/Common/index.js
  71. 1
    1
      lib/Common/index.js.map
  72. 29
    0
      lib/ConsumeListView/index.d.ts
  73. 19
    10
      lib/ConsumeListView/index.js
  74. 1
    1
      lib/ConsumeListView/index.js.map
  75. 0
    0
      lib/Draft-4ccef031.d.ts
  76. 2
    2
      lib/Draft-4ccef031.js
  77. 1
    1
      lib/Draft-4ccef031.js.map
  78. 3
    0
      lib/Editor/index.d.ts
  79. 4
    4
      lib/Editor/index.js
  80. 0
    16
      lib/Modal-1001074b.js
  81. 0
    1
      lib/Modal-1001074b.js.map
  82. 12
    0
      lib/Modal/index.d.ts
  83. 20
    10
      lib/Modal/index.js
  84. 1
    1
      lib/Modal/index.js.map
  85. 28
    0
      lib/PayPlatformOptions/index.d.ts
  86. 27
    13
      lib/PayPlatformOptions/index.js
  87. 1
    1
      lib/PayPlatformOptions/index.js.map
  88. 7
    0
      lib/Payment/index.d.ts
  89. 5
    5
      lib/Payment/index.js
  90. 23
    0
      lib/PriceOptions/index.d.ts
  91. 16
    7
      lib/PriceOptions/index.js
  92. 1
    1
      lib/PriceOptions/index.js.map
  93. 21
    0
      lib/RichTextEditor/index.d.ts
  94. 13
    24
      lib/RichTextEditor/index.js
  95. 1
    1
      lib/RichTextEditor/index.js.map
  96. 3
    0
      lib/RichTextEditorForSlate/index.d.ts
  97. 26
    23
      lib/RichTextEditorForSlate/index.js
  98. 1
    1
      lib/RichTextEditorForSlate/index.js.map
  99. 14
    0
      lib/WaitPayInfoView/index.d.ts
  100. 0
    0
      lib/WaitPayInfoView/index.js

+ 0
- 7
.yarnrc Visa fil

@@ -1,7 +0,0 @@
1
-registry "https://registry.npm.taobao.org"
2
-sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
3
-phantomjs_cdnurl "http://cnpmjs.org/downloads"
4
-electron_mirror "https://npm.taobao.org/mirrors/electron/"
5
-sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
6
-profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
7
-chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"

+ 34
- 0
eslib/AllocWantedModal/index.d.ts Visa fil

@@ -0,0 +1,34 @@
1
+/// <reference types="react" />
2
+import React from "react";
3
+import { RefObject } from "react";
4
+import { Input } from "antd";
5
+interface AllocWantedModalProps {
6
+    allocValue: string | number | null;
7
+    sendValueRange: Array<string | number>;
8
+    sendRequest: Function;
9
+    sendGiftData: {
10
+        answerId: string | number;
11
+        questionId: string | number;
12
+        toUserId: string | number;
13
+    };
14
+    handleVisibleChange: (visible: boolean) => void;
15
+}
16
+interface AllocWantedModalState {
17
+    visible: boolean;
18
+    outRangeTip: boolean;
19
+    sendValue: string | number;
20
+}
21
+declare class AllocWantedModal extends React.Component<AllocWantedModalProps, AllocWantedModalState> {
22
+    ModalInputRef: RefObject<Input>;
23
+    ModalContentRef: RefObject<any>;
24
+    constructor(props: AllocWantedModalProps);
25
+    handleSendValueChange: (v: React.ReactText) => void;
26
+    checkSendValue: () => boolean;
27
+    handleCloseAction: () => void;
28
+    handleShowAction: () => void;
29
+    handleConfirm: () => null | undefined;
30
+    renderCloseButton: () => JSX.Element;
31
+    renderModalContent: () => JSX.Element;
32
+    render(): JSX.Element;
33
+}
34
+export { AllocWantedModal as default };

+ 36
- 95
eslib/AllocWantedModal/index.js Visa fil

@@ -1,71 +1,26 @@
1
-import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, j as _assertThisInitialized } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { a as _inherits, b as _createClass, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React from 'react';
3
+import 'react-dom';
4
+import { Modal } from '../Modal/index.js';
3 5
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
-import { createPortal } from 'react-dom';
5
-import { i as isBrowser, s as styles$1 } from '../Modal-67d33baf.js';
6 6
 import { Tooltip, Input, Button, Popover } from 'antd';
7 7
 
8
-var Modal =
9
-/*#__PURE__*/
10
-function (_React$PureComponent) {
11
-  _inherits(Modal, _React$PureComponent);
12
-
13
-  function Modal() {
14
-    _classCallCheck(this, Modal);
15
-
16
-    return _possibleConstructorReturn(this, _getPrototypeOf(Modal).apply(this, arguments));
17
-  }
18
-
19
-  _createClass(Modal, [{
20
-    key: "render",
21
-    value: function render() {
22
-      if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
23
-
24
-      var DEFAULT_CONTAINER = document.getElementById('container');
25
-      var _this$props = this.props,
26
-          children = _this$props.children,
27
-          visible = _this$props.visible,
28
-          onCancel = _this$props.onCancel,
29
-          _this$props$container = _this$props.container,
30
-          container = _this$props$container === void 0 ? DEFAULT_CONTAINER : _this$props$container;
31
-      var finalMountContainer = document.body;
32
-
33
-      if (!container) {
34
-        if (!DEFAULT_CONTAINER) {
35
-          if (!Modal.hasShowWarning) {
36
-            Modal.hasShowWarning = true;
37
-          }
38
-
39
-          finalMountContainer = document.body;
40
-        } else {
41
-          if (!Modal.hasShowWarning) {
42
-            Modal.hasShowWarning = true;
43
-          }
44
-
45
-          finalMountContainer = DEFAULT_CONTAINER;
46
-        }
47
-      }
48
-
49
-      return visible && createPortal(React.createElement("div", {
50
-        className: styles$1.wrapper
51
-      }, React.createElement("div", {
52
-        className: styles$1.overlay,
53
-        onClick: onCancel
54
-      }), React.createElement("div", {
55
-        className: styles$1.container
56
-      }, children)), finalMountContainer);
57
-    }
58
-  }]);
59
-
60
-  return Modal;
61
-}(React.PureComponent);
62
-
63
-_defineProperty(Modal, "hasShowWarning", false);
64
-
65
-const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACMUlEQVQ4T52Uz4tSURTHPxP9oCkKy0UuIqvZSAsrHHgLEaFSDCJoU0GpQaBgqOCmP6AWKrR5kIELNzZZUUQLlReFFowOboQK2oyLkgExsxqJoprixlx5yXs1dXbvnO/93HPPO+dM8WfbCuwANgNfgA/A0OzIlElgH3AIsBrEl4EXwEvguz4+CdsIHAV2/yVjEX4PVFez/SXXwzYAJ4GdawBJyWfggQTqYSKj/f8AklKR4V1gRcJ2rWY1Zvl8PqumaW8n4YFAwFqpVCb988BzCTsCzMiDDodjut1uX11YWGh4PJ470p/L5ZRIJHI+kUhcU1V1UXfRR+CWhF0ARPHHpqrqbCwWC7darXm32z2Xz+fdoVDobL1ef+z1eu8ZlOO2gIkeChrVKpPJHEylUhd7vd5rm822V9O0it/vf2hS16qAbQfOmBW+3W6HnU6nMhgMlux2+5XRaLRion0iYJuAsJGgWq2e8Pv9x5vN5lOXy6V0Op1XiqLkh8PhNwN9WdbsHLBFL6jVaqc8Hs+xYrE4FwwGnyWTyZl0On2p2+0uKopyo9/vf9XpfwA3JcwNHND/zUajcblUKpWj0WhT+qPRqD2bzUbi8fj1QqHwRgfrA/clbBtwGlgnBRaLZb3Rc0z8j4COfgJmgcP/MQEiw/LkbAqwGCmxMdZq7wDRKmI9/Tbo8ltk6NQ/2YTcAWrA+EeY7TPRewK4B5jWwcRB8Syxy5YmLzGD6XViQuSm/QSINjC0n/ltqZBTCKFgAAAAAElFTkSuQmCC';
66
-
67
-var css = ".AllocWantedModal_wantedModalContent__3tJgp {\n  background-color: white;\n  width: 360px;\n  height: 314px;\n  padding: 22px 28px;\n  border-radius: 7px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_title__31N0x {\n  font-size: 18px;\n  font-weight: 400;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueText__39a-6 {\n  color: #565656;\n  margin-top: 48px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k {\n  margin: 11px auto;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k .ant-input {\n  color: #FB4B56;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueTipBottom__2JmOx {\n  margin: 0 auto;\n  font-size: 12px;\n  text-align: center;\n  width: 208px;\n  color: #9B9B9B;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 23px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY {\n  color: white;\n  background-color: #71C135;\n  width: 170px;\n  height: 36px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:hover,\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:focus {\n  outline: none;\n  border-color: #8cd158;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t {\n  margin-left: 22px;\n  width: 20px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t .schedule {\n  font-size: 18px;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F img {\n  width: 100%;\n  height: 100%;\n}\n.AllocWantedModal_tipsView__3AZ9T h6 {\n  margin: 0;\n  font-size: 12px;\n  line-height: 22px;\n  color: #3D3D3D;\n}\n.AllocWantedModal_tipsView__3AZ9T div {\n  font-size: 12px;\n}\n.AllocWantedModal_outRangeTextTip__3LKBb .ant-tooltip-inner {\n  color: red;\n}\n";
68
-var styles = {"wantedModalContent":"AllocWantedModal_wantedModalContent__3tJgp","title":"AllocWantedModal_title__31N0x","wantedValueText":"AllocWantedModal_wantedValueText__39a-6","wantedInputNumber":"AllocWantedModal_wantedInputNumber__2qs1k","wantedValueTipBottom":"AllocWantedModal_wantedValueTipBottom__2JmOx","buttonRow":"AllocWantedModal_buttonRow__RkN1C","confirmButton":"AllocWantedModal_confirmButton__1oARY","tipsButton":"AllocWantedModal_tipsButton__QUN7t","closeButton":"AllocWantedModal_closeButton__1Os0F","tipsView":"AllocWantedModal_tipsView__3AZ9T","outRangeTextTip":"AllocWantedModal_outRangeTextTip__3LKBb"};
8
+const img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACMUlEQVQ4T52Uz4tSURTHPxP9oCkKy0UuIqvZSAsrHHgLEaFSDCJoU0GpQaBgqOCmP6AWKrR5kIELNzZZUUQLlReFFowOboQK2oyLkgExsxqJoprixlx5yXs1dXbvnO/93HPPO+dM8WfbCuwANgNfgA/A0OzIlElgH3AIsBrEl4EXwEvguz4+CdsIHAV2/yVjEX4PVFez/SXXwzYAJ4GdawBJyWfggQTqYSKj/f8AklKR4V1gRcJ2rWY1Zvl8PqumaW8n4YFAwFqpVCb988BzCTsCzMiDDodjut1uX11YWGh4PJ470p/L5ZRIJHI+kUhcU1V1UXfRR+CWhF0ARPHHpqrqbCwWC7darXm32z2Xz+fdoVDobL1ef+z1eu8ZlOO2gIkeChrVKpPJHEylUhd7vd5rm822V9O0it/vf2hS16qAbQfOmBW+3W6HnU6nMhgMlux2+5XRaLRion0iYJuAsJGgWq2e8Pv9x5vN5lOXy6V0Op1XiqLkh8PhNwN9WdbsHLBFL6jVaqc8Hs+xYrE4FwwGnyWTyZl0On2p2+0uKopyo9/vf9XpfwA3JcwNHND/zUajcblUKpWj0WhT+qPRqD2bzUbi8fj1QqHwRgfrA/clbBtwGlgnBRaLZb3Rc0z8j4COfgJmgcP/MQEiw/LkbAqwGCmxMdZq7wDRKmI9/Tbo8ltk6NQ/2YTcAWrA+EeY7TPRewK4B5jWwcRB8Syxy5YmLzGD6XViQuSm/QSINjC0n/ltqZBTCKFgAAAAAElFTkSuQmCC";
9
+
10
+var css = ".AllocWantedModal_wantedModalContent__1VodF {\n  background-color: white;\n  width: 360px;\n  height: 314px;\n  padding: 22px 28px;\n  border-radius: 7px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_title__31i9F {\n  font-size: 18px;\n  font-weight: 400;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedValueText___uNQe {\n  color: #565656;\n  margin-top: 48px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedInputNumber__3MyO5 {\n  margin: 11px auto;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedInputNumber__3MyO5 .ant-input {\n  color: #FB4B56;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedValueTipBottom__3WBt0 {\n  margin: 0 auto;\n  font-size: 12px;\n  text-align: center;\n  width: 208px;\n  color: #9B9B9B;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 23px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_confirmButton__1yXDN {\n  color: white;\n  background-color: #71C135;\n  width: 170px;\n  height: 36px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_confirmButton__1yXDN:hover,\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_confirmButton__1yXDN:focus {\n  outline: none;\n  border-color: #8cd158;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_tipsButton__UmFpw {\n  margin-left: 22px;\n  width: 20px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_tipsButton__UmFpw .schedule {\n  font-size: 18px;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1d4p- {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1d4p- img {\n  width: 100%;\n  height: 100%;\n}\n.AllocWantedModal_tipsView__3my0J h6 {\n  margin: 0;\n  font-size: 12px;\n  line-height: 22px;\n  color: #3D3D3D;\n}\n.AllocWantedModal_tipsView__3my0J div {\n  font-size: 12px;\n}\n.AllocWantedModal_outRangeTextTip__3R4mw .ant-tooltip-inner {\n  color: red;\n}\n";
11
+var styles = {
12
+  "wantedModalContent": "AllocWantedModal_wantedModalContent__1VodF",
13
+  "title": "AllocWantedModal_title__31i9F",
14
+  "wantedValueText": "AllocWantedModal_wantedValueText___uNQe",
15
+  "wantedInputNumber": "AllocWantedModal_wantedInputNumber__3MyO5",
16
+  "wantedValueTipBottom": "AllocWantedModal_wantedValueTipBottom__3WBt0",
17
+  "buttonRow": "AllocWantedModal_buttonRow__FegZX",
18
+  "confirmButton": "AllocWantedModal_confirmButton__1yXDN",
19
+  "tipsButton": "AllocWantedModal_tipsButton__UmFpw",
20
+  "closeButton": "AllocWantedModal_closeButton__1d4p-",
21
+  "tipsView": "AllocWantedModal_tipsView__3my0J",
22
+  "outRangeTextTip": "AllocWantedModal_outRangeTextTip__3R4mw"
23
+};
69 24
 styleInject(css);
70 25
 
71 26
 var AllocWantedModal =
@@ -80,11 +35,7 @@ function (_React$Component) {
80 35
 
81 36
     _this = _possibleConstructorReturn(this, _getPrototypeOf(AllocWantedModal).call(this, props));
82 37
 
83
-    _defineProperty(_assertThisInitialized(_this), "ModalInputRef", void 0);
84
-
85
-    _defineProperty(_assertThisInitialized(_this), "ModalContentRef", void 0);
86
-
87
-    _defineProperty(_assertThisInitialized(_this), "handleSendValueChange", function (v) {
38
+    _this.handleSendValueChange = function (v) {
88 39
       if (_this.state.outRangeTip) {
89 40
         _this.setState({
90 41
           outRangeTip: !_this.checkSendValue()
@@ -94,9 +45,9 @@ function (_React$Component) {
94 45
       _this.setState({
95 46
         sendValue: v
96 47
       });
97
-    });
48
+    };
98 49
 
99
-    _defineProperty(_assertThisInitialized(_this), "checkSendValue", function () {
50
+    _this.checkSendValue = function () {
100 51
       var sendValueRange = _this.props.sendValueRange;
101 52
       var sendValue = _this.state.sendValue;
102 53
       var min = 0;
@@ -109,14 +60,12 @@ function (_React$Component) {
109 60
 
110 61
       if (sendValue > max) {
111 62
         _this.setState({
112
-          // sendValue: max,
113 63
           outRangeTip: true
114 64
         });
115 65
 
116 66
         return false;
117 67
       } else if (sendValue < min) {
118 68
         _this.setState({
119
-          // sendValue: max,
120 69
           outRangeTip: true
121 70
         });
122 71
 
@@ -124,9 +73,9 @@ function (_React$Component) {
124 73
       }
125 74
 
126 75
       return true;
127
-    });
76
+    };
128 77
 
129
-    _defineProperty(_assertThisInitialized(_this), "handleCloseAction", function () {
78
+    _this.handleCloseAction = function () {
130 79
       _this.setState({
131 80
         visible: false,
132 81
         sendValue: 0,
@@ -134,40 +83,32 @@ function (_React$Component) {
134 83
       }, function () {
135 84
         _this.props.handleVisibleChange(false);
136 85
       });
137
-    });
86
+    };
138 87
 
139
-    _defineProperty(_assertThisInitialized(_this), "handleShowAction", function () {
88
+    _this.handleShowAction = function () {
140 89
       _this.setState({
141 90
         visible: true
142 91
       }, function () {
143 92
         _this.props.handleVisibleChange(true);
144 93
       });
145
-    });
94
+    };
146 95
 
147
-    _defineProperty(_assertThisInitialized(_this), "handleConfirm", function () {
96
+    _this.handleConfirm = function () {
148 97
       var sendGiftData = _this.props.sendGiftData;
149 98
 
150 99
       var checkResult = _this.checkSendValue();
151 100
 
152 101
       if (!checkResult) {
153
-        // 未通过验证
154 102
         return null;
155
-      } // 进行分配请求
156
-
103
+      }
157 104
 
158 105
       Promise.resolve(_this.props.sendRequest({
159 106
         business_type: 14,
160
-        // 表示悬赏答案
161 107
         ref_id: sendGiftData.answerId.toString(),
162
-        // 对应回答的id
163 108
         origin_id: sendGiftData.questionId,
164
-        // 对应问题的id
165 109
         to_user: sendGiftData.toUserId,
166
-        // 悬赏给谁
167 110
         goods_id: 2,
168
-        // 礼物id 帮币的话为2
169
-        num: Number(_this.state.sendValue) // 礼物数量
170
-
111
+        num: Number(_this.state.sendValue)
171 112
       })).then(function (res) {
172 113
         console.log("res: ", res);
173 114
 
@@ -177,9 +118,9 @@ function (_React$Component) {
177 118
           _this.handleCloseAction();
178 119
         }
179 120
       });
180
-    });
121
+    };
181 122
 
182
-    _defineProperty(_assertThisInitialized(_this), "renderCloseButton", function () {
123
+    _this.renderCloseButton = function () {
183 124
       return React.createElement("div", {
184 125
         role: "button",
185 126
         tabIndex: -1,
@@ -190,10 +131,10 @@ function (_React$Component) {
190 131
       }, React.createElement("img", {
191 132
         src: img,
192 133
         alt: "close button for send wanted"
193
-      })); // return null;
194
-    });
134
+      }));
135
+    };
195 136
 
196
-    _defineProperty(_assertThisInitialized(_this), "renderModalContent", function () {
137
+    _this.renderModalContent = function () {
197 138
       return React.createElement("div", {
198 139
         className: styles.wantedModalContent,
199 140
         ref: _this.ModalContentRef
@@ -246,7 +187,7 @@ function (_React$Component) {
246 187
       }, React.createElement("i", {
247 188
         className: "schedule schedule-icon_rewardtips"
248 189
       })))));
249
-    });
190
+    };
250 191
 
251 192
     _this.state = {
252 193
       visible: false,

+ 1
- 1
eslib/AllocWantedModal/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 5
- 0
eslib/BraftEditor/index.d.ts Visa fil

@@ -0,0 +1,5 @@
1
+/// <reference types="react" />
2
+declare const BarftEditorPage: ({ value, }: {
3
+    value: string;
4
+}) => JSX.Element;
5
+export { BarftEditorPage as default, BarftEditorPage };

+ 17470
- 16600
eslib/BraftEditor/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/BraftEditor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
eslib/Common/index.d.ts Visa fil

@@ -0,0 +1 @@
1
+export { default as Modal } from "../Modal/index";

+ 2
- 6
eslib/Common/index.js Visa fil

@@ -1,10 +1,6 @@
1
-import '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import 'react';
3
-import '../_commonjsHelpers-97e6d7b1.js';
4
-import '../index-c9837619.js';
5
-import '../style-inject.es-1f59c1d0.js';
6
-export { T as Test } from '../test-3e7def9a.js';
7 3
 import 'react-dom';
8
-import '../Modal-67d33baf.js';
9 4
 export { default as Modal } from '../Modal/index.js';
5
+import '../style-inject.es-1f59c1d0.js';
10 6
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/Common/index.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}

+ 29
- 0
eslib/ConsumeListView/index.d.ts Visa fil

@@ -0,0 +1,29 @@
1
+/// <reference types="react" />
2
+import { Component, MouseEvent } from 'react';
3
+interface dataItem {
4
+    id?: string | number;
5
+    user_avatar?: string;
6
+    bill_price?: number;
7
+}
8
+interface Props {
9
+    isToggle: boolean;
10
+    onToggleChange: Function;
11
+    onConsumeItemClick: (e: MouseEvent, clickData: any) => any;
12
+    dataSource: Array<dataItem>;
13
+    listLength: number;
14
+    showLength: number;
15
+    options: {
16
+        avatarSize: number;
17
+        avatarMarginLeftAndRight: number;
18
+        kingdomWidth: number;
19
+        kingdomHeight: number;
20
+        kingdomPosition: [number, number];
21
+    };
22
+}
23
+declare class ConsumeListView extends Component<Props, {}> {
24
+    static defaultProps: Props;
25
+    renderConsumeItem(): JSX.Element[];
26
+    renderToggleButton(): JSX.Element | null;
27
+    render(): JSX.Element;
28
+}
29
+export { ConsumeListView as default };

+ 19
- 10
eslib/ConsumeListView/index.js Visa fil

@@ -1,14 +1,23 @@
1
-import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { a as _inherits, b as _createClass, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, f as _defineProperty } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React, { Component } from 'react';
3
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3 4
 import '../_commonjsHelpers-97e6d7b1.js';
4 5
 import { c as classnames } from '../index-c9837619.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6
-import { a as addImageProcess } from '../utils-74f31cae.js';
7
-
8
-const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=';
9
-
10
-var css = ".ConsumeListView_wrapper__28k7D {\n  display: flex;\n  justify-content: center;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd {\n  padding: 0;\n  margin: 0;\n  display: flex;\n  flex-wrap: wrap;\n  padding-top: 10px;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd li {\n  list-style: none;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 {\n  margin: 0 6px 10px;\n  text-align: center;\n  position: relative;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 .ConsumeListView_kingdomIcon__3tTNA {\n  position: absolute;\n  width: 24px;\n  height: 22px;\n  left: -6px;\n  top: -12px;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 .ConsumeListView_avatar__1WsJ3 {\n  margin: 0 auto 4px;\n  width: 36px;\n  height: 36px;\n  background-size: cover;\n  border-radius: 50%;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 .ConsumeListView_gray__oOyJP {\n  color: #9b9b9b;\n  font-size: 12px;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_toggle__2bNE3 {\n  margin: 0 6px 10px;\n  width: 36px;\n  height: 36px;\n  line-height: 36px;\n  background-color: #ececec;\n  border-radius: 50%;\n  color: #a8adb6;\n  cursor: pointer;\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACv0lEQVRIS8WXTW8SURSGzzAYNSYCA7SCUEqBioLtohvjD9CN7ozG36AmXfsRafxYN9b+BqNx50r3GjddqEVRRgSRVr4GWmOsERjfOwEzVYa5lAokEwJzznnOe865d+4IxPFRVXVPrVY73Wq1TgmCMIffYbjZ2q4b+E/GfysWi+WZw+F4it+/zMIKvQwAszcajXnYXEIwl1kwdh8JVPC1bLVaF5FE3cjHEFytVs8hyH04jvMAu9gUkexlp9P5uJv/P2DABCi9hbJehUPPinAkpKL8d6H8BpJQ9fbbAjOooigP8H2BIyi3CaAPJUm6qIdvAwN6G0qvcUfswxDK7wB+vePyB9zu6aNdKK9ROioUn+/0XAOz6W02m6kBBolXe1EUxSibdg0MtQn09Sav9yB2UL0A1QmBbQ6VSmWNd50OAu2sc5fL5WVTfAYD9WTQgP34Y9DOClB7D05X+nHcBdslAf19jnKfNAr2cmWVDuzfR7HoFCFTUyaqR8lUhr7/2KITc/Gu9mjrC6a4iLtjRhHfvv9Ea1/L5JLsNBML94Qz6OukTBWlTt5Dbjp2JGgUtsTAW7i713DxqSql0jkqrJfIKdloNhbpCmfQV8k0VZUNOuwZo2gkQFBmFPanKVibRFxpOUefC0VyOmw0E4+QqCt7s8mgH0ipbdKEb5wiIUB7N0UD9yy13l/O5CmbXyfJfpBm49MkihbSoKuA1jdpcsJD4aDfdA5gUDIdrr+jZLIFyuQK5AD8+NEQvXknU63+jUKTPgoGvDxQ1gJtuPpeTkw1U8+mnPU2MuWngN/DBW0bLe14A8mj3x+zX7TS+ryGi6JrMtoGMrItk6VULpcTqPtQHhIQuuB2uxOjfSwy1SM5CHQmYCRHn/azcjSHvQ586Mdb/aIb+oFeD2eHQOxM87j6eoXBBrGMa2evMPoE/sdL22+mI4T0ou1LqAAAAABJRU5ErkJggg==);\n  background-position: center;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_toggle__2bNE3.ConsumeListView_expand__26ifU {\n  transform: rotate(180deg);\n}\n";
11
-var styles = {"wrapper":"ConsumeListView_wrapper__28k7D","consumelist":"ConsumeListView_consumelist__2RETd","consumeItem":"ConsumeListView_consumeItem__bsmS9","kingdomIcon":"ConsumeListView_kingdomIcon__3tTNA","avatar":"ConsumeListView_avatar__1WsJ3","gray":"ConsumeListView_gray__oOyJP","toggle":"ConsumeListView_toggle__2bNE3","expand":"ConsumeListView_expand__26ifU"};
6
+import { a as addImageProcess } from '../utils-3a540bc8.js';
7
+
8
+const img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=";
9
+
10
+var css = ".ConsumeListView_wrapper__wlJjh {\n  display: flex;\n  justify-content: center;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR {\n  padding: 0;\n  margin: 0;\n  display: flex;\n  flex-wrap: wrap;\n  padding-top: 10px;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR li {\n  list-style: none;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ {\n  margin: 0 6px 10px;\n  text-align: center;\n  position: relative;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ .ConsumeListView_kingdomIcon__1nBe5 {\n  position: absolute;\n  width: 24px;\n  height: 22px;\n  left: -6px;\n  top: -12px;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ .ConsumeListView_avatar__1H-E5 {\n  margin: 0 auto 4px;\n  width: 36px;\n  height: 36px;\n  background-size: cover;\n  border-radius: 50%;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ .ConsumeListView_gray__3do1I {\n  color: #9b9b9b;\n  font-size: 12px;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_toggle__3eBTC {\n  margin: 0 6px 10px;\n  width: 36px;\n  height: 36px;\n  line-height: 36px;\n  background-color: #ececec;\n  border-radius: 50%;\n  color: #a8adb6;\n  cursor: pointer;\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACv0lEQVRIS8WXTW8SURSGzzAYNSYCA7SCUEqBioLtohvjD9CN7ozG36AmXfsRafxYN9b+BqNx50r3GjddqEVRRgSRVr4GWmOsERjfOwEzVYa5lAokEwJzznnOe865d+4IxPFRVXVPrVY73Wq1TgmCMIffYbjZ2q4b+E/GfysWi+WZw+F4it+/zMIKvQwAszcajXnYXEIwl1kwdh8JVPC1bLVaF5FE3cjHEFytVs8hyH04jvMAu9gUkexlp9P5uJv/P2DABCi9hbJehUPPinAkpKL8d6H8BpJQ9fbbAjOooigP8H2BIyi3CaAPJUm6qIdvAwN6G0qvcUfswxDK7wB+vePyB9zu6aNdKK9ROioUn+/0XAOz6W02m6kBBolXe1EUxSibdg0MtQn09Sav9yB2UL0A1QmBbQ6VSmWNd50OAu2sc5fL5WVTfAYD9WTQgP34Y9DOClB7D05X+nHcBdslAf19jnKfNAr2cmWVDuzfR7HoFCFTUyaqR8lUhr7/2KITc/Gu9mjrC6a4iLtjRhHfvv9Ea1/L5JLsNBML94Qz6OukTBWlTt5Dbjp2JGgUtsTAW7i713DxqSql0jkqrJfIKdloNhbpCmfQV8k0VZUNOuwZo2gkQFBmFPanKVibRFxpOUefC0VyOmw0E4+QqCt7s8mgH0ipbdKEb5wiIUB7N0UD9yy13l/O5CmbXyfJfpBm49MkihbSoKuA1jdpcsJD4aDfdA5gUDIdrr+jZLIFyuQK5AD8+NEQvXknU63+jUKTPgoGvDxQ1gJtuPpeTkw1U8+mnPU2MuWngN/DBW0bLe14A8mj3x+zX7TS+ryGi6JrMtoGMrItk6VULpcTqPtQHhIQuuB2uxOjfSwy1SM5CHQmYCRHn/azcjSHvQ586Mdb/aIb+oFeD2eHQOxM87j6eoXBBrGMa2evMPoE/sdL22+mI4T0ou1LqAAAAABJRU5ErkJggg==);\n  background-position: center;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_toggle__3eBTC.ConsumeListView_expand__3l80q {\n  transform: rotate(180deg);\n}\n";
11
+var styles = {
12
+  "wrapper": "ConsumeListView_wrapper__wlJjh",
13
+  "consumelist": "ConsumeListView_consumelist__2dMCR",
14
+  "consumeItem": "ConsumeListView_consumeItem__1QGpJ",
15
+  "kingdomIcon": "ConsumeListView_kingdomIcon__1nBe5",
16
+  "avatar": "ConsumeListView_avatar__1H-E5",
17
+  "gray": "ConsumeListView_gray__3do1I",
18
+  "toggle": "ConsumeListView_toggle__3eBTC",
19
+  "expand": "ConsumeListView_expand__3l80q"
20
+};
12 21
 styleInject(css);
13 22
 
14 23
 var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
@@ -136,7 +145,7 @@ function (_Component) {
136 145
   return ConsumeListView;
137 146
 }(Component);
138 147
 
139
-_defineProperty(ConsumeListView, "defaultProps", {
148
+ConsumeListView.defaultProps = {
140 149
   isToggle: false,
141 150
   onToggleChange: function onToggleChange() {},
142 151
   onConsumeItemClick: function onConsumeItemClick() {},
@@ -150,7 +159,7 @@ _defineProperty(ConsumeListView, "defaultProps", {
150 159
     kingdomHeight: 22,
151 160
     kingdomPosition: [-6, -12]
152 161
   }
153
-});
162
+};
154 163
 
155 164
 export default ConsumeListView;
156 165
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/ConsumeListView/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 0
eslib/Draft-eeda2ee2.d.ts Visa fil


eslib/Draft-9634837d.js → eslib/Draft-eeda2ee2.js Visa fil

@@ -1,6 +1,6 @@
1 1
 import 'react';
2
-import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-97e6d7b1.js';
3 2
 import 'react-dom';
3
+import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-97e6d7b1.js';
4 4
 import { R as React, r as require$$3 } from './_react-dom_commonjs-external-d3012e04.js';
5 5
 
6 6
 /*
@@ -17686,4 +17686,4 @@ var Draft_15 = Draft.RichUtils;
17686 17686
 var Draft_20 = Draft.convertToRaw;
17687 17687
 
17688 17688
 export { Draft as D, Draft_4 as a, Draft_3 as b, Draft_15 as c, Draft_14 as d, Draft_20 as e, Draft_1 as f };
17689
-//# sourceMappingURL=Draft-9634837d.js.map
17689
+//# sourceMappingURL=Draft-eeda2ee2.js.map

eslib/Draft-eeda2ee2.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 3
- 0
eslib/Editor/index.d.ts Visa fil

@@ -0,0 +1,3 @@
1
+export { default as BraftEditor } from "../BraftEditor/index";
2
+export { default as RichTextEditor } from "../RichTextEditor/index";
3
+export { default as RichTextEditorForSlate } from "../RichTextEditorForSlate/index";

+ 4
- 4
eslib/Editor/index.js Visa fil

@@ -1,9 +1,9 @@
1
-import '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import 'react';
3
-import '../_commonjsHelpers-97e6d7b1.js';
4
-import '../style-inject.es-1f59c1d0.js';
5 3
 import 'react-dom';
6
-import '../Draft-9634837d.js';
4
+import '../style-inject.es-1f59c1d0.js';
5
+import '../_commonjsHelpers-97e6d7b1.js';
6
+import '../Draft-eeda2ee2.js';
7 7
 import '../_react-dom_commonjs-external-d3012e04.js';
8 8
 export { default as BraftEditor } from '../BraftEditor/index.js';
9 9
 import 'react-dom/server';

+ 0
- 13
eslib/Modal-67d33baf.js Visa fil

@@ -1,13 +0,0 @@
1
-import { _ as _typeof } from './_rollupPluginBabelHelpers-bf46fecd.js';
2
-import { s as styleInject } from './style-inject.es-1f59c1d0.js';
3
-
4
-function isBrowser() {
5
-  return !((typeof window === "undefined" ? "undefined" : _typeof(window)) === undefined);
6
-}
7
-
8
-var css = ".Modal_wrapper__3fGor {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n.Modal_overlay__iXPZ2 {\n  width: 100vw;\n  height: 100vh;\n  background: #000;\n  animation: Modal_overlayer__3enBo 0.3s forwards;\n}\n.Modal_container__3PbHe {\n  position: absolute;\n  top: 20%;\n  left: 50%;\n  animation: Modal_container__3PbHe 0.3s forwards;\n}\n@keyframes Modal_overlayer__3enBo {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0.3;\n  }\n}\n@keyframes Modal_container__3PbHe {\n  from {\n    transform: translateX(-50%) scale(0, 0);\n  }\n  to {\n    transform: translateX(-50%) scale(1, 1);\n  }\n}\n";
9
-var styles = {"wrapper":"Modal_wrapper__3fGor","overlay":"Modal_overlay__iXPZ2","overlayer":"Modal_overlayer__3enBo","container":"Modal_container__3PbHe"};
10
-styleInject(css);
11
-
12
-export { isBrowser as i, styles as s };
13
-//# sourceMappingURL=Modal-67d33baf.js.map

+ 0
- 1
eslib/Modal-67d33baf.js.map Visa fil

@@ -1 +0,0 @@
1
-{"version":3,"file":"Modal-67d33baf.js","sources":["../src/components/Common/Utils/utils.ts"],"sourcesContent":["export function isBrowser() {\r\n  return !(typeof window === undefined);\r\n}"],"names":["isBrowser","window","undefined"],"mappings":";;;AAAO,SAASA,SAAT,GAAqB;SACnB,EAAE,QAAOC,MAAP,yCAAOA,MAAP,OAAkBC,SAApB,CAAP;;;;;;;;;"}

+ 12
- 0
eslib/Modal/index.d.ts Visa fil

@@ -0,0 +1,12 @@
1
+/// <reference types="react" />
2
+import React from 'react';
3
+interface ModalProps {
4
+    visible: boolean;
5
+    onCancel: (e: any) => void;
6
+    container?: HTMLElement | null;
7
+}
8
+declare class Modal extends React.PureComponent<ModalProps> {
9
+    static hasShowWarning: boolean;
10
+    render(): false | React.ReactPortal | null;
11
+}
12
+export { Modal as default, Modal, ModalProps };

+ 17
- 7
eslib/Modal/index.js Visa fil

@@ -1,8 +1,20 @@
1
-import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { _ as _typeof, a as _inherits, b as _createClass, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React from 'react';
3
-import '../style-inject.es-1f59c1d0.js';
4 3
 import { createPortal } from 'react-dom';
5
-import { i as isBrowser, s as styles } from '../Modal-67d33baf.js';
4
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5
+
6
+function isBrowser() {
7
+  return !((typeof window === "undefined" ? "undefined" : _typeof(window)) === undefined);
8
+}
9
+
10
+var css = ".Modal_wrapper__2hzaC {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n.Modal_overlay__3iNdm {\n  width: 100vw;\n  height: 100vh;\n  background: #000;\n  animation: Modal_overlayer__1zSH9 0.3s forwards;\n}\n.Modal_container__2veos {\n  position: absolute;\n  top: 20%;\n  left: 50%;\n  animation: Modal_container__2veos 0.3s forwards;\n}\n@keyframes Modal_overlayer__1zSH9 {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0.3;\n  }\n}\n@keyframes Modal_container__2veos {\n  from {\n    transform: translateX(-50%) scale(0, 0);\n  }\n  to {\n    transform: translateX(-50%) scale(1, 1);\n  }\n}\n";
11
+var styles = {
12
+  "wrapper": "Modal_wrapper__2hzaC",
13
+  "overlay": "Modal_overlay__3iNdm",
14
+  "overlayer": "Modal_overlayer__1zSH9",
15
+  "container": "Modal_container__2veos"
16
+};
17
+styleInject(css);
6 18
 
7 19
 var Modal =
8 20
 /*#__PURE__*/
@@ -18,8 +30,7 @@ function (_React$PureComponent) {
18 30
   _createClass(Modal, [{
19 31
     key: "render",
20 32
     value: function render() {
21
-      if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
22
-
33
+      if (!isBrowser()) return null;
23 34
       var DEFAULT_CONTAINER = document.getElementById('container');
24 35
       var _this$props = this.props,
25 36
           children = _this$props.children,
@@ -58,8 +69,7 @@ function (_React$PureComponent) {
58 69
 
59 70
   return Modal;
60 71
 }(React.PureComponent);
61
-
62
-_defineProperty(Modal, "hasShowWarning", false);
72
+Modal.hasShowWarning = false;
63 73
 
64 74
 export default Modal;
65 75
 export { Modal };

+ 1
- 1
eslib/Modal/index.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":["../../src/components/Common/Modal/index.tsx"],"sourcesContent":["import React from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { isBrowser } from '../Utils/utils';\r\n\r\nimport styles from './Modal.less';\r\n\r\nexport interface ModalProps {\r\n  visible: boolean\r\n  onCancel: (e: any) => void\r\n  container?: HTMLElement | null\r\n}\r\n\r\nexport class Modal extends React.PureComponent<ModalProps> {\r\n  static hasShowWarning = false;\r\n\r\n  render() {\r\n    if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错\r\n    const DEFAULT_CONTAINER: HTMLElement | null = document.getElementById('container');\r\n    const { children, visible, onCancel, container = DEFAULT_CONTAINER } = this.props\r\n    let finalMountContainer: HTMLElement = document.body;\r\n    if (!container) {\r\n      if (!DEFAULT_CONTAINER) {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = document.body;\r\n      } else {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = DEFAULT_CONTAINER;\r\n      }\r\n    }\r\n    return visible && createPortal(\r\n      <div className={ styles.wrapper }>\r\n        <div\r\n          className={ styles.overlay }\r\n          onClick={ onCancel }\r\n        />\r\n        <div\r\n          className={ styles.container }\r\n        >\r\n          { children }\r\n        </div>\r\n      </div>,\r\n      finalMountContainer,\r\n    )\r\n  }\r\n}\r\n\r\nexport default Modal;"],"names":["Modal","isBrowser","DEFAULT_CONTAINER","document","getElementById","props","children","visible","onCancel","container","finalMountContainer","body","hasShowWarning","createPortal","styles","wrapper","overlay","React","PureComponent"],"mappings":";;;;;;IAYaA,KAAb;;AAAA;;;;;;;;;;;6BAGW;UACH,CAACC,SAAS,EAAd,EAAkB,OAAO,IAAP,CADX;;UAEDC,iBAAqC,GAAGC,QAAQ,CAACC,cAAT,CAAwB,WAAxB,CAA9C;wBACuE,KAAKC,KAHrE;UAGCC,QAHD,eAGCA,QAHD;UAGWC,OAHX,eAGWA,OAHX;UAGoBC,QAHpB,eAGoBA,QAHpB;8CAG8BC,SAH9B;UAG8BA,SAH9B,sCAG0CP,iBAH1C;UAIHQ,mBAAgC,GAAGP,QAAQ,CAACQ,IAAhD;;UACI,CAACF,SAAL,EAAgB;YACV,CAACP,iBAAL,EAAwB;cAClB,CAACF,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGP,QAAQ,CAACQ,IAA/B;SAJF,MAKO;cACD,CAACX,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGR,iBAAtB;;;;aAGGK,OAAO,IAAIM,YAAY,CAC5B;QAAK,SAAS,EAAGC,MAAM,CAACC;SACtB;QACE,SAAS,EAAGD,MAAM,CAACE,OADrB;QAEE,OAAO,EAAGR;QAHd,EAKE;QACE,SAAS,EAAGM,MAAM,CAACL;SAEjBH,QAHJ,CALF,CAD4B,EAY5BI,mBAZ4B,CAA9B;;;;;EArBuBO,KAAK,CAACC,aAAjC;;gBAAalB,yBACa;;;;;"}
1
+{"version":3,"file":"index.js","sources":["../../src/components/Common/Utils/utils.ts","../../src/components/Common/Modal/index.tsx"],"sourcesContent":["export function isBrowser() {\r\n  return !(typeof window === undefined);\r\n}","import React from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { isBrowser } from '../Utils/utils';\r\n\r\nimport styles from './Modal.less';\r\n\r\nexport interface ModalProps {\r\n  visible: boolean\r\n  onCancel: (e: any) => void\r\n  container?: HTMLElement | null\r\n}\r\n\r\nexport class Modal extends React.PureComponent<ModalProps> {\r\n  static hasShowWarning = false;\r\n\r\n  render() {\r\n    if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错\r\n    const DEFAULT_CONTAINER: HTMLElement | null = document.getElementById('container');\r\n    const { children, visible, onCancel, container = DEFAULT_CONTAINER } = this.props\r\n    let finalMountContainer: HTMLElement = document.body;\r\n    if (!container) {\r\n      if (!DEFAULT_CONTAINER) {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = document.body;\r\n      } else {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = DEFAULT_CONTAINER;\r\n      }\r\n    }\r\n    return visible && createPortal(\r\n      <div className={ styles.wrapper }>\r\n        <div\r\n          className={ styles.overlay }\r\n          onClick={ onCancel }\r\n        />\r\n        <div\r\n          className={ styles.container }\r\n        >\r\n          { children }\r\n        </div>\r\n      </div>,\r\n      finalMountContainer,\r\n    )\r\n  }\r\n}\r\n\r\nexport default Modal;"],"names":["isBrowser","window","undefined","Modal","DEFAULT_CONTAINER","document","getElementById","props","children","visible","onCancel","container","finalMountContainer","body","hasShowWarning","createPortal","React","createElement","className","styles","wrapper","overlay","onClick","PureComponent"],"mappings":";;;;;AAAM,SAAUA,SAAV,GAAmB;SAChB,EAAE,QAAOC,MAAP,yCAAOA,MAAP,OAAkBC,SAApB;;;;;;;;;;;;ICWIC,KAAb;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,6BAGQ;UACA,CAACH,SAAS,IAAI,OAAO,IAAP;UACZI,iBAAiB,GAAuBC,QAAQ,CAACC,cAAT,CAAwB,WAAxB;AAF1C,wBAGmE,KAAKC,KAHxE;AAAA,UAGIC,QAHJ,eAGIA,QAHJ;AAAA,UAGcC,OAHd,eAGcA,OAHd;AAAA,UAGuBC,QAHvB,eAGuBA,QAHvB;AAAA,8CAGiCC,SAHjC;AAAA,UAGiCA,SAHjC,sCAG6CP,iBAH7C;UAIAQ,mBAAmB,GAAgBP,QAAQ,CAACQ;;UAC5C,CAACF,WAAW;YACV,CAACP,mBAAmB;cAClB,CAACD,KAAK,CAACW,gBAAgB;AACzBX,YAAAA,KAAK,CAACW,cAAN,GAAuB,IAAvB;;;AAEFF,UAAAA,mBAAmB,GAAGP,QAAQ,CAACQ,IAA/B;AAJF,eAKO;cACD,CAACV,KAAK,CAACW,gBAAgB;AACzBX,YAAAA,KAAK,CAACW,cAAN,GAAuB,IAAvB;;;AAEFF,UAAAA,mBAAmB,GAAGR,iBAAtB;;;;aAGGK,OAAO,IAAIM,YAAY,CAC5BC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,QAAAA,SAAS,EAAGC,MAAM,CAACC;AAAxB,OAAA,EACEJ,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,QAAAA,SAAS,EAAGC,MAAM,CAACE,OADrB;AAEEC,QAAAA,OAAO,EAAGZ;AAFZ,OAAA,CADF,EAKEM,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,QAAAA,SAAS,EAAGC,MAAM,CAACR;AADrB,OAAA,EAGIH,QAHJ,CALF,CAD4B,EAY5BI,mBAZ4B;;AArBlC;;AAAA;AAAA,EAA2BI,KAAK,CAACO,aAAjC;AACSpB,KAAA,CAAAW,cAAA,GAAiB,KAAjB;;;;;"}

+ 28
- 0
eslib/PayPlatformOptions/index.d.ts Visa fil

@@ -0,0 +1,28 @@
1
+/// <reference types="react" />
2
+type PAY_CHANNEL_VALUE = "PAYPAL_PAYPAL" | "ALI_WEB" | "ALI_WAP" | "WX_WAP" | "WX_NATIVE";
3
+type PAY_CHANNEL_CATEGORY_VALUE = "Alipay" | "Wechat" | "Paypal";
4
+interface PAY_CHANNEL_TYPE {
5
+    PAYPAL: PAY_CHANNEL_VALUE;
6
+    ALI_WEB: PAY_CHANNEL_VALUE;
7
+    ALI_WAP: PAY_CHANNEL_VALUE;
8
+    WX_WAP: PAY_CHANNEL_VALUE;
9
+    WX_NATIVE: PAY_CHANNEL_VALUE;
10
+}
11
+interface PAY_CHANNEL_CATEGORY {
12
+    ALI: PAY_CHANNEL_CATEGORY_VALUE;
13
+    WX: PAY_CHANNEL_CATEGORY_VALUE;
14
+    PAYPAL: PAY_CHANNEL_CATEGORY_VALUE;
15
+}
16
+interface Props {
17
+    payChannel: PAY_CHANNEL_VALUE;
18
+    onPayChannelChange: (value: PAY_CHANNEL_VALUE) => void;
19
+    isMobile: boolean;
20
+    size: "small" | "normal" | "large";
21
+    withTitle: boolean;
22
+    titleText?: string;
23
+    locale: "zh" | "en";
24
+}
25
+declare const PAY_CHANNEL: PAY_CHANNEL_TYPE;
26
+declare const PAY_CHANNEL_CATEGORY$0: PAY_CHANNEL_CATEGORY;
27
+declare const PayPlatformOptions: ({ payChannel, onPayChannelChange, size, isMobile, withTitle, titleText, locale }: Props) => JSX.Element;
28
+export { PayPlatformOptions as default, PAY_CHANNEL, PAY_CHANNEL_CATEGORY$0 as PAY_CHANNEL_CATEGORY };

+ 27
- 13
eslib/PayPlatformOptions/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/PayPlatformOptions/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 7
- 0
eslib/Payment/index.d.ts Visa fil

@@ -0,0 +1,7 @@
1
+export { default as ConsumeListView } from "../ConsumeListView/index";
2
+export { default as PayPlatformOptions } from "../PayPlatformOptions/index";
3
+export { default as PriceOptions } from "../PriceOptions/index";
4
+export { default as WaitPayInfoView } from "../WaitPayInfoView/index";
5
+export { default as AllocWantedModal } from "../AllocWantedModal/index";
6
+export { default as WantedPublishPopover } from "../WantedPublishPopover/index";
7
+export { default as WantedPublishView } from "../WantedPublishView/index";

+ 5
- 5
eslib/Payment/index.js Visa fil

@@ -1,11 +1,11 @@
1
-import '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import 'react';
3
+import 'react-dom';
4
+import '../Modal/index.js';
5
+import '../style-inject.es-1f59c1d0.js';
3 6
 import '../_commonjsHelpers-97e6d7b1.js';
4 7
 import '../index-c9837619.js';
5
-import '../style-inject.es-1f59c1d0.js';
6
-import 'react-dom';
7
-import '../Modal-67d33baf.js';
8
-import '../utils-74f31cae.js';
8
+import '../utils-3a540bc8.js';
9 9
 export { default as ConsumeListView } from '../ConsumeListView/index.js';
10 10
 export { default as PayPlatformOptions } from '../PayPlatformOptions/index.js';
11 11
 import 'antd';

+ 23
- 0
eslib/PriceOptions/index.d.ts Visa fil

@@ -0,0 +1,23 @@
1
+/// <reference types="react" />
2
+import React from "react";
3
+interface Props {
4
+    rowMode: "single" | "multi";
5
+    price: number;
6
+    onPriceChange: (v: number) => void;
7
+    size: "small" | "normal" | "large";
8
+    focusScroll: boolean;
9
+    withTitle: boolean;
10
+    titleText?: string | JSX.Element[] | JSX.Element;
11
+    inputPlaceholderText?: string;
12
+    priceOptions?: Array<any>;
13
+    priceRender?: Function;
14
+    inputPriceRender?: Function;
15
+    inputSuffix?: string | JSX.Element[] | JSX.Element;
16
+    injectOptions?: {
17
+        priceBtnClass: any;
18
+        priceInputClass: any;
19
+    };
20
+    inputRef: React.RefObject<any>;
21
+}
22
+declare const PriceOptions: ({ price, onPriceChange, rowMode, size, focusScroll, withTitle, titleText, inputPlaceholderText, priceOptions, priceRender, inputPriceRender, inputSuffix, injectOptions, inputRef }: Props) => JSX.Element;
23
+export { PriceOptions as default };

+ 16
- 7
eslib/PriceOptions/index.js Visa fil

@@ -1,12 +1,22 @@
1
-import { i as _slicedToArray, c as _defineProperty, h as _objectSpread2 } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { h as _slicedToArray, f as _defineProperty, g as _objectSpread2 } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React, { useState } from 'react';
3
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3 4
 import '../_commonjsHelpers-97e6d7b1.js';
4 5
 import { c as classnames } from '../index-c9837619.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6 6
 import { Input } from 'antd';
7 7
 
8
-var css = ".PriceOptions_options__J-ZSS {\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__J-ZSS p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 {\n  margin-left: 10px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a {\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 {\n  padding: 20px 20px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceBtn__Xz4m_ {\n  display: flex;\n  justify-content: space-between;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  display: inline-block;\n  background-color: #fff;\n  width: 74px;\n  height: 36px;\n  line-height: 36px;\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background-color: #fff;\n  color: #FF3266FF;\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  border-radius: 6px;\n  height: 36px;\n  width: auto;\n}\n";
9
-var styles = {"options":"PriceOptions_options__J-ZSS","infoItem":"PriceOptions_infoItem__3IL3a","priceItem":"PriceOptions_priceItem__rJ9o2","active":"PriceOptions_active__3WyAU","priceInput":"PriceOptions_priceInput__1MrVy","rate":"PriceOptions_rate__QgHQ3","small":"PriceOptions_small__2-wzl","multi":"PriceOptions_multi__N_Xc4","priceBtn":"PriceOptions_priceBtn__Xz4m_"};
8
+var css = ".PriceOptions_options__ifYbC {\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__ifYbC p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx {\n  padding-right: 0;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3.PriceOptions_active__154by {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_rate__17U-9 {\n  margin-left: 10px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_rate__17U-9 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx {\n  text-align: center;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z {\n  padding: 20px 20px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx {\n  padding-right: 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceBtn__1UaE8 {\n  display: flex;\n  justify-content: space-between;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3 {\n  display: inline-block;\n  background-color: #fff;\n  width: 74px;\n  height: 36px;\n  line-height: 36px;\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3.PriceOptions_active__154by {\n  background-color: #fff;\n  color: #FF3266FF;\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  border-radius: 6px;\n  height: 36px;\n  width: auto;\n}\n";
9
+var styles = {
10
+  "options": "PriceOptions_options__ifYbC",
11
+  "infoItem": "PriceOptions_infoItem__246mx",
12
+  "priceItem": "PriceOptions_priceItem__3CPe3",
13
+  "active": "PriceOptions_active__154by",
14
+  "priceInput": "PriceOptions_priceInput__2JFc0",
15
+  "rate": "PriceOptions_rate__17U-9",
16
+  "small": "PriceOptions_small__2UZ7N",
17
+  "multi": "PriceOptions_multi__2fM8z",
18
+  "priceBtn": "PriceOptions_priceBtn__1UaE8"
19
+};
10 20
 styleInject(css);
11 21
 
12 22
 var PriceOptions = function PriceOptions(_ref) {
@@ -41,7 +51,7 @@ var PriceOptions = function PriceOptions(_ref) {
41 51
     priceInputClass: {}
42 52
   } : _ref$injectOptions,
43 53
       inputRef = _ref.inputRef;
44
-  var defaultOptions = priceOptions; // 控制是否为其他金额输入情况
54
+  var defaultOptions = priceOptions;
45 55
 
46 56
   var _useState = useState(false),
47 57
       _useState2 = _slicedToArray(_useState, 2),
@@ -87,8 +97,7 @@ var PriceOptions = function PriceOptions(_ref) {
87 97
 
88 98
       if (Number.isNaN(n)) {
89 99
         return;
90
-      } // 测试暂时改成1分
91
-
100
+      }
92 101
 
93 102
       setInputPrice("".concat(n * 100));
94 103
       onPriceChange(n * 100);

+ 1
- 1
eslib/PriceOptions/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 21
- 0
eslib/RichTextEditor/index.d.ts Visa fil

@@ -0,0 +1,21 @@
1
+/// <reference types="react" />
2
+import React from "react";
3
+import { EditorState, DraftEditorCommand, ContentBlock } from "draft-js";
4
+interface RichTextEditorProps {
5
+}
6
+interface RichTextEditorState {
7
+    editorState: EditorState;
8
+}
9
+declare class RichTextEditor extends React.Component<RichTextEditorProps, RichTextEditorState> {
10
+    constructor(props: RichTextEditorProps);
11
+    onChange: (editorState: EditorState) => void;
12
+    handleKeyCommand(command: DraftEditorCommand, editorState: EditorState): "not-handled" | "handled";
13
+    _onBoldClick(): void;
14
+    _onLinkClick(): void;
15
+    _onEmojiClick(e: React.MouseEvent, emojiCode: string): void;
16
+    _onCheckRange(): void;
17
+    defaultBlockStyleFn(contentBlock: ContentBlock): string;
18
+    defaultBlockRenderFn(contentBlock: ContentBlock): ContentBlock;
19
+    render(): JSX.Element;
20
+}
21
+export { RichTextEditor as default };

+ 13
- 24
eslib/RichTextEditor/index.js Visa fil

@@ -1,30 +1,30 @@
1
-import { a as _inherits, b as _createClass, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, c as _defineProperty, j as _assertThisInitialized } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { a as _inherits, b as _createClass, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, i as _assertThisInitialized } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React from 'react';
3
-import '../_commonjsHelpers-97e6d7b1.js';
4
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5 3
 import 'react-dom';
6
-import { a as Draft_4, b as Draft_3, c as Draft_15, d as Draft_14, e as Draft_20, f as Draft_1 } from '../Draft-9634837d.js';
4
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5
+import '../_commonjsHelpers-97e6d7b1.js';
6
+import { a as Draft_4, b as Draft_3, c as Draft_15, d as Draft_14, e as Draft_20, f as Draft_1 } from '../Draft-eeda2ee2.js';
7 7
 import '../_react-dom_commonjs-external-d3012e04.js';
8 8
 
9
-var css = ".RichTextEditor_wrapper__3X3Yv .RichTextEditor_btnListWrapper__vUaki {\n  display: flex;\n}\n.RichTextEditor_wrapper__3X3Yv .RichTextEditor_editorWrapper__3UFgF {\n  border: 1px solid #ccc;\n}\n";
10
-var styles = {"wrapper":"RichTextEditor_wrapper__3X3Yv","btnListWrapper":"RichTextEditor_btnListWrapper__vUaki","editorWrapper":"RichTextEditor_editorWrapper__3UFgF"};
9
+var css = ".RichTextEditor_wrapper__A033L .RichTextEditor_btnListWrapper__3iF9d {\n  display: flex;\n}\n.RichTextEditor_wrapper__A033L .RichTextEditor_editorWrapper__PzQ_1 {\n  border: 1px solid #ccc;\n}\n";
10
+var styles = {
11
+  "wrapper": "RichTextEditor_wrapper__A033L",
12
+  "btnListWrapper": "RichTextEditor_btnListWrapper__3iF9d",
13
+  "editorWrapper": "RichTextEditor_editorWrapper__PzQ_1"
14
+};
11 15
 styleInject(css);
12 16
 
13
-// 自定义组件,用于超链接
14 17
 var Link = function Link(props) {
15
-  // 这里通过contentState来获取entity�,之后通过getData获取entity中包含的数据
16 18
   var _props$contentState$g = props.contentState.getEntity(props.entityKey).getData(),
17 19
       url = _props$contentState$g.url;
18 20
 
19 21
   return React.createElement("a", {
20 22
     href: url
21 23
   }, props.children);
22
-}; // decorator,用于超链接
23
-
24
+};
24 25
 
25 26
 var decorator = new Draft_4([{
26 27
   strategy: function strategy(contentBlock, callback, contentState) {
27
-    // 这个方法接收2个函数作为参数,如果第一个参数的函数执行时�返回true,就会执行第二个参数函数,同时会�将匹配的�字符的起始位置和结束位置传递给第二个参数。
28 28
     contentBlock.findEntityRanges(function (character) {
29 29
       var entityKey = character.getEntity();
30 30
       return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
@@ -42,7 +42,6 @@ var decorator = new Draft_4([{
42 42
       callback.apply(void 0, arguments);
43 43
     });
44 44
   },
45
-  // component: (props: any) => (<span style={{ color: 'red' }}>[Emoji]</span>)
46 45
   component: function component(props) {
47 46
     return React.createElement("i", {
48 47
       style: {
@@ -68,9 +67,6 @@ function (_React$Component) {
68 67
     _classCallCheck(this, RichTextEditor);
69 68
 
70 69
     _this = _possibleConstructorReturn(this, _getPrototypeOf(RichTextEditor).call(this, props));
71
-
72
-    _defineProperty(_assertThisInitialized(_this), "onChange", void 0);
73
-
74 70
     _this.state = {
75 71
       editorState: Draft_3.createEmpty(decorator)
76 72
     };
@@ -107,10 +103,8 @@ function (_React$Component) {
107 103
               endOffset = _ref[1];
108 104
 
109 105
           if (startOffset === endOffset) {
110
-            // 未选中状态
111 106
             console.log(selectionState.getAnchorKey());
112
-          } // 选中状态
113
-
107
+          }
114 108
 
115 109
           break;
116 110
       }
@@ -147,12 +141,7 @@ function (_React$Component) {
147 141
       });
148 142
       var entityKey = EMOJIEntity.getLastCreatedEntityKey();
149 143
       var ncsWithEntity = Draft_14.insertText(contentState, selectionState, 'e', undefined, entityKey);
150
-      var newEditorState = Draft_3.push(editorState, ncsWithEntity, 'insert-characters'); // const newEditorState = AtomicBlockUtils.insertAtomicBlock(
151
-      //   editorState,
152
-      //   entityKey,
153
-      //   ' '
154
-      // );
155
-
144
+      var newEditorState = Draft_3.push(editorState, ncsWithEntity, 'insert-characters');
156 145
       this.onChange(newEditorState);
157 146
     }
158 147
   }, {

+ 1
- 1
eslib/RichTextEditor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 3
- 0
eslib/RichTextEditorForSlate/index.d.ts Visa fil

@@ -0,0 +1,3 @@
1
+/// <reference types="react" />
2
+declare const RichTextEditorForSlate: () => JSX.Element;
3
+export { RichTextEditorForSlate as default };

+ 26
- 23
eslib/RichTextEditorForSlate/index.js Visa fil

@@ -1,7 +1,7 @@
1
-import { i as _slicedToArray } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { h as _slicedToArray } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React$1, { useMemo, useState } from 'react';
3
-import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from '../_commonjsHelpers-97e6d7b1.js';
4 3
 import 'react-dom';
4
+import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from '../_commonjsHelpers-97e6d7b1.js';
5 5
 import { r as require$$3 } from '../_react-dom_commonjs-external-d3012e04.js';
6 6
 
7 7
 /*!
@@ -361,7 +361,7 @@ function processResult(immer, result, scope) {
361 361
     if (isDraftable(result)) {
362 362
       // Finalize the result in case it contains (or is) a subset of the draft.
363 363
       result = finalize(immer, result, scope);
364
-      maybeFreeze(immer, result);
364
+      if (!scope.parent) { maybeFreeze(immer, result); }
365 365
     }
366 366
 
367 367
     if (scope.patches) {
@@ -490,11 +490,11 @@ function finalizeProperty(immer, scope, root, rootState, parentValue, prop, chil
490 490
     } // Search new objects for unfinalized drafts. Frozen objects should never contain drafts.
491 491
     // TODO: the recursion over here looks weird, shouldn't non-draft stuff have it's own recursion?
492 492
     // especially the passing on of root and rootState doesn't make sense...
493
-    else if (isDraftable(childValue) && !Object.isFrozen(childValue)) {
493
+    else if (isDraftable(childValue)) {
494 494
         each(childValue, function (key, grandChild) {
495 495
           return finalizeProperty(immer, scope, root, rootState, childValue, key, grandChild, rootPath);
496 496
         });
497
-        maybeFreeze(immer, childValue);
497
+        if (!scope.parent) { maybeFreeze(immer, childValue); }
498 498
       }
499 499
 
500 500
   if (isDraftProp && immer.onAssign && !isSetMember) {
@@ -917,17 +917,22 @@ function markChangesRecursively(object) {
917 917
         markChangedES5(state);
918 918
       }
919 919
     });
920
-  } else if (type === ProxyType.ES5Array && hasArrayChanges(state)) {
921
-    markChangedES5(state);
922
-    assigned.length = true;
920
+  } else if (type === ProxyType.ES5Array) {
921
+    if (hasArrayChanges(state)) {
922
+      markChangedES5(state);
923
+      assigned.length = true;
924
+    }
923 925
 
924 926
     if (draft.length < base.length) {
925 927
       for (var i = draft.length; i < base.length; i++) { assigned[i] = false; }
926 928
     } else {
927 929
       for (var i = base.length; i < draft.length; i++) { assigned[i] = true; }
928
-    }
930
+    } // Minimum count is enough, the other parts has been processed.
931
+
932
+
933
+    var min = Math.min(draft.length, base.length);
929 934
 
930
-    for (var i = 0; i < draft.length; i++) {
935
+    for (var i = 0; i < min; i++) {
931 936
       // Only untouched indices trigger recursion.
932 937
       if (assigned[i] === undefined) { markChangesRecursively(draft[i]); }
933 938
     }
@@ -1533,8 +1538,8 @@ function deepClonePatchValue(obj) {
1533 1538
     var k = _a[0],
1534 1539
         v = _a[1];
1535 1540
     return [k, deepClonePatchValue(v)];
1536
-  })); } // Not needed: if (isSet(obj)) return new Set(Array.from(obj.values()).map(deepClone))
1537
-
1541
+  })); }
1542
+  if (isSet(obj)) { return new Set(Array.from(obj).map(deepClonePatchValue)); }
1538 1543
   var cloned = Object.create(Object.getPrototypeOf(obj));
1539 1544
 
1540 1545
   for (var key in obj) { cloned[key] = deepClonePatchValue(obj[key]); }
@@ -10238,17 +10243,15 @@ var RichTextEditorForSlate = function RichTextEditorForSlate() {
10238 10243
       value = _useState2[0],
10239 10244
       setValue = _useState2[1];
10240 10245
 
10241
-  return (// Add the editable component inside the context.
10242
-    React$1.createElement(dist_5$1, {
10243
-      editor: editor,
10244
-      value: value,
10245
-      onChange: function onChange(value) {
10246
-        console.log('value: ', value);
10247
-        setValue(value);
10248
-      }
10249
-    }, React$1.createElement(dist_3$1, null))
10250
-  );
10251
-}; // class RichTextEditorForSlate extends React.Component<RichTextEditorForSlateProps, RichTextEditorForSlateState> {
10246
+  return React$1.createElement(dist_5$1, {
10247
+    editor: editor,
10248
+    value: value,
10249
+    onChange: function onChange(value) {
10250
+      console.log('value: ', value);
10251
+      setValue(value);
10252
+    }
10253
+  }, React$1.createElement(dist_3$1, null));
10254
+};
10252 10255
 
10253 10256
 export default RichTextEditorForSlate;
10254 10257
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/RichTextEditorForSlate/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 14
- 0
eslib/WaitPayInfoView/index.d.ts Visa fil

@@ -0,0 +1,14 @@
1
+/// <reference types="react" />
2
+import { Component } from 'react';
3
+interface Props {
4
+    onClickPayed?: Function;
5
+    onClickProblem?: Function;
6
+}
7
+declare class WaitPayInfoView extends Component<Props, {}> {
8
+    static defaultProps: {
9
+        onClickPayed: () => void;
10
+        onClickProblem: () => void;
11
+    };
12
+    render(): JSX.Element;
13
+}
14
+export { WaitPayInfoView as default, WaitPayInfoView };

+ 10
- 9
eslib/WaitPayInfoView/index.js Visa fil

@@ -1,21 +1,23 @@
1
-import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { a as _inherits, b as _createClass, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React, { Component } from 'react';
3
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3 4
 import '../_commonjsHelpers-97e6d7b1.js';
4 5
 import { c as classnames } from '../index-c9837619.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6 6
 
7
-var css = ".WaitPayInfoView_waitingContainer__2DyOZ {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
8
-var styles = {"waitingContainer":"WaitPayInfoView_waitingContainer__2DyOZ"};
7
+var css = ".WaitPayInfoView_waitingContainer__3pU2F {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
8
+var styles = {
9
+  "waitingContainer": "WaitPayInfoView_waitingContainer__3pU2F"
10
+};
9 11
 styleInject(css);
10 12
 
11
-const img = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDNweCIgdmlld0JveD0iMCAwIDQ4IDQzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggNTAuMiAoNTUwNDcpIC0gaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoIC0tPg0KICAgIDx0aXRsZT5rY3hxX3BvcG92ZXJzX2ljb25fdGFuaGFvPC90aXRsZT4NCiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4NCiAgICA8ZGVmcz48L2RlZnM+DQogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSLlj6blrqLnvZFf55u05pKt6K++X+ivvueoi+S7i+e7jeivpuaDhV/otK3kubDmj5DnpLrlvLnnqpciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC05MzYuMDAwMDAwLCAtMTkwLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+DQogICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMjIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY5MC4wMDAwMDAsIDExMC4wMDAwMDApIj4NCiAgICAgICAgICAgICAgICA8ZyBpZD0ia2N4cV9wb3BvdmVyc19pY29uX3RhbmhhbyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ2LjAwMDAwMCwgODAuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00OCwyMS41IEM0OCwzMy4zNzM2NjI2IDM4LjM2NDU3NTYsNDMgMjYuNDc5NzA0OCw0MyBDMjEuMTMwNjI3Myw0MyAxNy4wMzkxMTQ0LDQyLjE1MDYxNzMgMTMuMjg0MTMyOCwzOC45MzAwNDEyIEMxMS44MTQwMjIxLDM3LjY3MzY2MjYgMS43MDAzNjksNDMuMjEyMzQ1NyAwLjE3NzEyMTc3MSwzOS4yODM5NTA2IEMtMS4wNjI3MzA2MywzNi4wOTg3NjU0IDUuOTUxMjkxNTEsMjkuMjUwNjE3MyA1LjMxMzY1MzE0LDI3LjA3NDA3NDEgQzQuNzY0NTc1NjUsMjUuMTgwNjU4NCA0Ljk1OTQwOTU5LDIzLjU3MDM3MDQgNC45NTk0MDk1OSwyMS41IEM0Ljk1OTQwOTU5LDkuNjI2MzM3NDUgMTQuNTk0ODMzOSwwIDI2LjQ3OTcwNDgsMCBDMzguMzY0NTc1NiwwIDQ4LDkuNjI2MzM3NDUgNDgsMjEuNSBaIiBpZD0iU2hhcGUiIGZpbGw9IiMxNzkwRkYiPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMy44NDg3MDgsIDguMTkzNDE2KSIgZmlsbD0iI0ZGRkZGRiI+DQogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMi41LDI3LjQ5NzEwOTggQzEuMTMyMzUyOTQsMjcuNDk3MTA5OCAwLDI2LjM3OTQ2MjggMCwyNC45OTcxMDk4IEMwLDIzLjYxNDc1NjkgMS4xMzIzNTI5NCwyMi40OTcxMDk4IDIuNSwyMi40OTcxMDk4IEMzLjg2NzY0NzA2LDIyLjQ5NzEwOTggNSwyMy42MTQ3NTY5IDUsMjQuOTk3MTA5OCBDNSwyNi4zNzk0NjI4IDMuODY3NjQ3MDYsMjcuNDk3MTA5OCAyLjUsMjcuNDk3MTA5OCBaIE0yLjUsMTkuNDIxOTY1MyBDMS4xMzIzNTI5NCwxOS40MjE5NjUzIDAsMTguMTkxOTA3NSAwLDE2LjY3MDUyMDIgTDAsMi43NTE0NDUwOSBDMCwxLjI0NjI0Mjc3IDEuMTMyMzUyOTQsMCAyLjUsMCBDMy44Njc2NDcwNiwwIDUsMS4yMzAwNTc4IDUsMi43NTE0NDUwOSBMNSwxNi42NzA1MjAyIEM1LDE4LjE5MTkwNzUgMy44Njc2NDcwNiwxOS40MjE5NjUzIDIuNSwxOS40MjE5NjUzIFoiIGlkPSJTaGFwZSI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+';
13
+const img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='48px' height='43px' viewBox='0 0 48 43' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3ekcxq_popovers_icon_tanhao%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e%3c/defs%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='%e5%8f%a6%e5%ae%a2%e7%bd%91_%e7%9b%b4%e6%92%ad%e8%af%be_%e8%af%be%e7%a8%8b%e4%bb%8b%e7%bb%8d%e8%af%a6%e6%83%85_%e8%b4%ad%e4%b9%b0%e6%8f%90%e7%a4%ba%e5%bc%b9%e7%aa%97' transform='translate(-936.000000%2c -190.000000)' fill-rule='nonzero'%3e %3cg id='Group-22' transform='translate(690.000000%2c 110.000000)'%3e %3cg id='kcxq_popovers_icon_tanhao' transform='translate(246.000000%2c 80.000000)'%3e %3cpath d='M48%2c21.5 C48%2c33.3736626 38.3645756%2c43 26.4797048%2c43 C21.1306273%2c43 17.0391144%2c42.1506173 13.2841328%2c38.9300412 C11.8140221%2c37.6736626 1.700369%2c43.2123457 0.177121771%2c39.2839506 C-1.06273063%2c36.0987654 5.95129151%2c29.2506173 5.31365314%2c27.0740741 C4.76457565%2c25.1806584 4.95940959%2c23.5703704 4.95940959%2c21.5 C4.95940959%2c9.62633745 14.5948339%2c0 26.4797048%2c0 C38.3645756%2c0 48%2c9.62633745 48%2c21.5 Z' id='Shape' fill='%231790FF'%3e%3c/path%3e %3cg id='Group' transform='translate(23.848708%2c 8.193416)' fill='white'%3e %3cpath d='M2.5%2c27.4971098 C1.13235294%2c27.4971098 0%2c26.3794628 0%2c24.9971098 C0%2c23.6147569 1.13235294%2c22.4971098 2.5%2c22.4971098 C3.86764706%2c22.4971098 5%2c23.6147569 5%2c24.9971098 C5%2c26.3794628 3.86764706%2c27.4971098 2.5%2c27.4971098 Z M2.5%2c19.4219653 C1.13235294%2c19.4219653 0%2c18.1919075 0%2c16.6705202 L0%2c2.75144509 C0%2c1.24624277 1.13235294%2c0 2.5%2c0 C3.86764706%2c0 5%2c1.2300578 5%2c2.75144509 L5%2c16.6705202 C5%2c18.1919075 3.86764706%2c19.4219653 2.5%2c19.4219653 Z' id='Shape'%3e%3c/path%3e %3c/g%3e %3c/g%3e %3c/g%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
12 14
 
13 15
 var Button = function Button() {
14 16
   for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
15 17
     props[_key] = arguments[_key];
16 18
   }
17 19
 
18
-  return React.createElement("button", props, "button");
20
+  return React.createElement("button", Object.assign({}, props), "button");
19 21
 };
20 22
 
21 23
 var WaitPayInfoView =
@@ -67,15 +69,14 @@ function (_Component) {
67 69
 
68 70
   return WaitPayInfoView;
69 71
 }(Component);
70
-
71
-_defineProperty(WaitPayInfoView, "defaultProps", {
72
+WaitPayInfoView.defaultProps = {
72 73
   onClickPayed: function onClickPayed() {
73 74
     console.log("onClickPayed");
74 75
   },
75 76
   onClickProblem: function onClickProblem() {
76 77
     console.log("onClickProblem");
77 78
   }
78
-});
79
+};
79 80
 
80 81
 export default WaitPayInfoView;
81 82
 export { WaitPayInfoView };

+ 1
- 1
eslib/WaitPayInfoView/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 23
- 0
eslib/WantedPublishPopover/index.d.ts Visa fil

@@ -0,0 +1,23 @@
1
+/// <reference types="react" />
2
+import React from 'react';
3
+interface WantedPublishPopoverProp {
4
+    popoverConfig?: {
5
+        placement?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
6
+        trigger?: "hover" | "focus" | "click" | "contextMenu" | undefined;
7
+        getPopupContainer?: any;
8
+    };
9
+    handleConfirm?: Function;
10
+}
11
+interface WantedPublishPopoverState {
12
+    visible: boolean;
13
+    current_wanted: number | string | null;
14
+}
15
+declare class WantedPublishPopover extends React.Component<WantedPublishPopoverProp, WantedPublishPopoverState> {
16
+    constructor(props: WantedPublishPopoverProp);
17
+    handleClose: () => void;
18
+    clearCurrentWanted: (cb: Function) => void;
19
+    handleUpdateCurrentWanted: (value: string | number | null, afterUpdate?: Function | undefined) => void;
20
+    renderInitView(): JSX.Element;
21
+    render(): JSX.Element;
22
+}
23
+export { WantedPublishPopover as default, WantedPublishPopover, WantedPublishPopoverProp, WantedPublishPopoverState };

+ 17
- 13
eslib/WantedPublishPopover/index.js Visa fil

@@ -1,15 +1,20 @@
1
-import { a as _inherits, b as _createClass, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, c as _defineProperty, j as _assertThisInitialized, g as _extends } from '../_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { a as _inherits, b as _createClass, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf } from '../_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import React from 'react';
3
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3 4
 import '../_commonjsHelpers-97e6d7b1.js';
4 5
 import '../index-c9837619.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6 6
 import { Popover } from 'antd';
7 7
 import WantedPublishView from '../WantedPublishView/index.js';
8 8
 
9
-const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAFNElEQVRYR82Yf0jcdRjH33enp1NbTQ3FdKhTY64hTTsURc6keQeSqIPSQJIiMHM3zj8ST/BE/And+c8wmSSMomHl4EaaP2aeuq/R1MwrraEgLVbLXcvpReY847l9v3I7774/LKUHjuN79/k8z+v7+fG8n89Hhv+pyf4F1xEAxwE8BSAIQDAAPwB/AnCwnzsAVgHsSI0jFcwfwEkA8QAiRAYj0BUACwDsIvtALJgcwLMA0tjREevfs90tADcBbAg5EAN2FEAegFAhZyL/3wYwBeB7vvZCYFEAzgIIEBlUSjMCYwA4vXXiA6N1lAuApvGg7DaAL7zB+QILB1DA7rKDguL80shNegbxBkZbv4jd/gcNxfmfYHftbjxvYDR9CYdFxMahDfExm/tcP3mC0RQWHzIUF+5HAGPcgydYPoBn+MCSk5ODm5ubs4qKigadTq8b6rHuFRUVcYmJicf0ev2swAuTOnwC4L7niD0J4FW+zvHx8YEMw+gjIiKOz8zM3MjIyPhwa2vLp9xUV1cntra2VioUCv+WlpYug8EwLwD3HYAbnmApANL5OlZVVZ0wm806hUKhpHbz8/Nfq1Sqns3NzT1wdXV1J41GYwXXdnZ2lklNTb0sAEaK8JEnGKWHSKH1xY2Cn59fILVdXFz8RqVSXdrY2Nid16amptM1NTVvyeVy0laIGV23uJ+SpnJrTAHgTSEo7v/Kyso4k8l0XqlUUoWBpaUlW3p6epfdbn9oMpnO6HS6N+RyOfnE1NTUWFZW1hUx65H1T3I1z4E9AaBULBi1Ky8vj+ns7NQFBASE0PPKysqi1WqdKSsrK5XJZC61sFqtw2q1+jMpfgmK3ocDoymkqZRkJSUlUd3d3ReCgoJI6B+zwcHBzzUazTVJDh81XgJwnQOLY8Vasp+CgoKI3t7ed5VKJSmGy4aGhvrz8vIskp096kDF5TUOjCpR7X4c9fX1nS0sLCQJ27XV1dXbubm5HTabjSpZqfYTgAEOLAzAOake+vv787VaLSVlsh2Hw/EgODiY8iHsdvsdjUbTMT09/UCi3x9oeXJgtLvKpDgYHR0tzMnJoQISOzs7zq6urss9PT0LAwMDF0JDQ6mOw9ra2t38/Hzz5OTkHxJ8k0Lc5MDo+3UArsTJZ3K5HOPj469kZmbmsFDbHR0dH+j1+hl6TklJCRkZGdGFh4fH0PP6+vq94uJi8/DwsNh6/0sAt9y18kUAiXxQ/v7+MoZhXktLS8uidk6n82FbW9ul2trab937JSUlBVmt1vORkZGx9LvD4bhfWlpqtlgsvwm8NykIqcNf7mBUsb7E19FoNJ6qr6+vojbb29t/NzY2vt/Q0ECnnz0WGxsbODEx8U50dLSrhFpeXrYlJCRcFAD7BYBrN7uDkXzQOqOzoU+zWCwarVarNRgMF9vb2+nU49OioqKUDMO8HRIScjQ7O/u9hYUFoV1KZwCbJxg9vwDgjNA6U6vVx8bGxlzliZCFhYX5xcTEHJmbm1sXaEvnzysAtryB0eIvAeAS6EO2caoJuJjeSutTAFyL+xDtdwCkqbsViq9T0mHW/ZsArlLacx8IX2C0AV4G8PQBjxqlh34AP3vG4TvwkihrDhCOTkZ0+KBqYo8JXRHQyKkBnPiPR4524CAAnwlXCIzjOc3e9AhKlogXoCspOnnz5jSxYBSPLlaeB/AcAFfZLNHuAvgKwK9i+kkB4/xRjqP6jXSQhJpPKUi4aYToc08MEF8ek9KfRo675qRv7qqTu+6kVLAv28+I7SuQ1E7/AHTQdDZ7M6+KAAAAAElFTkSuQmCC';
9
+const img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAFNElEQVRYR82Yf0jcdRjH33enp1NbTQ3FdKhTY64hTTsURc6keQeSqIPSQJIiMHM3zj8ST/BE/And+c8wmSSMomHl4EaaP2aeuq/R1MwrraEgLVbLXcvpReY847l9v3I7774/LKUHjuN79/k8z+v7+fG8n89Hhv+pyf4F1xEAxwE8BSAIQDAAPwB/AnCwnzsAVgHsSI0jFcwfwEkA8QAiRAYj0BUACwDsIvtALJgcwLMA0tjREevfs90tADcBbAg5EAN2FEAegFAhZyL/3wYwBeB7vvZCYFEAzgIIEBlUSjMCYwA4vXXiA6N1lAuApvGg7DaAL7zB+QILB1DA7rKDguL80shNegbxBkZbv4jd/gcNxfmfYHftbjxvYDR9CYdFxMahDfExm/tcP3mC0RQWHzIUF+5HAGPcgydYPoBn+MCSk5ODm5ubs4qKigadTq8b6rHuFRUVcYmJicf0ev2swAuTOnwC4L7niD0J4FW+zvHx8YEMw+gjIiKOz8zM3MjIyPhwa2vLp9xUV1cntra2VioUCv+WlpYug8EwLwD3HYAbnmApANL5OlZVVZ0wm806hUKhpHbz8/Nfq1Sqns3NzT1wdXV1J41GYwXXdnZ2lklNTb0sAEaK8JEnGKWHSKH1xY2Cn59fILVdXFz8RqVSXdrY2Nid16amptM1NTVvyeVy0laIGV23uJ+SpnJrTAHgTSEo7v/Kyso4k8l0XqlUUoWBpaUlW3p6epfdbn9oMpnO6HS6N+RyOfnE1NTUWFZW1hUx65H1T3I1z4E9AaBULBi1Ky8vj+ns7NQFBASE0PPKysqi1WqdKSsrK5XJZC61sFqtw2q1+jMpfgmK3ocDoymkqZRkJSUlUd3d3ReCgoJI6B+zwcHBzzUazTVJDh81XgJwnQOLY8Vasp+CgoKI3t7ed5VKJSmGy4aGhvrz8vIskp096kDF5TUOjCpR7X4c9fX1nS0sLCQJ27XV1dXbubm5HTabjSpZqfYTgAEOLAzAOake+vv787VaLSVlsh2Hw/EgODiY8iHsdvsdjUbTMT09/UCi3x9oeXJgtLvKpDgYHR0tzMnJoQISOzs7zq6urss9PT0LAwMDF0JDQ6mOw9ra2t38/Hzz5OTkHxJ8k0Lc5MDo+3UArsTJZ3K5HOPj469kZmbmsFDbHR0dH+j1+hl6TklJCRkZGdGFh4fH0PP6+vq94uJi8/DwsNh6/0sAt9y18kUAiXxQ/v7+MoZhXktLS8uidk6n82FbW9ul2trab937JSUlBVmt1vORkZGx9LvD4bhfWlpqtlgsvwm8NykIqcNf7mBUsb7E19FoNJ6qr6+vojbb29t/NzY2vt/Q0ECnnz0WGxsbODEx8U50dLSrhFpeXrYlJCRcFAD7BYBrN7uDkXzQOqOzoU+zWCwarVarNRgMF9vb2+nU49OioqKUDMO8HRIScjQ7O/u9hYUFoV1KZwCbJxg9vwDgjNA6U6vVx8bGxlzliZCFhYX5xcTEHJmbm1sXaEvnzysAtryB0eIvAeAS6EO2caoJuJjeSutTAFyL+xDtdwCkqbsViq9T0mHW/ZsArlLacx8IX2C0AV4G8PQBjxqlh34AP3vG4TvwkihrDhCOTkZ0+KBqYo8JXRHQyKkBnPiPR4524CAAnwlXCIzjOc3e9AhKlogXoCspOnnz5jSxYBSPLlaeB/AcAFfZLNHuAvgKwK9i+kkB4/xRjqP6jXSQhJpPKUi4aYToc08MEF8ek9KfRo675qRv7qqTu+6kVLAv28+I7SuQ1E7/AHTQdDZ7M6+KAAAAAElFTkSuQmCC";
10 10
 
11
-var css = ".WantedPublishPopover_wanted_wrapper__1HLvh {\n  width: 366px;\n  height: 424px;\n  font-size: 18px;\n  text-align: center;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo {\n  position: absolute;\n  top: 10px;\n  right: 16px;\n  width: 20px;\n  height: 20px;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo > button {\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  cursor: pointer;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo > button > img {\n  width: 100%;\n}\n";
12
-var styles = {"wanted_wrapper":"WantedPublishPopover_wanted_wrapper__1HLvh","close_btn":"WantedPublishPopover_close_btn__2gPNo","wantedWrapper":"WantedPublishPopover_wanted_wrapper__1HLvh","closeBtn":"WantedPublishPopover_close_btn__2gPNo"};
11
+var css = ".WantedPublishPopover_wanted_wrapper__3jkl0 {\n  width: 366px;\n  height: 424px;\n  font-size: 18px;\n  text-align: center;\n}\n.WantedPublishPopover_wanted_wrapper__3jkl0 .WantedPublishPopover_close_btn__1j-1P {\n  position: absolute;\n  top: 10px;\n  right: 16px;\n  width: 20px;\n  height: 20px;\n}\n.WantedPublishPopover_wanted_wrapper__3jkl0 .WantedPublishPopover_close_btn__1j-1P > button {\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  cursor: pointer;\n}\n.WantedPublishPopover_wanted_wrapper__3jkl0 .WantedPublishPopover_close_btn__1j-1P > button > img {\n  width: 100%;\n}\n";
12
+var styles = {
13
+  "wanted_wrapper": "WantedPublishPopover_wanted_wrapper__3jkl0",
14
+  "close_btn": "WantedPublishPopover_close_btn__1j-1P",
15
+  "wantedWrapper": "WantedPublishPopover_wanted_wrapper__3jkl0",
16
+  "closeBtn": "WantedPublishPopover_close_btn__1j-1P"
17
+};
13 18
 styleInject(css);
14 19
 
15 20
 var WantedPublishPopover =
@@ -24,7 +29,7 @@ function (_React$Component) {
24 29
 
25 30
     _this = _possibleConstructorReturn(this, _getPrototypeOf(WantedPublishPopover).call(this, props));
26 31
 
27
-    _defineProperty(_assertThisInitialized(_this), "handleClose", function () {
32
+    _this.handleClose = function () {
28 33
       var handleConfirm = _this.props.handleConfirm;
29 34
 
30 35
       if (handleConfirm) {
@@ -36,23 +41,22 @@ function (_React$Component) {
36 41
       _this.setState({
37 42
         visible: false
38 43
       });
39
-    });
44
+    };
40 45
 
41
-    _defineProperty(_assertThisInitialized(_this), "clearCurrentWanted", function (cb) {
46
+    _this.clearCurrentWanted = function (cb) {
42 47
       _this.setState({
43 48
         current_wanted: null
44 49
       }, function () {
45 50
         return cb();
46 51
       });
47
-    });
52
+    };
48 53
 
49
-    _defineProperty(_assertThisInitialized(_this), "handleUpdateCurrentWanted", function (value, afterUpdate) {
54
+    _this.handleUpdateCurrentWanted = function (value, afterUpdate) {
50 55
       if (!value) return;
51 56
       var result;
52 57
       result = value;
53 58
 
54 59
       if (parseInt("".concat(value), 10) === value) {
55
-        // 无小数判断
56 60
         result = Number(value);
57 61
       }
58 62
 
@@ -65,7 +69,7 @@ function (_React$Component) {
65 69
       }, function () {
66 70
         return afterUpdate && afterUpdate(result);
67 71
       });
68
-    });
72
+    };
69 73
 
70 74
     _this.state = {
71 75
       visible: false,
@@ -109,7 +113,7 @@ function (_React$Component) {
109 113
           children = _this$props.children,
110 114
           _this$props$popoverCo = _this$props.popoverConfig,
111 115
           popoverConfig = _this$props$popoverCo === void 0 ? {} : _this$props$popoverCo;
112
-      return React.createElement(Popover, _extends({
116
+      return React.createElement(Popover, Object.assign({
113 117
         placement: "left",
114 118
         trigger: "click",
115 119
         visible: this.state.visible,

+ 1
- 1
eslib/WantedPublishPopover/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 20
- 0
eslib/WantedPublishView/index.d.ts Visa fil

@@ -0,0 +1,20 @@
1
+/// <reference types="react" />
2
+import React from 'react';
3
+interface WantedPublishViewProps {
4
+    type?: 'pop' | 'modal';
5
+    wrapperClass?: string;
6
+    current_wanted: number | string | null;
7
+    InputWantedValueChange: Function;
8
+    InputWantedPressEnter: Function;
9
+    InputWantedOnBlur: Function;
10
+    InputWantedClear: Function;
11
+    CloseFunction: Function;
12
+}
13
+interface WantedPublishViewState {
14
+    payment?: number;
15
+}
16
+declare class WantedPublishView extends React.Component<WantedPublishViewProps, WantedPublishViewState> {
17
+    constructor(props: WantedPublishViewProps);
18
+    render(): JSX.Element;
19
+}
20
+export { WantedPublishView as default };

+ 23
- 5
eslib/WantedPublishView/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/WantedPublishView/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 0
eslib/_commonjsHelpers-97e6d7b1.d.ts Visa fil


+ 0
- 0
eslib/_rollupPluginBabelHelpers-22a1b8cb.d.ts Visa fil


eslib/_rollupPluginBabelHelpers-bf46fecd.js → eslib/_rollupPluginBabelHelpers-22a1b8cb.js Visa fil

@@ -1,4 +1,6 @@
1 1
 function _typeof(obj) {
2
+  "@babel/helpers - typeof";
3
+
2 4
   if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
3 5
     _typeof = function (obj) {
4 6
       return typeof obj;
@@ -49,24 +51,6 @@ function _defineProperty(obj, key, value) {
49 51
   return obj;
50 52
 }
51 53
 
52
-function _extends() {
53
-  _extends = Object.assign || function (target) {
54
-    for (var i = 1; i < arguments.length; i++) {
55
-      var source = arguments[i];
56
-
57
-      for (var key in source) {
58
-        if (Object.prototype.hasOwnProperty.call(source, key)) {
59
-          target[key] = source[key];
60
-        }
61
-      }
62
-    }
63
-
64
-    return target;
65
-  };
66
-
67
-  return _extends.apply(this, arguments);
68
-}
69
-
70 54
 function ownKeys(object, enumerableOnly) {
71 55
   var keys = Object.keys(object);
72 56
 
@@ -190,5 +174,5 @@ function _nonIterableRest() {
190 174
   throw new TypeError("Invalid attempt to destructure non-iterable instance");
191 175
 }
192 176
 
193
-export { _typeof as _, _inherits as a, _createClass as b, _defineProperty as c, _classCallCheck as d, _possibleConstructorReturn as e, _getPrototypeOf as f, _extends as g, _objectSpread2 as h, _slicedToArray as i, _assertThisInitialized as j };
194
-//# sourceMappingURL=_rollupPluginBabelHelpers-bf46fecd.js.map
177
+export { _typeof as _, _inherits as a, _createClass as b, _classCallCheck as c, _possibleConstructorReturn as d, _getPrototypeOf as e, _defineProperty as f, _objectSpread2 as g, _slicedToArray as h, _assertThisInitialized as i };
178
+//# sourceMappingURL=_rollupPluginBabelHelpers-22a1b8cb.js.map

lib/_rollupPluginBabelHelpers-3469b70d.js.map → eslib/_rollupPluginBabelHelpers-22a1b8cb.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"_rollupPluginBabelHelpers-bf46fecd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+{"version":3,"file":"_rollupPluginBabelHelpers-22a1b8cb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

+ 0
- 0
eslib/index-c9837619.d.ts Visa fil


+ 1
- 1
eslib/index-c9837619.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index-c9837619.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;IAChC,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;KACpB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;MACtC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAClB;KACD;IACD;GACD;;EAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;EACzB;;CAED,IAAI,CAAiC,MAAM,CAAC,OAAO,EAAE;EACpD,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;EAChC,cAAc,GAAG,UAAU,CAAC;EAC5B,MAAM,AAKA;EACN,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;EAC/B;CACD,EAAE,EAAE;;;;;"}
1
+{"version":3,"file":"index-c9837619.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;AAEb;AACA,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;AAChC;AACA,CAAC,SAAS,UAAU,IAAI;AACxB,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC;AACnB;AACA,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC1B,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS;AACtB;AACA,GAAG,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;AAC5B;AACA,GAAG,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;AACrD,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtB,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;AAChD,IAAI,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC5C,IAAI,IAAI,KAAK,EAAE;AACf,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzB,KAAK;AACL,IAAI,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;AACpC,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;AACzB,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;AAC5C,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxB,MAAM;AACN,KAAK;AACL,IAAI;AACJ,GAAG;AACH;AACA,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF;AACA,CAAC,KAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AAClC,EAAE,cAAc,GAAG,UAAU,CAAC;AAC9B,EAAE,MAKM;AACR,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,EAAE;AACF,CAAC,EAAE;;;;;"}

+ 2
- 0
eslib/index.d.ts Visa fil

@@ -0,0 +1,2 @@
1
+export * from "./Common/index";
2
+export * from "./Payment/index";

+ 5
- 74
eslib/index.js Visa fil

@@ -1,13 +1,11 @@
1
-import './_rollupPluginBabelHelpers-bf46fecd.js';
1
+import './_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 import 'react';
3
-import './_commonjsHelpers-97e6d7b1.js';
4
-import './index-c9837619.js';
5
-import './style-inject.es-1f59c1d0.js';
6
-import './test-3e7def9a.js';
7 3
 import 'react-dom';
8
-import './Modal-67d33baf.js';
9 4
 export { default as Modal } from './Modal/index.js';
10
-import './utils-74f31cae.js';
5
+import './style-inject.es-1f59c1d0.js';
6
+import './_commonjsHelpers-97e6d7b1.js';
7
+import './index-c9837619.js';
8
+import './utils-3a540bc8.js';
11 9
 export { default as ConsumeListView } from './ConsumeListView/index.js';
12 10
 export { default as PayPlatformOptions } from './PayPlatformOptions/index.js';
13 11
 import 'antd';
@@ -16,71 +14,4 @@ export { default as WaitPayInfoView } from './WaitPayInfoView/index.js';
16 14
 export { default as AllocWantedModal } from './AllocWantedModal/index.js';
17 15
 export { default as WantedPublishView } from './WantedPublishView/index.js';
18 16
 export { default as WantedPublishPopover } from './WantedPublishPopover/index.js';
19
-
20
-// type TransmitImgTxtData = {
21
-//   user_id?: string|number;
22
-//   anonymity?: boolean;
23
-//   avatar?: string;
24
-//   nickname?: string;
25
-//   is_long?: boolean;
26
-// }
27
-// interface TransmitCardProps {
28
-//   type: TransmitType;
29
-//   data: TransmitImgTxtData;
30
-// }
31
-// export class TransmitCard extends React.PureComponent<TransmitCardProps, {}> {
32
-//   renderVideo() {
33
-//     return <div className={styles.transmitVideoCard}>Video</div>;
34
-//   }
35
-//   renderImgTxt() {
36
-//     const { data } = this.props;
37
-//     const {
38
-//       user_id,
39
-//       anonymity,
40
-//       avatar,
41
-//       nickname,
42
-//       is_long,
43
-//     } = data;
44
-//     return (
45
-//       <div className={styles.transmitImgTxtCard}>
46
-//         <div className={styles.header}>
47
-//           <UserLink user_id={user_id} anonymity={anonymity}>
48
-//             <Avatar
49
-//               id={user_id}
50
-//               image={avatar}
51
-//               follow={false}
52
-//               size="cover"
53
-//               className={styles.ava}
54
-//               anonymity={anonymity}
55
-//             />
56
-//           </UserLink>
57
-//           <div className={styles.nickname}>
58
-//             <UserLink user_id={user_id} anonymity={anonymity}>
59
-//               {nickname}
60
-//             </UserLink>
61
-//           </div>
62
-//           <div className={styles.type}>
63
-//             {is_long
64
-//               ? intl.get('bilingually.imgtxt.article')
65
-//               : intl.get('bilingually.imgtxt')}
66
-//           </div>
67
-//         </div>
68
-//       </div>
69
-//     );
70
-//   }
71
-//   render() {
72
-//     const { type } = this.props;
73
-//     if (type === 'imgTxt') {
74
-//       this.renderImgTxt();
75
-//     }
76
-//     if (type === 'shortVideo' || type === 'microVideo') {
77
-//       this.renderVideo();
78
-//     }
79
-//     return null;
80
-//   }
81
-// }
82
-
83
-var Test = "TestComponent";
84
-
85
-export { Test };
86 17
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 0
eslib/style-inject.es-1f59c1d0.d.ts Visa fil


+ 1
- 1
eslib/style-inject.es-1f59c1d0.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"style-inject.es-1f59c1d0.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;"}
1
+{"version":3,"file":"style-inject.es-1f59c1d0.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;"}

+ 0
- 75
eslib/test-3e7def9a.js Visa fil

@@ -1,75 +0,0 @@
1
-import './_rollupPluginBabelHelpers-bf46fecd.js';
2
-import 'react';
3
-import './index-c9837619.js';
4
-import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5
-
6
-var css = ".test_red__3UOk2 {\n  color: red;\n}\n";
7
-styleInject(css);
8
-
9
-// type TransmitImgTxtData = {
10
-//   user_id?: string|number;
11
-//   anonymity?: boolean;
12
-//   avatar?: string;
13
-//   nickname?: string;
14
-//   is_long?: boolean;
15
-// }
16
-// interface TransmitCardProps {
17
-//   type: TransmitType;
18
-//   data: TransmitImgTxtData;
19
-// }
20
-// export class TransmitCard extends React.PureComponent<TransmitCardProps, {}> {
21
-//   renderVideo() {
22
-//     return <div className={styles.transmitVideoCard}>Video</div>;
23
-//   }
24
-//   renderImgTxt() {
25
-//     const { data } = this.props;
26
-//     const {
27
-//       user_id,
28
-//       anonymity,
29
-//       avatar,
30
-//       nickname,
31
-//       is_long,
32
-//     } = data;
33
-//     return (
34
-//       <div className={styles.transmitImgTxtCard}>
35
-//         <div className={styles.header}>
36
-//           <UserLink user_id={user_id} anonymity={anonymity}>
37
-//             <Avatar
38
-//               id={user_id}
39
-//               image={avatar}
40
-//               follow={false}
41
-//               size="cover"
42
-//               className={styles.ava}
43
-//               anonymity={anonymity}
44
-//             />
45
-//           </UserLink>
46
-//           <div className={styles.nickname}>
47
-//             <UserLink user_id={user_id} anonymity={anonymity}>
48
-//               {nickname}
49
-//             </UserLink>
50
-//           </div>
51
-//           <div className={styles.type}>
52
-//             {is_long
53
-//               ? intl.get('bilingually.imgtxt.article')
54
-//               : intl.get('bilingually.imgtxt')}
55
-//           </div>
56
-//         </div>
57
-//       </div>
58
-//     );
59
-//   }
60
-//   render() {
61
-//     const { type } = this.props;
62
-//     if (type === 'imgTxt') {
63
-//       this.renderImgTxt();
64
-//     }
65
-//     if (type === 'shortVideo' || type === 'microVideo') {
66
-//       this.renderVideo();
67
-//     }
68
-//     return null;
69
-//   }
70
-// }
71
-
72
-var Test = "TestComponent";
73
-
74
-export { Test as T };
75
-//# sourceMappingURL=test-3e7def9a.js.map

+ 0
- 1
eslib/test-3e7def9a.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 17
- 0
eslib/utils-3a540bc8.d.ts Visa fil

@@ -0,0 +1,17 @@
1
+declare const IMAGE_PROCESS = "?x-oss-process=image/resize,h_350";
2
+declare const IMAGE_PROCESS_SMALL = "?x-oss-process=image/resize,h_100";
3
+declare const IMAGE_PROCESS_LARGE = "?x-oss-process=image/resize,h_500";
4
+interface AddImageProcessOptions {
5
+    small?: boolean;
6
+    large?: boolean;
7
+    custom?: boolean;
8
+    width?: string;
9
+    height?: string;
10
+}
11
+declare function addImageProcess(url: string, options?: AddImageProcessOptions): string;
12
+declare function formatMoney(input: any, fuzz?: number): any;
13
+type classSize = 'small' | 'normal' | 'large';
14
+declare function exportStyleSizeClass(styles: any, size: classSize): {
15
+    [x: number]: boolean;
16
+};
17
+export { IMAGE_PROCESS, IMAGE_PROCESS_SMALL, IMAGE_PROCESS_LARGE, addImageProcess, formatMoney, exportStyleSizeClass };

eslib/utils-74f31cae.js → eslib/utils-3a540bc8.js Visa fil

@@ -1,4 +1,4 @@
1
-import { c as _defineProperty } from './_rollupPluginBabelHelpers-bf46fecd.js';
1
+import { f as _defineProperty } from './_rollupPluginBabelHelpers-22a1b8cb.js';
2 2
 
3 3
 var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
4 4
 var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
@@ -9,7 +9,6 @@ function addImageProcess(url) {
9 9
     height: '36px'
10 10
   };
11 11
 
12
-  // 防止重复添加导致的url不正确
13 12
   if (url && url.indexOf('x-oss-process') > -1) {
14 13
     return url;
15 14
   }
@@ -33,4 +32,4 @@ function exportStyleSizeClass(styles, size) {
33 32
 }
34 33
 
35 34
 export { addImageProcess as a, exportStyleSizeClass as e };
36
-//# sourceMappingURL=utils-74f31cae.js.map
35
+//# sourceMappingURL=utils-3a540bc8.js.map

eslib/utils-74f31cae.js.map → eslib/utils-3a540bc8.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"utils-74f31cae.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\r\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\r\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\r\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\r\n\r\ninterface AddImageProcessOptions {\r\n  small?: boolean;\r\n  large?: boolean;\r\n  custom?: boolean;\r\n  width?: string;\r\n  height?: string;\r\n}\r\n\r\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\r\n  // 防止重复添加导致的url不正确\r\n  if (url && url.indexOf('x-oss-process') > -1) {\r\n    return url;\r\n  }\r\n  if (options.small) {\r\n    return url + IMAGE_PROCESS_SMALL;\r\n  }\r\n  if (options.large) {\r\n    return url + IMAGE_PROCESS_LARGE;\r\n  }\r\n  if (options.custom) {\r\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\r\n  }\r\n  return url + IMAGE_PROCESS;\r\n}\r\n\r\nexport function formatMoney(input: any, fuzz = 2) {\r\n  if (isNaN(+input)) {\r\n    return input;\r\n  }\r\n  return (+input).toFixed(fuzz);\r\n}\r\n\r\ntype classSize = 'small'|'normal'|'large';\r\n\r\nexport function exportStyleSizeClass(styles: any, size: classSize) {\r\n  return {\r\n    [styles[size]]: true,\r\n  }\r\n}"],"names":["IMAGE_PROCESS","IMAGE_PROCESS_SMALL","IMAGE_PROCESS_LARGE","addImageProcess","url","options","width","height","indexOf","small","large","custom","exportStyleSizeClass","styles","size"],"mappings":";;AACO,IAAMA,aAAa,GAAG,mCAAtB;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AAUP,AAAO,SAASC,eAAT,CAAyBC,GAAzB,EAA2G;MAArEC,OAAqE,uEAAnC;IAAEC,KAAK,EAAE,MAAT;IAAiBC,MAAM,EAAE;GAAU;;;MAE5GH,GAAG,IAAIA,GAAG,CAACI,OAAJ,CAAY,eAAZ,IAA+B,CAAC,CAA3C,EAA8C;WACrCJ,GAAP;;;MAEEC,OAAO,CAACI,KAAZ,EAAmB;WACVL,GAAG,GAAGH,mBAAb;;;MAEEI,OAAO,CAACK,KAAZ,EAAmB;WACVN,GAAG,GAAGF,mBAAb;;;MAEEG,OAAO,CAACM,MAAZ,EAAoB;qBACRP,GAAV,0DAA6DC,OAAO,CAACC,KAArE,gBAAgFD,OAAO,CAACE,MAAxF;;;SAEKH,GAAG,GAAGJ,aAAb;;AAGF,AASO,SAASY,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;6BAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;"}
1
+{"version":3,"file":"utils-3a540bc8.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\r\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\r\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\r\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\r\n\r\ninterface AddImageProcessOptions {\r\n  small?: boolean;\r\n  large?: boolean;\r\n  custom?: boolean;\r\n  width?: string;\r\n  height?: string;\r\n}\r\n\r\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\r\n  // 防止重复添加导致的url不正确\r\n  if (url && url.indexOf('x-oss-process') > -1) {\r\n    return url;\r\n  }\r\n  if (options.small) {\r\n    return url + IMAGE_PROCESS_SMALL;\r\n  }\r\n  if (options.large) {\r\n    return url + IMAGE_PROCESS_LARGE;\r\n  }\r\n  if (options.custom) {\r\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\r\n  }\r\n  return url + IMAGE_PROCESS;\r\n}\r\n\r\nexport function formatMoney(input: any, fuzz = 2) {\r\n  if (isNaN(+input)) {\r\n    return input;\r\n  }\r\n  return (+input).toFixed(fuzz);\r\n}\r\n\r\ntype classSize = 'small'|'normal'|'large';\r\n\r\nexport function exportStyleSizeClass(styles: any, size: classSize) {\r\n  return {\r\n    [styles[size]]: true,\r\n  }\r\n}"],"names":["IMAGE_PROCESS","IMAGE_PROCESS_SMALL","IMAGE_PROCESS_LARGE","addImageProcess","url","options","width","height","indexOf","small","large","custom","exportStyleSizeClass","styles","size"],"mappings":";;AACO,IAAMA,aAAa,GAAG,mCAAtB;AACA,IAAMC,mBAAmB,GAAG,mCAA5B;AACA,IAAMC,mBAAmB,GAAG,mCAA5B;AAUD,SAAUC,eAAV,CAA0BC,GAA1B,EAA0G;AAAA,MAAnEC,OAAmE,uEAAjC;AAAEC,IAAAA,KAAK,EAAE,MAAT;AAAiBC,IAAAA,MAAM,EAAE;AAAzB,GAAiC;;MAE1GH,GAAG,IAAIA,GAAG,CAACI,OAAJ,CAAY,eAAZ,IAA+B,CAAC,GAAG;WACrCJ;;;MAELC,OAAO,CAACI,OAAO;WACVL,GAAG,GAAGH;;;MAEXI,OAAO,CAACK,OAAO;WACVN,GAAG,GAAGF;;;MAEXG,OAAO,CAACM,QAAQ;qBACRP,6DAAmDC,OAAO,CAACC,qBAAWD,OAAO,CAACE;;;SAEnFH,GAAG,GAAGJ;;AAYT,SAAUY,oBAAV,CAA+BC,MAA/B,EAA4CC,IAA5C,EAA2D;6BAE5DD,MAAM,CAACC,IAAD,GAAS;;;;;"}

+ 34
- 0
lib/AllocWantedModal/index.d.ts Visa fil

@@ -0,0 +1,34 @@
1
+/// <reference types="react" />
2
+import React from "react";
3
+import { RefObject } from "react";
4
+import { Input } from "antd";
5
+interface AllocWantedModalProps {
6
+    allocValue: string | number | null;
7
+    sendValueRange: Array<string | number>;
8
+    sendRequest: Function;
9
+    sendGiftData: {
10
+        answerId: string | number;
11
+        questionId: string | number;
12
+        toUserId: string | number;
13
+    };
14
+    handleVisibleChange: (visible: boolean) => void;
15
+}
16
+interface AllocWantedModalState {
17
+    visible: boolean;
18
+    outRangeTip: boolean;
19
+    sendValue: string | number;
20
+}
21
+declare class AllocWantedModal extends React.Component<AllocWantedModalProps, AllocWantedModalState> {
22
+    ModalInputRef: RefObject<Input>;
23
+    ModalContentRef: RefObject<any>;
24
+    constructor(props: AllocWantedModalProps);
25
+    handleSendValueChange: (v: React.ReactText) => void;
26
+    checkSendValue: () => boolean;
27
+    handleCloseAction: () => void;
28
+    handleShowAction: () => void;
29
+    handleConfirm: () => null | undefined;
30
+    renderCloseButton: () => JSX.Element;
31
+    renderModalContent: () => JSX.Element;
32
+    render(): JSX.Element;
33
+}
34
+export { AllocWantedModal as default };

+ 37
- 97
lib/AllocWantedModal/index.js Visa fil

@@ -4,76 +4,30 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-0494a5d0.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
+require('react-dom');
11
+var Modal = require('../Modal/index.js');
10 12
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
11
-var reactDom = require('react-dom');
12
-var reactDom__default = _interopDefault(reactDom);
13
-var Modal$1 = require('../Modal-1001074b.js');
14 13
 var antd = require('antd');
15 14
 
16
-var Modal =
17
-/*#__PURE__*/
18
-function (_React$PureComponent) {
19
-  _rollupPluginBabelHelpers._inherits(Modal, _React$PureComponent);
20
-
21
-  function Modal() {
22
-    _rollupPluginBabelHelpers._classCallCheck(this, Modal);
23
-
24
-    return _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(Modal).apply(this, arguments));
25
-  }
26
-
27
-  _rollupPluginBabelHelpers._createClass(Modal, [{
28
-    key: "render",
29
-    value: function render() {
30
-      if (!Modal$1.isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
31
-
32
-      var DEFAULT_CONTAINER = document.getElementById('container');
33
-      var _this$props = this.props,
34
-          children = _this$props.children,
35
-          visible = _this$props.visible,
36
-          onCancel = _this$props.onCancel,
37
-          _this$props$container = _this$props.container,
38
-          container = _this$props$container === void 0 ? DEFAULT_CONTAINER : _this$props$container;
39
-      var finalMountContainer = document.body;
40
-
41
-      if (!container) {
42
-        if (!DEFAULT_CONTAINER) {
43
-          if (!Modal.hasShowWarning) {
44
-            Modal.hasShowWarning = true;
45
-          }
46
-
47
-          finalMountContainer = document.body;
48
-        } else {
49
-          if (!Modal.hasShowWarning) {
50
-            Modal.hasShowWarning = true;
51
-          }
52
-
53
-          finalMountContainer = DEFAULT_CONTAINER;
54
-        }
55
-      }
56
-
57
-      return visible && reactDom.createPortal(React__default.createElement("div", {
58
-        className: Modal$1.styles.wrapper
59
-      }, React__default.createElement("div", {
60
-        className: Modal$1.styles.overlay,
61
-        onClick: onCancel
62
-      }), React__default.createElement("div", {
63
-        className: Modal$1.styles.container
64
-      }, children)), finalMountContainer);
65
-    }
66
-  }]);
67
-
68
-  return Modal;
69
-}(React__default.PureComponent);
70
-
71
-_rollupPluginBabelHelpers._defineProperty(Modal, "hasShowWarning", false);
72
-
73
-const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACMUlEQVQ4T52Uz4tSURTHPxP9oCkKy0UuIqvZSAsrHHgLEaFSDCJoU0GpQaBgqOCmP6AWKrR5kIELNzZZUUQLlReFFowOboQK2oyLkgExsxqJoprixlx5yXs1dXbvnO/93HPPO+dM8WfbCuwANgNfgA/A0OzIlElgH3AIsBrEl4EXwEvguz4+CdsIHAV2/yVjEX4PVFez/SXXwzYAJ4GdawBJyWfggQTqYSKj/f8AklKR4V1gRcJ2rWY1Zvl8PqumaW8n4YFAwFqpVCb988BzCTsCzMiDDodjut1uX11YWGh4PJ470p/L5ZRIJHI+kUhcU1V1UXfRR+CWhF0ARPHHpqrqbCwWC7darXm32z2Xz+fdoVDobL1ef+z1eu8ZlOO2gIkeChrVKpPJHEylUhd7vd5rm822V9O0it/vf2hS16qAbQfOmBW+3W6HnU6nMhgMlux2+5XRaLRion0iYJuAsJGgWq2e8Pv9x5vN5lOXy6V0Op1XiqLkh8PhNwN9WdbsHLBFL6jVaqc8Hs+xYrE4FwwGnyWTyZl0On2p2+0uKopyo9/vf9XpfwA3JcwNHND/zUajcblUKpWj0WhT+qPRqD2bzUbi8fj1QqHwRgfrA/clbBtwGlgnBRaLZb3Rc0z8j4COfgJmgcP/MQEiw/LkbAqwGCmxMdZq7wDRKmI9/Tbo8ltk6NQ/2YTcAWrA+EeY7TPRewK4B5jWwcRB8Syxy5YmLzGD6XViQuSm/QSINjC0n/ltqZBTCKFgAAAAAElFTkSuQmCC';
74
-
75
-var css = ".AllocWantedModal_wantedModalContent__3tJgp {\n  background-color: white;\n  width: 360px;\n  height: 314px;\n  padding: 22px 28px;\n  border-radius: 7px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_title__31N0x {\n  font-size: 18px;\n  font-weight: 400;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueText__39a-6 {\n  color: #565656;\n  margin-top: 48px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k {\n  margin: 11px auto;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k .ant-input {\n  color: #FB4B56;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueTipBottom__2JmOx {\n  margin: 0 auto;\n  font-size: 12px;\n  text-align: center;\n  width: 208px;\n  color: #9B9B9B;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 23px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY {\n  color: white;\n  background-color: #71C135;\n  width: 170px;\n  height: 36px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:hover,\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:focus {\n  outline: none;\n  border-color: #8cd158;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t {\n  margin-left: 22px;\n  width: 20px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t .schedule {\n  font-size: 18px;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F img {\n  width: 100%;\n  height: 100%;\n}\n.AllocWantedModal_tipsView__3AZ9T h6 {\n  margin: 0;\n  font-size: 12px;\n  line-height: 22px;\n  color: #3D3D3D;\n}\n.AllocWantedModal_tipsView__3AZ9T div {\n  font-size: 12px;\n}\n.AllocWantedModal_outRangeTextTip__3LKBb .ant-tooltip-inner {\n  color: red;\n}\n";
76
-var styles = {"wantedModalContent":"AllocWantedModal_wantedModalContent__3tJgp","title":"AllocWantedModal_title__31N0x","wantedValueText":"AllocWantedModal_wantedValueText__39a-6","wantedInputNumber":"AllocWantedModal_wantedInputNumber__2qs1k","wantedValueTipBottom":"AllocWantedModal_wantedValueTipBottom__2JmOx","buttonRow":"AllocWantedModal_buttonRow__RkN1C","confirmButton":"AllocWantedModal_confirmButton__1oARY","tipsButton":"AllocWantedModal_tipsButton__QUN7t","closeButton":"AllocWantedModal_closeButton__1Os0F","tipsView":"AllocWantedModal_tipsView__3AZ9T","outRangeTextTip":"AllocWantedModal_outRangeTextTip__3LKBb"};
15
+const img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACMUlEQVQ4T52Uz4tSURTHPxP9oCkKy0UuIqvZSAsrHHgLEaFSDCJoU0GpQaBgqOCmP6AWKrR5kIELNzZZUUQLlReFFowOboQK2oyLkgExsxqJoprixlx5yXs1dXbvnO/93HPPO+dM8WfbCuwANgNfgA/A0OzIlElgH3AIsBrEl4EXwEvguz4+CdsIHAV2/yVjEX4PVFez/SXXwzYAJ4GdawBJyWfggQTqYSKj/f8AklKR4V1gRcJ2rWY1Zvl8PqumaW8n4YFAwFqpVCb988BzCTsCzMiDDodjut1uX11YWGh4PJ470p/L5ZRIJHI+kUhcU1V1UXfRR+CWhF0ARPHHpqrqbCwWC7darXm32z2Xz+fdoVDobL1ef+z1eu8ZlOO2gIkeChrVKpPJHEylUhd7vd5rm822V9O0it/vf2hS16qAbQfOmBW+3W6HnU6nMhgMlux2+5XRaLRion0iYJuAsJGgWq2e8Pv9x5vN5lOXy6V0Op1XiqLkh8PhNwN9WdbsHLBFL6jVaqc8Hs+xYrE4FwwGnyWTyZl0On2p2+0uKopyo9/vf9XpfwA3JcwNHND/zUajcblUKpWj0WhT+qPRqD2bzUbi8fj1QqHwRgfrA/clbBtwGlgnBRaLZb3Rc0z8j4COfgJmgcP/MQEiw/LkbAqwGCmxMdZq7wDRKmI9/Tbo8ltk6NQ/2YTcAWrA+EeY7TPRewK4B5jWwcRB8Syxy5YmLzGD6XViQuSm/QSINjC0n/ltqZBTCKFgAAAAAElFTkSuQmCC";
16
+
17
+var css = ".AllocWantedModal_wantedModalContent__1VodF {\n  background-color: white;\n  width: 360px;\n  height: 314px;\n  padding: 22px 28px;\n  border-radius: 7px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_title__31i9F {\n  font-size: 18px;\n  font-weight: 400;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedValueText___uNQe {\n  color: #565656;\n  margin-top: 48px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedInputNumber__3MyO5 {\n  margin: 11px auto;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedInputNumber__3MyO5 .ant-input {\n  color: #FB4B56;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_wantedValueTipBottom__3WBt0 {\n  margin: 0 auto;\n  font-size: 12px;\n  text-align: center;\n  width: 208px;\n  color: #9B9B9B;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 23px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_confirmButton__1yXDN {\n  color: white;\n  background-color: #71C135;\n  width: 170px;\n  height: 36px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_confirmButton__1yXDN:hover,\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_confirmButton__1yXDN:focus {\n  outline: none;\n  border-color: #8cd158;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_tipsButton__UmFpw {\n  margin-left: 22px;\n  width: 20px;\n}\n.AllocWantedModal_wantedModalContent__1VodF .AllocWantedModal_buttonRow__FegZX .AllocWantedModal_tipsButton__UmFpw .schedule {\n  font-size: 18px;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1d4p- {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1d4p- img {\n  width: 100%;\n  height: 100%;\n}\n.AllocWantedModal_tipsView__3my0J h6 {\n  margin: 0;\n  font-size: 12px;\n  line-height: 22px;\n  color: #3D3D3D;\n}\n.AllocWantedModal_tipsView__3my0J div {\n  font-size: 12px;\n}\n.AllocWantedModal_outRangeTextTip__3R4mw .ant-tooltip-inner {\n  color: red;\n}\n";
18
+var styles = {
19
+  "wantedModalContent": "AllocWantedModal_wantedModalContent__1VodF",
20
+  "title": "AllocWantedModal_title__31i9F",
21
+  "wantedValueText": "AllocWantedModal_wantedValueText___uNQe",
22
+  "wantedInputNumber": "AllocWantedModal_wantedInputNumber__3MyO5",
23
+  "wantedValueTipBottom": "AllocWantedModal_wantedValueTipBottom__3WBt0",
24
+  "buttonRow": "AllocWantedModal_buttonRow__FegZX",
25
+  "confirmButton": "AllocWantedModal_confirmButton__1yXDN",
26
+  "tipsButton": "AllocWantedModal_tipsButton__UmFpw",
27
+  "closeButton": "AllocWantedModal_closeButton__1d4p-",
28
+  "tipsView": "AllocWantedModal_tipsView__3my0J",
29
+  "outRangeTextTip": "AllocWantedModal_outRangeTextTip__3R4mw"
30
+};
77 31
 styleInject_es.styleInject(css);
78 32
 
79 33
 var AllocWantedModal =
@@ -88,11 +42,7 @@ function (_React$Component) {
88 42
 
89 43
     _this = _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(AllocWantedModal).call(this, props));
90 44
 
91
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "ModalInputRef", void 0);
92
-
93
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "ModalContentRef", void 0);
94
-
95
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleSendValueChange", function (v) {
45
+    _this.handleSendValueChange = function (v) {
96 46
       if (_this.state.outRangeTip) {
97 47
         _this.setState({
98 48
           outRangeTip: !_this.checkSendValue()
@@ -102,9 +52,9 @@ function (_React$Component) {
102 52
       _this.setState({
103 53
         sendValue: v
104 54
       });
105
-    });
55
+    };
106 56
 
107
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "checkSendValue", function () {
57
+    _this.checkSendValue = function () {
108 58
       var sendValueRange = _this.props.sendValueRange;
109 59
       var sendValue = _this.state.sendValue;
110 60
       var min = 0;
@@ -117,14 +67,12 @@ function (_React$Component) {
117 67
 
118 68
       if (sendValue > max) {
119 69
         _this.setState({
120
-          // sendValue: max,
121 70
           outRangeTip: true
122 71
         });
123 72
 
124 73
         return false;
125 74
       } else if (sendValue < min) {
126 75
         _this.setState({
127
-          // sendValue: max,
128 76
           outRangeTip: true
129 77
         });
130 78
 
@@ -132,9 +80,9 @@ function (_React$Component) {
132 80
       }
133 81
 
134 82
       return true;
135
-    });
83
+    };
136 84
 
137
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleCloseAction", function () {
85
+    _this.handleCloseAction = function () {
138 86
       _this.setState({
139 87
         visible: false,
140 88
         sendValue: 0,
@@ -142,40 +90,32 @@ function (_React$Component) {
142 90
       }, function () {
143 91
         _this.props.handleVisibleChange(false);
144 92
       });
145
-    });
93
+    };
146 94
 
147
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleShowAction", function () {
95
+    _this.handleShowAction = function () {
148 96
       _this.setState({
149 97
         visible: true
150 98
       }, function () {
151 99
         _this.props.handleVisibleChange(true);
152 100
       });
153
-    });
101
+    };
154 102
 
155
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleConfirm", function () {
103
+    _this.handleConfirm = function () {
156 104
       var sendGiftData = _this.props.sendGiftData;
157 105
 
158 106
       var checkResult = _this.checkSendValue();
159 107
 
160 108
       if (!checkResult) {
161
-        // 未通过验证
162 109
         return null;
163
-      } // 进行分配请求
164
-
110
+      }
165 111
 
166 112
       Promise.resolve(_this.props.sendRequest({
167 113
         business_type: 14,
168
-        // 表示悬赏答案
169 114
         ref_id: sendGiftData.answerId.toString(),
170
-        // 对应回答的id
171 115
         origin_id: sendGiftData.questionId,
172
-        // 对应问题的id
173 116
         to_user: sendGiftData.toUserId,
174
-        // 悬赏给谁
175 117
         goods_id: 2,
176
-        // 礼物id 帮币的话为2
177
-        num: Number(_this.state.sendValue) // 礼物数量
178
-
118
+        num: Number(_this.state.sendValue)
179 119
       })).then(function (res) {
180 120
         console.log("res: ", res);
181 121
 
@@ -185,9 +125,9 @@ function (_React$Component) {
185 125
           _this.handleCloseAction();
186 126
         }
187 127
       });
188
-    });
128
+    };
189 129
 
190
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "renderCloseButton", function () {
130
+    _this.renderCloseButton = function () {
191 131
       return React__default.createElement("div", {
192 132
         role: "button",
193 133
         tabIndex: -1,
@@ -198,10 +138,10 @@ function (_React$Component) {
198 138
       }, React__default.createElement("img", {
199 139
         src: img,
200 140
         alt: "close button for send wanted"
201
-      })); // return null;
202
-    });
141
+      }));
142
+    };
203 143
 
204
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "renderModalContent", function () {
144
+    _this.renderModalContent = function () {
205 145
       return React__default.createElement("div", {
206 146
         className: styles.wantedModalContent,
207 147
         ref: _this.ModalContentRef
@@ -254,7 +194,7 @@ function (_React$Component) {
254 194
       }, React__default.createElement("i", {
255 195
         className: "schedule schedule-icon_rewardtips"
256 196
       })))));
257
-    });
197
+    };
258 198
 
259 199
     _this.state = {
260 200
       visible: false,
@@ -277,7 +217,7 @@ function (_React$Component) {
277 217
         onClick: function onClick() {
278 218
           return _this2.handleShowAction();
279 219
         }
280
-      }, children), React__default.createElement(Modal, {
220
+      }, children), React__default.createElement(Modal.Modal, {
281 221
         visible: this.state.visible,
282 222
         onCancel: function onCancel() {
283 223
           return _this2.handleCloseAction();

+ 1
- 1
lib/AllocWantedModal/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 5
- 0
lib/BraftEditor/index.d.ts Visa fil

@@ -0,0 +1,5 @@
1
+/// <reference types="react" />
2
+declare const BarftEditorPage: ({ value, }: {
3
+    value: string;
4
+}) => JSX.Element;
5
+export { BarftEditorPage as default, BarftEditorPage };

+ 17470
- 16600
lib/BraftEditor/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
lib/BraftEditor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
lib/Common/index.d.ts Visa fil

@@ -0,0 +1 @@
1
+export { default as Modal } from "../Modal/index";

+ 4
- 9
lib/Common/index.js Visa fil

@@ -2,18 +2,13 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../_rollupPluginBabelHelpers-3469b70d.js');
5
+require('../_rollupPluginBabelHelpers-0494a5d0.js');
6 6
 require('react');
7
-require('../_commonjsHelpers-72d386ba.js');
8
-require('../index-44e17595.js');
9
-require('../style-inject.es-dcee06b6.js');
10
-var test = require('../test-71997d3e.js');
11 7
 require('react-dom');
12
-require('../Modal-1001074b.js');
13
-var Modal$1$1 = require('../Modal/index.js');
8
+var Modal = require('../Modal/index.js');
9
+require('../style-inject.es-dcee06b6.js');
14 10
 
15 11
 
16 12
 
17
-exports.Test = test.Test;
18
-exports.Modal = Modal$1$1.default;
13
+exports.Modal = Modal.default;
19 14
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/Common/index.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}

+ 29
- 0
lib/ConsumeListView/index.d.ts Visa fil

@@ -0,0 +1,29 @@
1
+/// <reference types="react" />
2
+import { Component, MouseEvent } from 'react';
3
+interface dataItem {
4
+    id?: string | number;
5
+    user_avatar?: string;
6
+    bill_price?: number;
7
+}
8
+interface Props {
9
+    isToggle: boolean;
10
+    onToggleChange: Function;
11
+    onConsumeItemClick: (e: MouseEvent, clickData: any) => any;
12
+    dataSource: Array<dataItem>;
13
+    listLength: number;
14
+    showLength: number;
15
+    options: {
16
+        avatarSize: number;
17
+        avatarMarginLeftAndRight: number;
18
+        kingdomWidth: number;
19
+        kingdomHeight: number;
20
+        kingdomPosition: [number, number];
21
+    };
22
+}
23
+declare class ConsumeListView extends Component<Props, {}> {
24
+    static defaultProps: Props;
25
+    renderConsumeItem(): JSX.Element[];
26
+    renderToggleButton(): JSX.Element | null;
27
+    render(): JSX.Element;
28
+}
29
+export { ConsumeListView as default };

+ 19
- 10
lib/ConsumeListView/index.js Visa fil

@@ -4,18 +4,27 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-0494a5d0.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
10 11
 require('../_commonjsHelpers-72d386ba.js');
11 12
 var index = require('../index-44e17595.js');
12
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
13
-var utils = require('../utils-9c8fdacf.js');
14
-
15
-const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=';
16
-
17
-var css = ".ConsumeListView_wrapper__28k7D {\n  display: flex;\n  justify-content: center;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd {\n  padding: 0;\n  margin: 0;\n  display: flex;\n  flex-wrap: wrap;\n  padding-top: 10px;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd li {\n  list-style: none;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 {\n  margin: 0 6px 10px;\n  text-align: center;\n  position: relative;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 .ConsumeListView_kingdomIcon__3tTNA {\n  position: absolute;\n  width: 24px;\n  height: 22px;\n  left: -6px;\n  top: -12px;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 .ConsumeListView_avatar__1WsJ3 {\n  margin: 0 auto 4px;\n  width: 36px;\n  height: 36px;\n  background-size: cover;\n  border-radius: 50%;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_consumeItem__bsmS9 .ConsumeListView_gray__oOyJP {\n  color: #9b9b9b;\n  font-size: 12px;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_toggle__2bNE3 {\n  margin: 0 6px 10px;\n  width: 36px;\n  height: 36px;\n  line-height: 36px;\n  background-color: #ececec;\n  border-radius: 50%;\n  color: #a8adb6;\n  cursor: pointer;\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACv0lEQVRIS8WXTW8SURSGzzAYNSYCA7SCUEqBioLtohvjD9CN7ozG36AmXfsRafxYN9b+BqNx50r3GjddqEVRRgSRVr4GWmOsERjfOwEzVYa5lAokEwJzznnOe865d+4IxPFRVXVPrVY73Wq1TgmCMIffYbjZ2q4b+E/GfysWi+WZw+F4it+/zMIKvQwAszcajXnYXEIwl1kwdh8JVPC1bLVaF5FE3cjHEFytVs8hyH04jvMAu9gUkexlp9P5uJv/P2DABCi9hbJehUPPinAkpKL8d6H8BpJQ9fbbAjOooigP8H2BIyi3CaAPJUm6qIdvAwN6G0qvcUfswxDK7wB+vePyB9zu6aNdKK9ROioUn+/0XAOz6W02m6kBBolXe1EUxSibdg0MtQn09Sav9yB2UL0A1QmBbQ6VSmWNd50OAu2sc5fL5WVTfAYD9WTQgP34Y9DOClB7D05X+nHcBdslAf19jnKfNAr2cmWVDuzfR7HoFCFTUyaqR8lUhr7/2KITc/Gu9mjrC6a4iLtjRhHfvv9Ea1/L5JLsNBML94Qz6OukTBWlTt5Dbjp2JGgUtsTAW7i713DxqSql0jkqrJfIKdloNhbpCmfQV8k0VZUNOuwZo2gkQFBmFPanKVibRFxpOUefC0VyOmw0E4+QqCt7s8mgH0ipbdKEb5wiIUB7N0UD9yy13l/O5CmbXyfJfpBm49MkihbSoKuA1jdpcsJD4aDfdA5gUDIdrr+jZLIFyuQK5AD8+NEQvXknU63+jUKTPgoGvDxQ1gJtuPpeTkw1U8+mnPU2MuWngN/DBW0bLe14A8mj3x+zX7TS+ryGi6JrMtoGMrItk6VULpcTqPtQHhIQuuB2uxOjfSwy1SM5CHQmYCRHn/azcjSHvQ586Mdb/aIb+oFeD2eHQOxM87j6eoXBBrGMa2evMPoE/sdL22+mI4T0ou1LqAAAAABJRU5ErkJggg==);\n  background-position: center;\n}\n.ConsumeListView_wrapper__28k7D .ConsumeListView_consumelist__2RETd .ConsumeListView_toggle__2bNE3.ConsumeListView_expand__26ifU {\n  transform: rotate(180deg);\n}\n";
18
-var styles = {"wrapper":"ConsumeListView_wrapper__28k7D","consumelist":"ConsumeListView_consumelist__2RETd","consumeItem":"ConsumeListView_consumeItem__bsmS9","kingdomIcon":"ConsumeListView_kingdomIcon__3tTNA","avatar":"ConsumeListView_avatar__1WsJ3","gray":"ConsumeListView_gray__oOyJP","toggle":"ConsumeListView_toggle__2bNE3","expand":"ConsumeListView_expand__26ifU"};
13
+var utils = require('../utils-3b83a370.js');
14
+
15
+const img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=";
16
+
17
+var css = ".ConsumeListView_wrapper__wlJjh {\n  display: flex;\n  justify-content: center;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR {\n  padding: 0;\n  margin: 0;\n  display: flex;\n  flex-wrap: wrap;\n  padding-top: 10px;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR li {\n  list-style: none;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ {\n  margin: 0 6px 10px;\n  text-align: center;\n  position: relative;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ .ConsumeListView_kingdomIcon__1nBe5 {\n  position: absolute;\n  width: 24px;\n  height: 22px;\n  left: -6px;\n  top: -12px;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ .ConsumeListView_avatar__1H-E5 {\n  margin: 0 auto 4px;\n  width: 36px;\n  height: 36px;\n  background-size: cover;\n  border-radius: 50%;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_consumeItem__1QGpJ .ConsumeListView_gray__3do1I {\n  color: #9b9b9b;\n  font-size: 12px;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_toggle__3eBTC {\n  margin: 0 6px 10px;\n  width: 36px;\n  height: 36px;\n  line-height: 36px;\n  background-color: #ececec;\n  border-radius: 50%;\n  color: #a8adb6;\n  cursor: pointer;\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACv0lEQVRIS8WXTW8SURSGzzAYNSYCA7SCUEqBioLtohvjD9CN7ozG36AmXfsRafxYN9b+BqNx50r3GjddqEVRRgSRVr4GWmOsERjfOwEzVYa5lAokEwJzznnOe865d+4IxPFRVXVPrVY73Wq1TgmCMIffYbjZ2q4b+E/GfysWi+WZw+F4it+/zMIKvQwAszcajXnYXEIwl1kwdh8JVPC1bLVaF5FE3cjHEFytVs8hyH04jvMAu9gUkexlp9P5uJv/P2DABCi9hbJehUPPinAkpKL8d6H8BpJQ9fbbAjOooigP8H2BIyi3CaAPJUm6qIdvAwN6G0qvcUfswxDK7wB+vePyB9zu6aNdKK9ROioUn+/0XAOz6W02m6kBBolXe1EUxSibdg0MtQn09Sav9yB2UL0A1QmBbQ6VSmWNd50OAu2sc5fL5WVTfAYD9WTQgP34Y9DOClB7D05X+nHcBdslAf19jnKfNAr2cmWVDuzfR7HoFCFTUyaqR8lUhr7/2KITc/Gu9mjrC6a4iLtjRhHfvv9Ea1/L5JLsNBML94Qz6OukTBWlTt5Dbjp2JGgUtsTAW7i713DxqSql0jkqrJfIKdloNhbpCmfQV8k0VZUNOuwZo2gkQFBmFPanKVibRFxpOUefC0VyOmw0E4+QqCt7s8mgH0ipbdKEb5wiIUB7N0UD9yy13l/O5CmbXyfJfpBm49MkihbSoKuA1jdpcsJD4aDfdA5gUDIdrr+jZLIFyuQK5AD8+NEQvXknU63+jUKTPgoGvDxQ1gJtuPpeTkw1U8+mnPU2MuWngN/DBW0bLe14A8mj3x+zX7TS+ryGi6JrMtoGMrItk6VULpcTqPtQHhIQuuB2uxOjfSwy1SM5CHQmYCRHn/azcjSHvQ586Mdb/aIb+oFeD2eHQOxM87j6eoXBBrGMa2evMPoE/sdL22+mI4T0ou1LqAAAAABJRU5ErkJggg==);\n  background-position: center;\n}\n.ConsumeListView_wrapper__wlJjh .ConsumeListView_consumelist__2dMCR .ConsumeListView_toggle__3eBTC.ConsumeListView_expand__3l80q {\n  transform: rotate(180deg);\n}\n";
18
+var styles = {
19
+  "wrapper": "ConsumeListView_wrapper__wlJjh",
20
+  "consumelist": "ConsumeListView_consumelist__2dMCR",
21
+  "consumeItem": "ConsumeListView_consumeItem__1QGpJ",
22
+  "kingdomIcon": "ConsumeListView_kingdomIcon__1nBe5",
23
+  "avatar": "ConsumeListView_avatar__1H-E5",
24
+  "gray": "ConsumeListView_gray__3do1I",
25
+  "toggle": "ConsumeListView_toggle__3eBTC",
26
+  "expand": "ConsumeListView_expand__3l80q"
27
+};
19 28
 styleInject_es.styleInject(css);
20 29
 
21 30
 var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
@@ -143,7 +152,7 @@ function (_Component) {
143 152
   return ConsumeListView;
144 153
 }(React.Component);
145 154
 
146
-_rollupPluginBabelHelpers._defineProperty(ConsumeListView, "defaultProps", {
155
+ConsumeListView.defaultProps = {
147 156
   isToggle: false,
148 157
   onToggleChange: function onToggleChange() {},
149 158
   onConsumeItemClick: function onConsumeItemClick() {},
@@ -157,7 +166,7 @@ _rollupPluginBabelHelpers._defineProperty(ConsumeListView, "defaultProps", {
157 166
     kingdomHeight: 22,
158 167
     kingdomPosition: [-6, -12]
159 168
   }
160
-});
169
+};
161 170
 
162 171
 exports.default = ConsumeListView;
163 172
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/ConsumeListView/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 0
lib/Draft-4ccef031.d.ts Visa fil


lib/Draft-a5afe13a.js → lib/Draft-4ccef031.js Visa fil

@@ -1,8 +1,8 @@
1 1
 'use strict';
2 2
 
3 3
 require('react');
4
-var _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
5 4
 require('react-dom');
5
+var _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
6 6
 var _reactDom_commonjsExternal = require('./_react-dom_commonjs-external-55867475.js');
7 7
 
8 8
 /*
@@ -17694,4 +17694,4 @@ exports.Draft_15 = Draft_15;
17694 17694
 exports.Draft_20 = Draft_20;
17695 17695
 exports.Draft_3 = Draft_3;
17696 17696
 exports.Draft_4 = Draft_4;
17697
-//# sourceMappingURL=Draft-a5afe13a.js.map
17697
+//# sourceMappingURL=Draft-4ccef031.js.map

lib/Draft-4ccef031.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 3
- 0
lib/Editor/index.d.ts Visa fil

@@ -0,0 +1,3 @@
1
+export { default as BraftEditor } from "../BraftEditor/index";
2
+export { default as RichTextEditor } from "../RichTextEditor/index";
3
+export { default as RichTextEditorForSlate } from "../RichTextEditorForSlate/index";

+ 4
- 4
lib/Editor/index.js Visa fil

@@ -2,12 +2,12 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../_rollupPluginBabelHelpers-3469b70d.js');
5
+require('../_rollupPluginBabelHelpers-0494a5d0.js');
6 6
 require('react');
7
-require('../_commonjsHelpers-72d386ba.js');
8
-require('../style-inject.es-dcee06b6.js');
9 7
 require('react-dom');
10
-require('../Draft-a5afe13a.js');
8
+require('../style-inject.es-dcee06b6.js');
9
+require('../_commonjsHelpers-72d386ba.js');
10
+require('../Draft-4ccef031.js');
11 11
 require('../_react-dom_commonjs-external-55867475.js');
12 12
 var BraftEditor = require('../BraftEditor/index.js');
13 13
 require('react-dom/server');

+ 0
- 16
lib/Modal-1001074b.js Visa fil

@@ -1,16 +0,0 @@
1
-'use strict';
2
-
3
-var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-3469b70d.js');
4
-var styleInject_es = require('./style-inject.es-dcee06b6.js');
5
-
6
-function isBrowser() {
7
-  return !((typeof window === "undefined" ? "undefined" : _rollupPluginBabelHelpers._typeof(window)) === undefined);
8
-}
9
-
10
-var css = ".Modal_wrapper__3fGor {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n.Modal_overlay__iXPZ2 {\n  width: 100vw;\n  height: 100vh;\n  background: #000;\n  animation: Modal_overlayer__3enBo 0.3s forwards;\n}\n.Modal_container__3PbHe {\n  position: absolute;\n  top: 20%;\n  left: 50%;\n  animation: Modal_container__3PbHe 0.3s forwards;\n}\n@keyframes Modal_overlayer__3enBo {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0.3;\n  }\n}\n@keyframes Modal_container__3PbHe {\n  from {\n    transform: translateX(-50%) scale(0, 0);\n  }\n  to {\n    transform: translateX(-50%) scale(1, 1);\n  }\n}\n";
11
-var styles = {"wrapper":"Modal_wrapper__3fGor","overlay":"Modal_overlay__iXPZ2","overlayer":"Modal_overlayer__3enBo","container":"Modal_container__3PbHe"};
12
-styleInject_es.styleInject(css);
13
-
14
-exports.isBrowser = isBrowser;
15
-exports.styles = styles;
16
-//# sourceMappingURL=Modal-1001074b.js.map

+ 0
- 1
lib/Modal-1001074b.js.map Visa fil

@@ -1 +0,0 @@
1
-{"version":3,"file":"Modal-67d33baf.js","sources":["../src/components/Common/Utils/utils.ts"],"sourcesContent":["export function isBrowser() {\r\n  return !(typeof window === undefined);\r\n}"],"names":["isBrowser","window","undefined"],"mappings":";;;;;AAAO,SAASA,SAAT,GAAqB;SACnB,EAAE,QAAOC,MAAP,mEAAOA,MAAP,OAAkBC,SAApB,CAAP;;;;;;;;;;"}

+ 12
- 0
lib/Modal/index.d.ts Visa fil

@@ -0,0 +1,12 @@
1
+/// <reference types="react" />
2
+import React from 'react';
3
+interface ModalProps {
4
+    visible: boolean;
5
+    onCancel: (e: any) => void;
6
+    container?: HTMLElement | null;
7
+}
8
+declare class Modal extends React.PureComponent<ModalProps> {
9
+    static hasShowWarning: boolean;
10
+    render(): false | React.ReactPortal | null;
11
+}
12
+export { Modal as default, Modal, ModalProps };

+ 20
- 10
lib/Modal/index.js Visa fil

@@ -4,13 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-0494a5d0.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-require('../style-inject.es-dcee06b6.js');
11 10
 var reactDom = require('react-dom');
12 11
 var reactDom__default = _interopDefault(reactDom);
13
-var Modal$1 = require('../Modal-1001074b.js');
12
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
13
+
14
+function isBrowser() {
15
+  return !((typeof window === "undefined" ? "undefined" : _rollupPluginBabelHelpers._typeof(window)) === undefined);
16
+}
17
+
18
+var css = ".Modal_wrapper__2hzaC {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n.Modal_overlay__3iNdm {\n  width: 100vw;\n  height: 100vh;\n  background: #000;\n  animation: Modal_overlayer__1zSH9 0.3s forwards;\n}\n.Modal_container__2veos {\n  position: absolute;\n  top: 20%;\n  left: 50%;\n  animation: Modal_container__2veos 0.3s forwards;\n}\n@keyframes Modal_overlayer__1zSH9 {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0.3;\n  }\n}\n@keyframes Modal_container__2veos {\n  from {\n    transform: translateX(-50%) scale(0, 0);\n  }\n  to {\n    transform: translateX(-50%) scale(1, 1);\n  }\n}\n";
19
+var styles = {
20
+  "wrapper": "Modal_wrapper__2hzaC",
21
+  "overlay": "Modal_overlay__3iNdm",
22
+  "overlayer": "Modal_overlayer__1zSH9",
23
+  "container": "Modal_container__2veos"
24
+};
25
+styleInject_es.styleInject(css);
14 26
 
15 27
 var Modal =
16 28
 /*#__PURE__*/
@@ -26,8 +38,7 @@ function (_React$PureComponent) {
26 38
   _rollupPluginBabelHelpers._createClass(Modal, [{
27 39
     key: "render",
28 40
     value: function render() {
29
-      if (!Modal$1.isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
30
-
41
+      if (!isBrowser()) return null;
31 42
       var DEFAULT_CONTAINER = document.getElementById('container');
32 43
       var _this$props = this.props,
33 44
           children = _this$props.children,
@@ -54,20 +65,19 @@ function (_React$PureComponent) {
54 65
       }
55 66
 
56 67
       return visible && reactDom.createPortal(React__default.createElement("div", {
57
-        className: Modal$1.styles.wrapper
68
+        className: styles.wrapper
58 69
       }, React__default.createElement("div", {
59
-        className: Modal$1.styles.overlay,
70
+        className: styles.overlay,
60 71
         onClick: onCancel
61 72
       }), React__default.createElement("div", {
62
-        className: Modal$1.styles.container
73
+        className: styles.container
63 74
       }, children)), finalMountContainer);
64 75
     }
65 76
   }]);
66 77
 
67 78
   return Modal;
68 79
 }(React__default.PureComponent);
69
-
70
-_rollupPluginBabelHelpers._defineProperty(Modal, "hasShowWarning", false);
80
+Modal.hasShowWarning = false;
71 81
 
72 82
 exports.Modal = Modal;
73 83
 exports.default = Modal;

+ 1
- 1
lib/Modal/index.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":["../../src/components/Common/Modal/index.tsx"],"sourcesContent":["import React from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { isBrowser } from '../Utils/utils';\r\n\r\nimport styles from './Modal.less';\r\n\r\nexport interface ModalProps {\r\n  visible: boolean\r\n  onCancel: (e: any) => void\r\n  container?: HTMLElement | null\r\n}\r\n\r\nexport class Modal extends React.PureComponent<ModalProps> {\r\n  static hasShowWarning = false;\r\n\r\n  render() {\r\n    if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错\r\n    const DEFAULT_CONTAINER: HTMLElement | null = document.getElementById('container');\r\n    const { children, visible, onCancel, container = DEFAULT_CONTAINER } = this.props\r\n    let finalMountContainer: HTMLElement = document.body;\r\n    if (!container) {\r\n      if (!DEFAULT_CONTAINER) {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = document.body;\r\n      } else {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = DEFAULT_CONTAINER;\r\n      }\r\n    }\r\n    return visible && createPortal(\r\n      <div className={ styles.wrapper }>\r\n        <div\r\n          className={ styles.overlay }\r\n          onClick={ onCancel }\r\n        />\r\n        <div\r\n          className={ styles.container }\r\n        >\r\n          { children }\r\n        </div>\r\n      </div>,\r\n      finalMountContainer,\r\n    )\r\n  }\r\n}\r\n\r\nexport default Modal;"],"names":["Modal","isBrowser","DEFAULT_CONTAINER","document","getElementById","props","children","visible","onCancel","container","finalMountContainer","body","hasShowWarning","createPortal","React","styles","wrapper","overlay","PureComponent"],"mappings":";;;;;;;;;;;;;;IAYaA,KAAb;;AAAA;;;;;;;;;;;6BAGW;UACH,CAACC,iBAAS,EAAd,EAAkB,OAAO,IAAP,CADX;;UAEDC,iBAAqC,GAAGC,QAAQ,CAACC,cAAT,CAAwB,WAAxB,CAA9C;wBACuE,KAAKC,KAHrE;UAGCC,QAHD,eAGCA,QAHD;UAGWC,OAHX,eAGWA,OAHX;UAGoBC,QAHpB,eAGoBA,QAHpB;8CAG8BC,SAH9B;UAG8BA,SAH9B,sCAG0CP,iBAH1C;UAIHQ,mBAAgC,GAAGP,QAAQ,CAACQ,IAAhD;;UACI,CAACF,SAAL,EAAgB;YACV,CAACP,iBAAL,EAAwB;cAClB,CAACF,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGP,QAAQ,CAACQ,IAA/B;SAJF,MAKO;cACD,CAACX,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGR,iBAAtB;;;;aAGGK,OAAO,IAAIM,qBAAY,CAC5BC;QAAK,SAAS,EAAGC,cAAM,CAACC;SACtBF;QACE,SAAS,EAAGC,cAAM,CAACE,OADrB;QAEE,OAAO,EAAGT;QAHd,EAKEM;QACE,SAAS,EAAGC,cAAM,CAACN;SAEjBH,QAHJ,CALF,CAD4B,EAY5BI,mBAZ4B,CAA9B;;;;;EArBuBI,cAAK,CAACI,aAAjC;;0CAAalB,yBACa;;;;;"}
1
+{"version":3,"file":"index.js","sources":["../../src/components/Common/Utils/utils.ts","../../src/components/Common/Modal/index.tsx"],"sourcesContent":["export function isBrowser() {\r\n  return !(typeof window === undefined);\r\n}","import React from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { isBrowser } from '../Utils/utils';\r\n\r\nimport styles from './Modal.less';\r\n\r\nexport interface ModalProps {\r\n  visible: boolean\r\n  onCancel: (e: any) => void\r\n  container?: HTMLElement | null\r\n}\r\n\r\nexport class Modal extends React.PureComponent<ModalProps> {\r\n  static hasShowWarning = false;\r\n\r\n  render() {\r\n    if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错\r\n    const DEFAULT_CONTAINER: HTMLElement | null = document.getElementById('container');\r\n    const { children, visible, onCancel, container = DEFAULT_CONTAINER } = this.props\r\n    let finalMountContainer: HTMLElement = document.body;\r\n    if (!container) {\r\n      if (!DEFAULT_CONTAINER) {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = document.body;\r\n      } else {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = DEFAULT_CONTAINER;\r\n      }\r\n    }\r\n    return visible && createPortal(\r\n      <div className={ styles.wrapper }>\r\n        <div\r\n          className={ styles.overlay }\r\n          onClick={ onCancel }\r\n        />\r\n        <div\r\n          className={ styles.container }\r\n        >\r\n          { children }\r\n        </div>\r\n      </div>,\r\n      finalMountContainer,\r\n    )\r\n  }\r\n}\r\n\r\nexport default Modal;"],"names":["isBrowser","window","undefined","Modal","DEFAULT_CONTAINER","document","getElementById","props","children","visible","onCancel","container","finalMountContainer","body","hasShowWarning","createPortal","React","createElement","className","styles","wrapper","overlay","onClick","PureComponent"],"mappings":";;;;;;;;;;;;;AAAM,SAAUA,SAAV,GAAmB;SAChB,EAAE,QAAOC,MAAP,mEAAOA,MAAP,OAAkBC,SAApB;;;;;;;;;;;;ICWIC,KAAb;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,6BAGQ;UACA,CAACH,SAAS,IAAI,OAAO,IAAP;UACZI,iBAAiB,GAAuBC,QAAQ,CAACC,cAAT,CAAwB,WAAxB;AAF1C,wBAGmE,KAAKC,KAHxE;AAAA,UAGIC,QAHJ,eAGIA,QAHJ;AAAA,UAGcC,OAHd,eAGcA,OAHd;AAAA,UAGuBC,QAHvB,eAGuBA,QAHvB;AAAA,8CAGiCC,SAHjC;AAAA,UAGiCA,SAHjC,sCAG6CP,iBAH7C;UAIAQ,mBAAmB,GAAgBP,QAAQ,CAACQ;;UAC5C,CAACF,WAAW;YACV,CAACP,mBAAmB;cAClB,CAACD,KAAK,CAACW,gBAAgB;AACzBX,YAAAA,KAAK,CAACW,cAAN,GAAuB,IAAvB;;;AAEFF,UAAAA,mBAAmB,GAAGP,QAAQ,CAACQ,IAA/B;AAJF,eAKO;cACD,CAACV,KAAK,CAACW,gBAAgB;AACzBX,YAAAA,KAAK,CAACW,cAAN,GAAuB,IAAvB;;;AAEFF,UAAAA,mBAAmB,GAAGR,iBAAtB;;;;aAGGK,OAAO,IAAIM,qBAAY,CAC5BC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,QAAAA,SAAS,EAAGC,MAAM,CAACC;AAAxB,OAAA,EACEJ,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,QAAAA,SAAS,EAAGC,MAAM,CAACE,OADrB;AAEEC,QAAAA,OAAO,EAAGZ;AAFZ,OAAA,CADF,EAKEM,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,QAAAA,SAAS,EAAGC,MAAM,CAACR;AADrB,OAAA,EAGIH,QAHJ,CALF,CAD4B,EAY5BI,mBAZ4B;;AArBlC;;AAAA;AAAA,EAA2BI,cAAK,CAACO,aAAjC;AACSpB,KAAA,CAAAW,cAAA,GAAiB,KAAjB;;;;;"}

+ 28
- 0
lib/PayPlatformOptions/index.d.ts Visa fil

@@ -0,0 +1,28 @@
1
+/// <reference types="react" />
2
+type PAY_CHANNEL_VALUE = "PAYPAL_PAYPAL" | "ALI_WEB" | "ALI_WAP" | "WX_WAP" | "WX_NATIVE";
3
+type PAY_CHANNEL_CATEGORY_VALUE = "Alipay" | "Wechat" | "Paypal";
4
+interface PAY_CHANNEL_TYPE {
5
+    PAYPAL: PAY_CHANNEL_VALUE;
6
+    ALI_WEB: PAY_CHANNEL_VALUE;
7
+    ALI_WAP: PAY_CHANNEL_VALUE;
8
+    WX_WAP: PAY_CHANNEL_VALUE;
9
+    WX_NATIVE: PAY_CHANNEL_VALUE;
10
+}
11
+interface PAY_CHANNEL_CATEGORY {
12
+    ALI: PAY_CHANNEL_CATEGORY_VALUE;
13
+    WX: PAY_CHANNEL_CATEGORY_VALUE;
14
+    PAYPAL: PAY_CHANNEL_CATEGORY_VALUE;
15
+}
16
+interface Props {
17
+    payChannel: PAY_CHANNEL_VALUE;
18
+    onPayChannelChange: (value: PAY_CHANNEL_VALUE) => void;
19
+    isMobile: boolean;
20
+    size: "small" | "normal" | "large";
21
+    withTitle: boolean;
22
+    titleText?: string;
23
+    locale: "zh" | "en";
24
+}
25
+declare const PAY_CHANNEL: PAY_CHANNEL_TYPE;
26
+declare const PAY_CHANNEL_CATEGORY$0: PAY_CHANNEL_CATEGORY;
27
+declare const PayPlatformOptions: ({ payChannel, onPayChannelChange, size, isMobile, withTitle, titleText, locale }: Props) => JSX.Element;
28
+export { PayPlatformOptions as default, PAY_CHANNEL, PAY_CHANNEL_CATEGORY$0 as PAY_CHANNEL_CATEGORY };

+ 27
- 13
lib/PayPlatformOptions/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
lib/PayPlatformOptions/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 7
- 0
lib/Payment/index.d.ts Visa fil

@@ -0,0 +1,7 @@
1
+export { default as ConsumeListView } from "../ConsumeListView/index";
2
+export { default as PayPlatformOptions } from "../PayPlatformOptions/index";
3
+export { default as PriceOptions } from "../PriceOptions/index";
4
+export { default as WaitPayInfoView } from "../WaitPayInfoView/index";
5
+export { default as AllocWantedModal } from "../AllocWantedModal/index";
6
+export { default as WantedPublishPopover } from "../WantedPublishPopover/index";
7
+export { default as WantedPublishView } from "../WantedPublishView/index";

+ 5
- 5
lib/Payment/index.js Visa fil

@@ -2,14 +2,14 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../_rollupPluginBabelHelpers-3469b70d.js');
5
+require('../_rollupPluginBabelHelpers-0494a5d0.js');
6 6
 require('react');
7
+require('react-dom');
8
+require('../Modal/index.js');
9
+require('../style-inject.es-dcee06b6.js');
7 10
 require('../_commonjsHelpers-72d386ba.js');
8 11
 require('../index-44e17595.js');
9
-require('../style-inject.es-dcee06b6.js');
10
-require('react-dom');
11
-require('../Modal-1001074b.js');
12
-require('../utils-9c8fdacf.js');
12
+require('../utils-3b83a370.js');
13 13
 var ConsumeListView = require('../ConsumeListView/index.js');
14 14
 var PayPlatformOptions = require('../PayPlatformOptions/index.js');
15 15
 require('antd');

+ 23
- 0
lib/PriceOptions/index.d.ts Visa fil

@@ -0,0 +1,23 @@
1
+/// <reference types="react" />
2
+import React from "react";
3
+interface Props {
4
+    rowMode: "single" | "multi";
5
+    price: number;
6
+    onPriceChange: (v: number) => void;
7
+    size: "small" | "normal" | "large";
8
+    focusScroll: boolean;
9
+    withTitle: boolean;
10
+    titleText?: string | JSX.Element[] | JSX.Element;
11
+    inputPlaceholderText?: string;
12
+    priceOptions?: Array<any>;
13
+    priceRender?: Function;
14
+    inputPriceRender?: Function;
15
+    inputSuffix?: string | JSX.Element[] | JSX.Element;
16
+    injectOptions?: {
17
+        priceBtnClass: any;
18
+        priceInputClass: any;
19
+    };
20
+    inputRef: React.RefObject<any>;
21
+}
22
+declare const PriceOptions: ({ price, onPriceChange, rowMode, size, focusScroll, withTitle, titleText, inputPlaceholderText, priceOptions, priceRender, inputPriceRender, inputSuffix, injectOptions, inputRef }: Props) => JSX.Element;
23
+export { PriceOptions as default };

+ 16
- 7
lib/PriceOptions/index.js Visa fil

@@ -4,16 +4,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-0494a5d0.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
10 11
 require('../_commonjsHelpers-72d386ba.js');
11 12
 var index = require('../index-44e17595.js');
12
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
13 13
 var antd = require('antd');
14 14
 
15
-var css = ".PriceOptions_options__J-ZSS {\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__J-ZSS p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 {\n  margin-left: 10px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a {\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 {\n  padding: 20px 20px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceBtn__Xz4m_ {\n  display: flex;\n  justify-content: space-between;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  display: inline-block;\n  background-color: #fff;\n  width: 74px;\n  height: 36px;\n  line-height: 36px;\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background-color: #fff;\n  color: #FF3266FF;\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  border-radius: 6px;\n  height: 36px;\n  width: auto;\n}\n";
16
-var styles = {"options":"PriceOptions_options__J-ZSS","infoItem":"PriceOptions_infoItem__3IL3a","priceItem":"PriceOptions_priceItem__rJ9o2","active":"PriceOptions_active__3WyAU","priceInput":"PriceOptions_priceInput__1MrVy","rate":"PriceOptions_rate__QgHQ3","small":"PriceOptions_small__2-wzl","multi":"PriceOptions_multi__N_Xc4","priceBtn":"PriceOptions_priceBtn__Xz4m_"};
15
+var css = ".PriceOptions_options__ifYbC {\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__ifYbC p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx {\n  padding-right: 0;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3.PriceOptions_active__154by {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_rate__17U-9 {\n  margin-left: 10px;\n}\n.PriceOptions_options__ifYbC .PriceOptions_infoItem__246mx .PriceOptions_rate__17U-9 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx {\n  text-align: center;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_small__2UZ7N .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z {\n  padding: 20px 20px;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx {\n  padding-right: 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceBtn__1UaE8 {\n  display: flex;\n  justify-content: space-between;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3 {\n  display: inline-block;\n  background-color: #fff;\n  width: 74px;\n  height: 36px;\n  line-height: 36px;\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceItem__3CPe3.PriceOptions_active__154by {\n  background-color: #fff;\n  color: #FF3266FF;\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  border-radius: 6px;\n  height: 36px;\n  width: auto;\n}\n";
16
+var styles = {
17
+  "options": "PriceOptions_options__ifYbC",
18
+  "infoItem": "PriceOptions_infoItem__246mx",
19
+  "priceItem": "PriceOptions_priceItem__3CPe3",
20
+  "active": "PriceOptions_active__154by",
21
+  "priceInput": "PriceOptions_priceInput__2JFc0",
22
+  "rate": "PriceOptions_rate__17U-9",
23
+  "small": "PriceOptions_small__2UZ7N",
24
+  "multi": "PriceOptions_multi__2fM8z",
25
+  "priceBtn": "PriceOptions_priceBtn__1UaE8"
26
+};
17 27
 styleInject_es.styleInject(css);
18 28
 
19 29
 var PriceOptions = function PriceOptions(_ref) {
@@ -48,7 +58,7 @@ var PriceOptions = function PriceOptions(_ref) {
48 58
     priceInputClass: {}
49 59
   } : _ref$injectOptions,
50 60
       inputRef = _ref.inputRef;
51
-  var defaultOptions = priceOptions; // 控制是否为其他金额输入情况
61
+  var defaultOptions = priceOptions;
52 62
 
53 63
   var _useState = React.useState(false),
54 64
       _useState2 = _rollupPluginBabelHelpers._slicedToArray(_useState, 2),
@@ -94,8 +104,7 @@ var PriceOptions = function PriceOptions(_ref) {
94 104
 
95 105
       if (Number.isNaN(n)) {
96 106
         return;
97
-      } // 测试暂时改成1分
98
-
107
+      }
99 108
 
100 109
       setInputPrice("".concat(n * 100));
101 110
       onPriceChange(n * 100);

+ 1
- 1
lib/PriceOptions/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 21
- 0
lib/RichTextEditor/index.d.ts Visa fil

@@ -0,0 +1,21 @@
1
+/// <reference types="react" />
2
+import React from "react";
3
+import { EditorState, DraftEditorCommand, ContentBlock } from "draft-js";
4
+interface RichTextEditorProps {
5
+}
6
+interface RichTextEditorState {
7
+    editorState: EditorState;
8
+}
9
+declare class RichTextEditor extends React.Component<RichTextEditorProps, RichTextEditorState> {
10
+    constructor(props: RichTextEditorProps);
11
+    onChange: (editorState: EditorState) => void;
12
+    handleKeyCommand(command: DraftEditorCommand, editorState: EditorState): "handled" | "not-handled";
13
+    _onBoldClick(): void;
14
+    _onLinkClick(): void;
15
+    _onEmojiClick(e: React.MouseEvent, emojiCode: string): void;
16
+    _onCheckRange(): void;
17
+    defaultBlockStyleFn(contentBlock: ContentBlock): string;
18
+    defaultBlockRenderFn(contentBlock: ContentBlock): ContentBlock;
19
+    render(): JSX.Element;
20
+}
21
+export { RichTextEditor as default };

+ 13
- 24
lib/RichTextEditor/index.js Visa fil

@@ -4,34 +4,34 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-0494a5d0.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-require('../_commonjsHelpers-72d386ba.js');
11
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
12 10
 require('react-dom');
13
-var Draft = require('../Draft-a5afe13a.js');
11
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
12
+require('../_commonjsHelpers-72d386ba.js');
13
+var Draft = require('../Draft-4ccef031.js');
14 14
 require('../_react-dom_commonjs-external-55867475.js');
15 15
 
16
-var css = ".RichTextEditor_wrapper__3X3Yv .RichTextEditor_btnListWrapper__vUaki {\n  display: flex;\n}\n.RichTextEditor_wrapper__3X3Yv .RichTextEditor_editorWrapper__3UFgF {\n  border: 1px solid #ccc;\n}\n";
17
-var styles = {"wrapper":"RichTextEditor_wrapper__3X3Yv","btnListWrapper":"RichTextEditor_btnListWrapper__vUaki","editorWrapper":"RichTextEditor_editorWrapper__3UFgF"};
16
+var css = ".RichTextEditor_wrapper__A033L .RichTextEditor_btnListWrapper__3iF9d {\n  display: flex;\n}\n.RichTextEditor_wrapper__A033L .RichTextEditor_editorWrapper__PzQ_1 {\n  border: 1px solid #ccc;\n}\n";
17
+var styles = {
18
+  "wrapper": "RichTextEditor_wrapper__A033L",
19
+  "btnListWrapper": "RichTextEditor_btnListWrapper__3iF9d",
20
+  "editorWrapper": "RichTextEditor_editorWrapper__PzQ_1"
21
+};
18 22
 styleInject_es.styleInject(css);
19 23
 
20
-// 自定义组件,用于超链接
21 24
 var Link = function Link(props) {
22
-  // 这里通过contentState来获取entity�,之后通过getData获取entity中包含的数据
23 25
   var _props$contentState$g = props.contentState.getEntity(props.entityKey).getData(),
24 26
       url = _props$contentState$g.url;
25 27
 
26 28
   return React__default.createElement("a", {
27 29
     href: url
28 30
   }, props.children);
29
-}; // decorator,用于超链接
30
-
31
+};
31 32
 
32 33
 var decorator = new Draft.Draft_4([{
33 34
   strategy: function strategy(contentBlock, callback, contentState) {
34
-    // 这个方法接收2个函数作为参数,如果第一个参数的函数执行时�返回true,就会执行第二个参数函数,同时会�将匹配的�字符的起始位置和结束位置传递给第二个参数。
35 35
     contentBlock.findEntityRanges(function (character) {
36 36
       var entityKey = character.getEntity();
37 37
       return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
@@ -49,7 +49,6 @@ var decorator = new Draft.Draft_4([{
49 49
       callback.apply(void 0, arguments);
50 50
     });
51 51
   },
52
-  // component: (props: any) => (<span style={{ color: 'red' }}>[Emoji]</span>)
53 52
   component: function component(props) {
54 53
     return React__default.createElement("i", {
55 54
       style: {
@@ -75,9 +74,6 @@ function (_React$Component) {
75 74
     _rollupPluginBabelHelpers._classCallCheck(this, RichTextEditor);
76 75
 
77 76
     _this = _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(RichTextEditor).call(this, props));
78
-
79
-    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "onChange", void 0);
80
-
81 77
     _this.state = {
82 78
       editorState: Draft.Draft_3.createEmpty(decorator)
83 79
     };
@@ -114,10 +110,8 @@ function (_React$Component) {
114 110
               endOffset = _ref[1];
115 111
 
116 112
           if (startOffset === endOffset) {
117
-            // 未选中状态
118 113
             console.log(selectionState.getAnchorKey());
119
-          } // 选中状态
120
-
114
+          }
121 115
 
122 116
           break;
123 117
       }
@@ -154,12 +148,7 @@ function (_React$Component) {
154 148
       });
155 149
       var entityKey = EMOJIEntity.getLastCreatedEntityKey();
156 150
       var ncsWithEntity = Draft.Draft_14.insertText(contentState, selectionState, 'e', undefined, entityKey);
157
-      var newEditorState = Draft.Draft_3.push(editorState, ncsWithEntity, 'insert-characters'); // const newEditorState = AtomicBlockUtils.insertAtomicBlock(
158
-      //   editorState,
159
-      //   entityKey,
160
-      //   ' '
161
-      // );
162
-
151
+      var newEditorState = Draft.Draft_3.push(editorState, ncsWithEntity, 'insert-characters');
163 152
       this.onChange(newEditorState);
164 153
     }
165 154
   }, {

+ 1
- 1
lib/RichTextEditor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 3
- 0
lib/RichTextEditorForSlate/index.d.ts Visa fil

@@ -0,0 +1,3 @@
1
+/// <reference types="react" />
2
+declare const RichTextEditorForSlate: () => JSX.Element;
3
+export { RichTextEditorForSlate as default };

+ 26
- 23
lib/RichTextEditorForSlate/index.js Visa fil

@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-0494a5d0.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-var _commonjsHelpers = require('../_commonjsHelpers-72d386ba.js');
11 10
 require('react-dom');
11
+var _commonjsHelpers = require('../_commonjsHelpers-72d386ba.js');
12 12
 var _reactDom_commonjsExternal = require('../_react-dom_commonjs-external-55867475.js');
13 13
 
14 14
 /*!
@@ -368,7 +368,7 @@ function processResult(immer, result, scope) {
368 368
     if (isDraftable(result)) {
369 369
       // Finalize the result in case it contains (or is) a subset of the draft.
370 370
       result = finalize(immer, result, scope);
371
-      maybeFreeze(immer, result);
371
+      if (!scope.parent) { maybeFreeze(immer, result); }
372 372
     }
373 373
 
374 374
     if (scope.patches) {
@@ -497,11 +497,11 @@ function finalizeProperty(immer, scope, root, rootState, parentValue, prop, chil
497 497
     } // Search new objects for unfinalized drafts. Frozen objects should never contain drafts.
498 498
     // TODO: the recursion over here looks weird, shouldn't non-draft stuff have it's own recursion?
499 499
     // especially the passing on of root and rootState doesn't make sense...
500
-    else if (isDraftable(childValue) && !Object.isFrozen(childValue)) {
500
+    else if (isDraftable(childValue)) {
501 501
         each(childValue, function (key, grandChild) {
502 502
           return finalizeProperty(immer, scope, root, rootState, childValue, key, grandChild, rootPath);
503 503
         });
504
-        maybeFreeze(immer, childValue);
504
+        if (!scope.parent) { maybeFreeze(immer, childValue); }
505 505
       }
506 506
 
507 507
   if (isDraftProp && immer.onAssign && !isSetMember) {
@@ -924,17 +924,22 @@ function markChangesRecursively(object) {
924 924
         markChangedES5(state);
925 925
       }
926 926
     });
927
-  } else if (type === ProxyType.ES5Array && hasArrayChanges(state)) {
928
-    markChangedES5(state);
929
-    assigned.length = true;
927
+  } else if (type === ProxyType.ES5Array) {
928
+    if (hasArrayChanges(state)) {
929
+      markChangedES5(state);
930
+      assigned.length = true;
931
+    }
930 932
 
931 933
     if (draft.length < base.length) {
932 934
       for (var i = draft.length; i < base.length; i++) { assigned[i] = false; }
933 935
     } else {
934 936
       for (var i = base.length; i < draft.length; i++) { assigned[i] = true; }
935
-    }
937
+    } // Minimum count is enough, the other parts has been processed.
938
+
939
+
940
+    var min = Math.min(draft.length, base.length);
936 941
 
937
-    for (var i = 0; i < draft.length; i++) {
942
+    for (var i = 0; i < min; i++) {
938 943
       // Only untouched indices trigger recursion.
939 944
       if (assigned[i] === undefined) { markChangesRecursively(draft[i]); }
940 945
     }
@@ -1540,8 +1545,8 @@ function deepClonePatchValue(obj) {
1540 1545
     var k = _a[0],
1541 1546
         v = _a[1];
1542 1547
     return [k, deepClonePatchValue(v)];
1543
-  })); } // Not needed: if (isSet(obj)) return new Set(Array.from(obj.values()).map(deepClone))
1544
-
1548
+  })); }
1549
+  if (isSet(obj)) { return new Set(Array.from(obj).map(deepClonePatchValue)); }
1545 1550
   var cloned = Object.create(Object.getPrototypeOf(obj));
1546 1551
 
1547 1552
   for (var key in obj) { cloned[key] = deepClonePatchValue(obj[key]); }
@@ -10245,17 +10250,15 @@ var RichTextEditorForSlate = function RichTextEditorForSlate() {
10245 10250
       value = _useState2[0],
10246 10251
       setValue = _useState2[1];
10247 10252
 
10248
-  return (// Add the editable component inside the context.
10249
-    React__default.createElement(dist_5$1, {
10250
-      editor: editor,
10251
-      value: value,
10252
-      onChange: function onChange(value) {
10253
-        console.log('value: ', value);
10254
-        setValue(value);
10255
-      }
10256
-    }, React__default.createElement(dist_3$1, null))
10257
-  );
10258
-}; // class RichTextEditorForSlate extends React.Component<RichTextEditorForSlateProps, RichTextEditorForSlateState> {
10253
+  return React__default.createElement(dist_5$1, {
10254
+    editor: editor,
10255
+    value: value,
10256
+    onChange: function onChange(value) {
10257
+      console.log('value: ', value);
10258
+      setValue(value);
10259
+    }
10260
+  }, React__default.createElement(dist_3$1, null));
10261
+};
10259 10262
 
10260 10263
 exports.default = RichTextEditorForSlate;
10261 10264
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/RichTextEditorForSlate/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 14
- 0
lib/WaitPayInfoView/index.d.ts Visa fil

@@ -0,0 +1,14 @@
1
+/// <reference types="react" />
2
+import { Component } from 'react';
3
+interface Props {
4
+    onClickPayed?: Function;
5
+    onClickProblem?: Function;
6
+}
7
+declare class WaitPayInfoView extends Component<Props, {}> {
8
+    static defaultProps: {
9
+        onClickPayed: () => void;
10
+        onClickProblem: () => void;
11
+    };
12
+    render(): JSX.Element;
13
+}
14
+export { WaitPayInfoView as default, WaitPayInfoView };

+ 0
- 0
lib/WaitPayInfoView/index.js Visa fil


Vissa filer visades inte eftersom för många filer har ändrats