48 次程式碼提交

作者 SHA1 備註 提交日期
  Roxas a85bb47627 add: add info 4 年之前
  Roxas 13aa5d59d8 init 4 年之前
  Roxas 86af1b1fda fix: onFocus & onBlur state error 4 年之前
  Roxas abda3d6cce add: editor add blockStyleFn props; 4 年之前
  Roxas b1dc290a06 fix:修改逻辑,保证state修改时不影响tooltip渲染 4 年之前
  Roxas 04f36feeab dev: [SimpleEditor] add props: appendInnerBar and type both 4 年之前
  Roxas aa86976aef dev: [BarftEditorPage]add props draftProps 4 年之前
  Roxas 536bf25b2d dev: [BarftEditorPage]add props placeholder 4 年之前
  Roxas 26a81f66eb fix: simpleEditor组件type为inner时injectBraftEditorProps无效 4 年之前
  Roxas ab758232bc fix: SimpleEditor 的 inner模式下样式的编辑 4 年之前
  Roxas a8fc1c7e61 fix: 添加text的class自定义 4 年之前
  Roxas 2e56a16dcc dev: Editor追加内容样式编辑 4 年之前
  Roxas 1e4dba1eec fix: QASimpleEditor -> SimpleEditor 4 年之前
  Roxas ae2a0529c2 fix: priceOptions allowZero 4 年之前
  Roxas 52715fe57b build: 添加QASimpleEditor、修正PriceInput部分逻辑 4 年之前
  Roxas a9fd17774d dev: 初步实现图文编辑组件 4 年之前
  Roxas 94aa88fe2d dev: 开发图文简单富文本编辑嘴贱 4 年之前
  Roxas e6aeda2e30 dev: 通用Editor与部份外挂组件 4 年之前
  Roxas aa25cab1bc dev: build 4 年之前
  Roxas 6ad9403336 add: 确认取消悬赏的弹窗,命令式组件ModalCMD 4 年之前
  Roxas f0f430b59a dev: WantedModal 4 年之前
  Roxas df5264f139 Merge branch 'develop' of git.links123.net:Roxas/bilingo-ui into develop 4 年之前
  Roxas 3b555694fb dev: WantedModal 4 年之前
  Roxas 9196f75645 fix: 部分冗余删除 4 年之前
  thewinsword 6782c06a78 dev: 修改README.md;替换支付图标为体积更小的图片;追加Modal形式的悬赏页面 4 年之前
  Roxas bf3c19e4d7 dev&build: 替换图片 4 年之前
  Roxas 41e9d52210 dev: 删除无用示例代码 4 年之前
  Roxas e24449d208 dev&build: 调整Price组件 4 年之前
  Roxas 1aca82bce5 dev&build: 调整打包逻辑,删除弃用富文本编辑器 4 年之前
  Roxas d2f650b030 dev&build: 调整打包策略,打包.d.ts文件 4 年之前
  Roxas 64b40562b1 build 4 年之前
  Roxas 66a6b23788 dev: 添加悬赏系列组件 4 年之前
  Roxas 9b51cf1cb9 build 4 年之前
  Roxas cf13905ce1 dev: PriceOptions逻辑更新 4 年之前
  Roxas 9ede3e3db4 dev: antd样式调整 4 年之前
  Roxas f7df7ab98a dev: 引入external的antd库提供基本组件支持 4 年之前
  Roxas 4318b65078 dev: 调整文件打包路径,使其符合按需引入标准 4 年之前
  Roxas eb4c587d3b dev: 打包策略优化,组件代码细化 4 年之前
  Roxas 553bd72976 release: test build update 4 年之前
  Roxas fa245c7650 dev: init theme 4 年之前
  Roxas 24fbe15365 dev: 重构部分代码 4 年之前
  Roxas 0b5bf31ba7 dev: 添加富文本编辑器相关page 5 年之前
  Roxas d485735782 add eslint and fix tsconfig.json error config; init Editor Component 5 年之前
  Roxas a15aafc49e update 5 年之前
  Roxas 9767067ffe dev: 接入storybook 5 年之前
  Roxas 756893b321 dev: temp init intl part 5 年之前
  Roxas abe1f2004b dev: init build logic 5 年之前
  Roxas 3d21e63382 Initial commit from Create React App 5 年之前
共有 100 個文件被更改,包括 114 次插入4189 次删除
  1. 0
    17
      .babelrc
  2. 0
    17
      .eslintrc.js
  3. 99
    19
      .gitignore
  4. 3
    3
      .storybook/config.js
  5. 0
    0
      .storybook/theme.js
  6. 12
    4
      .storybook/webpack.config.js
  7. 0
    42
      README.md
  8. 0
    35
      config-overrides.js
  9. 0
    34
      eslib/AllocWantedModal/index.d.ts
  10. 0
    224
      eslib/AllocWantedModal/index.js
  11. 0
    1
      eslib/AllocWantedModal/index.js.map
  12. 0
    22
      eslib/BraftEditor/index.d.ts
  13. 0
    109
      eslib/BraftEditor/index.js
  14. 0
    1
      eslib/BraftEditor/index.js.map
  15. 0
    1
      eslib/Common/index.d.ts
  16. 0
    6
      eslib/Common/index.js
  17. 0
    1
      eslib/Common/index.js.map
  18. 0
    29
      eslib/ConsumeListView/index.d.ts
  19. 0
    165
      eslib/ConsumeListView/index.js
  20. 0
    1
      eslib/ConsumeListView/index.js.map
  21. 0
    24
      eslib/Editor/index.d.ts
  22. 0
    185
      eslib/Editor/index.js
  23. 0
    1
      eslib/Editor/index.js.map
  24. 0
    30
      eslib/Modal/index.d.ts
  25. 0
    155
      eslib/Modal/index.js
  26. 0
    1
      eslib/Modal/index.js.map
  27. 0
    28
      eslib/PayPlatformOptions/index.d.ts
  28. 0
    222
      eslib/PayPlatformOptions/index.js
  29. 0
    1
      eslib/PayPlatformOptions/index.js.map
  30. 0
    7
      eslib/Payment/index.d.ts
  31. 0
    19
      eslib/Payment/index.js
  32. 0
    1
      eslib/Payment/index.js.map
  33. 0
    24
      eslib/PriceOptions/index.d.ts
  34. 0
    183
      eslib/PriceOptions/index.js
  35. 0
    1
      eslib/PriceOptions/index.js.map
  36. 0
    14
      eslib/WaitPayInfoView/index.d.ts
  37. 0
    82
      eslib/WaitPayInfoView/index.js
  38. 0
    1
      eslib/WaitPayInfoView/index.js.map
  39. 0
    23
      eslib/WantedPublish-b91e67a7.d.ts
  40. 0
    45
      eslib/WantedPublish-b91e67a7.js
  41. 0
    1
      eslib/WantedPublish-b91e67a7.js.map
  42. 0
    18
      eslib/WantedPublishModal/index.d.ts
  43. 0
    123
      eslib/WantedPublishModal/index.js
  44. 0
    1
      eslib/WantedPublishModal/index.js.map
  45. 0
    18
      eslib/WantedPublishPopover/index.d.ts
  46. 0
    152
      eslib/WantedPublishPopover/index.js
  47. 0
    1
      eslib/WantedPublishPopover/index.js.map
  48. 0
    39
      eslib/WantedPublishView/index.d.ts
  49. 0
    178
      eslib/WantedPublishView/index.js
  50. 0
    1
      eslib/WantedPublishView/index.js.map
  51. 0
    0
      eslib/defineProperty-18999f8e.d.ts
  52. 0
    17
      eslib/defineProperty-18999f8e.js
  53. 0
    1
      eslib/defineProperty-18999f8e.js.map
  54. 0
    0
      eslib/index-e3cf212a.d.ts
  55. 0
    55
      eslib/index-e3cf212a.js
  56. 0
    1
      eslib/index-e3cf212a.js.map
  57. 0
    2
      eslib/index.d.ts
  58. 0
    19
      eslib/index.js
  59. 0
    1
      eslib/index.js.map
  60. 0
    0
      eslib/inherits-6cb67931.d.ts
  61. 0
    87
      eslib/inherits-6cb67931.js
  62. 0
    1
      eslib/inherits-6cb67931.js.map
  63. 0
    0
      eslib/slicedToArray-4cd9e6d3.d.ts
  64. 0
    44
      eslib/slicedToArray-4cd9e6d3.js
  65. 0
    1
      eslib/slicedToArray-4cd9e6d3.js.map
  66. 0
    0
      eslib/style-inject.es-1f59c1d0.d.ts
  67. 0
    29
      eslib/style-inject.es-1f59c1d0.js
  68. 0
    1
      eslib/style-inject.es-1f59c1d0.js.map
  69. 0
    17
      eslib/utils-6b513b37.d.ts
  70. 0
    35
      eslib/utils-6b513b37.js
  71. 0
    1
      eslib/utils-6b513b37.js.map
  72. 0
    34
      lib/AllocWantedModal/index.d.ts
  73. 0
    231
      lib/AllocWantedModal/index.js
  74. 0
    1
      lib/AllocWantedModal/index.js.map
  75. 0
    22
      lib/BraftEditor/index.d.ts
  76. 0
    117
      lib/BraftEditor/index.js
  77. 0
    1
      lib/BraftEditor/index.js.map
  78. 0
    1
      lib/Common/index.d.ts
  79. 0
    15
      lib/Common/index.js
  80. 0
    1
      lib/Common/index.js.map
  81. 0
    29
      lib/ConsumeListView/index.d.ts
  82. 0
    172
      lib/ConsumeListView/index.js
  83. 0
    1
      lib/ConsumeListView/index.js.map
  84. 0
    24
      lib/Editor/index.d.ts
  85. 0
    192
      lib/Editor/index.js
  86. 0
    1
      lib/Editor/index.js.map
  87. 0
    30
      lib/Modal/index.d.ts
  88. 0
    164
      lib/Modal/index.js
  89. 0
    1
      lib/Modal/index.js.map
  90. 0
    28
      lib/PayPlatformOptions/index.d.ts
  91. 0
    230
      lib/PayPlatformOptions/index.js
  92. 0
    1
      lib/PayPlatformOptions/index.js.map
  93. 0
    7
      lib/Payment/index.d.ts
  94. 0
    34
      lib/Payment/index.js
  95. 0
    1
      lib/Payment/index.js.map
  96. 0
    24
      lib/PriceOptions/index.d.ts
  97. 0
    190
      lib/PriceOptions/index.js
  98. 0
    1
      lib/PriceOptions/index.js.map
  99. 0
    14
      lib/WaitPayInfoView/index.d.ts
  100. 0
    0
      lib/WaitPayInfoView/index.js

+ 0
- 17
.babelrc 查看文件

@@ -1,17 +0,0 @@
1
-{
2
-  "presets": [
3
-    [
4
-      "@babel/preset-env",
5
-      {
6
-        "targets": "last 2 versions, ie 10",
7
-        "modules": false
8
-      }
9
-    ],
10
-    "@babel/preset-react",
11
-    "@babel/preset-typescript"
12
-  ],
13
-  "plugins": [
14
-    "@babel/plugin-proposal-class-properties"
15
-    // "@babel/plugin-proposal-export-default-from"
16
-  ]
17
-}

+ 0
- 17
.eslintrc.js 查看文件

@@ -1,17 +0,0 @@
1
-module.exports = {
2
-  parser: "@typescript-eslint/parser",
3
-  parserOptions: {
4
-    ecmaVersion: 6, //也就是ES6语法支持的意思
5
-    sourceType: "module",
6
-    ecmaFeatures: {
7
-      modules: true
8
-    }
9
-  },
10
-  plugins: ["@typescript-eslint"],
11
-  rules: {
12
-    // 禁止使用 var
13
-    "no-var": "error",
14
-    // 优先使用 interface 而不是 type
15
-    "@typescript-eslint/consistent-type-definitions": ["error", "interface"]
16
-  }
17
-};

+ 99
- 19
.gitignore 查看文件

@@ -1,24 +1,104 @@
1
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1
+# Logs
2
+logs
3
+*.log
4
+npm-debug.log*
5
+yarn-debug.log*
6
+yarn-error.log*
7
+lerna-debug.log*
2 8
 
3
-# dependencies
4
-/node_modules
5
-/.pnp
6
-.pnp.js
9
+# Diagnostic reports (https://nodejs.org/api/report.html)
10
+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
7 11
 
8
-# testing
9
-/coverage
12
+# Runtime data
13
+pids
14
+*.pid
15
+*.seed
16
+*.pid.lock
10 17
 
11
-# production
12
-/build
18
+# Directory for instrumented libs generated by jscoverage/JSCover
19
+lib-cov
13 20
 
14
-# misc
15
-.DS_Store
16
-.env.local
17
-.env.development.local
18
-.env.test.local
19
-.env.production.local
21
+# Coverage directory used by tools like istanbul
22
+coverage
23
+*.lcov
20 24
 
21
-npm-debug.log*
22
-yarn-debug.log*
23
-yarn-error.log*
24
-/.idea/
25
+# nyc test coverage
26
+.nyc_output
27
+
28
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29
+.grunt
30
+
31
+# Bower dependency directory (https://bower.io/)
32
+bower_components
33
+
34
+# node-waf configuration
35
+.lock-wscript
36
+
37
+# Compiled binary addons (https://nodejs.org/api/addons.html)
38
+build/Release
39
+
40
+# Dependency directories
41
+node_modules/
42
+jspm_packages/
43
+
44
+# TypeScript v1 declaration files
45
+typings/
46
+
47
+# TypeScript cache
48
+*.tsbuildinfo
49
+
50
+# Optional npm cache directory
51
+.npm
52
+
53
+# Optional eslint cache
54
+.eslintcache
55
+
56
+# Microbundle cache
57
+.rpt2_cache/
58
+.rts2_cache_cjs/
59
+.rts2_cache_es/
60
+.rts2_cache_umd/
61
+
62
+# Optional REPL history
63
+.node_repl_history
64
+
65
+# Output of 'npm pack'
66
+*.tgz
67
+
68
+# Yarn Integrity file
69
+.yarn-integrity
70
+
71
+# dotenv environment variables file
72
+.env
73
+.env.test
74
+
75
+# parcel-bundler cache (https://parceljs.org/)
76
+.cache
77
+
78
+# Next.js build output
79
+.next
80
+
81
+# Nuxt.js build / generate output
82
+.nuxt
83
+dist
84
+
85
+# Gatsby files
86
+.cache/
87
+# Comment in the public line in if your project uses Gatsby and *not* Next.js
88
+# https://nextjs.org/blog/next-9-1#public-directory-support
89
+# public
90
+
91
+# vuepress build output
92
+.vuepress/dist
93
+
94
+# Serverless directories
95
+.serverless/
96
+
97
+# FuseBox cache
98
+.fusebox/
99
+
100
+# DynamoDB Local files
101
+.dynamodb/
102
+
103
+# TernJS port file
104
+.tern-port

+ 3
- 3
.storybook/config.js 查看文件

@@ -3,7 +3,7 @@ import { addParameters } from '@storybook/react';
3 3
 import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
4 4
 import { addDecorator } from '@storybook/react';
5 5
 import { withConsole } from '@storybook/addon-console';
6
-import bilingoTheme from './bilingoTheme';
6
+import theme from './theme';
7 7
 
8 8
 import 'antd/dist/antd.less';
9 9
 
@@ -13,11 +13,11 @@ addParameters({
13 13
     viewports: INITIAL_VIEWPORTS,
14 14
     defaultViewport: 'someDefault',
15 15
   },
16
-  options: { theme: bilingoTheme },
16
+  options: { theme },
17 17
 });
18 18
 // automatically import all files ending in *.stories.tsx
19 19
 configure(
20
-  require.context('../stories', true, /\.stories\.tsx?$/), module
20
+  require.context('../stories', true, /\.stories\.(t|j)sx?$/), module
21 21
 )
22 22
 
23 23
 addDecorator((storyFn, context) => withConsole()(storyFn)(context));

.storybook/bilingoTheme.js → .storybook/theme.js 查看文件


+ 12
- 4
.storybook/webpack.config.js 查看文件

@@ -38,6 +38,9 @@ module.exports = ({ config }) => {
38 38
     {
39 39
       loader: 'less-loader',
40 40
       options: {
41
+        config: {
42
+          path: path.join(path.resolve(__dirname, '..'), 'postcss.config.js')
43
+        },
41 44
         javascriptEnabled: true,
42 45
       },
43 46
     }],
@@ -46,16 +49,21 @@ module.exports = ({ config }) => {
46 49
   config.module.rules.push({
47 50
     test: /\.(ts|tsx)$/,
48 51
     use: [
52
+      // Optional
53
+      {
54
+        loader: require.resolve("react-docgen-typescript-loader"),
55
+        options: {
56
+          // Provide the path to your tsconfig.json so that your stories can
57
+          // display types from outside each individual story.
58
+          tsconfigPath: path.resolve(__dirname, "../tsconfig.json"),
59
+        },
60
+      },
49 61
       {
50 62
         loader: require.resolve('babel-loader'),
51 63
         options: {
52 64
           presets: [['react-app', { flow: false, typescript: true }]],
53 65
         }
54 66
       },
55
-      // Optional
56
-      {
57
-        loader: require.resolve("react-docgen-typescript-loader")
58
-      },
59 67
     ]
60 68
   });
61 69
   config.resolve.extensions.push(".ts", ".tsx");

+ 0
- 42
README.md 查看文件

@@ -1,42 +0,0 @@
1
-# bilingo-ui
2
-
3
-[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
4
-
5
-双语帮UI库
6
-
7
-## Table of Contents
8
-
9
-- [Install](#install)
10
-- [Usage](#usage)
11
-- [Maintainers](#maintainers)
12
-
13
-## Install
14
-
15
-```
16
-yarn
17
-```
18
-```
19
-npm install
20
-```
21
-
22
-## Usage
23
-
24
-Build UI
25
-```
26
-yarn run build:lib
27
-```
28
-```
29
-npm run build:lib
30
-```
31
-
32
-Preview or Develop
33
-```
34
-yarn run storybook
35
-```
36
-```
37
-npm run storybook
38
-```
39
-
40
-## Maintainers
41
-
42
-[@Roxas](https://github.com/thewindsword)

+ 0
- 35
config-overrides.js 查看文件

@@ -1,35 +0,0 @@
1
-const fs = require('fs');
2
-const path = require('path');
3
-
4
-const rootPath = fs.realpathSync(process.cwd());
5
-const srcPath = path.resolve(rootPath, )
6
-
7
-module.exports = function override(config, env) {
8
-  config.resolve.extensions = ['.js', '.jsx', '.ts', '.tsx', '.less', '.json'];
9
-  config.resolve.alias = {
10
-    '@': srcPath,
11
-    '@components': `${srcPath}/components`,
12
-  };
13
-  config.module.rules.push({
14
-    test: /\.less$/,
15
-    use: [
16
-    'style-loader', 
17
-    {
18
-      loader: 'css-loader',// translates CSS into CommonJS
19
-      options: {
20
-        modules: {
21
-          localIdentName: '[name]__[local]___[hash:base64:5]',
22
-        },
23
-      }
24
-    },
25
-    'postcss-loader',
26
-    {
27
-      loader: 'less-loader',
28
-      options: {
29
-        javascriptEnabled: true,
30
-      },
31
-    }],
32
-    exclude: /node_modules|antd\.less/,
33
-  });
34
-  return config;
35
-}

+ 0
- 34
eslib/AllocWantedModal/index.d.ts 查看文件

@@ -1,34 +0,0 @@
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: string | number) => 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 };

+ 0
- 224
eslib/AllocWantedModal/index.js 查看文件

@@ -1,224 +0,0 @@
1
-import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2
-import React from 'react';
3
-import 'react-dom';
4
-import { Modal } from '../Modal/index.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6
-import { Tooltip, Input, Button, Popover } from 'antd';
7
-
8
-var 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
-};
24
-styleInject(css);
25
-
26
-var AllocWantedModal =
27
-/*#__PURE__*/
28
-function (_React$Component) {
29
-  _inherits(AllocWantedModal, _React$Component);
30
-
31
-  function AllocWantedModal(props) {
32
-    var _this;
33
-
34
-    _classCallCheck(this, AllocWantedModal);
35
-
36
-    _this = _possibleConstructorReturn(this, _getPrototypeOf(AllocWantedModal).call(this, props));
37
-
38
-    _this.handleSendValueChange = function (v) {
39
-      if (_this.state.outRangeTip) {
40
-        _this.setState({
41
-          outRangeTip: !_this.checkSendValue()
42
-        });
43
-      }
44
-
45
-      _this.setState({
46
-        sendValue: v
47
-      });
48
-    };
49
-
50
-    _this.checkSendValue = function () {
51
-      var sendValueRange = _this.props.sendValueRange;
52
-      var sendValue = _this.state.sendValue;
53
-      var min = 0;
54
-      var max = Number(_this.props.allocValue);
55
-
56
-      if (sendValueRange) {
57
-        min = Number(sendValueRange[0]);
58
-        max = Number(sendValueRange[1]);
59
-      }
60
-
61
-      if (sendValue > max) {
62
-        _this.setState({
63
-          outRangeTip: true
64
-        });
65
-
66
-        return false;
67
-      } else if (sendValue < min) {
68
-        _this.setState({
69
-          outRangeTip: true
70
-        });
71
-
72
-        return false;
73
-      }
74
-
75
-      return true;
76
-    };
77
-
78
-    _this.handleCloseAction = function () {
79
-      _this.setState({
80
-        visible: false,
81
-        sendValue: 0,
82
-        outRangeTip: false
83
-      }, function () {
84
-        _this.props.handleVisibleChange(false);
85
-      });
86
-    };
87
-
88
-    _this.handleShowAction = function () {
89
-      _this.setState({
90
-        visible: true
91
-      }, function () {
92
-        _this.props.handleVisibleChange(true);
93
-      });
94
-    };
95
-
96
-    _this.handleConfirm = function () {
97
-      var sendGiftData = _this.props.sendGiftData;
98
-
99
-      var checkResult = _this.checkSendValue();
100
-
101
-      if (!checkResult) {
102
-        return null;
103
-      }
104
-
105
-      Promise.resolve(_this.props.sendRequest({
106
-        business_type: 14,
107
-        ref_id: sendGiftData.answerId.toString(),
108
-        origin_id: sendGiftData.questionId,
109
-        to_user: sendGiftData.toUserId,
110
-        goods_id: 2,
111
-        num: Number(_this.state.sendValue)
112
-      })).then(function (res) {
113
-        if (res) {
114
-          _this.handleCloseAction();
115
-        } else {
116
-          _this.handleCloseAction();
117
-        }
118
-      });
119
-    };
120
-
121
-    _this.renderCloseButton = function () {
122
-      return React.createElement("div", {
123
-        role: "button",
124
-        tabIndex: -1,
125
-        className: styles.closeButton,
126
-        onClick: function onClick() {
127
-          _this.handleCloseAction();
128
-        }
129
-      }, React.createElement("img", {
130
-        src: img,
131
-        alt: "close button for send wanted"
132
-      }));
133
-    };
134
-
135
-    _this.renderModalContent = function () {
136
-      return React.createElement("div", {
137
-        className: styles.wantedModalContent,
138
-        ref: _this.ModalContentRef
139
-      }, _this.renderCloseButton(), React.createElement("h4", {
140
-        className: styles.title
141
-      }, "\u5206\u914D\u60AC\u8D4F\u5956\u91D1"), React.createElement("div", {
142
-        className: styles.wantedValueText
143
-      }, "\u5269\u4F59\u53EF\u5206\u914D ".concat(_this.props.allocValue, "\u5143")), React.createElement(Tooltip, {
144
-        visible: _this.state.outRangeTip,
145
-        title: "\u8D85\u8FC7\u8303\u56F4\u503C",
146
-        placement: "bottom",
147
-        overlayClassName: styles.outRangeTextTip,
148
-        getTooltipContainer: function getTooltipContainer() {
149
-          return _this.ModalContentRef && _this.ModalContentRef.current;
150
-        }
151
-      }, React.createElement(Input, {
152
-        ref: _this.ModalInputRef,
153
-        className: styles.wantedInputNumber,
154
-        suffix: "\u5143",
155
-        value: _this.state.sendValue,
156
-        onChange: function onChange(e) {
157
-          return _this.handleSendValueChange(e.target.value);
158
-        },
159
-        onFocus: function onFocus(e) {
160
-          return e.target.setSelectionRange(0, String(_this.state.sendValue).length);
161
-        }
162
-      })), React.createElement("div", {
163
-        className: styles.wantedValueTipBottom
164
-      }, "\u9700\u8981\u5728\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\u5C06\u5956\u91D1\u5206\u914D\u5B8C\u6210, \u5426\u5219\u5C06\u6309\u7167\u89C4\u5219\u81EA\u52A8\u5206\u914D"), React.createElement("div", {
165
-        className: styles.buttonRow
166
-      }, React.createElement("div", {
167
-        className: styles.tipsButton
168
-      }), React.createElement(Button, {
169
-        className: styles.confirmButton,
170
-        onClick: _this.handleConfirm
171
-      }, "\u786E\u8BA4"), React.createElement("div", {
172
-        className: styles.tipsButton
173
-      }, React.createElement(Popover, {
174
-        placement: "bottom",
175
-        trigger: "click",
176
-        getPopupContainer: function getPopupContainer() {
177
-          return _this.ModalContentRef && _this.ModalContentRef.current;
178
-        },
179
-        overlayStyle: {
180
-          width: "320px"
181
-        },
182
-        content: React.createElement("div", {
183
-          className: styles.tipsView
184
-        }, React.createElement("h6", null, "1\u3001\u5982\u4F55\u53C2\u4E0E\u60AC\u8D4F\uFF1F"), React.createElement("div", null, "\u60AC\u8D4F\u95EE\u9898\u7686\u6709\u6709\u6548\u671F\uFF0C\u9ED8\u8BA4\u4E3A120\u5C0F\u65F6\uFF085\u5929\uFF09\uFF0C\u5728\u6709\u6548\u671F\u5185\u56DE\u590D\u7684\u7B54\u6848\uFF0C\u624D\u6709\u8D44\u683C\u88AB\u9009\u4E3A\u6700\u4F73\u7B54\u6848\uFF0C\u4EE5\u53CA\u5206\u5F97\u8D4F\u91D1\u3002"), React.createElement("h6", null, "2\u3001\u8D4F\u91D1\u5982\u4F55\u5206\uFF1F"), React.createElement("div", null, "\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\uFF0C\u63D0\u95EE\u8005\u53EF\u968F\u65F6\u9009\u51FA\u6700\u4F18\u7B54\u6848\uFF0C\u5E76\u5BF9\u8D4F\u91D1\u8FDB\u884C\u5206\u914D\uFF0C\u76F4\u81F3\u8D4F\u91D1\u88AB\u5206\u5B8C\u6216\u65F6\u95F4\u5230\u671F\u4E3A\u6B62\u3002\u82E5\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u4ECD\u672A\u5206\u914D\u8D4F\u91D1\uFF0C\u4E14\u56DE\u7B54\u6570\u5927\u4E8E\u7B49\u4E8E2\uFF0C\u7CFB\u7EDF\u5219\u9ED8\u8BA4\u5C06\u8D4F\u91D1\u5E73\u5206\u7ED9\u70B9\u8D5E\u6570\u524D3\u540D\u7684\u56DE\u7B54\u3002"), React.createElement("h6", null, "3\u3001\u8D4F\u91D1\u80FD\u9000\u6B3E\u5417\uFF1F"), React.createElement("div", null, "\u8D4F\u91D1\u53EA\u4F1A\u5728\u4EE5\u4E0B2\u79CD\u60C5\u51B5\u8FDB\u884C\u9000\u6B3E\uFF1A\u4E00\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u56DE\u7B54\u6570\u5C0F\u4E8E2\uFF0C\u8D4F\u91D1\u5C06\u81EA\u52A8\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\uFF1B\u4E8C\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u672A\u5206\u914D\u5B8C\u8D4F\u91D1\uFF0C\u7CFB\u7EDF\u81EA\u52A8\u5C06\u5269\u4F59\u7684\u8D4F\u91D1\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\u3002"))
185
-      }, React.createElement("i", {
186
-        className: "schedule schedule-icon_rewardtips"
187
-      })))));
188
-    };
189
-
190
-    _this.state = {
191
-      visible: false,
192
-      sendValue: 0,
193
-      outRangeTip: false
194
-    };
195
-    _this.ModalContentRef = React.createRef();
196
-    _this.ModalInputRef = React.createRef();
197
-    return _this;
198
-  }
199
-
200
-  _createClass(AllocWantedModal, [{
201
-    key: "render",
202
-    value: function render() {
203
-      var _this2 = this;
204
-
205
-      var children = this.props.children;
206
-      return React.createElement(React.Fragment, null, React.createElement("div", {
207
-        className: styles.wrapper,
208
-        onClick: function onClick() {
209
-          return _this2.handleShowAction();
210
-        }
211
-      }, children), React.createElement(Modal, {
212
-        visible: this.state.visible,
213
-        onCancel: function onCancel() {
214
-          return _this2.handleCloseAction();
215
-        }
216
-      }, this.renderModalContent()));
217
-    }
218
-  }]);
219
-
220
-  return AllocWantedModal;
221
-}(React.Component);
222
-
223
-export default AllocWantedModal;
224
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/AllocWantedModal/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 22
eslib/BraftEditor/index.d.ts 查看文件

@@ -1,22 +0,0 @@
1
-/// <reference types="react" />
2
-import React from "react";
3
-import { ControlType, EditorState } from "braft-editor";
4
-interface BaseEditorProps {
5
-    value: EditorState;
6
-    onChange: (editorState: EditorState) => void;
7
-    contentStyle?: React.CSSProperties;
8
-    controls?: ControlType[];
9
-    blockRenderMap?: any;
10
-    blockRendererFn?: any;
11
-    blockStyleFn?: any;
12
-    onDelete?: Function;
13
-    onSave?: Function;
14
-    onTab?: Function;
15
-    onFocus?: Function;
16
-    onBlur?: Function;
17
-    draftProps?: any;
18
-    placeholder?: string;
19
-    converts?: any;
20
-}
21
-declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, blockStyleFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
22
-export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

+ 0
- 109
eslib/BraftEditor/index.js 查看文件

@@ -1,109 +0,0 @@
1
-import React, { useState } from 'react';
2
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3
-import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
4
-import { c as classnames } from '../index-e3cf212a.js';
5
-import { _ as _slicedToArray } from '../slicedToArray-4cd9e6d3.js';
6
-import BraftEditor from 'braft-editor';
7
-import 'braft-editor/dist/index.css';
8
-import 'braft-extensions/dist/emoticon.css';
9
-import Emoticon, { defaultEmoticons } from 'braft-extensions/dist/emoticon';
10
-import MaxLength from 'braft-extensions/dist/max-length';
11
-
12
-var css = ".index_baseWrapper__1_-58 {\n  position: relative;\n}\n.index_baseWrapper__1_-58 .bf-container {\n  display: flex;\n  flex-direction: column;\n}\n.index_baseWrapper__1_-58 .bf-container .index_controlBar__3SzSH {\n  box-shadow: none;\n}\n.index_baseWrapper__1_-58 .bf-container .index_editorContent__2UOaX {\n  border: 1px solid #ccc;\n  border-radius: 4px;\n  height: auto;\n  transition: border-color 0.3s;\n}\n.index_baseWrapper__1_-58 .bf-container .index_editorContent__2UOaX.index_focus__puDJA {\n  border-color: #1790ff;\n}\n";
13
-var styles = {
14
-  "baseWrapper": "index_baseWrapper__1_-58",
15
-  "controlBar": "index_controlBar__3SzSH",
16
-  "editorContent": "index_editorContent__2UOaX",
17
-  "focus": "index_focus__puDJA"
18
-};
19
-styleInject(css);
20
-
21
-var lengthOptions = {
22
-  defaultValue: 100
23
-};
24
-BraftEditor.use(MaxLength(lengthOptions));
25
-var emoticons = defaultEmoticons.map(function (item) {
26
-  return require("braft-extensions/dist/assets/".concat(item));
27
-});
28
-var emotionOptions = {
29
-  emoticons: emoticons,
30
-  closeOnBlur: true,
31
-  closeOnSelect: false
32
-};
33
-BraftEditor.use(Emoticon(emotionOptions));
34
-var BarftEditorPage = function BarftEditorPage(_ref) {
35
-  var value = _ref.value,
36
-      onChange = _ref.onChange,
37
-      controls = _ref.controls,
38
-      _ref$contentStyle = _ref.contentStyle,
39
-      contentStyle = _ref$contentStyle === void 0 ? {} : _ref$contentStyle,
40
-      draftProps = _ref.draftProps,
41
-      placeholder = _ref.placeholder,
42
-      blockRenderMap = _ref.blockRenderMap,
43
-      blockRendererFn = _ref.blockRendererFn,
44
-      blockStyleFn = _ref.blockStyleFn,
45
-      onDelete = _ref.onDelete,
46
-      onSave = _ref.onSave,
47
-      onTab = _ref.onTab,
48
-      _onFocus = _ref.onFocus,
49
-      _onBlur = _ref.onBlur,
50
-      converts = _ref.converts;
51
-  var optionsControls = controls ? controls : ["bold", "italic", "underline", "separator", "link", "emoji", "separator", "media"];
52
-  var options = {
53
-    controls: optionsControls,
54
-    showControlsBar: optionsControls && optionsControls.length > 0
55
-  };
56
-
57
-  var _useState = useState(false),
58
-      _useState2 = _slicedToArray(_useState, 2),
59
-      focusState = _useState2[0],
60
-      setFocusState = _useState2[1];
61
-
62
-  return React.createElement("div", {
63
-    className: styles.baseWrapper
64
-  }, React.createElement(BraftEditor, Object.assign({
65
-    value: value,
66
-    onChange: onChange,
67
-    controls: options.controls,
68
-    controlBarClassName: classnames(styles.controlBar, _defineProperty({}, styles.focus, focusState)),
69
-    controlBarStyle: options.showControlsBar ? {} : {
70
-      display: "none"
71
-    },
72
-    contentClassName: classnames(styles.editorContent, _defineProperty({}, styles.focus, focusState)),
73
-    contentStyle: contentStyle,
74
-    onFocus: function onFocus() {
75
-      setFocusState(true);
76
-      _onFocus && _onFocus();
77
-    },
78
-    onBlur: function onBlur() {
79
-      setFocusState(false);
80
-      _onBlur && _onBlur();
81
-    },
82
-    hooks: {
83
-      "toggle-link": function toggleLink(_ref2) {
84
-        var href = _ref2.href,
85
-            target = _ref2.target;
86
-        href = href.indexOf("http") === 0 ? href : "http://".concat(href);
87
-        return {
88
-          href: href,
89
-          target: target
90
-        };
91
-      }
92
-    }
93
-  }, {
94
-    blockRenderMap: blockRenderMap,
95
-    blockRendererFn: blockRendererFn,
96
-    blockStyleFn: blockStyleFn,
97
-    converts: converts,
98
-    placeholder: placeholder,
99
-    draftProps: draftProps,
100
-    onDelete: onDelete,
101
-    onSave: onSave,
102
-    onTab: onTab,
103
-    onBlur: _onBlur
104
-  })));
105
-};
106
-
107
-export default BarftEditorPage;
108
-export { BarftEditorPage };
109
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/BraftEditor/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 1
eslib/Common/index.d.ts 查看文件

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

+ 0
- 6
eslib/Common/index.js 查看文件

@@ -1,6 +0,0 @@
1
-import '../inherits-6cb67931.js';
2
-import 'react';
3
-import 'react-dom';
4
-export { default as Modal, ModalCMD } from '../Modal/index.js';
5
-import '../style-inject.es-1f59c1d0.js';
6
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/Common/index.js.map 查看文件

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

+ 0
- 29
eslib/ConsumeListView/index.d.ts 查看文件

@@ -1,29 +0,0 @@
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 };

+ 0
- 165
eslib/ConsumeListView/index.js 查看文件

@@ -1,165 +0,0 @@
1
-import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2
-import React, { Component } from 'react';
3
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
-import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
5
-import { c as classnames } from '../index-e3cf212a.js';
6
-import { a as addImageProcess } from '../utils-6b513b37.js';
7
-
8
-var 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
-};
21
-styleInject(css);
22
-
23
-var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
24
-
25
-var ConsumeListView =
26
-/*#__PURE__*/
27
-function (_Component) {
28
-  _inherits(ConsumeListView, _Component);
29
-
30
-  function ConsumeListView() {
31
-    _classCallCheck(this, ConsumeListView);
32
-
33
-    return _possibleConstructorReturn(this, _getPrototypeOf(ConsumeListView).apply(this, arguments));
34
-  }
35
-
36
-  _createClass(ConsumeListView, [{
37
-    key: "renderConsumeItem",
38
-    value: function renderConsumeItem() {
39
-      var _this$props = this.props,
40
-          dataSource = _this$props.dataSource,
41
-          isToggle = _this$props.isToggle,
42
-          onConsumeItemClick = _this$props.onConsumeItemClick,
43
-          showLength = _this$props.showLength,
44
-          listLength = _this$props.listLength,
45
-          options = _this$props.options;
46
-      var kingdomWidth = options.kingdomWidth,
47
-          kingdomHeight = options.kingdomHeight,
48
-          kingdomPosition = options.kingdomPosition,
49
-          avatarSize = options.avatarSize,
50
-          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
51
-      var renderData = dataSource;
52
-
53
-      if (!isToggle && listLength > showLength) {
54
-        renderData = dataSource.slice(0, showLength - 1);
55
-      }
56
-
57
-      return renderData.map(function (v, i) {
58
-        var kingdom = null;
59
-
60
-        if (i === 0) {
61
-          kingdom = React.createElement("img", {
62
-            className: styles.kingdomIcon,
63
-            src: img,
64
-            alt: "reward top user",
65
-            style: {
66
-              width: "".concat(kingdomWidth, "px"),
67
-              height: "".concat(kingdomHeight, "px"),
68
-              left: "".concat(kingdomPosition[0], "px"),
69
-              top: "".concat(kingdomPosition[1], "px")
70
-            }
71
-          });
72
-        }
73
-
74
-        return React.createElement("li", {
75
-          key: v.id,
76
-          className: styles.consumeItem,
77
-          style: {
78
-            margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
79
-          }
80
-        }, kingdom, React.createElement("div", {
81
-          className: styles.avatar,
82
-          onClick: function onClick(e) {
83
-            return onConsumeItemClick(e, v);
84
-          },
85
-          style: {
86
-            backgroundImage: "url(".concat(addImageProcess(v.user_avatar || DEFAULT_AVATAR, {
87
-              small: true
88
-            }), ")"),
89
-            width: "".concat(avatarSize, "px"),
90
-            height: "".concat(avatarSize, "px")
91
-          }
92
-        }), React.createElement("span", {
93
-          className: styles.gray
94
-        }));
95
-      });
96
-    }
97
-  }, {
98
-    key: "renderToggleButton",
99
-    value: function renderToggleButton() {
100
-      var _this$props2 = this.props,
101
-          isToggle = _this$props2.isToggle,
102
-          onToggleChange = _this$props2.onToggleChange,
103
-          listLength = _this$props2.listLength,
104
-          showLength = _this$props2.showLength,
105
-          options = _this$props2.options;
106
-      var avatarSize = options.avatarSize,
107
-          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
108
-
109
-      if (listLength <= showLength) {
110
-        return null;
111
-      }
112
-
113
-      return React.createElement("li", {
114
-        onClick: function onClick() {
115
-          return onToggleChange();
116
-        },
117
-        className: classnames(styles.toggle, _defineProperty({}, styles.expand, isToggle)),
118
-        style: {
119
-          width: "".concat(avatarSize, "px"),
120
-          height: "".concat(avatarSize, "px"),
121
-          lineHeight: "".concat(avatarSize, "px"),
122
-          margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
123
-        }
124
-      });
125
-    }
126
-  }, {
127
-    key: "render",
128
-    value: function render() {
129
-      var _this$props3 = this.props,
130
-          showLength = _this$props3.showLength,
131
-          options = _this$props3.options;
132
-      var avatarSize = options.avatarSize,
133
-          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
134
-      return React.createElement("div", {
135
-        className: styles.wrapper
136
-      }, React.createElement("ul", {
137
-        className: styles.consumelist,
138
-        style: {
139
-          width: "calc(".concat(avatarMarginLeftAndRight * 2 + avatarSize, "px * ").concat(showLength, ")")
140
-        }
141
-      }, this.renderConsumeItem(), this.renderToggleButton()));
142
-    }
143
-  }]);
144
-
145
-  return ConsumeListView;
146
-}(Component);
147
-
148
-ConsumeListView.defaultProps = {
149
-  isToggle: false,
150
-  onToggleChange: function onToggleChange() {},
151
-  onConsumeItemClick: function onConsumeItemClick() {},
152
-  dataSource: [],
153
-  listLength: 0,
154
-  showLength: 6,
155
-  options: {
156
-    avatarSize: 36,
157
-    avatarMarginLeftAndRight: 6,
158
-    kingdomWidth: 24,
159
-    kingdomHeight: 22,
160
-    kingdomPosition: [-6, -12]
161
-  }
162
-};
163
-
164
-export default ConsumeListView;
165
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/ConsumeListView/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 24
eslib/Editor/index.d.ts 查看文件

@@ -1,24 +0,0 @@
1
-/// <reference types="react" />
2
-import { BaseEditorProps } from "../BraftEditor/index";
3
-import React from "react";
4
-interface ToolListItem {
5
-    key: any;
6
-    color: string;
7
-    iconClass: string;
8
-    iconTextClass: string;
9
-    onClick: any;
10
-    text?: string;
11
-    render?: (i: ToolListItem, innerIcon: any, innerText: any, divWrapStyle: React.CSSProperties | undefined) => any;
12
-}
13
-interface SimpleEditorProps extends BaseEditorProps {
14
-    toolAlign?: "inner" | "bottom" | "both";
15
-    toolList?: Array<ToolListItem>;
16
-    injectControlsToolBar?: any;
17
-    injectBraftEditorProps?: any;
18
-    toolBarContainerStyle?: any;
19
-    appendToolBtn?: any;
20
-    appendInnderBar?: any;
21
-}
22
-declare const SimpleEditor: (props: SimpleEditorProps) => JSX.Element;
23
-export { default as BraftEditor } from "../BraftEditor/index";
24
-export { SimpleEditor };

+ 0
- 185
eslib/Editor/index.js 查看文件

@@ -1,185 +0,0 @@
1
-import React from 'react';
2
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3
-import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
4
-import { c as classnames } from '../index-e3cf212a.js';
5
-import '../slicedToArray-4cd9e6d3.js';
6
-import 'braft-editor';
7
-import { BarftEditorPage } from '../BraftEditor/index.js';
8
-export { default as BraftEditor } from '../BraftEditor/index.js';
9
-import 'braft-editor/dist/index.css';
10
-import 'braft-extensions/dist/emoticon.css';
11
-import 'braft-extensions/dist/emoticon';
12
-import 'braft-extensions/dist/max-length';
13
-
14
-function ownKeys(object, enumerableOnly) {
15
-  var keys = Object.keys(object);
16
-
17
-  if (Object.getOwnPropertySymbols) {
18
-    var symbols = Object.getOwnPropertySymbols(object);
19
-    if (enumerableOnly) symbols = symbols.filter(function (sym) {
20
-      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
21
-    });
22
-    keys.push.apply(keys, symbols);
23
-  }
24
-
25
-  return keys;
26
-}
27
-
28
-function _objectSpread(target) {
29
-  for (var i = 1; i < arguments.length; i++) {
30
-    var source = arguments[i] != null ? arguments[i] : {};
31
-
32
-    if (i % 2) {
33
-      ownKeys(Object(source), true).forEach(function (key) {
34
-        _defineProperty(target, key, source[key]);
35
-      });
36
-    } else if (Object.getOwnPropertyDescriptors) {
37
-      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
38
-    } else {
39
-      ownKeys(Object(source)).forEach(function (key) {
40
-        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
41
-      });
42
-    }
43
-  }
44
-
45
-  return target;
46
-}
47
-var ControlsToolBar = function ControlsToolBar(props) {
48
-  var editorState = props.editorState,
49
-      setEditorState = props.setEditorState,
50
-      _props$toolList = props.toolList,
51
-      toolList = _props$toolList === void 0 ? [] : _props$toolList,
52
-      _props$injectIconWrap = props.injectIconWrapStyle,
53
-      injectIconWrapStyle = _props$injectIconWrap === void 0 ? {} : _props$injectIconWrap,
54
-      _props$injectIconStyl = props.injectIconStyle,
55
-      injectIconStyle = _props$injectIconStyl === void 0 ? {} : _props$injectIconStyl,
56
-      _props$injectIconText = props.injectIconTextStyle,
57
-      injectIconTextStyle = _props$injectIconText === void 0 ? {} : _props$injectIconText;
58
-
59
-  var IconWrapStyle = _objectSpread({
60
-    display: 'flex',
61
-    alignItems: 'center',
62
-    cursor: "pointer",
63
-    textAlign: "center",
64
-    minWidth: "42px"
65
-  }, injectIconWrapStyle);
66
-
67
-  var IconStyle = _objectSpread({
68
-    fontSize: "21px"
69
-  }, injectIconStyle);
70
-
71
-  var IconTextStyle = _objectSpread({
72
-    margin: "0 4px"
73
-  }, injectIconTextStyle);
74
-
75
-  if (toolList.length < 1) {
76
-    return null;
77
-  }
78
-
79
-  return React.createElement(React.Fragment, null, toolList.map(function (i) {
80
-    var innerIcon = React.createElement("i", {
81
-      className: i.iconClass,
82
-      style: IconStyle
83
-    });
84
-    var innerText = i.text ? React.createElement("span", {
85
-      className: i.iconTextClass,
86
-      style: IconTextStyle
87
-    }, i.text) : null;
88
-
89
-    var divWrapStyle = _objectSpread({
90
-      color: i.color
91
-    }, IconWrapStyle);
92
-
93
-    var wrapperDom = React.createElement("div", {
94
-      key: "toolList_".concat(i.key),
95
-      style: divWrapStyle,
96
-      onClick: i.onClick
97
-    }, innerIcon, innerText);
98
-
99
-    if (i.render) {
100
-      return i.render(i, innerIcon, innerText, divWrapStyle);
101
-    }
102
-
103
-    return wrapperDom;
104
-  }));
105
-};
106
-
107
-var css = ".index_bottomToolBarWrapper__DzhzC {\n  display: flex;\n}\n.index_innerWrapper__1oX5A {\n  position: relative;\n}\n.index_innerWrapper__1oX5A .index_floatControls__16aMl {\n  position: absolute;\n  right: 15px;\n  bottom: 15px;\n  display: flex;\n  z-index: 2;\n}\n";
108
-var styles = {
109
-  "bottomToolBarWrapper": "index_bottomToolBarWrapper__DzhzC",
110
-  "innerWrapper": "index_innerWrapper__1oX5A",
111
-  "floatControls": "index_floatControls__16aMl"
112
-};
113
-styleInject(css);
114
-
115
-var SimpleEditor = function SimpleEditor(props) {
116
-  var value = props.value,
117
-      onChange = props.onChange,
118
-      _props$toolAlign = props.toolAlign,
119
-      toolAlign = _props$toolAlign === void 0 ? "inner" : _props$toolAlign,
120
-      _props$toolList = props.toolList,
121
-      toolList = _props$toolList === void 0 ? [] : _props$toolList,
122
-      _props$injectControls = props.injectControlsToolBar,
123
-      injectControlsToolBar = _props$injectControls === void 0 ? {} : _props$injectControls,
124
-      _props$toolBarContain = props.toolBarContainerStyle,
125
-      toolBarContainerStyle = _props$toolBarContain === void 0 ? {} : _props$toolBarContain,
126
-      _props$injectBraftEdi = props.injectBraftEditorProps,
127
-      injectBraftEditorProps = _props$injectBraftEdi === void 0 ? {} : _props$injectBraftEdi,
128
-      _props$appendToolBtn = props.appendToolBtn,
129
-      appendToolBtn = _props$appendToolBtn === void 0 ? null : _props$appendToolBtn,
130
-      _props$appendInnderBa = props.appendInnderBar,
131
-      appendInnderBar = _props$appendInnderBa === void 0 ? null : _props$appendInnderBa;
132
-
133
-  if (toolAlign === "inner") {
134
-    return React.createElement("div", {
135
-      className: styles.innerWrapper
136
-    }, React.createElement(BarftEditorPage, Object.assign({
137
-      value: value,
138
-      onChange: onChange,
139
-      controls: []
140
-    }, injectBraftEditorProps)), React.createElement("div", {
141
-      className: classnames(styles.floatControls)
142
-    }, React.createElement(ControlsToolBar, Object.assign({
143
-      editorState: value,
144
-      setEditorState: onChange,
145
-      toolList: toolList
146
-    }, injectControlsToolBar))));
147
-  }
148
-
149
-  if (toolAlign === "both") {
150
-    return React.createElement("div", null, React.createElement("div", {
151
-      className: styles.innerWrapper
152
-    }, React.createElement(BarftEditorPage, Object.assign({
153
-      value: value,
154
-      onChange: onChange,
155
-      controls: []
156
-    }, injectBraftEditorProps)), React.createElement("div", {
157
-      className: classnames(styles.floatControls)
158
-    }, appendInnderBar)), React.createElement("div", {
159
-      style: toolBarContainerStyle
160
-    }, React.createElement("div", {
161
-      className: styles.bottomToolBarWrapper
162
-    }, React.createElement(ControlsToolBar, Object.assign({
163
-      editorState: value,
164
-      setEditorState: onChange,
165
-      toolList: toolList
166
-    }, injectControlsToolBar))), appendToolBtn));
167
-  }
168
-
169
-  return React.createElement("div", null, React.createElement(BarftEditorPage, Object.assign({
170
-    value: value,
171
-    onChange: onChange,
172
-    controls: []
173
-  }, injectBraftEditorProps)), React.createElement("div", {
174
-    style: toolBarContainerStyle
175
-  }, React.createElement("div", {
176
-    className: styles.bottomToolBarWrapper
177
-  }, React.createElement(ControlsToolBar, Object.assign({
178
-    editorState: value,
179
-    setEditorState: onChange,
180
-    toolList: toolList
181
-  }, injectControlsToolBar))), appendToolBtn));
182
-};
183
-
184
-export { SimpleEditor };
185
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/Editor/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 30
eslib/Modal/index.d.ts 查看文件

@@ -1,30 +0,0 @@
1
-/// <reference types="react" />
2
-import React from "react";
3
-interface ModalProps {
4
-    visible: boolean;
5
-    onCancel: (e: any) => void;
6
-    container?: HTMLElement;
7
-}
8
-declare class Modal extends React.PureComponent<ModalProps> {
9
-    static hasShowWarning: boolean;
10
-    render(): false | React.ReactPortal | null;
11
-}
12
-interface ModalCMDOptions {
13
-    children: any;
14
-    container?: HTMLElement;
15
-    options?: {
16
-        mask?: true;
17
-    };
18
-}
19
-interface ModalCMDRecord {
20
-    modalInstance: HTMLElement;
21
-}
22
-declare class ModalCMD {
23
-    static currentModal: ModalCMDRecord[];
24
-    constructor();
25
-    private static recordModal;
26
-    private static delModal;
27
-    static show({ children, container }: ModalCMDOptions): void;
28
-    static hide(targetId?: string | number): void;
29
-}
30
-export { Modal as default, Modal, ModalProps, ModalCMDOptions, ModalCMDRecord, ModalCMD };

+ 0
- 155
eslib/Modal/index.js 查看文件

@@ -1,155 +0,0 @@
1
-import { _ as _typeof, a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2
-import React from 'react';
3
-import ReactDOM, { createPortal } from 'react-dom';
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);
18
-
19
-var Modal =
20
-/*#__PURE__*/
21
-function (_React$PureComponent) {
22
-  _inherits(Modal, _React$PureComponent);
23
-
24
-  function Modal() {
25
-    _classCallCheck(this, Modal);
26
-
27
-    return _possibleConstructorReturn(this, _getPrototypeOf(Modal).apply(this, arguments));
28
-  }
29
-
30
-  _createClass(Modal, [{
31
-    key: "render",
32
-    value: function render() {
33
-      if (!isBrowser()) return null;
34
-      var DEFAULT_CONTAINER = document.getElementById("container");
35
-      var _this$props = this.props,
36
-          children = _this$props.children,
37
-          visible = _this$props.visible,
38
-          onCancel = _this$props.onCancel,
39
-          container = _this$props.container;
40
-      var finalMountContainer;
41
-
42
-      if (!container) {
43
-        if (!DEFAULT_CONTAINER) {
44
-          if (!Modal.hasShowWarning) {
45
-            Modal.hasShowWarning = true;
46
-          }
47
-
48
-          finalMountContainer = document.body;
49
-        } else {
50
-          if (!Modal.hasShowWarning) {
51
-            Modal.hasShowWarning = true;
52
-          }
53
-
54
-          finalMountContainer = DEFAULT_CONTAINER;
55
-        }
56
-      } else {
57
-        finalMountContainer = container;
58
-      }
59
-
60
-      return visible && createPortal(React.createElement("div", {
61
-        className: styles.wrapper
62
-      }, React.createElement("div", {
63
-        className: styles.overlay,
64
-        onClick: onCancel
65
-      }), React.createElement("div", {
66
-        className: styles.container
67
-      }, children)), finalMountContainer);
68
-    }
69
-  }]);
70
-
71
-  return Modal;
72
-}(React.PureComponent);
73
-Modal.hasShowWarning = false;
74
-var ModalCMD =
75
-/*#__PURE__*/
76
-function () {
77
-  function ModalCMD() {
78
-    _classCallCheck(this, ModalCMD);
79
-
80
-    ModalCMD.currentModal = [];
81
-  }
82
-
83
-  _createClass(ModalCMD, null, [{
84
-    key: "recordModal",
85
-    value: function recordModal(record) {
86
-      ModalCMD.currentModal.push(record);
87
-    }
88
-  }, {
89
-    key: "delModal",
90
-    value: function delModal() {
91
-      return ModalCMD.currentModal.pop();
92
-    }
93
-  }, {
94
-    key: "show",
95
-    value: function show(_ref) {
96
-      var children = _ref.children,
97
-          container = _ref.container;
98
-      var modalInstance = document.createElement("div");
99
-      var targetMountDom = container ? container : document.body;
100
-      targetMountDom.appendChild(modalInstance);
101
-      ReactDOM.render(React.createElement(React.Fragment, null, React.createElement("div", {
102
-        style: {
103
-          position: "fixed",
104
-          top: 0,
105
-          bottom: 0,
106
-          left: 0,
107
-          right: 0,
108
-          zIndex: 1000
109
-        }
110
-      }, React.createElement("div", {
111
-        style: {
112
-          position: "absolute",
113
-          top: 0,
114
-          bottom: 0,
115
-          left: 0,
116
-          right: 0,
117
-          background: "rgba(0,0,0,1)",
118
-          opacity: 0.6,
119
-          zIndex: -1
120
-        },
121
-        onClick: function onClick() {
122
-          ModalCMD.hide(ModalCMD.currentModal.length);
123
-        }
124
-      }), React.createElement("div", {
125
-        style: {
126
-          position: "absolute",
127
-          top: "50%",
128
-          left: "50%",
129
-          transform: "translate(-50%, -50%)"
130
-        }
131
-      }, children))), modalInstance);
132
-      this.recordModal({
133
-        modalInstance: modalInstance
134
-      });
135
-    }
136
-  }, {
137
-    key: "hide",
138
-    value: function hide(targetId) {
139
-      var popModalRecord = this.delModal();
140
-
141
-      if (popModalRecord && popModalRecord.modalInstance) {
142
-        ReactDOM.unmountComponentAtNode(popModalRecord.modalInstance);
143
-        var parentNode = popModalRecord.modalInstance.parentNode;
144
-        parentNode && parentNode.removeChild(popModalRecord.modalInstance);
145
-      }
146
-    }
147
-  }]);
148
-
149
-  return ModalCMD;
150
-}();
151
-ModalCMD.currentModal = [];
152
-
153
-export default Modal;
154
-export { Modal, ModalCMD };
155
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/Modal/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 28
eslib/PayPlatformOptions/index.d.ts 查看文件

@@ -1,28 +0,0 @@
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 };

+ 0
- 222
eslib/PayPlatformOptions/index.js
文件差異過大導致無法顯示
查看文件


+ 0
- 1
eslib/PayPlatformOptions/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 7
eslib/Payment/index.d.ts 查看文件

@@ -1,7 +0,0 @@
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, WantedViewWranModel } from "../WantedPublishView/index";

+ 0
- 19
eslib/Payment/index.js 查看文件

@@ -1,19 +0,0 @@
1
-import '../inherits-6cb67931.js';
2
-import 'react';
3
-import 'react-dom';
4
-import '../Modal/index.js';
5
-import '../style-inject.es-1f59c1d0.js';
6
-import '../defineProperty-18999f8e.js';
7
-import '../index-e3cf212a.js';
8
-import '../utils-6b513b37.js';
9
-export { default as ConsumeListView } from '../ConsumeListView/index.js';
10
-export { default as PayPlatformOptions } from '../PayPlatformOptions/index.js';
11
-import '../slicedToArray-4cd9e6d3.js';
12
-import 'antd';
13
-export { default as PriceOptions } from '../PriceOptions/index.js';
14
-export { default as WaitPayInfoView } from '../WaitPayInfoView/index.js';
15
-export { default as AllocWantedModal } from '../AllocWantedModal/index.js';
16
-export { default as WantedPublishView, WantedViewWranModel } from '../WantedPublishView/index.js';
17
-export { default as WantedPublishPopover } from '../WantedPublishPopover/index.js';
18
-import '../WantedPublish-b91e67a7.js';
19
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/Payment/index.js.map 查看文件

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

+ 0
- 24
eslib/PriceOptions/index.d.ts 查看文件

@@ -1,24 +0,0 @@
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
-    allowZero: boolean;
11
-    titleText?: string | JSX.Element[] | JSX.Element;
12
-    inputPlaceholderText?: string;
13
-    priceOptions?: Array<any>;
14
-    priceRender?: Function;
15
-    inputPriceRender?: Function;
16
-    inputSuffix?: string | JSX.Element[] | JSX.Element;
17
-    injectOptions?: {
18
-        priceBtnClass: (isActive: boolean) => any;
19
-        priceInputClass: Function;
20
-    };
21
-    inputRef: React.RefObject<any>;
22
-}
23
-declare const PriceOptions: ({ price, onPriceChange, allowZero, rowMode, size, focusScroll, withTitle, titleText, inputPlaceholderText, priceOptions, priceRender, inputPriceRender, inputSuffix, injectOptions, inputRef }: Props) => JSX.Element;
24
-export { PriceOptions as default };

+ 0
- 183
eslib/PriceOptions/index.js 查看文件

@@ -1,183 +0,0 @@
1
-import React, { useState } from 'react';
2
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3
-import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
4
-import { c as classnames } from '../index-e3cf212a.js';
5
-import { e as exportStyleSizeClass } from '../utils-6b513b37.js';
6
-import { _ as _slicedToArray } from '../slicedToArray-4cd9e6d3.js';
7
-import { Input } from 'antd';
8
-
9
-var css = ".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_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  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: 1px solid #ff3266;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  width: 222px;\n  width: auto;\n}\n";
10
-var styles = {
11
-  "options": "PriceOptions_options__ifYbC",
12
-  "infoItem": "PriceOptions_infoItem__246mx",
13
-  "priceItem": "PriceOptions_priceItem__3CPe3",
14
-  "active": "PriceOptions_active__154by",
15
-  "priceInput": "PriceOptions_priceInput__2JFc0",
16
-  "rate": "PriceOptions_rate__17U-9",
17
-  "multi": "PriceOptions_multi__2fM8z",
18
-  "priceBtn": "PriceOptions_priceBtn__1UaE8"
19
-};
20
-styleInject(css);
21
-
22
-function ownKeys(object, enumerableOnly) {
23
-  var keys = Object.keys(object);
24
-
25
-  if (Object.getOwnPropertySymbols) {
26
-    var symbols = Object.getOwnPropertySymbols(object);
27
-    if (enumerableOnly) symbols = symbols.filter(function (sym) {
28
-      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
29
-    });
30
-    keys.push.apply(keys, symbols);
31
-  }
32
-
33
-  return keys;
34
-}
35
-
36
-function _objectSpread(target) {
37
-  for (var i = 1; i < arguments.length; i++) {
38
-    var source = arguments[i] != null ? arguments[i] : {};
39
-
40
-    if (i % 2) {
41
-      ownKeys(Object(source), true).forEach(function (key) {
42
-        _defineProperty(target, key, source[key]);
43
-      });
44
-    } else if (Object.getOwnPropertyDescriptors) {
45
-      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
-    } else {
47
-      ownKeys(Object(source)).forEach(function (key) {
48
-        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
-      });
50
-    }
51
-  }
52
-
53
-  return target;
54
-}
55
-
56
-var PriceOptions = function PriceOptions(_ref) {
57
-  var price = _ref.price,
58
-      onPriceChange = _ref.onPriceChange,
59
-      allowZero = _ref.allowZero,
60
-      _ref$rowMode = _ref.rowMode,
61
-      rowMode = _ref$rowMode === void 0 ? "single" : _ref$rowMode,
62
-      _ref$size = _ref.size,
63
-      size = _ref$size === void 0 ? "normal" : _ref$size,
64
-      _ref$focusScroll = _ref.focusScroll,
65
-      focusScroll = _ref$focusScroll === void 0 ? true : _ref$focusScroll,
66
-      _ref$withTitle = _ref.withTitle,
67
-      withTitle = _ref$withTitle === void 0 ? true : _ref$withTitle,
68
-      _ref$titleText = _ref.titleText,
69
-      titleText = _ref$titleText === void 0 ? "Price" : _ref$titleText,
70
-      _ref$inputPlaceholder = _ref.inputPlaceholderText,
71
-      inputPlaceholderText = _ref$inputPlaceholder === void 0 ? "Others" : _ref$inputPlaceholder,
72
-      _ref$priceOptions = _ref.priceOptions,
73
-      priceOptions = _ref$priceOptions === void 0 ? [100, 600, 800] : _ref$priceOptions,
74
-      _ref$priceRender = _ref.priceRender,
75
-      priceRender = _ref$priceRender === void 0 ? function (i) {
76
-    return i / 100;
77
-  } : _ref$priceRender,
78
-      _ref$inputPriceRender = _ref.inputPriceRender,
79
-      inputPriceRender = _ref$inputPriceRender === void 0 ? function (i) {
80
-    return i ? i / 100 : "";
81
-  } : _ref$inputPriceRender,
82
-      _ref$inputSuffix = _ref.inputSuffix,
83
-      inputSuffix = _ref$inputSuffix === void 0 ? "¥" : _ref$inputSuffix,
84
-      _ref$injectOptions = _ref.injectOptions,
85
-      injectOptions = _ref$injectOptions === void 0 ? {
86
-    priceBtnClass: function priceBtnClass() {
87
-      return undefined;
88
-    },
89
-    priceInputClass: function priceInputClass() {
90
-      return undefined;
91
-    }
92
-  } : _ref$injectOptions,
93
-      inputRef = _ref.inputRef;
94
-  var defaultOptions = priceOptions;
95
-
96
-  var _useState = useState(false),
97
-      _useState2 = _slicedToArray(_useState, 2),
98
-      inputStatus = _useState2[0],
99
-      setInputStatus = _useState2[1];
100
-
101
-  var _useState3 = useState(''),
102
-      _useState4 = _slicedToArray(_useState3, 2),
103
-      inputPrice = _useState4[0],
104
-      setInputPrice = _useState4[1];
105
-
106
-  return React.createElement("div", {
107
-    className: classnames(styles.options, _objectSpread(_defineProperty({}, styles.multi, rowMode === "multi"), exportStyleSizeClass(styles, size)))
108
-  }, withTitle ? titleText || null : null, React.createElement("div", {
109
-    className: styles.infoItem
110
-  }, React.createElement("span", {
111
-    className: styles.priceBtn
112
-  }, defaultOptions.map(function (item) {
113
-    var _objectSpread3;
114
-
115
-    var isActive = price === item && !inputStatus;
116
-    return React.createElement("span", {
117
-      className: classnames(_objectSpread((_objectSpread3 = {}, _defineProperty(_objectSpread3, styles.priceItem, true), _defineProperty(_objectSpread3, styles.active, !injectOptions.priceBtnClass(isActive) && isActive), _objectSpread3), injectOptions.priceBtnClass(isActive))),
118
-      key: item,
119
-      onClick: function onClick() {
120
-        onPriceChange(item);
121
-        setInputStatus(false);
122
-      }
123
-    }, priceRender(item));
124
-  })), React.createElement(Input, {
125
-    ref: inputRef,
126
-    className: classnames(styles.priceInput, _objectSpread({}, injectOptions.priceInputClass())),
127
-    onMouseEnter: function onMouseEnter() {
128
-      if (inputStatus && inputRef && inputRef.current) {
129
-        inputRef.current.focus();
130
-        inputRef.current.select();
131
-      }
132
-    },
133
-    suffix: inputSuffix,
134
-    value: inputStatus ? inputPriceRender(inputPrice) : "",
135
-    placeholder: inputPlaceholderText,
136
-    onChange: function onChange(e) {
137
-      var n = +e.target.value;
138
-
139
-      if (Number.isNaN(n)) {
140
-        return;
141
-      }
142
-
143
-      if (!allowZero && n === 0) {
144
-        return;
145
-      }
146
-
147
-      setInputPrice("".concat(n * 100));
148
-      onPriceChange(n * 100);
149
-    },
150
-    onClick: function onClick(e) {
151
-      if (!inputStatus) {
152
-        setInputPrice('');
153
-        setInputStatus(true);
154
-      }
155
-    },
156
-    onFocus: function onFocus(e) {
157
-      e.target.placeholder = "";
158
-
159
-      if (inputStatus) {
160
-        setInputPrice("".concat(price));
161
-      } else {
162
-        setInputPrice('');
163
-        setInputStatus(true);
164
-      }
165
-
166
-      if (focusScroll) {
167
-        e.target.scrollIntoView();
168
-      }
169
-    },
170
-    onBlur: function onBlur(e) {
171
-      e.target.placeholder = inputPlaceholderText;
172
-
173
-      if (inputPrice) {
174
-        setInputStatus(true);
175
-      } else {
176
-        setInputStatus(false);
177
-      }
178
-    }
179
-  })));
180
-};
181
-
182
-export default PriceOptions;
183
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/PriceOptions/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 14
eslib/WaitPayInfoView/index.d.ts 查看文件

@@ -1,14 +0,0 @@
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
- 82
eslib/WaitPayInfoView/index.js 查看文件

@@ -1,82 +0,0 @@
1
-import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2
-import React, { Component } from 'react';
3
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
-import { c as classnames } from '../index-e3cf212a.js';
5
-
6
-var css = ".WaitPayInfoView_waitingContainer__3pU2F {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
7
-var styles = {
8
-  "waitingContainer": "WaitPayInfoView_waitingContainer__3pU2F"
9
-};
10
-styleInject(css);
11
-
12
-var 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";
13
-
14
-var Button = function Button() {
15
-  for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
16
-    props[_key] = arguments[_key];
17
-  }
18
-
19
-  return React.createElement("button", Object.assign({}, props), "button");
20
-};
21
-
22
-var WaitPayInfoView =
23
-/*#__PURE__*/
24
-function (_Component) {
25
-  _inherits(WaitPayInfoView, _Component);
26
-
27
-  function WaitPayInfoView() {
28
-    _classCallCheck(this, WaitPayInfoView);
29
-
30
-    return _possibleConstructorReturn(this, _getPrototypeOf(WaitPayInfoView).apply(this, arguments));
31
-  }
32
-
33
-  _createClass(WaitPayInfoView, [{
34
-    key: "render",
35
-    value: function render() {
36
-      var _this$props = this.props,
37
-          onClickPayed = _this$props.onClickPayed,
38
-          onClickProblem = _this$props.onClickProblem;
39
-      return React.createElement("div", {
40
-        className: styles.waitingContainer
41
-      }, React.createElement("div", {
42
-        className: styles.infoIconImgContainer
43
-      }, React.createElement("img", {
44
-        src: img,
45
-        alt: "info label icon"
46
-      })), React.createElement("div", null, React.createElement("div", {
47
-        className: styles.pay_text
48
-      }, "live.course_info.pay.notification"), React.createElement("div", {
49
-        className: styles.btn_row
50
-      }, React.createElement(Button, {
51
-        className: classnames(styles.pay_btn, styles.btn_default),
52
-        size: "small",
53
-        onClick: function onClick() {
54
-          onClickPayed && onClickPayed();
55
-        }
56
-      }, "live.course_info.pay.payed"), React.createElement(Button, {
57
-        className: styles.btn_default,
58
-        size: "small",
59
-        style: {
60
-          marginLeft: "16px"
61
-        },
62
-        onClick: function onClick() {
63
-          onClickProblem && onClickProblem();
64
-        }
65
-      }, "live.course_info.pay.help"))));
66
-    }
67
-  }]);
68
-
69
-  return WaitPayInfoView;
70
-}(Component);
71
-WaitPayInfoView.defaultProps = {
72
-  onClickPayed: function onClickPayed() {
73
-    console.log("onClickPayed");
74
-  },
75
-  onClickProblem: function onClickProblem() {
76
-    console.log("onClickProblem");
77
-  }
78
-};
79
-
80
-export default WaitPayInfoView;
81
-export { WaitPayInfoView };
82
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/WaitPayInfoView/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 23
eslib/WantedPublish-b91e67a7.d.ts 查看文件

@@ -1,23 +0,0 @@
1
-import { Component } from "react";
2
-interface WatnedPublishBaseP {
3
-    inputWantedRange?: [number, number];
4
-    handleConfirm?: Function;
5
-    currentWanted?: string | number | null;
6
-    viewConfig?: {
7
-        showInputWantedClear?: boolean;
8
-        viewTextOptions?: {
9
-            viewTitle: string;
10
-            imgLabelBottom: string;
11
-            inputTipTop: string;
12
-            numberSuffix: string;
13
-            inputTipBottom: string;
14
-            clearModalTitle?: string;
15
-            clearModalTip?: string;
16
-        };
17
-    };
18
-}
19
-declare class WatnedPublishBase<T extends WatnedPublishBaseP, S> extends Component<T, S> {
20
-    formatCurrentWanted: (value: string | number | null) => string | number | null;
21
-    formatResult: (value: string | number | null) => string | null;
22
-}
23
-export { WatnedPublishBaseP, WatnedPublishBase };

+ 0
- 45
eslib/WantedPublish-b91e67a7.js 查看文件

@@ -1,45 +0,0 @@
1
-import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf } from './inherits-6cb67931.js';
2
-import { Component } from 'react';
3
-
4
-var WatnedPublishBase =
5
-/*#__PURE__*/
6
-function (_Component) {
7
-  _inherits(WatnedPublishBase, _Component);
8
-
9
-  function WatnedPublishBase() {
10
-    var _this;
11
-
12
-    _classCallCheck(this, WatnedPublishBase);
13
-
14
-    _this = _possibleConstructorReturn(this, _getPrototypeOf(WatnedPublishBase).apply(this, arguments));
15
-
16
-    _this.formatCurrentWanted = function (value) {
17
-      var _this$props$inputWant = _this.props.inputWantedRange,
18
-          inputWantedRange = _this$props$inputWant === void 0 ? [5, 10000] : _this$props$inputWant;
19
-      if (!value) return null;
20
-      var result;
21
-      result = value;
22
-
23
-      if (parseInt("".concat(value), 10) === value) {
24
-        result = Number(value);
25
-      }
26
-
27
-      if (!result) return null;
28
-      if (result > inputWantedRange[1]) result = inputWantedRange[1];
29
-      if (result < inputWantedRange[0]) result = inputWantedRange[0];
30
-      return result;
31
-    };
32
-
33
-    _this.formatResult = function (value) {
34
-      if (!value) return null;
35
-      return Number(value).toFixed(2);
36
-    };
37
-
38
-    return _this;
39
-  }
40
-
41
-  return WatnedPublishBase;
42
-}(Component);
43
-
44
-export { WatnedPublishBase as W };
45
-//# sourceMappingURL=WantedPublish-b91e67a7.js.map

+ 0
- 1
eslib/WantedPublish-b91e67a7.js.map 查看文件

@@ -1 +0,0 @@
1
-{"version":3,"file":"WantedPublish-b91e67a7.js","sources":["../src/components/Payment/BaseClassComponents/WantedPublish.tsx"],"sourcesContent":["import React, { Component } from \"react\";\n\nexport interface WatnedPublishBaseP {\n  inputWantedRange?: [number, number];\n  handleConfirm?: Function;\n  currentWanted?: string | number | null;\n  viewConfig?: {\n    showInputWantedClear?: boolean;\n    viewTextOptions?: {\n      viewTitle: string;\n      imgLabelBottom: string;\n      inputTipTop: string;\n      numberSuffix: string;\n      inputTipBottom: string;\n      clearModalTitle?: string;\n      clearModalTip?: string;\n    };\n  };\n}\n\nexport class WatnedPublishBase<\n  T extends WatnedPublishBaseP,\n  S\n> extends Component<T, S> {\n  formatCurrentWanted = (\n    value: string | number | null\n  ): string | number | null => {\n    const { inputWantedRange = [5, 10000] } = this.props;\n    if (!value) return null;\n    let result: string | number;\n    result = value;\n    if (parseInt(`${value}`, 10) === value) {\n      // 无小数判断\n      result = Number(value);\n    }\n    if (!result) return null;\n    if (result > inputWantedRange[1]) result = inputWantedRange[1];\n    if (result < inputWantedRange[0]) result = inputWantedRange[0];\n    return result;\n  };\n\n  formatResult = (value: string | number | null) => {\n    if (!value) return null;\n    return Number(value).toFixed(2);\n  };\n}\n"],"names":["WatnedPublishBase","formatCurrentWanted","value","_this","props","inputWantedRange","result","parseInt","Number","formatResult","toFixed","Component"],"mappings":";;;IAoBaA,iBAAb;AAAA;AAAA,oBAAA;;;+BAAA;;;;;;;UAIEC,sBAAsB,UACpBC,KADoB,EAEM;kCACgBC,MAAKC,KAAL,CAAlCC;UAAAA,gBADkB,sCACC,CAAC,CAAD,EAAI,KAAJ;UACvB,CAACH,OAAO,OAAO,IAAP;UACRI;AACJA,MAAAA,MAAM,GAAGJ,KAAT;;UACIK,QAAQ,WAAIL,MAAJ,EAAa,EAAb,CAAR,KAA6BA,OAAO;AAEtCI,QAAAA,MAAM,GAAGE,MAAM,CAACN,KAAD,CAAf;;;UAEE,CAACI,QAAQ,OAAO,IAAP;UACTA,MAAM,GAAGD,gBAAgB,CAAC,CAAD,GAAKC,MAAM,GAAGD,gBAAgB,CAAC,CAAD,CAAzB;UAC9BC,MAAM,GAAGD,gBAAgB,CAAC,CAAD,GAAKC,MAAM,GAAGD,gBAAgB,CAAC,CAAD,CAAzB;aAC3BC;AAdT;;UAiBAG,eAAe,UAACP,KAAD,EAAkC;UAC3C,CAACA,OAAO,OAAO,IAAP;aACLM,MAAM,CAACN,KAAD,CAAN,CAAcQ,OAAd,CAAsB,CAAtB;AAFT;;;;;;CArBF,CAGUC,SAHV;;;;"}

+ 0
- 18
eslib/WantedPublishModal/index.d.ts 查看文件

@@ -1,18 +0,0 @@
1
-/// <reference types="react" />
2
-import React from "react";
3
-import { ModalProps } from "../Modal/index";
4
-import { WatnedPublishBase, WatnedPublishBaseP } from "../WantedPublish-b91e67a7";
5
-interface WantedPublishModalProps extends WatnedPublishBaseP {
6
-    modalConfig?: ModalProps;
7
-}
8
-interface WantedPublishModalState {
9
-    modalVisible: boolean;
10
-    current_wanted: number | string | null;
11
-}
12
-declare class WantedPublishModal extends WatnedPublishBase<WantedPublishModalProps, WantedPublishModalState> {
13
-    constructor(props: WantedPublishModalProps);
14
-    handleConfirmButton: (containerRef?: React.RefObject<any> | undefined) => void;
15
-    renderMain(): JSX.Element;
16
-    render(): JSX.Element;
17
-}
18
-export { WantedPublishModal as default, WantedPublishModal };

+ 0
- 123
eslib/WantedPublishModal/index.js 查看文件

@@ -1,123 +0,0 @@
1
-import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2
-import React from 'react';
3
-import 'react-dom';
4
-import Modal from '../Modal/index.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6
-import '../defineProperty-18999f8e.js';
7
-import '../index-e3cf212a.js';
8
-import 'antd';
9
-import WantedPublishView from '../WantedPublishView/index.js';
10
-import { W as WatnedPublishBase } from '../WantedPublish-b91e67a7.js';
11
-
12
-var css = ".WantedPublishModal_modalBg__3OlNh {\n  background: white;\n  display: flex;\n  justify-content: center;\n  flex-direction: column;\n  align-items: center;\n  padding: 16px;\n  text-align: center;\n  border-radius: 4px;\n}\n";
13
-var styles = {
14
-  "modalBg": "WantedPublishModal_modalBg__3OlNh"
15
-};
16
-styleInject(css);
17
-
18
-var WantedPublishModal =
19
-/*#__PURE__*/
20
-function (_WatnedPublishBase) {
21
-  _inherits(WantedPublishModal, _WatnedPublishBase);
22
-
23
-  function WantedPublishModal(props) {
24
-    var _this;
25
-
26
-    _classCallCheck(this, WantedPublishModal);
27
-
28
-    _this = _possibleConstructorReturn(this, _getPrototypeOf(WantedPublishModal).call(this, props));
29
-
30
-    _this.handleConfirmButton = function (containerRef) {
31
-      var handleConfirm = _this.props.handleConfirm;
32
-
33
-      if (handleConfirm) {
34
-        var value = _this.formatCurrentWanted(_this.state.current_wanted);
35
-
36
-        handleConfirm(value ? Number(value).toFixed(2) : value);
37
-      }
38
-
39
-      _this.setState({
40
-        modalVisible: false
41
-      });
42
-    };
43
-
44
-    _this.state = {
45
-      modalVisible: false,
46
-      current_wanted: null
47
-    };
48
-    return _this;
49
-  }
50
-
51
-  _createClass(WantedPublishModal, [{
52
-    key: "renderMain",
53
-    value: function renderMain() {
54
-      var _this2 = this;
55
-
56
-      var current_wanted = this.state.current_wanted;
57
-      return React.createElement(WantedPublishView, Object.assign({
58
-        wrapperClass: styles.modalBg,
59
-        current_wanted: current_wanted,
60
-        InputWantedValueChange: function InputWantedValueChange(v) {
61
-          return _this2.setState({
62
-            current_wanted: v
63
-          });
64
-        },
65
-        InputWantedPressEnter: function InputWantedPressEnter(v) {
66
-          var value = _this2.formatCurrentWanted(v);
67
-
68
-          if (_this2.props.handleConfirm) _this2.props.handleConfirm(_this2.formatResult(value));
69
-
70
-          _this2.setState({
71
-            current_wanted: value,
72
-            modalVisible: false
73
-          });
74
-        },
75
-        InputWantedOnBlur: function InputWantedOnBlur(v) {
76
-          var value = _this2.formatCurrentWanted(v);
77
-
78
-          _this2.setState({
79
-            current_wanted: value
80
-          });
81
-        },
82
-        InputWantedClear: function InputWantedClear() {
83
-          _this2.setState({
84
-            current_wanted: null
85
-          }, function () {
86
-            if (_this2.props.handleConfirm) _this2.props.handleConfirm(null);
87
-
88
-            _this2.setState({
89
-              modalVisible: false
90
-            });
91
-          });
92
-        },
93
-        InputWantedConfirm: this.handleConfirmButton
94
-      }, this.props.viewConfig));
95
-    }
96
-  }, {
97
-    key: "render",
98
-    value: function render() {
99
-      var _this3 = this;
100
-
101
-      return React.createElement(React.Fragment, null, React.createElement("div", {
102
-        onClick: function onClick() {
103
-          return _this3.setState({
104
-            modalVisible: true
105
-          });
106
-        }
107
-      }, this.props.children), React.createElement(Modal, Object.assign({
108
-        visible: this.state.modalVisible,
109
-        onCancel: function onCancel() {
110
-          _this3.setState({
111
-            modalVisible: false
112
-          });
113
-        }
114
-      }, this.props.modalConfig), this.renderMain()));
115
-    }
116
-  }]);
117
-
118
-  return WantedPublishModal;
119
-}(WatnedPublishBase);
120
-
121
-export default WantedPublishModal;
122
-export { WantedPublishModal };
123
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/WantedPublishModal/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 18
eslib/WantedPublishPopover/index.d.ts 查看文件

@@ -1,18 +0,0 @@
1
-/// <reference types="react" />
2
-import React from "react";
3
-import { PopoverProps } from "antd/lib/popover";
4
-import { WatnedPublishBase, WatnedPublishBaseP } from "../WantedPublish-b91e67a7";
5
-interface WantedPublishPopoverProp extends WatnedPublishBaseP {
6
-    popoverConfig?: PopoverProps;
7
-}
8
-interface WantedPublishPopoverState {
9
-    visible: boolean;
10
-    current_wanted: number | string | null;
11
-}
12
-declare class WantedPublishPopover extends WatnedPublishBase<WantedPublishPopoverProp, WantedPublishPopoverState> {
13
-    constructor(props: WantedPublishPopoverProp);
14
-    handleConfirmButton: (containerRef?: React.RefObject<any> | undefined) => void;
15
-    renderInitView(): JSX.Element;
16
-    render(): JSX.Element;
17
-}
18
-export { WantedPublishPopover as default, WantedPublishPopover, WantedPublishPopoverProp, WantedPublishPopoverState };

+ 0
- 152
eslib/WantedPublishPopover/index.js 查看文件

@@ -1,152 +0,0 @@
1
-import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2
-import React from 'react';
3
-import 'react-dom';
4
-import '../Modal/index.js';
5
-import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6
-import '../defineProperty-18999f8e.js';
7
-import '../index-e3cf212a.js';
8
-import { Popover } from 'antd';
9
-import WantedPublishView from '../WantedPublishView/index.js';
10
-import { W as WatnedPublishBase } from '../WantedPublish-b91e67a7.js';
11
-
12
-var 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";
13
-
14
-var css = ".WantedPublishPopover_wantedWrapper__3CrCz {\n  width: 366px;\n  height: 424px;\n  font-size: 18px;\n  text-align: center;\n}\n.WantedPublishPopover_wantedWrapper__3CrCz .WantedPublishPopover_closeBtnWrapper__1KV58 {\n  position: absolute;\n  top: 10px;\n  right: 16px;\n  width: 20px;\n  height: 20px;\n}\n.WantedPublishPopover_wantedWrapper__3CrCz .WantedPublishPopover_closeBtnWrapper__1KV58:focus {\n  outline: none;\n}\n.WantedPublishPopover_wantedWrapper__3CrCz .WantedPublishPopover_closeBtnWrapper__1KV58 > div.WantedPublishPopover_closeBtn__1aBMB {\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  cursor: pointer;\n}\n.WantedPublishPopover_wantedWrapper__3CrCz .WantedPublishPopover_closeBtnWrapper__1KV58 > div.WantedPublishPopover_closeBtn__1aBMB > img {\n  width: 100%;\n}\n";
15
-var styles = {
16
-  "wantedWrapper": "WantedPublishPopover_wantedWrapper__3CrCz",
17
-  "closeBtnWrapper": "WantedPublishPopover_closeBtnWrapper__1KV58",
18
-  "closeBtn": "WantedPublishPopover_closeBtn__1aBMB"
19
-};
20
-styleInject(css);
21
-
22
-var WantedPublishPopover =
23
-/*#__PURE__*/
24
-function (_WatnedPublishBase) {
25
-  _inherits(WantedPublishPopover, _WatnedPublishBase);
26
-
27
-  function WantedPublishPopover(props) {
28
-    var _this;
29
-
30
-    _classCallCheck(this, WantedPublishPopover);
31
-
32
-    _this = _possibleConstructorReturn(this, _getPrototypeOf(WantedPublishPopover).call(this, props));
33
-
34
-    _this.handleConfirmButton = function (containerRef) {
35
-      var handleConfirm = _this.props.handleConfirm;
36
-
37
-      if (handleConfirm) {
38
-        var value = _this.formatCurrentWanted(_this.state.current_wanted);
39
-
40
-        handleConfirm(_this.formatResult(value), containerRef);
41
-      }
42
-
43
-      _this.setState({
44
-        visible: false
45
-      });
46
-    };
47
-
48
-    _this.state = {
49
-      visible: false,
50
-      current_wanted: null
51
-    };
52
-    return _this;
53
-  }
54
-
55
-  _createClass(WantedPublishPopover, [{
56
-    key: "renderInitView",
57
-    value: function renderInitView() {
58
-      var _this2 = this;
59
-
60
-      var current_wanted = this.state.current_wanted;
61
-      return React.createElement(WantedPublishView, Object.assign({
62
-        type: "pop",
63
-        current_wanted: current_wanted,
64
-        InputWantedValueChange: function InputWantedValueChange(v) {
65
-          return _this2.setState({
66
-            current_wanted: v
67
-          });
68
-        },
69
-        InputWantedPressEnter: function InputWantedPressEnter(v) {
70
-          var value = _this2.formatCurrentWanted(v);
71
-
72
-          if (_this2.props.handleConfirm) _this2.props.handleConfirm(_this2.formatResult(value));
73
-
74
-          _this2.setState({
75
-            current_wanted: value,
76
-            visible: false
77
-          });
78
-        },
79
-        InputWantedOnBlur: function InputWantedOnBlur(v) {
80
-          var value = _this2.formatCurrentWanted(v);
81
-
82
-          _this2.setState({
83
-            current_wanted: value
84
-          });
85
-        },
86
-        InputWantedClear: function InputWantedClear() {
87
-          _this2.setState({
88
-            current_wanted: null
89
-          }, function () {
90
-            if (_this2.props.handleConfirm) _this2.props.handleConfirm(null);
91
-
92
-            _this2.setState({
93
-              visible: false
94
-            });
95
-          });
96
-        },
97
-        InputWantedConfirm: this.handleConfirmButton
98
-      }, this.props.viewConfig));
99
-    }
100
-  }, {
101
-    key: "render",
102
-    value: function render() {
103
-      var _this3 = this;
104
-
105
-      var _this$props = this.props,
106
-          children = _this$props.children,
107
-          _this$props$popoverCo = _this$props.popoverConfig,
108
-          popoverConfig = _this$props$popoverCo === void 0 ? {} : _this$props$popoverCo,
109
-          currentWanted = _this$props.currentWanted;
110
-      return React.createElement(Popover, Object.assign({
111
-        placement: "left",
112
-        trigger: "click",
113
-        visible: this.state.visible,
114
-        onVisibleChange: function onVisibleChange(value) {
115
-          if (value && currentWanted) {
116
-            _this3.setState({
117
-              current_wanted: +currentWanted
118
-            });
119
-          }
120
-
121
-          _this3.setState({
122
-            visible: value
123
-          });
124
-        }
125
-      }, popoverConfig, {
126
-        content: React.createElement("div", {
127
-          className: styles.wantedWrapper
128
-        }, React.createElement("div", {
129
-          role: "button",
130
-          tabIndex: 1,
131
-          className: styles.closeBtnWrapper
132
-        }, React.createElement("div", {
133
-          className: styles.closeBtn,
134
-          onClick: function onClick() {
135
-            _this3.setState({
136
-              visible: false
137
-            });
138
-          }
139
-        }, React.createElement("img", {
140
-          src: img,
141
-          alt: "close wanted button"
142
-        }))), this.renderInitView())
143
-      }), children);
144
-    }
145
-  }]);
146
-
147
-  return WantedPublishPopover;
148
-}(WatnedPublishBase);
149
-
150
-export default WantedPublishPopover;
151
-export { WantedPublishPopover };
152
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/WantedPublishPopover/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 39
eslib/WantedPublishView/index.d.ts 查看文件

@@ -1,39 +0,0 @@
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
-    showInputWantedClear?: boolean;
8
-    viewTextOptions?: {
9
-        viewTitle: string;
10
-        imgLabelBottom: string;
11
-        inputTipTop: string;
12
-        numberSuffix: string;
13
-        inputTipBottom: string;
14
-    };
15
-    InputWantedValueChange: Function;
16
-    InputWantedPressEnter: Function;
17
-    InputWantedOnBlur: Function;
18
-    InputWantedClear: Function;
19
-    InputWantedConfirm: Function;
20
-}
21
-interface WantedPublishViewState {
22
-    payment?: number;
23
-}
24
-declare class WantedPublishView extends React.Component<WantedPublishViewProps, WantedPublishViewState> {
25
-    private containerRef;
26
-    constructor(props: WantedPublishViewProps);
27
-    componentWillUnmount(): void;
28
-    render(): JSX.Element;
29
-}
30
-declare function WantedViewWranModel({ refMount, actionConfirm, actionCancel, viewTextOptions }: {
31
-    refMount: any;
32
-    actionConfirm: any;
33
-    actionCancel: any;
34
-    viewTextOptions?: {
35
-        warnModalTitle?: string;
36
-        warnModalTip?: string;
37
-    };
38
-}): void;
39
-export { WantedPublishView as default, WantedViewWranModel };

+ 0
- 178
eslib/WantedPublishView/index.js
文件差異過大導致無法顯示
查看文件


+ 0
- 1
eslib/WantedPublishView/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 0
eslib/defineProperty-18999f8e.d.ts 查看文件


+ 0
- 17
eslib/defineProperty-18999f8e.js 查看文件

@@ -1,17 +0,0 @@
1
-function _defineProperty(obj, key, value) {
2
-  if (key in obj) {
3
-    Object.defineProperty(obj, key, {
4
-      value: value,
5
-      enumerable: true,
6
-      configurable: true,
7
-      writable: true
8
-    });
9
-  } else {
10
-    obj[key] = value;
11
-  }
12
-
13
-  return obj;
14
-}
15
-
16
-export { _defineProperty as _ };
17
-//# sourceMappingURL=defineProperty-18999f8e.js.map

+ 0
- 1
eslib/defineProperty-18999f8e.js.map 查看文件

@@ -1 +0,0 @@
1
-{"version":3,"file":"defineProperty-18999f8e.js","sources":["../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["export default function _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n}"],"names":[],"mappings":"AAAe,SAAS,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE;AACzD,EAAE,IAAI,GAAG,IAAI,GAAG,EAAE;AAClB,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE;AACpC,MAAM,KAAK,EAAE,KAAK;AAClB,MAAM,UAAU,EAAE,IAAI;AACtB,MAAM,YAAY,EAAE,IAAI;AACxB,MAAM,QAAQ,EAAE,IAAI;AACpB,KAAK,CAAC,CAAC;AACP,GAAG,MAAM;AACT,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACrB,GAAG;AACH;AACA,EAAE,OAAO,GAAG,CAAC;AACb;;;;"}

+ 0
- 0
eslib/index-e3cf212a.d.ts 查看文件


+ 0
- 55
eslib/index-e3cf212a.js 查看文件

@@ -1,55 +0,0 @@
1
-function createCommonjsModule(fn, module) {
2
-	return module = { exports: {} }, fn(module, module.exports), module.exports;
3
-}
4
-
5
-var classnames = createCommonjsModule(function (module) {
6
-/*!
7
-  Copyright (c) 2017 Jed Watson.
8
-  Licensed under the MIT License (MIT), see
9
-  http://jedwatson.github.io/classnames
10
-*/
11
-/* global define */
12
-
13
-(function () {
14
-
15
-	var hasOwn = {}.hasOwnProperty;
16
-
17
-	function classNames () {
18
-		var classes = [];
19
-
20
-		for (var i = 0; i < arguments.length; i++) {
21
-			var arg = arguments[i];
22
-			if (!arg) continue;
23
-
24
-			var argType = typeof arg;
25
-
26
-			if (argType === 'string' || argType === 'number') {
27
-				classes.push(arg);
28
-			} else if (Array.isArray(arg) && arg.length) {
29
-				var inner = classNames.apply(null, arg);
30
-				if (inner) {
31
-					classes.push(inner);
32
-				}
33
-			} else if (argType === 'object') {
34
-				for (var key in arg) {
35
-					if (hasOwn.call(arg, key) && arg[key]) {
36
-						classes.push(key);
37
-					}
38
-				}
39
-			}
40
-		}
41
-
42
-		return classes.join(' ');
43
-	}
44
-
45
-	if ( module.exports) {
46
-		classNames.default = classNames;
47
-		module.exports = classNames;
48
-	} else {
49
-		window.classNames = classNames;
50
-	}
51
-}());
52
-});
53
-
54
-export { classnames as c };
55
-//# sourceMappingURL=index-e3cf212a.js.map

+ 0
- 1
eslib/index-e3cf212a.js.map 查看文件

@@ -1 +0,0 @@
1
-{"version":3,"file":"index-e3cf212a.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;;;;;"}

+ 0
- 2
eslib/index.d.ts 查看文件

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

+ 0
- 19
eslib/index.js 查看文件

@@ -1,19 +0,0 @@
1
-import './inherits-6cb67931.js';
2
-import 'react';
3
-import 'react-dom';
4
-export { default as Modal, ModalCMD } from './Modal/index.js';
5
-import './style-inject.es-1f59c1d0.js';
6
-import './defineProperty-18999f8e.js';
7
-import './index-e3cf212a.js';
8
-import './utils-6b513b37.js';
9
-export { default as ConsumeListView } from './ConsumeListView/index.js';
10
-export { default as PayPlatformOptions } from './PayPlatformOptions/index.js';
11
-import './slicedToArray-4cd9e6d3.js';
12
-import 'antd';
13
-export { default as PriceOptions } from './PriceOptions/index.js';
14
-export { default as WaitPayInfoView } from './WaitPayInfoView/index.js';
15
-export { default as AllocWantedModal } from './AllocWantedModal/index.js';
16
-export { default as WantedPublishView, WantedViewWranModel } from './WantedPublishView/index.js';
17
-export { default as WantedPublishPopover } from './WantedPublishPopover/index.js';
18
-import './WantedPublish-b91e67a7.js';
19
-//# sourceMappingURL=index.js.map

+ 0
- 1
eslib/index.js.map 查看文件

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

+ 0
- 0
eslib/inherits-6cb67931.d.ts 查看文件


+ 0
- 87
eslib/inherits-6cb67931.js 查看文件

@@ -1,87 +0,0 @@
1
-function _classCallCheck(instance, Constructor) {
2
-  if (!(instance instanceof Constructor)) {
3
-    throw new TypeError("Cannot call a class as a function");
4
-  }
5
-}
6
-
7
-function _defineProperties(target, props) {
8
-  for (var i = 0; i < props.length; i++) {
9
-    var descriptor = props[i];
10
-    descriptor.enumerable = descriptor.enumerable || false;
11
-    descriptor.configurable = true;
12
-    if ("value" in descriptor) descriptor.writable = true;
13
-    Object.defineProperty(target, descriptor.key, descriptor);
14
-  }
15
-}
16
-
17
-function _createClass(Constructor, protoProps, staticProps) {
18
-  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
19
-  if (staticProps) _defineProperties(Constructor, staticProps);
20
-  return Constructor;
21
-}
22
-
23
-function _typeof(obj) {
24
-  "@babel/helpers - typeof";
25
-
26
-  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
27
-    _typeof = function _typeof(obj) {
28
-      return typeof obj;
29
-    };
30
-  } else {
31
-    _typeof = function _typeof(obj) {
32
-      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
33
-    };
34
-  }
35
-
36
-  return _typeof(obj);
37
-}
38
-
39
-function _assertThisInitialized(self) {
40
-  if (self === void 0) {
41
-    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
42
-  }
43
-
44
-  return self;
45
-}
46
-
47
-function _possibleConstructorReturn(self, call) {
48
-  if (call && (_typeof(call) === "object" || typeof call === "function")) {
49
-    return call;
50
-  }
51
-
52
-  return _assertThisInitialized(self);
53
-}
54
-
55
-function _getPrototypeOf(o) {
56
-  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
57
-    return o.__proto__ || Object.getPrototypeOf(o);
58
-  };
59
-  return _getPrototypeOf(o);
60
-}
61
-
62
-function _setPrototypeOf(o, p) {
63
-  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
64
-    o.__proto__ = p;
65
-    return o;
66
-  };
67
-
68
-  return _setPrototypeOf(o, p);
69
-}
70
-
71
-function _inherits(subClass, superClass) {
72
-  if (typeof superClass !== "function" && superClass !== null) {
73
-    throw new TypeError("Super expression must either be null or a function");
74
-  }
75
-
76
-  subClass.prototype = Object.create(superClass && superClass.prototype, {
77
-    constructor: {
78
-      value: subClass,
79
-      writable: true,
80
-      configurable: true
81
-    }
82
-  });
83
-  if (superClass) _setPrototypeOf(subClass, superClass);
84
-}
85
-
86
-export { _typeof as _, _inherits as a, _classCallCheck as b, _possibleConstructorReturn as c, _getPrototypeOf as d, _createClass as e };
87
-//# sourceMappingURL=inherits-6cb67931.js.map

+ 0
- 1
eslib/inherits-6cb67931.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 0
eslib/slicedToArray-4cd9e6d3.d.ts 查看文件


+ 0
- 44
eslib/slicedToArray-4cd9e6d3.js 查看文件

@@ -1,44 +0,0 @@
1
-function _arrayWithHoles(arr) {
2
-  if (Array.isArray(arr)) return arr;
3
-}
4
-
5
-function _iterableToArrayLimit(arr, i) {
6
-  if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
7
-    return;
8
-  }
9
-
10
-  var _arr = [];
11
-  var _n = true;
12
-  var _d = false;
13
-  var _e = undefined;
14
-
15
-  try {
16
-    for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
17
-      _arr.push(_s.value);
18
-
19
-      if (i && _arr.length === i) break;
20
-    }
21
-  } catch (err) {
22
-    _d = true;
23
-    _e = err;
24
-  } finally {
25
-    try {
26
-      if (!_n && _i["return"] != null) _i["return"]();
27
-    } finally {
28
-      if (_d) throw _e;
29
-    }
30
-  }
31
-
32
-  return _arr;
33
-}
34
-
35
-function _nonIterableRest() {
36
-  throw new TypeError("Invalid attempt to destructure non-iterable instance");
37
-}
38
-
39
-function _slicedToArray(arr, i) {
40
-  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
41
-}
42
-
43
-export { _slicedToArray as _ };
44
-//# sourceMappingURL=slicedToArray-4cd9e6d3.js.map

+ 0
- 1
eslib/slicedToArray-4cd9e6d3.js.map 查看文件

@@ -1 +0,0 @@
1
-{"version":3,"file":"slicedToArray-4cd9e6d3.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js"],"sourcesContent":["export default function _arrayWithHoles(arr) {\n  if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n  if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n    return;\n  }\n\n  var _arr = [];\n  var _n = true;\n  var _d = false;\n  var _e = undefined;\n\n  try {\n    for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n      _arr.push(_s.value);\n\n      if (i && _arr.length === i) break;\n    }\n  } catch (err) {\n    _d = true;\n    _e = err;\n  } finally {\n    try {\n      if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n    } finally {\n      if (_d) throw _e;\n    }\n  }\n\n  return _arr;\n}","export default function _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}","import arrayWithHoles from \"./arrayWithHoles\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit\";\nimport nonIterableRest from \"./nonIterableRest\";\nexport default function _slicedToArray(arr, i) {\n  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}"],"names":["arrayWithHoles","iterableToArrayLimit","nonIterableRest"],"mappings":"AAAe,SAAS,eAAe,CAAC,GAAG,EAAE;AAC7C,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC;AACrC;;ACFe,SAAS,qBAAqB,CAAC,GAAG,EAAE,CAAC,EAAE;AACtD,EAAE,IAAI,EAAE,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,oBAAoB,CAAC,EAAE;AACzG,IAAI,OAAO;AACX,GAAG;AACH;AACA,EAAE,IAAI,IAAI,GAAG,EAAE,CAAC;AAChB,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;AAChB,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;AACjB,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;AACrB;AACA,EAAE,IAAI;AACN,IAAI,KAAK,IAAI,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE;AACxF,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AAC1B;AACA,MAAM,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM;AACxC,KAAK;AACL,GAAG,CAAC,OAAO,GAAG,EAAE;AAChB,IAAI,EAAE,GAAG,IAAI,CAAC;AACd,IAAI,EAAE,GAAG,GAAG,CAAC;AACb,GAAG,SAAS;AACZ,IAAI,IAAI;AACR,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AACtD,KAAK,SAAS;AACd,MAAM,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC;AACvB,KAAK;AACL,GAAG;AACH;AACA,EAAE,OAAO,IAAI,CAAC;AACd;;CAAC,DC5Bc,SAAS,gBAAgB,GAAG;AAC3C,EAAE,MAAM,IAAI,SAAS,CAAC,sDAAsD,CAAC,CAAC;AAC9E;;CAAC,DCCc,SAAS,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE;AAC/C,EAAE,OAAOA,eAAc,CAAC,GAAG,CAAC,IAAIC,qBAAoB,CAAC,GAAG,EAAE,CAAC,CAAC,IAAIC,gBAAe,EAAE,CAAC;AAClF;;;;"}

+ 0
- 0
eslib/style-inject.es-1f59c1d0.d.ts 查看文件


+ 0
- 29
eslib/style-inject.es-1f59c1d0.js 查看文件

@@ -1,29 +0,0 @@
1
-function styleInject(css, ref) {
2
-  if ( ref === void 0 ) ref = {};
3
-  var insertAt = ref.insertAt;
4
-
5
-  if (!css || typeof document === 'undefined') { return; }
6
-
7
-  var head = document.head || document.getElementsByTagName('head')[0];
8
-  var style = document.createElement('style');
9
-  style.type = 'text/css';
10
-
11
-  if (insertAt === 'top') {
12
-    if (head.firstChild) {
13
-      head.insertBefore(style, head.firstChild);
14
-    } else {
15
-      head.appendChild(style);
16
-    }
17
-  } else {
18
-    head.appendChild(style);
19
-  }
20
-
21
-  if (style.styleSheet) {
22
-    style.styleSheet.cssText = css;
23
-  } else {
24
-    style.appendChild(document.createTextNode(css));
25
-  }
26
-}
27
-
28
-export { styleInject as s };
29
-//# sourceMappingURL=style-inject.es-1f59c1d0.js.map

+ 0
- 1
eslib/style-inject.es-1f59c1d0.js.map 查看文件

@@ -1 +0,0 @@
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
- 17
eslib/utils-6b513b37.d.ts 查看文件

@@ -1,17 +0,0 @@
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 };

+ 0
- 35
eslib/utils-6b513b37.js 查看文件

@@ -1,35 +0,0 @@
1
-import { _ as _defineProperty } from './defineProperty-18999f8e.js';
2
-
3
-var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
4
-var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
5
-var IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';
6
-function addImageProcess(url) {
7
-  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
8
-    width: '36px',
9
-    height: '36px'
10
-  };
11
-
12
-  if (url && url.indexOf('x-oss-process') > -1) {
13
-    return url;
14
-  }
15
-
16
-  if (options.small) {
17
-    return url + IMAGE_PROCESS_SMALL;
18
-  }
19
-
20
-  if (options.large) {
21
-    return url + IMAGE_PROCESS_LARGE;
22
-  }
23
-
24
-  if (options.custom) {
25
-    return "".concat(url, "?x-oss-process=image/resize,limit_0,m_fill,w_").concat(options.width, ",h_").concat(options.height);
26
-  }
27
-
28
-  return url + IMAGE_PROCESS;
29
-}
30
-function exportStyleSizeClass(styles, size) {
31
-  return _defineProperty({}, styles[size], true);
32
-}
33
-
34
-export { addImageProcess as a, exportStyleSizeClass as e };
35
-//# sourceMappingURL=utils-6b513b37.js.map

+ 0
- 1
eslib/utils-6b513b37.js.map 查看文件

@@ -1 +0,0 @@
1
-{"version":3,"file":"utils-6b513b37.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\n\ninterface AddImageProcessOptions {\n  small?: boolean;\n  large?: boolean;\n  custom?: boolean;\n  width?: string;\n  height?: string;\n}\n\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\n  // 防止重复添加导致的url不正确\n  if (url && url.indexOf('x-oss-process') > -1) {\n    return url;\n  }\n  if (options.small) {\n    return url + IMAGE_PROCESS_SMALL;\n  }\n  if (options.large) {\n    return url + IMAGE_PROCESS_LARGE;\n  }\n  if (options.custom) {\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\n  }\n  return url + IMAGE_PROCESS;\n}\n\nexport function formatMoney(input: any, fuzz = 2) {\n  if (isNaN(+input)) {\n    return input;\n  }\n  return (+input).toFixed(fuzz);\n}\n\ntype classSize = 'small'|'normal'|'large';\n\nexport function exportStyleSizeClass(styles: any, size: classSize) {\n  return {\n    [styles[size]]: true,\n  }\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;MAAnEC,OAAmE,uEAAjC;AAAEC,IAAAA,KAAK,EAAE,MAAT;AAAiBC,IAAAA,MAAM,EAAE;AAAzB;;MAEzEH,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;;;;;"}

+ 0
- 34
lib/AllocWantedModal/index.d.ts 查看文件

@@ -1,34 +0,0 @@
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: string | number) => 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 };

+ 0
- 231
lib/AllocWantedModal/index.js 查看文件

@@ -1,231 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
-var inherits = require('../inherits-c86d64c1.js');
8
-var React = require('react');
9
-var React__default = _interopDefault(React);
10
-require('react-dom');
11
-var Modal = require('../Modal/index.js');
12
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
13
-var antd = require('antd');
14
-
15
-var 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
-};
31
-styleInject_es.styleInject(css);
32
-
33
-var AllocWantedModal =
34
-/*#__PURE__*/
35
-function (_React$Component) {
36
-  inherits._inherits(AllocWantedModal, _React$Component);
37
-
38
-  function AllocWantedModal(props) {
39
-    var _this;
40
-
41
-    inherits._classCallCheck(this, AllocWantedModal);
42
-
43
-    _this = inherits._possibleConstructorReturn(this, inherits._getPrototypeOf(AllocWantedModal).call(this, props));
44
-
45
-    _this.handleSendValueChange = function (v) {
46
-      if (_this.state.outRangeTip) {
47
-        _this.setState({
48
-          outRangeTip: !_this.checkSendValue()
49
-        });
50
-      }
51
-
52
-      _this.setState({
53
-        sendValue: v
54
-      });
55
-    };
56
-
57
-    _this.checkSendValue = function () {
58
-      var sendValueRange = _this.props.sendValueRange;
59
-      var sendValue = _this.state.sendValue;
60
-      var min = 0;
61
-      var max = Number(_this.props.allocValue);
62
-
63
-      if (sendValueRange) {
64
-        min = Number(sendValueRange[0]);
65
-        max = Number(sendValueRange[1]);
66
-      }
67
-
68
-      if (sendValue > max) {
69
-        _this.setState({
70
-          outRangeTip: true
71
-        });
72
-
73
-        return false;
74
-      } else if (sendValue < min) {
75
-        _this.setState({
76
-          outRangeTip: true
77
-        });
78
-
79
-        return false;
80
-      }
81
-
82
-      return true;
83
-    };
84
-
85
-    _this.handleCloseAction = function () {
86
-      _this.setState({
87
-        visible: false,
88
-        sendValue: 0,
89
-        outRangeTip: false
90
-      }, function () {
91
-        _this.props.handleVisibleChange(false);
92
-      });
93
-    };
94
-
95
-    _this.handleShowAction = function () {
96
-      _this.setState({
97
-        visible: true
98
-      }, function () {
99
-        _this.props.handleVisibleChange(true);
100
-      });
101
-    };
102
-
103
-    _this.handleConfirm = function () {
104
-      var sendGiftData = _this.props.sendGiftData;
105
-
106
-      var checkResult = _this.checkSendValue();
107
-
108
-      if (!checkResult) {
109
-        return null;
110
-      }
111
-
112
-      Promise.resolve(_this.props.sendRequest({
113
-        business_type: 14,
114
-        ref_id: sendGiftData.answerId.toString(),
115
-        origin_id: sendGiftData.questionId,
116
-        to_user: sendGiftData.toUserId,
117
-        goods_id: 2,
118
-        num: Number(_this.state.sendValue)
119
-      })).then(function (res) {
120
-        if (res) {
121
-          _this.handleCloseAction();
122
-        } else {
123
-          _this.handleCloseAction();
124
-        }
125
-      });
126
-    };
127
-
128
-    _this.renderCloseButton = function () {
129
-      return React__default.createElement("div", {
130
-        role: "button",
131
-        tabIndex: -1,
132
-        className: styles.closeButton,
133
-        onClick: function onClick() {
134
-          _this.handleCloseAction();
135
-        }
136
-      }, React__default.createElement("img", {
137
-        src: img,
138
-        alt: "close button for send wanted"
139
-      }));
140
-    };
141
-
142
-    _this.renderModalContent = function () {
143
-      return React__default.createElement("div", {
144
-        className: styles.wantedModalContent,
145
-        ref: _this.ModalContentRef
146
-      }, _this.renderCloseButton(), React__default.createElement("h4", {
147
-        className: styles.title
148
-      }, "\u5206\u914D\u60AC\u8D4F\u5956\u91D1"), React__default.createElement("div", {
149
-        className: styles.wantedValueText
150
-      }, "\u5269\u4F59\u53EF\u5206\u914D ".concat(_this.props.allocValue, "\u5143")), React__default.createElement(antd.Tooltip, {
151
-        visible: _this.state.outRangeTip,
152
-        title: "\u8D85\u8FC7\u8303\u56F4\u503C",
153
-        placement: "bottom",
154
-        overlayClassName: styles.outRangeTextTip,
155
-        getTooltipContainer: function getTooltipContainer() {
156
-          return _this.ModalContentRef && _this.ModalContentRef.current;
157
-        }
158
-      }, React__default.createElement(antd.Input, {
159
-        ref: _this.ModalInputRef,
160
-        className: styles.wantedInputNumber,
161
-        suffix: "\u5143",
162
-        value: _this.state.sendValue,
163
-        onChange: function onChange(e) {
164
-          return _this.handleSendValueChange(e.target.value);
165
-        },
166
-        onFocus: function onFocus(e) {
167
-          return e.target.setSelectionRange(0, String(_this.state.sendValue).length);
168
-        }
169
-      })), React__default.createElement("div", {
170
-        className: styles.wantedValueTipBottom
171
-      }, "\u9700\u8981\u5728\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\u5C06\u5956\u91D1\u5206\u914D\u5B8C\u6210, \u5426\u5219\u5C06\u6309\u7167\u89C4\u5219\u81EA\u52A8\u5206\u914D"), React__default.createElement("div", {
172
-        className: styles.buttonRow
173
-      }, React__default.createElement("div", {
174
-        className: styles.tipsButton
175
-      }), React__default.createElement(antd.Button, {
176
-        className: styles.confirmButton,
177
-        onClick: _this.handleConfirm
178
-      }, "\u786E\u8BA4"), React__default.createElement("div", {
179
-        className: styles.tipsButton
180
-      }, React__default.createElement(antd.Popover, {
181
-        placement: "bottom",
182
-        trigger: "click",
183
-        getPopupContainer: function getPopupContainer() {
184
-          return _this.ModalContentRef && _this.ModalContentRef.current;
185
-        },
186
-        overlayStyle: {
187
-          width: "320px"
188
-        },
189
-        content: React__default.createElement("div", {
190
-          className: styles.tipsView
191
-        }, React__default.createElement("h6", null, "1\u3001\u5982\u4F55\u53C2\u4E0E\u60AC\u8D4F\uFF1F"), React__default.createElement("div", null, "\u60AC\u8D4F\u95EE\u9898\u7686\u6709\u6709\u6548\u671F\uFF0C\u9ED8\u8BA4\u4E3A120\u5C0F\u65F6\uFF085\u5929\uFF09\uFF0C\u5728\u6709\u6548\u671F\u5185\u56DE\u590D\u7684\u7B54\u6848\uFF0C\u624D\u6709\u8D44\u683C\u88AB\u9009\u4E3A\u6700\u4F73\u7B54\u6848\uFF0C\u4EE5\u53CA\u5206\u5F97\u8D4F\u91D1\u3002"), React__default.createElement("h6", null, "2\u3001\u8D4F\u91D1\u5982\u4F55\u5206\uFF1F"), React__default.createElement("div", null, "\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\uFF0C\u63D0\u95EE\u8005\u53EF\u968F\u65F6\u9009\u51FA\u6700\u4F18\u7B54\u6848\uFF0C\u5E76\u5BF9\u8D4F\u91D1\u8FDB\u884C\u5206\u914D\uFF0C\u76F4\u81F3\u8D4F\u91D1\u88AB\u5206\u5B8C\u6216\u65F6\u95F4\u5230\u671F\u4E3A\u6B62\u3002\u82E5\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u4ECD\u672A\u5206\u914D\u8D4F\u91D1\uFF0C\u4E14\u56DE\u7B54\u6570\u5927\u4E8E\u7B49\u4E8E2\uFF0C\u7CFB\u7EDF\u5219\u9ED8\u8BA4\u5C06\u8D4F\u91D1\u5E73\u5206\u7ED9\u70B9\u8D5E\u6570\u524D3\u540D\u7684\u56DE\u7B54\u3002"), React__default.createElement("h6", null, "3\u3001\u8D4F\u91D1\u80FD\u9000\u6B3E\u5417\uFF1F"), React__default.createElement("div", null, "\u8D4F\u91D1\u53EA\u4F1A\u5728\u4EE5\u4E0B2\u79CD\u60C5\u51B5\u8FDB\u884C\u9000\u6B3E\uFF1A\u4E00\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u56DE\u7B54\u6570\u5C0F\u4E8E2\uFF0C\u8D4F\u91D1\u5C06\u81EA\u52A8\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\uFF1B\u4E8C\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u672A\u5206\u914D\u5B8C\u8D4F\u91D1\uFF0C\u7CFB\u7EDF\u81EA\u52A8\u5C06\u5269\u4F59\u7684\u8D4F\u91D1\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\u3002"))
192
-      }, React__default.createElement("i", {
193
-        className: "schedule schedule-icon_rewardtips"
194
-      })))));
195
-    };
196
-
197
-    _this.state = {
198
-      visible: false,
199
-      sendValue: 0,
200
-      outRangeTip: false
201
-    };
202
-    _this.ModalContentRef = React__default.createRef();
203
-    _this.ModalInputRef = React__default.createRef();
204
-    return _this;
205
-  }
206
-
207
-  inherits._createClass(AllocWantedModal, [{
208
-    key: "render",
209
-    value: function render() {
210
-      var _this2 = this;
211
-
212
-      var children = this.props.children;
213
-      return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
214
-        className: styles.wrapper,
215
-        onClick: function onClick() {
216
-          return _this2.handleShowAction();
217
-        }
218
-      }, children), React__default.createElement(Modal.Modal, {
219
-        visible: this.state.visible,
220
-        onCancel: function onCancel() {
221
-          return _this2.handleCloseAction();
222
-        }
223
-      }, this.renderModalContent()));
224
-    }
225
-  }]);
226
-
227
-  return AllocWantedModal;
228
-}(React__default.Component);
229
-
230
-exports.default = AllocWantedModal;
231
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/AllocWantedModal/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 22
lib/BraftEditor/index.d.ts 查看文件

@@ -1,22 +0,0 @@
1
-/// <reference types="react" />
2
-import React from "react";
3
-import { ControlType, EditorState } from "braft-editor";
4
-interface BaseEditorProps {
5
-    value: EditorState;
6
-    onChange: (editorState: EditorState) => void;
7
-    contentStyle?: React.CSSProperties;
8
-    controls?: ControlType[];
9
-    blockRenderMap?: any;
10
-    blockRendererFn?: any;
11
-    blockStyleFn?: any;
12
-    onDelete?: Function;
13
-    onSave?: Function;
14
-    onTab?: Function;
15
-    onFocus?: Function;
16
-    onBlur?: Function;
17
-    draftProps?: any;
18
-    placeholder?: string;
19
-    converts?: any;
20
-}
21
-declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, blockStyleFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
22
-export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

+ 0
- 117
lib/BraftEditor/index.js 查看文件

@@ -1,117 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
-var React = require('react');
8
-var React__default = _interopDefault(React);
9
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
10
-var defineProperty = require('../defineProperty-ba7cd53d.js');
11
-var index = require('../index-4c407188.js');
12
-var slicedToArray = require('../slicedToArray-172f4624.js');
13
-var BraftEditor = _interopDefault(require('braft-editor'));
14
-require('braft-editor/dist/index.css');
15
-require('braft-extensions/dist/emoticon.css');
16
-var Emoticon = require('braft-extensions/dist/emoticon');
17
-var Emoticon__default = _interopDefault(Emoticon);
18
-var MaxLength = _interopDefault(require('braft-extensions/dist/max-length'));
19
-
20
-var css = ".index_baseWrapper__1_-58 {\n  position: relative;\n}\n.index_baseWrapper__1_-58 .bf-container {\n  display: flex;\n  flex-direction: column;\n}\n.index_baseWrapper__1_-58 .bf-container .index_controlBar__3SzSH {\n  box-shadow: none;\n}\n.index_baseWrapper__1_-58 .bf-container .index_editorContent__2UOaX {\n  border: 1px solid #ccc;\n  border-radius: 4px;\n  height: auto;\n  transition: border-color 0.3s;\n}\n.index_baseWrapper__1_-58 .bf-container .index_editorContent__2UOaX.index_focus__puDJA {\n  border-color: #1790ff;\n}\n";
21
-var styles = {
22
-  "baseWrapper": "index_baseWrapper__1_-58",
23
-  "controlBar": "index_controlBar__3SzSH",
24
-  "editorContent": "index_editorContent__2UOaX",
25
-  "focus": "index_focus__puDJA"
26
-};
27
-styleInject_es.styleInject(css);
28
-
29
-var lengthOptions = {
30
-  defaultValue: 100
31
-};
32
-BraftEditor.use(MaxLength(lengthOptions));
33
-var emoticons = Emoticon.defaultEmoticons.map(function (item) {
34
-  return require("braft-extensions/dist/assets/".concat(item));
35
-});
36
-var emotionOptions = {
37
-  emoticons: emoticons,
38
-  closeOnBlur: true,
39
-  closeOnSelect: false
40
-};
41
-BraftEditor.use(Emoticon__default(emotionOptions));
42
-var BarftEditorPage = function BarftEditorPage(_ref) {
43
-  var value = _ref.value,
44
-      onChange = _ref.onChange,
45
-      controls = _ref.controls,
46
-      _ref$contentStyle = _ref.contentStyle,
47
-      contentStyle = _ref$contentStyle === void 0 ? {} : _ref$contentStyle,
48
-      draftProps = _ref.draftProps,
49
-      placeholder = _ref.placeholder,
50
-      blockRenderMap = _ref.blockRenderMap,
51
-      blockRendererFn = _ref.blockRendererFn,
52
-      blockStyleFn = _ref.blockStyleFn,
53
-      onDelete = _ref.onDelete,
54
-      onSave = _ref.onSave,
55
-      onTab = _ref.onTab,
56
-      _onFocus = _ref.onFocus,
57
-      _onBlur = _ref.onBlur,
58
-      converts = _ref.converts;
59
-  var optionsControls = controls ? controls : ["bold", "italic", "underline", "separator", "link", "emoji", "separator", "media"];
60
-  var options = {
61
-    controls: optionsControls,
62
-    showControlsBar: optionsControls && optionsControls.length > 0
63
-  };
64
-
65
-  var _useState = React.useState(false),
66
-      _useState2 = slicedToArray._slicedToArray(_useState, 2),
67
-      focusState = _useState2[0],
68
-      setFocusState = _useState2[1];
69
-
70
-  return React__default.createElement("div", {
71
-    className: styles.baseWrapper
72
-  }, React__default.createElement(BraftEditor, Object.assign({
73
-    value: value,
74
-    onChange: onChange,
75
-    controls: options.controls,
76
-    controlBarClassName: index.classnames(styles.controlBar, defineProperty._defineProperty({}, styles.focus, focusState)),
77
-    controlBarStyle: options.showControlsBar ? {} : {
78
-      display: "none"
79
-    },
80
-    contentClassName: index.classnames(styles.editorContent, defineProperty._defineProperty({}, styles.focus, focusState)),
81
-    contentStyle: contentStyle,
82
-    onFocus: function onFocus() {
83
-      setFocusState(true);
84
-      _onFocus && _onFocus();
85
-    },
86
-    onBlur: function onBlur() {
87
-      setFocusState(false);
88
-      _onBlur && _onBlur();
89
-    },
90
-    hooks: {
91
-      "toggle-link": function toggleLink(_ref2) {
92
-        var href = _ref2.href,
93
-            target = _ref2.target;
94
-        href = href.indexOf("http") === 0 ? href : "http://".concat(href);
95
-        return {
96
-          href: href,
97
-          target: target
98
-        };
99
-      }
100
-    }
101
-  }, {
102
-    blockRenderMap: blockRenderMap,
103
-    blockRendererFn: blockRendererFn,
104
-    blockStyleFn: blockStyleFn,
105
-    converts: converts,
106
-    placeholder: placeholder,
107
-    draftProps: draftProps,
108
-    onDelete: onDelete,
109
-    onSave: onSave,
110
-    onTab: onTab,
111
-    onBlur: _onBlur
112
-  })));
113
-};
114
-
115
-exports.BarftEditorPage = BarftEditorPage;
116
-exports.default = BarftEditorPage;
117
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/BraftEditor/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 1
lib/Common/index.d.ts 查看文件

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

+ 0
- 15
lib/Common/index.js 查看文件

@@ -1,15 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-require('../inherits-c86d64c1.js');
6
-require('react');
7
-require('react-dom');
8
-var Modal = require('../Modal/index.js');
9
-require('../style-inject.es-dcee06b6.js');
10
-
11
-
12
-
13
-exports.Modal = Modal.default;
14
-exports.ModalCMD = Modal.ModalCMD;
15
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/Common/index.js.map 查看文件

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

+ 0
- 29
lib/ConsumeListView/index.d.ts 查看文件

@@ -1,29 +0,0 @@
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 };

+ 0
- 172
lib/ConsumeListView/index.js 查看文件

@@ -1,172 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
-var inherits = require('../inherits-c86d64c1.js');
8
-var React = require('react');
9
-var React__default = _interopDefault(React);
10
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
11
-var defineProperty = require('../defineProperty-ba7cd53d.js');
12
-var index = require('../index-4c407188.js');
13
-var utils = require('../utils-b800dc99.js');
14
-
15
-var 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
-};
28
-styleInject_es.styleInject(css);
29
-
30
-var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
31
-
32
-var ConsumeListView =
33
-/*#__PURE__*/
34
-function (_Component) {
35
-  inherits._inherits(ConsumeListView, _Component);
36
-
37
-  function ConsumeListView() {
38
-    inherits._classCallCheck(this, ConsumeListView);
39
-
40
-    return inherits._possibleConstructorReturn(this, inherits._getPrototypeOf(ConsumeListView).apply(this, arguments));
41
-  }
42
-
43
-  inherits._createClass(ConsumeListView, [{
44
-    key: "renderConsumeItem",
45
-    value: function renderConsumeItem() {
46
-      var _this$props = this.props,
47
-          dataSource = _this$props.dataSource,
48
-          isToggle = _this$props.isToggle,
49
-          onConsumeItemClick = _this$props.onConsumeItemClick,
50
-          showLength = _this$props.showLength,
51
-          listLength = _this$props.listLength,
52
-          options = _this$props.options;
53
-      var kingdomWidth = options.kingdomWidth,
54
-          kingdomHeight = options.kingdomHeight,
55
-          kingdomPosition = options.kingdomPosition,
56
-          avatarSize = options.avatarSize,
57
-          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
58
-      var renderData = dataSource;
59
-
60
-      if (!isToggle && listLength > showLength) {
61
-        renderData = dataSource.slice(0, showLength - 1);
62
-      }
63
-
64
-      return renderData.map(function (v, i) {
65
-        var kingdom = null;
66
-
67
-        if (i === 0) {
68
-          kingdom = React__default.createElement("img", {
69
-            className: styles.kingdomIcon,
70
-            src: img,
71
-            alt: "reward top user",
72
-            style: {
73
-              width: "".concat(kingdomWidth, "px"),
74
-              height: "".concat(kingdomHeight, "px"),
75
-              left: "".concat(kingdomPosition[0], "px"),
76
-              top: "".concat(kingdomPosition[1], "px")
77
-            }
78
-          });
79
-        }
80
-
81
-        return React__default.createElement("li", {
82
-          key: v.id,
83
-          className: styles.consumeItem,
84
-          style: {
85
-            margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
86
-          }
87
-        }, kingdom, React__default.createElement("div", {
88
-          className: styles.avatar,
89
-          onClick: function onClick(e) {
90
-            return onConsumeItemClick(e, v);
91
-          },
92
-          style: {
93
-            backgroundImage: "url(".concat(utils.addImageProcess(v.user_avatar || DEFAULT_AVATAR, {
94
-              small: true
95
-            }), ")"),
96
-            width: "".concat(avatarSize, "px"),
97
-            height: "".concat(avatarSize, "px")
98
-          }
99
-        }), React__default.createElement("span", {
100
-          className: styles.gray
101
-        }));
102
-      });
103
-    }
104
-  }, {
105
-    key: "renderToggleButton",
106
-    value: function renderToggleButton() {
107
-      var _this$props2 = this.props,
108
-          isToggle = _this$props2.isToggle,
109
-          onToggleChange = _this$props2.onToggleChange,
110
-          listLength = _this$props2.listLength,
111
-          showLength = _this$props2.showLength,
112
-          options = _this$props2.options;
113
-      var avatarSize = options.avatarSize,
114
-          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
115
-
116
-      if (listLength <= showLength) {
117
-        return null;
118
-      }
119
-
120
-      return React__default.createElement("li", {
121
-        onClick: function onClick() {
122
-          return onToggleChange();
123
-        },
124
-        className: index.classnames(styles.toggle, defineProperty._defineProperty({}, styles.expand, isToggle)),
125
-        style: {
126
-          width: "".concat(avatarSize, "px"),
127
-          height: "".concat(avatarSize, "px"),
128
-          lineHeight: "".concat(avatarSize, "px"),
129
-          margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
130
-        }
131
-      });
132
-    }
133
-  }, {
134
-    key: "render",
135
-    value: function render() {
136
-      var _this$props3 = this.props,
137
-          showLength = _this$props3.showLength,
138
-          options = _this$props3.options;
139
-      var avatarSize = options.avatarSize,
140
-          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
141
-      return React__default.createElement("div", {
142
-        className: styles.wrapper
143
-      }, React__default.createElement("ul", {
144
-        className: styles.consumelist,
145
-        style: {
146
-          width: "calc(".concat(avatarMarginLeftAndRight * 2 + avatarSize, "px * ").concat(showLength, ")")
147
-        }
148
-      }, this.renderConsumeItem(), this.renderToggleButton()));
149
-    }
150
-  }]);
151
-
152
-  return ConsumeListView;
153
-}(React.Component);
154
-
155
-ConsumeListView.defaultProps = {
156
-  isToggle: false,
157
-  onToggleChange: function onToggleChange() {},
158
-  onConsumeItemClick: function onConsumeItemClick() {},
159
-  dataSource: [],
160
-  listLength: 0,
161
-  showLength: 6,
162
-  options: {
163
-    avatarSize: 36,
164
-    avatarMarginLeftAndRight: 6,
165
-    kingdomWidth: 24,
166
-    kingdomHeight: 22,
167
-    kingdomPosition: [-6, -12]
168
-  }
169
-};
170
-
171
-exports.default = ConsumeListView;
172
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/ConsumeListView/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 24
lib/Editor/index.d.ts 查看文件

@@ -1,24 +0,0 @@
1
-/// <reference types="react" />
2
-import { BaseEditorProps } from "../BraftEditor/index";
3
-import React from "react";
4
-interface ToolListItem {
5
-    key: any;
6
-    color: string;
7
-    iconClass: string;
8
-    iconTextClass: string;
9
-    onClick: any;
10
-    text?: string;
11
-    render?: (i: ToolListItem, innerIcon: any, innerText: any, divWrapStyle: React.CSSProperties | undefined) => any;
12
-}
13
-interface SimpleEditorProps extends BaseEditorProps {
14
-    toolAlign?: "inner" | "bottom" | "both";
15
-    toolList?: Array<ToolListItem>;
16
-    injectControlsToolBar?: any;
17
-    injectBraftEditorProps?: any;
18
-    toolBarContainerStyle?: any;
19
-    appendToolBtn?: any;
20
-    appendInnderBar?: any;
21
-}
22
-declare const SimpleEditor: (props: SimpleEditorProps) => JSX.Element;
23
-export { default as BraftEditor } from "../BraftEditor/index";
24
-export { SimpleEditor };

+ 0
- 192
lib/Editor/index.js 查看文件

@@ -1,192 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
-var React = require('react');
8
-var React__default = _interopDefault(React);
9
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
10
-var defineProperty = require('../defineProperty-ba7cd53d.js');
11
-var index = require('../index-4c407188.js');
12
-require('../slicedToArray-172f4624.js');
13
-require('braft-editor');
14
-var BraftEditor$1 = require('../BraftEditor/index.js');
15
-require('braft-editor/dist/index.css');
16
-require('braft-extensions/dist/emoticon.css');
17
-require('braft-extensions/dist/emoticon');
18
-require('braft-extensions/dist/max-length');
19
-
20
-function ownKeys(object, enumerableOnly) {
21
-  var keys = Object.keys(object);
22
-
23
-  if (Object.getOwnPropertySymbols) {
24
-    var symbols = Object.getOwnPropertySymbols(object);
25
-    if (enumerableOnly) symbols = symbols.filter(function (sym) {
26
-      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
27
-    });
28
-    keys.push.apply(keys, symbols);
29
-  }
30
-
31
-  return keys;
32
-}
33
-
34
-function _objectSpread(target) {
35
-  for (var i = 1; i < arguments.length; i++) {
36
-    var source = arguments[i] != null ? arguments[i] : {};
37
-
38
-    if (i % 2) {
39
-      ownKeys(Object(source), true).forEach(function (key) {
40
-        defineProperty._defineProperty(target, key, source[key]);
41
-      });
42
-    } else if (Object.getOwnPropertyDescriptors) {
43
-      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
44
-    } else {
45
-      ownKeys(Object(source)).forEach(function (key) {
46
-        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
47
-      });
48
-    }
49
-  }
50
-
51
-  return target;
52
-}
53
-var ControlsToolBar = function ControlsToolBar(props) {
54
-  var editorState = props.editorState,
55
-      setEditorState = props.setEditorState,
56
-      _props$toolList = props.toolList,
57
-      toolList = _props$toolList === void 0 ? [] : _props$toolList,
58
-      _props$injectIconWrap = props.injectIconWrapStyle,
59
-      injectIconWrapStyle = _props$injectIconWrap === void 0 ? {} : _props$injectIconWrap,
60
-      _props$injectIconStyl = props.injectIconStyle,
61
-      injectIconStyle = _props$injectIconStyl === void 0 ? {} : _props$injectIconStyl,
62
-      _props$injectIconText = props.injectIconTextStyle,
63
-      injectIconTextStyle = _props$injectIconText === void 0 ? {} : _props$injectIconText;
64
-
65
-  var IconWrapStyle = _objectSpread({
66
-    display: 'flex',
67
-    alignItems: 'center',
68
-    cursor: "pointer",
69
-    textAlign: "center",
70
-    minWidth: "42px"
71
-  }, injectIconWrapStyle);
72
-
73
-  var IconStyle = _objectSpread({
74
-    fontSize: "21px"
75
-  }, injectIconStyle);
76
-
77
-  var IconTextStyle = _objectSpread({
78
-    margin: "0 4px"
79
-  }, injectIconTextStyle);
80
-
81
-  if (toolList.length < 1) {
82
-    return null;
83
-  }
84
-
85
-  return React__default.createElement(React__default.Fragment, null, toolList.map(function (i) {
86
-    var innerIcon = React__default.createElement("i", {
87
-      className: i.iconClass,
88
-      style: IconStyle
89
-    });
90
-    var innerText = i.text ? React__default.createElement("span", {
91
-      className: i.iconTextClass,
92
-      style: IconTextStyle
93
-    }, i.text) : null;
94
-
95
-    var divWrapStyle = _objectSpread({
96
-      color: i.color
97
-    }, IconWrapStyle);
98
-
99
-    var wrapperDom = React__default.createElement("div", {
100
-      key: "toolList_".concat(i.key),
101
-      style: divWrapStyle,
102
-      onClick: i.onClick
103
-    }, innerIcon, innerText);
104
-
105
-    if (i.render) {
106
-      return i.render(i, innerIcon, innerText, divWrapStyle);
107
-    }
108
-
109
-    return wrapperDom;
110
-  }));
111
-};
112
-
113
-var css = ".index_bottomToolBarWrapper__DzhzC {\n  display: flex;\n}\n.index_innerWrapper__1oX5A {\n  position: relative;\n}\n.index_innerWrapper__1oX5A .index_floatControls__16aMl {\n  position: absolute;\n  right: 15px;\n  bottom: 15px;\n  display: flex;\n  z-index: 2;\n}\n";
114
-var styles = {
115
-  "bottomToolBarWrapper": "index_bottomToolBarWrapper__DzhzC",
116
-  "innerWrapper": "index_innerWrapper__1oX5A",
117
-  "floatControls": "index_floatControls__16aMl"
118
-};
119
-styleInject_es.styleInject(css);
120
-
121
-var SimpleEditor = function SimpleEditor(props) {
122
-  var value = props.value,
123
-      onChange = props.onChange,
124
-      _props$toolAlign = props.toolAlign,
125
-      toolAlign = _props$toolAlign === void 0 ? "inner" : _props$toolAlign,
126
-      _props$toolList = props.toolList,
127
-      toolList = _props$toolList === void 0 ? [] : _props$toolList,
128
-      _props$injectControls = props.injectControlsToolBar,
129
-      injectControlsToolBar = _props$injectControls === void 0 ? {} : _props$injectControls,
130
-      _props$toolBarContain = props.toolBarContainerStyle,
131
-      toolBarContainerStyle = _props$toolBarContain === void 0 ? {} : _props$toolBarContain,
132
-      _props$injectBraftEdi = props.injectBraftEditorProps,
133
-      injectBraftEditorProps = _props$injectBraftEdi === void 0 ? {} : _props$injectBraftEdi,
134
-      _props$appendToolBtn = props.appendToolBtn,
135
-      appendToolBtn = _props$appendToolBtn === void 0 ? null : _props$appendToolBtn,
136
-      _props$appendInnderBa = props.appendInnderBar,
137
-      appendInnderBar = _props$appendInnderBa === void 0 ? null : _props$appendInnderBa;
138
-
139
-  if (toolAlign === "inner") {
140
-    return React__default.createElement("div", {
141
-      className: styles.innerWrapper
142
-    }, React__default.createElement(BraftEditor$1.BarftEditorPage, Object.assign({
143
-      value: value,
144
-      onChange: onChange,
145
-      controls: []
146
-    }, injectBraftEditorProps)), React__default.createElement("div", {
147
-      className: index.classnames(styles.floatControls)
148
-    }, React__default.createElement(ControlsToolBar, Object.assign({
149
-      editorState: value,
150
-      setEditorState: onChange,
151
-      toolList: toolList
152
-    }, injectControlsToolBar))));
153
-  }
154
-
155
-  if (toolAlign === "both") {
156
-    return React__default.createElement("div", null, React__default.createElement("div", {
157
-      className: styles.innerWrapper
158
-    }, React__default.createElement(BraftEditor$1.BarftEditorPage, Object.assign({
159
-      value: value,
160
-      onChange: onChange,
161
-      controls: []
162
-    }, injectBraftEditorProps)), React__default.createElement("div", {
163
-      className: index.classnames(styles.floatControls)
164
-    }, appendInnderBar)), React__default.createElement("div", {
165
-      style: toolBarContainerStyle
166
-    }, React__default.createElement("div", {
167
-      className: styles.bottomToolBarWrapper
168
-    }, React__default.createElement(ControlsToolBar, Object.assign({
169
-      editorState: value,
170
-      setEditorState: onChange,
171
-      toolList: toolList
172
-    }, injectControlsToolBar))), appendToolBtn));
173
-  }
174
-
175
-  return React__default.createElement("div", null, React__default.createElement(BraftEditor$1.BarftEditorPage, Object.assign({
176
-    value: value,
177
-    onChange: onChange,
178
-    controls: []
179
-  }, injectBraftEditorProps)), React__default.createElement("div", {
180
-    style: toolBarContainerStyle
181
-  }, React__default.createElement("div", {
182
-    className: styles.bottomToolBarWrapper
183
-  }, React__default.createElement(ControlsToolBar, Object.assign({
184
-    editorState: value,
185
-    setEditorState: onChange,
186
-    toolList: toolList
187
-  }, injectControlsToolBar))), appendToolBtn));
188
-};
189
-
190
-exports.BraftEditor = BraftEditor$1.default;
191
-exports.SimpleEditor = SimpleEditor;
192
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/Editor/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 30
lib/Modal/index.d.ts 查看文件

@@ -1,30 +0,0 @@
1
-/// <reference types="react" />
2
-import React from "react";
3
-interface ModalProps {
4
-    visible: boolean;
5
-    onCancel: (e: any) => void;
6
-    container?: HTMLElement;
7
-}
8
-declare class Modal extends React.PureComponent<ModalProps> {
9
-    static hasShowWarning: boolean;
10
-    render(): false | React.ReactPortal | null;
11
-}
12
-interface ModalCMDOptions {
13
-    children: any;
14
-    container?: HTMLElement;
15
-    options?: {
16
-        mask?: true;
17
-    };
18
-}
19
-interface ModalCMDRecord {
20
-    modalInstance: HTMLElement;
21
-}
22
-declare class ModalCMD {
23
-    static currentModal: ModalCMDRecord[];
24
-    constructor();
25
-    private static recordModal;
26
-    private static delModal;
27
-    static show({ children, container }: ModalCMDOptions): void;
28
-    static hide(targetId?: string | number): void;
29
-}
30
-export { Modal as default, Modal, ModalProps, ModalCMDOptions, ModalCMDRecord, ModalCMD };

+ 0
- 164
lib/Modal/index.js 查看文件

@@ -1,164 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
-var inherits = require('../inherits-c86d64c1.js');
8
-var React = require('react');
9
-var React__default = _interopDefault(React);
10
-var ReactDOM = require('react-dom');
11
-var ReactDOM__default = _interopDefault(ReactDOM);
12
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
13
-
14
-function isBrowser() {
15
-  return !((typeof window === "undefined" ? "undefined" : inherits._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);
26
-
27
-var Modal =
28
-/*#__PURE__*/
29
-function (_React$PureComponent) {
30
-  inherits._inherits(Modal, _React$PureComponent);
31
-
32
-  function Modal() {
33
-    inherits._classCallCheck(this, Modal);
34
-
35
-    return inherits._possibleConstructorReturn(this, inherits._getPrototypeOf(Modal).apply(this, arguments));
36
-  }
37
-
38
-  inherits._createClass(Modal, [{
39
-    key: "render",
40
-    value: function render() {
41
-      if (!isBrowser()) return null;
42
-      var DEFAULT_CONTAINER = document.getElementById("container");
43
-      var _this$props = this.props,
44
-          children = _this$props.children,
45
-          visible = _this$props.visible,
46
-          onCancel = _this$props.onCancel,
47
-          container = _this$props.container;
48
-      var finalMountContainer;
49
-
50
-      if (!container) {
51
-        if (!DEFAULT_CONTAINER) {
52
-          if (!Modal.hasShowWarning) {
53
-            Modal.hasShowWarning = true;
54
-          }
55
-
56
-          finalMountContainer = document.body;
57
-        } else {
58
-          if (!Modal.hasShowWarning) {
59
-            Modal.hasShowWarning = true;
60
-          }
61
-
62
-          finalMountContainer = DEFAULT_CONTAINER;
63
-        }
64
-      } else {
65
-        finalMountContainer = container;
66
-      }
67
-
68
-      return visible && ReactDOM.createPortal(React__default.createElement("div", {
69
-        className: styles.wrapper
70
-      }, React__default.createElement("div", {
71
-        className: styles.overlay,
72
-        onClick: onCancel
73
-      }), React__default.createElement("div", {
74
-        className: styles.container
75
-      }, children)), finalMountContainer);
76
-    }
77
-  }]);
78
-
79
-  return Modal;
80
-}(React__default.PureComponent);
81
-Modal.hasShowWarning = false;
82
-var ModalCMD =
83
-/*#__PURE__*/
84
-function () {
85
-  function ModalCMD() {
86
-    inherits._classCallCheck(this, ModalCMD);
87
-
88
-    ModalCMD.currentModal = [];
89
-  }
90
-
91
-  inherits._createClass(ModalCMD, null, [{
92
-    key: "recordModal",
93
-    value: function recordModal(record) {
94
-      ModalCMD.currentModal.push(record);
95
-    }
96
-  }, {
97
-    key: "delModal",
98
-    value: function delModal() {
99
-      return ModalCMD.currentModal.pop();
100
-    }
101
-  }, {
102
-    key: "show",
103
-    value: function show(_ref) {
104
-      var children = _ref.children,
105
-          container = _ref.container;
106
-      var modalInstance = document.createElement("div");
107
-      var targetMountDom = container ? container : document.body;
108
-      targetMountDom.appendChild(modalInstance);
109
-      ReactDOM__default.render(React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
110
-        style: {
111
-          position: "fixed",
112
-          top: 0,
113
-          bottom: 0,
114
-          left: 0,
115
-          right: 0,
116
-          zIndex: 1000
117
-        }
118
-      }, React__default.createElement("div", {
119
-        style: {
120
-          position: "absolute",
121
-          top: 0,
122
-          bottom: 0,
123
-          left: 0,
124
-          right: 0,
125
-          background: "rgba(0,0,0,1)",
126
-          opacity: 0.6,
127
-          zIndex: -1
128
-        },
129
-        onClick: function onClick() {
130
-          ModalCMD.hide(ModalCMD.currentModal.length);
131
-        }
132
-      }), React__default.createElement("div", {
133
-        style: {
134
-          position: "absolute",
135
-          top: "50%",
136
-          left: "50%",
137
-          transform: "translate(-50%, -50%)"
138
-        }
139
-      }, children))), modalInstance);
140
-      this.recordModal({
141
-        modalInstance: modalInstance
142
-      });
143
-    }
144
-  }, {
145
-    key: "hide",
146
-    value: function hide(targetId) {
147
-      var popModalRecord = this.delModal();
148
-
149
-      if (popModalRecord && popModalRecord.modalInstance) {
150
-        ReactDOM__default.unmountComponentAtNode(popModalRecord.modalInstance);
151
-        var parentNode = popModalRecord.modalInstance.parentNode;
152
-        parentNode && parentNode.removeChild(popModalRecord.modalInstance);
153
-      }
154
-    }
155
-  }]);
156
-
157
-  return ModalCMD;
158
-}();
159
-ModalCMD.currentModal = [];
160
-
161
-exports.Modal = Modal;
162
-exports.ModalCMD = ModalCMD;
163
-exports.default = Modal;
164
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/Modal/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 28
lib/PayPlatformOptions/index.d.ts 查看文件

@@ -1,28 +0,0 @@
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 };

+ 0
- 230
lib/PayPlatformOptions/index.js
文件差異過大導致無法顯示
查看文件


+ 0
- 1
lib/PayPlatformOptions/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 7
lib/Payment/index.d.ts 查看文件

@@ -1,7 +0,0 @@
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, WantedViewWranModel } from "../WantedPublishView/index";

+ 0
- 34
lib/Payment/index.js 查看文件

@@ -1,34 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-require('../inherits-c86d64c1.js');
6
-require('react');
7
-require('react-dom');
8
-require('../Modal/index.js');
9
-require('../style-inject.es-dcee06b6.js');
10
-require('../defineProperty-ba7cd53d.js');
11
-require('../index-4c407188.js');
12
-require('../utils-b800dc99.js');
13
-var ConsumeListView = require('../ConsumeListView/index.js');
14
-var PayPlatformOptions = require('../PayPlatformOptions/index.js');
15
-require('../slicedToArray-172f4624.js');
16
-require('antd');
17
-var PriceOptions = require('../PriceOptions/index.js');
18
-var WaitPayInfoView = require('../WaitPayInfoView/index.js');
19
-var AllocWantedModal = require('../AllocWantedModal/index.js');
20
-var WantedPublishView = require('../WantedPublishView/index.js');
21
-var WantedPublishPopover = require('../WantedPublishPopover/index.js');
22
-require('../WantedPublish-761aab8e.js');
23
-
24
-
25
-
26
-exports.ConsumeListView = ConsumeListView.default;
27
-exports.PayPlatformOptions = PayPlatformOptions.default;
28
-exports.PriceOptions = PriceOptions.default;
29
-exports.WaitPayInfoView = WaitPayInfoView.default;
30
-exports.AllocWantedModal = AllocWantedModal.default;
31
-exports.WantedPublishView = WantedPublishView.default;
32
-exports.WantedViewWranModel = WantedPublishView.WantedViewWranModel;
33
-exports.WantedPublishPopover = WantedPublishPopover.default;
34
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/Payment/index.js.map 查看文件

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

+ 0
- 24
lib/PriceOptions/index.d.ts 查看文件

@@ -1,24 +0,0 @@
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
-    allowZero: boolean;
11
-    titleText?: string | JSX.Element[] | JSX.Element;
12
-    inputPlaceholderText?: string;
13
-    priceOptions?: Array<any>;
14
-    priceRender?: Function;
15
-    inputPriceRender?: Function;
16
-    inputSuffix?: string | JSX.Element[] | JSX.Element;
17
-    injectOptions?: {
18
-        priceBtnClass: (isActive: boolean) => any;
19
-        priceInputClass: Function;
20
-    };
21
-    inputRef: React.RefObject<any>;
22
-}
23
-declare const PriceOptions: ({ price, onPriceChange, allowZero, rowMode, size, focusScroll, withTitle, titleText, inputPlaceholderText, priceOptions, priceRender, inputPriceRender, inputSuffix, injectOptions, inputRef }: Props) => JSX.Element;
24
-export { PriceOptions as default };

+ 0
- 190
lib/PriceOptions/index.js 查看文件

@@ -1,190 +0,0 @@
1
-'use strict';
2
-
3
-Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
-var React = require('react');
8
-var React__default = _interopDefault(React);
9
-var styleInject_es = require('../style-inject.es-dcee06b6.js');
10
-var defineProperty = require('../defineProperty-ba7cd53d.js');
11
-var index = require('../index-4c407188.js');
12
-var utils = require('../utils-b800dc99.js');
13
-var slicedToArray = require('../slicedToArray-172f4624.js');
14
-var antd = require('antd');
15
-
16
-var css = ".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_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  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: 1px solid #ff3266;\n}\n.PriceOptions_options__ifYbC.PriceOptions_multi__2fM8z .PriceOptions_infoItem__246mx .PriceOptions_priceInput__2JFc0 {\n  width: 222px;\n  width: auto;\n}\n";
17
-var styles = {
18
-  "options": "PriceOptions_options__ifYbC",
19
-  "infoItem": "PriceOptions_infoItem__246mx",
20
-  "priceItem": "PriceOptions_priceItem__3CPe3",
21
-  "active": "PriceOptions_active__154by",
22
-  "priceInput": "PriceOptions_priceInput__2JFc0",
23
-  "rate": "PriceOptions_rate__17U-9",
24
-  "multi": "PriceOptions_multi__2fM8z",
25
-  "priceBtn": "PriceOptions_priceBtn__1UaE8"
26
-};
27
-styleInject_es.styleInject(css);
28
-
29
-function ownKeys(object, enumerableOnly) {
30
-  var keys = Object.keys(object);
31
-
32
-  if (Object.getOwnPropertySymbols) {
33
-    var symbols = Object.getOwnPropertySymbols(object);
34
-    if (enumerableOnly) symbols = symbols.filter(function (sym) {
35
-      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
-    });
37
-    keys.push.apply(keys, symbols);
38
-  }
39
-
40
-  return keys;
41
-}
42
-
43
-function _objectSpread(target) {
44
-  for (var i = 1; i < arguments.length; i++) {
45
-    var source = arguments[i] != null ? arguments[i] : {};
46
-
47
-    if (i % 2) {
48
-      ownKeys(Object(source), true).forEach(function (key) {
49
-        defineProperty._defineProperty(target, key, source[key]);
50
-      });
51
-    } else if (Object.getOwnPropertyDescriptors) {
52
-      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
53
-    } else {
54
-      ownKeys(Object(source)).forEach(function (key) {
55
-        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
56
-      });
57
-    }
58
-  }
59
-
60
-  return target;
61
-}
62
-
63
-var PriceOptions = function PriceOptions(_ref) {
64
-  var price = _ref.price,
65
-      onPriceChange = _ref.onPriceChange,
66
-      allowZero = _ref.allowZero,
67
-      _ref$rowMode = _ref.rowMode,
68
-      rowMode = _ref$rowMode === void 0 ? "single" : _ref$rowMode,
69
-      _ref$size = _ref.size,
70
-      size = _ref$size === void 0 ? "normal" : _ref$size,
71
-      _ref$focusScroll = _ref.focusScroll,
72
-      focusScroll = _ref$focusScroll === void 0 ? true : _ref$focusScroll,
73
-      _ref$withTitle = _ref.withTitle,
74
-      withTitle = _ref$withTitle === void 0 ? true : _ref$withTitle,
75
-      _ref$titleText = _ref.titleText,
76
-      titleText = _ref$titleText === void 0 ? "Price" : _ref$titleText,
77
-      _ref$inputPlaceholder = _ref.inputPlaceholderText,
78
-      inputPlaceholderText = _ref$inputPlaceholder === void 0 ? "Others" : _ref$inputPlaceholder,
79
-      _ref$priceOptions = _ref.priceOptions,
80
-      priceOptions = _ref$priceOptions === void 0 ? [100, 600, 800] : _ref$priceOptions,
81
-      _ref$priceRender = _ref.priceRender,
82
-      priceRender = _ref$priceRender === void 0 ? function (i) {
83
-    return i / 100;
84
-  } : _ref$priceRender,
85
-      _ref$inputPriceRender = _ref.inputPriceRender,
86
-      inputPriceRender = _ref$inputPriceRender === void 0 ? function (i) {
87
-    return i ? i / 100 : "";
88
-  } : _ref$inputPriceRender,
89
-      _ref$inputSuffix = _ref.inputSuffix,
90
-      inputSuffix = _ref$inputSuffix === void 0 ? "¥" : _ref$inputSuffix,
91
-      _ref$injectOptions = _ref.injectOptions,
92
-      injectOptions = _ref$injectOptions === void 0 ? {
93
-    priceBtnClass: function priceBtnClass() {
94
-      return undefined;
95
-    },
96
-    priceInputClass: function priceInputClass() {
97
-      return undefined;
98
-    }
99
-  } : _ref$injectOptions,
100
-      inputRef = _ref.inputRef;
101
-  var defaultOptions = priceOptions;
102
-
103
-  var _useState = React.useState(false),
104
-      _useState2 = slicedToArray._slicedToArray(_useState, 2),
105
-      inputStatus = _useState2[0],
106
-      setInputStatus = _useState2[1];
107
-
108
-  var _useState3 = React.useState(''),
109
-      _useState4 = slicedToArray._slicedToArray(_useState3, 2),
110
-      inputPrice = _useState4[0],
111
-      setInputPrice = _useState4[1];
112
-
113
-  return React__default.createElement("div", {
114
-    className: index.classnames(styles.options, _objectSpread(defineProperty._defineProperty({}, styles.multi, rowMode === "multi"), utils.exportStyleSizeClass(styles, size)))
115
-  }, withTitle ? titleText || null : null, React__default.createElement("div", {
116
-    className: styles.infoItem
117
-  }, React__default.createElement("span", {
118
-    className: styles.priceBtn
119
-  }, defaultOptions.map(function (item) {
120
-    var _objectSpread3;
121
-
122
-    var isActive = price === item && !inputStatus;
123
-    return React__default.createElement("span", {
124
-      className: index.classnames(_objectSpread((_objectSpread3 = {}, defineProperty._defineProperty(_objectSpread3, styles.priceItem, true), defineProperty._defineProperty(_objectSpread3, styles.active, !injectOptions.priceBtnClass(isActive) && isActive), _objectSpread3), injectOptions.priceBtnClass(isActive))),
125
-      key: item,
126
-      onClick: function onClick() {
127
-        onPriceChange(item);
128
-        setInputStatus(false);
129
-      }
130
-    }, priceRender(item));
131
-  })), React__default.createElement(antd.Input, {
132
-    ref: inputRef,
133
-    className: index.classnames(styles.priceInput, _objectSpread({}, injectOptions.priceInputClass())),
134
-    onMouseEnter: function onMouseEnter() {
135
-      if (inputStatus && inputRef && inputRef.current) {
136
-        inputRef.current.focus();
137
-        inputRef.current.select();
138
-      }
139
-    },
140
-    suffix: inputSuffix,
141
-    value: inputStatus ? inputPriceRender(inputPrice) : "",
142
-    placeholder: inputPlaceholderText,
143
-    onChange: function onChange(e) {
144
-      var n = +e.target.value;
145
-
146
-      if (Number.isNaN(n)) {
147
-        return;
148
-      }
149
-
150
-      if (!allowZero && n === 0) {
151
-        return;
152
-      }
153
-
154
-      setInputPrice("".concat(n * 100));
155
-      onPriceChange(n * 100);
156
-    },
157
-    onClick: function onClick(e) {
158
-      if (!inputStatus) {
159
-        setInputPrice('');
160
-        setInputStatus(true);
161
-      }
162
-    },
163
-    onFocus: function onFocus(e) {
164
-      e.target.placeholder = "";
165
-
166
-      if (inputStatus) {
167
-        setInputPrice("".concat(price));
168
-      } else {
169
-        setInputPrice('');
170
-        setInputStatus(true);
171
-      }
172
-
173
-      if (focusScroll) {
174
-        e.target.scrollIntoView();
175
-      }
176
-    },
177
-    onBlur: function onBlur(e) {
178
-      e.target.placeholder = inputPlaceholderText;
179
-
180
-      if (inputPrice) {
181
-        setInputStatus(true);
182
-      } else {
183
-        setInputStatus(false);
184
-      }
185
-    }
186
-  })));
187
-};
188
-
189
-exports.default = PriceOptions;
190
-//# sourceMappingURL=index.js.map

+ 0
- 1
lib/PriceOptions/index.js.map
文件差異過大導致無法顯示
查看文件


+ 0
- 14
lib/WaitPayInfoView/index.d.ts 查看文件

@@ -1,14 +0,0 @@
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 查看文件


部分文件因文件數量過多而無法顯示