aldehyde 0.1.85 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -2
- package/README.md +2 -1
- package/lib/controls/action/index.d.ts +2 -2
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +6 -6
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +2 -2
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +5 -5
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/chemstruc/index.css +28 -28
- package/lib/controls/color-picker/index.js +1 -1
- package/lib/controls/color-picker/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.js +2 -2
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/date-picker/index.js +17 -17
- package/lib/controls/date-picker/index.js.map +1 -1
- package/lib/controls/entity-select/index.css +6 -6
- package/lib/controls/file-view/drawer-file-view.d.ts +2 -2
- package/lib/controls/file-view/drawer-file-view.d.ts.map +1 -1
- package/lib/controls/file-view/drawer-file-view.js +5 -5
- package/lib/controls/file-view/drawer-file-view.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts +0 -5
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/password-setter/index.d.ts +0 -1
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +1 -1
- package/lib/controls/password-setter/index.js.map +1 -1
- package/lib/controls/relation-existion/index.css +4 -4
- package/lib/controls/rfield/index.css +4 -4
- package/lib/controls/rfield/index.js +1 -1
- package/lib/controls/rfield/index.js.map +1 -1
- package/lib/controls/signature/index.d.ts +2 -2
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +5 -5
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +2 -4
- package/lib/controls/view-control.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +0 -1
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/detail/edit/dtmpl-edit-page.d.ts +1 -1
- package/lib/detail/edit/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/detail/edit/dtmpl-edit-page.js +8 -8
- package/lib/detail/edit/dtmpl-edit-page.js.map +1 -1
- package/lib/detail/edit/dtmpl-edit.js +1 -1
- package/lib/detail/edit/dtmpl-edit.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
- package/lib/detail/edit/modal-row-edit.js +2 -2
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +1 -1
- package/lib/detail/edit/post-result/index.d.ts.map +1 -1
- package/lib/detail/edit/post-result/index.js +2 -2
- package/lib/detail/edit/post-result/index.js.map +1 -1
- package/lib/detail/edit/row-editor.d.ts +2 -2
- package/lib/detail/edit/row-editor.d.ts.map +1 -1
- package/lib/detail/edit/row-editor.js +6 -6
- package/lib/detail/edit/row-editor.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +2 -2
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +5 -5
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +1 -1
- package/lib/detail/view/dtmpl-view.js +2 -2
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +2 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +3 -3
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +5 -5
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/form/criteria-form.d.ts +1 -1
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +4 -4
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/import/excel-import.d.ts +3 -3
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +6 -6
- package/lib/import/excel-import.js.map +1 -1
- package/lib/import/template-builder.d.ts +0 -8
- package/lib/import/template-builder.d.ts.map +1 -1
- package/lib/import/template-builder.js +1 -1
- package/lib/import/template-builder.js.map +1 -1
- package/lib/layout/footer/index.d.ts +0 -1
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-message-bar.d.ts +1 -1
- package/lib/layout/menu/l2menu-message-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-message-bar.js +1 -1
- package/lib/layout/menu/l2menu-message-bar.js.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +2 -2
- package/lib/layout/menu/l2menu-quick-bar.js.map +1 -1
- package/lib/layout/menu/reset-password.d.ts +1 -1
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +2 -2
- package/lib/layout/menu/reset-password.js.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +1 -1
- package/lib/layout/menu/userinfo-bar.js.map +1 -1
- package/lib/login/login-context.d.ts +0 -11
- package/lib/login/login-context.d.ts.map +1 -1
- package/lib/login/login.d.ts +0 -10
- package/lib/login/login.d.ts.map +1 -1
- package/lib/module/dtmpl-view-page.js +1 -1
- package/lib/module/dtmpl-view-page.js.map +1 -1
- package/lib/module/ltmpl-page.js +3 -3
- package/lib/module/ltmpl-page.js.map +1 -1
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +2 -5
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/modal-select-table.d.ts +1 -1
- package/lib/table/modal-select-table.d.ts.map +1 -1
- package/lib/table/modal-select-table.js +7 -7
- package/lib/table/modal-select-table.js.map +1 -1
- package/lib/table/relation-table.js +3 -3
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/select-table.js +1 -1
- package/lib/table/select-table.js.map +1 -1
- package/lib/table/stat/restat.d.ts +2 -2
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +5 -5
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +4 -3
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts +1 -0
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/tmpl/superagent.js +5 -5
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/tmpl/tmpl-config-analysis.d.ts.map +1 -1
- package/lib/tmpl/tmpl-config-analysis.js +15 -14
- package/lib/tmpl/tmpl-config-analysis.js.map +1 -1
- package/lib/units/index.d.ts +1 -1
- package/lib/units/index.js +3 -3
- package/lib/units/index.js.map +1 -1
- package/lib/welcome/HCWelcome.d.ts +0 -4
- package/lib/welcome/HCWelcome.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.d.ts +1 -1
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +1 -1
- package/lib/welcome/quick-entrance.js.map +1 -1
- package/lib/welcome/workbench.d.ts +1 -1
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +1 -1
- package/lib/welcome/workbench.js.map +1 -1
- package/package.json +3 -6
- package/src/aldehyde/controls/action/index.tsx +8 -8
- package/src/aldehyde/controls/chemstruc/graph.tsx +6 -6
- package/src/aldehyde/controls/chemstruc/index.css +28 -28
- package/src/aldehyde/controls/color-picker/index.tsx +1 -1
- package/src/aldehyde/controls/cquery/cquick-button.tsx +2 -2
- package/src/aldehyde/controls/date-picker/index.tsx +20 -20
- package/src/aldehyde/controls/entity-select/index.css +6 -6
- package/src/aldehyde/controls/file-view/drawer-file-view.tsx +7 -7
- package/src/aldehyde/controls/password-setter/index.js +1 -1
- package/src/aldehyde/controls/relation-existion/index.css +4 -4
- package/src/aldehyde/controls/rfield/index.css +4 -4
- package/src/aldehyde/controls/rfield/index.tsx +1 -1
- package/src/aldehyde/controls/signature/index.tsx +6 -6
- package/src/aldehyde/controls/view-control.tsx +3 -4
- package/src/aldehyde/detail/edit/dtmpl-edit-page.tsx +9 -9
- package/src/aldehyde/detail/edit/dtmpl-edit.tsx +1 -1
- package/src/aldehyde/detail/edit/modal-row-edit.tsx +3 -3
- package/src/aldehyde/detail/edit/post-result/index.tsx +3 -3
- package/src/aldehyde/detail/edit/row-editor.tsx +7 -7
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +6 -6
- package/src/aldehyde/detail/view/dtmpl-view.tsx +2 -2
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +4 -3
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +6 -6
- package/src/aldehyde/form/criteria-form.tsx +5 -5
- package/src/aldehyde/import/excel-import.tsx +8 -9
- package/src/aldehyde/import/template-builder.js +1 -1
- package/src/aldehyde/layout/menu/l2menu-message-bar.tsx +1 -1
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +2 -2
- package/src/aldehyde/layout/menu/reset-password.tsx +2 -2
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +1 -1
- package/src/aldehyde/module/criteria-page.tsx1 +2 -2
- package/src/aldehyde/module/dtmpl-view-page.tsx +1 -1
- package/src/aldehyde/module/ltmpl-page.tsx +3 -3
- package/src/aldehyde/table/act-table.tsx +9 -10
- package/src/aldehyde/table/modal-select-table.tsx +8 -8
- package/src/aldehyde/table/relation-table.tsx +4 -4
- package/src/aldehyde/table/select-table.tsx +1 -1
- package/src/aldehyde/table/stat/restat.tsx +6 -6
- package/src/aldehyde/tmpl/hcservice-v3.tsx +4 -3
- package/src/aldehyde/tmpl/interface.tsx +1 -0
- package/src/aldehyde/tmpl/superagent.js +5 -5
- package/src/aldehyde/tmpl/tmpl-config-analysis.tsx +15 -14
- package/src/aldehyde/units/index.tsx +3 -3
- package/src/aldehyde/welcome/quick-entrance.tsx +1 -1
- package/src/aldehyde/welcome/workbench.tsx +1 -1
- package/lib/chart/antd/Chart.d.ts +0 -10
- package/lib/chart/antd/Chart.d.ts.map +0 -1
- package/lib/chart/antd/Chart.js +0 -31
- package/lib/chart/antd/Chart.js.map +0 -1
- package/lib/chart/antd/Max2DimLineChart.d.ts +0 -15
- package/lib/chart/antd/Max2DimLineChart.d.ts.map +0 -1
- package/lib/chart/antd/Max2DimLineChart.js +0 -126
- package/lib/chart/antd/Max2DimLineChart.js.map +0 -1
- package/lib/chart/antd/chart-utils.d.ts +0 -7
- package/lib/chart/antd/chart-utils.d.ts.map +0 -1
- package/lib/chart/antd/chart-utils.js +0 -46
- package/lib/chart/antd/chart-utils.js.map +0 -1
- package/lib/chart/antd/column-chart-sub.d.ts +0 -7
- package/lib/chart/antd/column-chart-sub.d.ts.map +0 -1
- package/lib/chart/antd/column-chart-sub.js +0 -50
- package/lib/chart/antd/column-chart-sub.js.map +0 -1
- package/lib/chart/antd/line-chart-sub.d.ts +0 -7
- package/lib/chart/antd/line-chart-sub.d.ts.map +0 -1
- package/lib/chart/antd/line-chart-sub.js +0 -49
- package/lib/chart/antd/line-chart-sub.js.map +0 -1
- package/lib/chart/antd/pie-chart-sub.d.ts +0 -7
- package/lib/chart/antd/pie-chart-sub.d.ts.map +0 -1
- package/lib/chart/antd/pie-chart-sub.js +0 -37
- package/lib/chart/antd/pie-chart-sub.js.map +0 -1
- package/lib/chart/antd/statview-d2-chart.d.ts +0 -17
- package/lib/chart/antd/statview-d2-chart.d.ts.map +0 -1
- package/lib/chart/antd/statview-d2-chart.js +0 -108
- package/lib/chart/antd/statview-d2-chart.js.map +0 -1
- package/lib/chart/statview-l2-chart.d.ts +0 -23
- package/lib/chart/statview-l2-chart.d.ts.map +0 -1
- package/lib/chart/statview-l2-chart.js +0 -64
- package/lib/chart/statview-l2-chart.js.map +0 -1
- package/src/aldehyde/chart/antd/Chart.js +0 -31
- package/src/aldehyde/chart/antd/Max2DimLineChart.js +0 -127
- package/src/aldehyde/chart/antd/chart-utils.tsx +0 -50
- package/src/aldehyde/chart/antd/column-chart-sub.tsx +0 -77
- package/src/aldehyde/chart/antd/line-chart-sub.tsx +0 -75
- package/src/aldehyde/chart/antd/pie-chart-sub.tsx +0 -65
- package/src/aldehyde/chart/antd/statview-d2-chart.tsx +0 -125
- package/src/aldehyde/chart/statview-l2-chart.tsx +0 -69
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { Badge, Button, Card, Space } from 'antd';
|
|
23
23
|
import { CodeTwoTone } from '@ant-design/icons';
|
|
24
|
-
import 'antd/dist/
|
|
24
|
+
import 'antd/dist/reset.css';
|
|
25
25
|
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
26
26
|
import HCDataSource from '../tmpl/hc-data-source';
|
|
27
27
|
class QuickEntrance extends React.PureComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-entrance.js","sourceRoot":"","sources":["../../../../src/aldehyde/welcome/quick-entrance.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAU,KAAK,EAAW,MAAM,MAAM,CAAA;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"quick-entrance.js","sourceRoot":"","sources":["../../../../src/aldehyde/welcome/quick-entrance.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;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AAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAgC,SAAS,EAAC,MAAM,MAAM,CAAA;AAE7D,OAAO,
|
|
1
|
+
{"version":3,"file":"workbench.d.ts","sourceRoot":"","sources":["../../../../src/aldehyde/welcome/workbench.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAgC,SAAS,EAAC,MAAM,MAAM,CAAA;AAE7D,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,UAAU,cAAe,SAAQ,SAAS;CACzC;AAED,UAAU,cAAc;IACpB,OAAO,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,cAAM,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,cAAc,CAAC;IACvE,KAAK;;MAEJ;IACD,SAAS,EAAE,GAAG,EAAE,CAAM;IAEhB,iBAAiB;IAkBvB,oBAAoB,IAAI,IAAI;IAU5B,MAAM;CAwBT;AAED,eAAe,SAAS,CAAA"}
|
package/lib/welcome/workbench.js
CHANGED
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { Button, Card, Space, Statistic } from 'antd';
|
|
23
23
|
import { RocketTwoTone } from '@ant-design/icons';
|
|
24
|
-
import 'antd/dist/
|
|
24
|
+
import 'antd/dist/reset.css';
|
|
25
25
|
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
26
26
|
import HCDataSource from '../tmpl/hc-data-source';
|
|
27
27
|
class Workbench extends React.PureComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbench.js","sourceRoot":"","sources":["../../../../src/aldehyde/welcome/workbench.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,IAAI,EAA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AAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;YACzC,oBAAC,KAAK,IAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,UACtB,6BAA6B,CAC1B,CACL,CACV,CAAA;IACL,CAAC;CACJ;AAED,eAAe,SAAS,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aldehyde",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"author": "cosmicparticle",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/aldehyde/index.txs",
|
|
@@ -21,14 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "./",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ant-design/charts": "^1.3.5",
|
|
25
24
|
"@ant-design/icons": "^4.6.2",
|
|
26
|
-
"@antv/g6": "^4.6.18",
|
|
27
25
|
"@codemirror/lang-sql": "^6.3.3",
|
|
28
26
|
"@codemirror/state": "^6.1.4",
|
|
29
27
|
"@tinymce/tinymce-react": "^3.12.2",
|
|
30
28
|
"add": "^2.0.6",
|
|
31
|
-
"antd": "^
|
|
29
|
+
"antd": "^5.2.2",
|
|
32
30
|
"array-move": "^4.0.0",
|
|
33
31
|
"axios": "^0.18.0",
|
|
34
32
|
"bfj": "^6.1.1",
|
|
@@ -64,7 +62,6 @@
|
|
|
64
62
|
"loadable-components": "^2.2.3",
|
|
65
63
|
"lodash": "^4.17.21",
|
|
66
64
|
"miew": "^0.9.0",
|
|
67
|
-
"moment": "^2.22.2",
|
|
68
65
|
"picomatch": "^2.3.1",
|
|
69
66
|
"process": "^0.11.10",
|
|
70
67
|
"prop-types": "^15.8.1",
|
|
@@ -79,7 +76,7 @@
|
|
|
79
76
|
"superagent": "^4.0.0",
|
|
80
77
|
"superagent-jsonp": "^0.2.1",
|
|
81
78
|
"three": "^0.134.0",
|
|
82
|
-
"typescript": "
|
|
79
|
+
"typescript": "4.5.4",
|
|
83
80
|
"url": "^0.11.0",
|
|
84
81
|
"url-loader": "^4.1.1",
|
|
85
82
|
"use-resize-observer": "^7.0.0",
|
|
@@ -4,11 +4,11 @@ import {Button, Checkbox as AntdCheckbox, Popconfirm, Popover,Tooltip} from 'ant
|
|
|
4
4
|
import './index.css'
|
|
5
5
|
import {ActionConfig, Comparator, DtmplData} from "../../tmpl/interface";
|
|
6
6
|
import {FormInstance} from "antd/lib/form/hooks/useForm";
|
|
7
|
-
import {ButtonType} from "antd/lib/button/button";
|
|
8
7
|
import FieldsEditCard from "../../detail/edit/fields-edit-card"
|
|
9
8
|
import {SizeType} from "antd/lib/config-provider/SizeContext";
|
|
10
9
|
import ActionUtils from './utils';
|
|
11
10
|
import Icon from '../../icon';
|
|
11
|
+
import {ButtonType} from "antd/lib/button";
|
|
12
12
|
|
|
13
13
|
const CheckboxGroup = AntdCheckbox.Group;
|
|
14
14
|
export type ActionButtonIconType = 'icon' | 'icon-title' | 'title'
|
|
@@ -29,7 +29,7 @@ interface ActionProps {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
interface ActionState {
|
|
32
|
-
|
|
32
|
+
popoverOpen: boolean,
|
|
33
33
|
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -43,7 +43,7 @@ export default class Action extends React.PureComponent<ActionProps, ActionState
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
state = {
|
|
46
|
-
|
|
46
|
+
popoverOpen: false,
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
componentDidMount() {
|
|
@@ -105,13 +105,13 @@ export default class Action extends React.PureComponent<ActionProps, ActionState
|
|
|
105
105
|
console.log('action form value:', value);
|
|
106
106
|
const {actionConfig, doAction, data, disabled, buttonType} = this.props;
|
|
107
107
|
this.setState({
|
|
108
|
-
|
|
108
|
+
popoverOpen: false,
|
|
109
109
|
})
|
|
110
110
|
doAction(actionConfig.id, this.getCodes(), value);
|
|
111
111
|
}
|
|
112
112
|
onCancel = () => {
|
|
113
113
|
this.setState({
|
|
114
|
-
|
|
114
|
+
popoverOpen: false,
|
|
115
115
|
})
|
|
116
116
|
}
|
|
117
117
|
onValuesChange = (value: object) => {
|
|
@@ -136,7 +136,7 @@ export default class Action extends React.PureComponent<ActionProps, ActionState
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
formButton = () => {
|
|
139
|
-
const {
|
|
139
|
+
const {popoverOpen} = this.state;
|
|
140
140
|
const {actionConfig, doAction, data, disabled, buttonType,hiddenType, buttonSize} = this.props;
|
|
141
141
|
let disabled_ = disabled;
|
|
142
142
|
if (!this.isShow()) {
|
|
@@ -146,12 +146,12 @@ export default class Action extends React.PureComponent<ActionProps, ActionState
|
|
|
146
146
|
disabled_ = true;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
return <Popover placement="leftBottom"
|
|
149
|
+
return <Popover placement="leftBottom" open={popoverOpen} trigger="click" content={
|
|
150
150
|
<FieldsEditCard okDanger={actionConfig.beforeExeConfirm == 'danger'} needConfirm={true} title={actionConfig.title} onCancel={() => this.onCancel()} fields={actionConfig.writes}
|
|
151
151
|
value={this.getValue()} onOk={this.onOk}
|
|
152
152
|
onValuesChange={this.onValuesChange}/>}>
|
|
153
153
|
<Button danger={actionConfig.beforeExeConfirm == 'danger'} type={this.getButtonType()} block={this.blockButton()} size={buttonSize}
|
|
154
|
-
onClick={() => this.setState({
|
|
154
|
+
onClick={() => this.setState({popoverOpen: !popoverOpen})}
|
|
155
155
|
disabled={disabled_} >{this.getTitle()}</Button>
|
|
156
156
|
</Popover>
|
|
157
157
|
}
|
|
@@ -15,7 +15,7 @@ interface ChemStrucProps extends VEControlProps {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface ChemStrucState {
|
|
18
|
-
|
|
18
|
+
modalOpen: boolean,
|
|
19
19
|
molFileLoaded: boolean,
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -26,7 +26,7 @@ export default class ChemStruc extends React.PureComponent<ChemStrucProps, ChemS
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
state = {
|
|
29
|
-
|
|
29
|
+
modalOpen: false,
|
|
30
30
|
molFileLoaded: false,
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -75,7 +75,7 @@ export default class ChemStruc extends React.PureComponent<ChemStrucProps, ChemS
|
|
|
75
75
|
//console.log('ket value:', value);
|
|
76
76
|
this.triggerChange(value);
|
|
77
77
|
this.setState({
|
|
78
|
-
|
|
78
|
+
modalOpen: false,
|
|
79
79
|
})
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -90,12 +90,12 @@ export default class ChemStruc extends React.PureComponent<ChemStrucProps, ChemS
|
|
|
90
90
|
showView = async () => {
|
|
91
91
|
await this.loadData();
|
|
92
92
|
this.setState({
|
|
93
|
-
|
|
93
|
+
modalOpen: true
|
|
94
94
|
})
|
|
95
95
|
}
|
|
96
96
|
onCancel = () => {
|
|
97
97
|
this.setState({
|
|
98
|
-
|
|
98
|
+
modalOpen: false,
|
|
99
99
|
})
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -111,7 +111,7 @@ export default class ChemStruc extends React.PureComponent<ChemStrucProps, ChemS
|
|
|
111
111
|
</Button>
|
|
112
112
|
<Modal
|
|
113
113
|
closable={false}
|
|
114
|
-
|
|
114
|
+
open={this.state.modalOpen}
|
|
115
115
|
forceRender={true}
|
|
116
116
|
centered
|
|
117
117
|
style={{maxWidth: 'calc(100vw - 62px)', maxHeight: 'calc(100vw - 50px)'}}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
5
|
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
6
|
-
sans-serif;
|
|
7
|
-
-webkit-font-smoothing: antialiased;
|
|
8
|
-
-moz-osx-font-smoothing: grayscale;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.chemstruc-edit-upload{
|
|
12
|
-
width: 230px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ant-upload-list-picture-card-container,
|
|
16
|
-
.ant-upload-select-picture-card{
|
|
17
|
-
width: 66px!important;
|
|
18
|
-
height:66px!important;
|
|
19
|
-
}
|
|
20
|
-
/*控制ketcher的选择工具栏的显示层级,modal为1000,所以此处为1020*/
|
|
21
|
-
.ToolbarMultiToolItem-module_portal__yDg5_{
|
|
22
|
-
z-index: 1020!important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
code {
|
|
26
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
27
|
-
monospace;
|
|
28
|
-
}
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
5
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
6
|
+
sans-serif;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
-moz-osx-font-smoothing: grayscale;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.chemstruc-edit-upload{
|
|
12
|
+
width: 230px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-upload-list-picture-card-container,
|
|
16
|
+
.ant-upload-select-picture-card{
|
|
17
|
+
width: 66px!important;
|
|
18
|
+
height:66px!important;
|
|
19
|
+
}
|
|
20
|
+
/*控制ketcher的选择工具栏的显示层级,modal为1000,所以此处为1020*/
|
|
21
|
+
.ToolbarMultiToolItem-module_portal__yDg5_{
|
|
22
|
+
z-index: 1020!important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
code {
|
|
26
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
27
|
+
monospace;
|
|
28
|
+
}
|
|
@@ -52,7 +52,7 @@ export default class CollapseCard extends React.PureComponent<PickerProps, Picke
|
|
|
52
52
|
const {value,viewOrEdit, ...other } = this.props;
|
|
53
53
|
|
|
54
54
|
return (viewOrEdit=='view'? <div className={ 'color' } style={{background:value}}>{value}</div> :
|
|
55
|
-
<Popover
|
|
55
|
+
<Popover open={displayColorPicker}
|
|
56
56
|
content={
|
|
57
57
|
<Card
|
|
58
58
|
style={{width: 320}}
|
|
@@ -65,7 +65,7 @@ class CquickButton extends React.PureComponent<CquickButtonProps, CquickButtonSt
|
|
|
65
65
|
}}>{outlinedMap[cQueryConfig.title]?outlinedMap[cQueryConfig.title]:cQueryConfig.title}</Button>}
|
|
66
66
|
{!showDraw?null:
|
|
67
67
|
cQueryConfig.type=='edit'?
|
|
68
|
-
<DtmplEditPage pageType={pageType}
|
|
68
|
+
<DtmplEditPage pageType={pageType} open={showDraw} onCancel={()=>{
|
|
69
69
|
this.setState({
|
|
70
70
|
showDraw:false,
|
|
71
71
|
})}}
|
|
@@ -79,7 +79,7 @@ class CquickButton extends React.PureComponent<CquickButtonProps, CquickButtonSt
|
|
|
79
79
|
closable={true}
|
|
80
80
|
mask={false}
|
|
81
81
|
onClose={this.closeDrawer}
|
|
82
|
-
|
|
82
|
+
open={showDraw}
|
|
83
83
|
width={'calc(100% - 280px)'}
|
|
84
84
|
style={{
|
|
85
85
|
maxWidth: 1960,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import {DatePicker as AntdDatePicker,TimePicker} from "antd";
|
|
3
|
-
import
|
|
4
|
-
import type {
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
|
+
import type { Dayjs } from "dayjs";
|
|
5
5
|
import {FieldConfig,EControlProps} from "../../tmpl/interface";
|
|
6
6
|
import Units from "../../units";
|
|
7
7
|
import type { RangePickerProps } from 'antd/es/date-picker';
|
|
@@ -18,15 +18,15 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
18
18
|
|
|
19
19
|
const {id,value:propsValue, itemType, fieldConfig, onChange,style,min,max} = props;
|
|
20
20
|
let value=propsValue;
|
|
21
|
-
let format = Units.
|
|
21
|
+
let format = Units.getDayjsFormat(itemType);
|
|
22
22
|
|
|
23
|
-
const changeValue = (value:
|
|
23
|
+
const changeValue = (value:Dayjs) => {
|
|
24
24
|
if (onChange) {
|
|
25
25
|
onChange(value?value.format(format):undefined);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const changeRangeValue = (value:
|
|
29
|
+
const changeRangeValue = (value:Dayjs[]) => {
|
|
30
30
|
if (onChange) {
|
|
31
31
|
if(!value){
|
|
32
32
|
onChange(value);
|
|
@@ -37,18 +37,18 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
const disabledDate: RangePickerProps['disabledDate'] = current => {
|
|
40
|
-
// console.log('current',
|
|
41
|
-
return current && ( (max &&
|
|
40
|
+
// console.log('current',dayjs(min,format).format(format));
|
|
41
|
+
return current && ( (max && dayjs(current.format(format),format) > dayjs(max,format)) || (min && dayjs(current.format(format),format) <dayjs(min,format)));
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
let entryControl = undefined;
|
|
45
45
|
let picker:"date" | "time" | "year" | "month" | "week" | "quarter"="date";
|
|
46
|
-
let
|
|
46
|
+
let dayjsValue;
|
|
47
47
|
switch (itemType) {
|
|
48
48
|
case 'date-YY':
|
|
49
49
|
case 'date-M1':
|
|
50
50
|
case 'date':
|
|
51
|
-
|
|
51
|
+
dayjsValue = value ? dayjs(value, format) : undefined;
|
|
52
52
|
picker = itemType == 'date-YY' ? 'year' : itemType == 'date-M1' ? "month" : "date"
|
|
53
53
|
// @ts-ignore
|
|
54
54
|
entryControl = <AntdDatePicker
|
|
@@ -57,7 +57,7 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
57
57
|
picker={picker}
|
|
58
58
|
format={format}
|
|
59
59
|
disabledDate={disabledDate}
|
|
60
|
-
value={
|
|
60
|
+
value={dayjsValue}
|
|
61
61
|
disabled={fieldConfig.disabled}
|
|
62
62
|
onChange={changeValue}
|
|
63
63
|
/>;
|
|
@@ -65,7 +65,7 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
65
65
|
case 'datetime-HH':
|
|
66
66
|
case 'datetime-mm':
|
|
67
67
|
case 'datetime':
|
|
68
|
-
|
|
68
|
+
dayjsValue = value ? dayjs(value, format) : undefined;
|
|
69
69
|
entryControl = <AntdDatePicker
|
|
70
70
|
id={id}
|
|
71
71
|
style={{...style}}
|
|
@@ -73,7 +73,7 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
73
73
|
showTime={{format: Units.getDateTimeFormat(itemType)}}
|
|
74
74
|
picker='date'
|
|
75
75
|
format={format}
|
|
76
|
-
value={
|
|
76
|
+
value={dayjsValue}
|
|
77
77
|
disabled={fieldConfig.disabled}
|
|
78
78
|
onChange={changeValue}
|
|
79
79
|
/>;
|
|
@@ -83,14 +83,14 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
83
83
|
case 'daterange':
|
|
84
84
|
let v1 = value && value.indexOf("~") > 0 ? value.split("~")[0] : undefined
|
|
85
85
|
let v2 = value && value.indexOf("~") > 0 ? value.split("~")[1] : undefined
|
|
86
|
-
|
|
86
|
+
dayjsValue = [v1 ? dayjs(v1, format) : undefined, v2 ? dayjs(v2, format) : undefined];
|
|
87
87
|
picker = itemType == 'daterange-YY' ? 'year' : itemType == 'daterange-M1' ? "month" : "date"
|
|
88
88
|
// @ts-ignore
|
|
89
89
|
entryControl = <RangePicker id={id} picker={picker}
|
|
90
90
|
style={{...style}}
|
|
91
91
|
format={format}
|
|
92
92
|
disabledDate={disabledDate}
|
|
93
|
-
value={
|
|
93
|
+
value={dayjsValue}
|
|
94
94
|
disabled={fieldConfig.disabled}
|
|
95
95
|
onChange={changeRangeValue}/>;
|
|
96
96
|
break;
|
|
@@ -99,11 +99,11 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
99
99
|
case 'datetimerange':
|
|
100
100
|
const v3 = value && value.indexOf("~") > 0 ? value.split("~")[0] : undefined
|
|
101
101
|
const v4 = value && value.indexOf("~") > 0 ? value.split("~")[1] : undefined
|
|
102
|
-
|
|
102
|
+
dayjsValue = [v3 ? dayjs(v3, format) : undefined, v4 ? dayjs(v4, format) : undefined];
|
|
103
103
|
entryControl = <RangePicker id={id} showTime={{format: Units.getDateTimeFormat(itemType)}}
|
|
104
104
|
format={format}
|
|
105
105
|
style={{...style}}
|
|
106
|
-
value={
|
|
106
|
+
value={dayjsValue}
|
|
107
107
|
disabledDate={disabledDate}
|
|
108
108
|
disabled={fieldConfig.disabled}
|
|
109
109
|
onChange={changeRangeValue}/>;
|
|
@@ -111,9 +111,9 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
111
111
|
case 'time-HH':
|
|
112
112
|
case 'time-mm':
|
|
113
113
|
case 'time':
|
|
114
|
-
|
|
114
|
+
dayjsValue = value ? dayjs(value, format) : undefined;
|
|
115
115
|
entryControl =
|
|
116
|
-
<TimePicker id={id} value={
|
|
116
|
+
<TimePicker id={id} value={dayjsValue}
|
|
117
117
|
style={{...style}}
|
|
118
118
|
disabled={fieldConfig.disabled} onChange={changeValue}
|
|
119
119
|
format={format}/>;
|
|
@@ -123,8 +123,8 @@ const DatePicker: React.FC<DataPickerProps> = (props) => {
|
|
|
123
123
|
case 'timerange':
|
|
124
124
|
const v5 = value && value.indexOf("~") > 0 ? value.split("~")[0] : undefined
|
|
125
125
|
const v6 = value && value.indexOf("~") > 0 ? value.split("~")[1] : undefined
|
|
126
|
-
|
|
127
|
-
entryControl = <TimePicker.RangePicker id={id} value={
|
|
126
|
+
dayjsValue = [v5 ? dayjs(v5, format) : undefined, v6 ? dayjs(v6, format) : undefined];
|
|
127
|
+
entryControl = <TimePicker.RangePicker id={id} value={dayjsValue}
|
|
128
128
|
style={{...style}}
|
|
129
129
|
disabled={fieldConfig.disabled}
|
|
130
130
|
onChange={changeRangeValue} format={format}/>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.entity-select-popover{
|
|
2
|
-
/*padding: 4px;*/
|
|
3
|
-
}
|
|
4
|
-
.entity-select-popover .ant-popover-inner-content {
|
|
5
|
-
padding: 4px;
|
|
6
|
-
}
|
|
1
|
+
.entity-select-popover{
|
|
2
|
+
/*padding: 4px;*/
|
|
3
|
+
}
|
|
4
|
+
.entity-select-popover .ant-popover-inner-content {
|
|
5
|
+
padding: 4px;
|
|
6
|
+
}
|
|
@@ -17,7 +17,7 @@ interface DrawerFileViewProps {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
interface DrawerFileViewState {
|
|
20
|
-
|
|
20
|
+
drawerOpen: boolean,
|
|
21
21
|
|
|
22
22
|
};
|
|
23
23
|
export default class DrawerFileView extends React.PureComponent<DrawerFileViewProps, DrawerFileViewState> {
|
|
@@ -25,7 +25,7 @@ export default class DrawerFileView extends React.PureComponent<DrawerFileViewPr
|
|
|
25
25
|
downloadAble:false,
|
|
26
26
|
}
|
|
27
27
|
state = {
|
|
28
|
-
|
|
28
|
+
drawerOpen: false
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
onError(e) {
|
|
@@ -33,26 +33,26 @@ export default class DrawerFileView extends React.PureComponent<DrawerFileViewPr
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
onClose = () => {
|
|
36
|
-
this.setState({
|
|
36
|
+
this.setState({drawerOpen: false})
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
render() {
|
|
40
40
|
const {file,downloadAble} = this.props;
|
|
41
|
-
const {
|
|
41
|
+
const {drawerOpen} = this.state;
|
|
42
42
|
return <span className='labelcss'>
|
|
43
43
|
<Button type={'link'} onClick={() => {
|
|
44
|
-
this.setState({
|
|
44
|
+
this.setState({drawerOpen: true})
|
|
45
45
|
}} size="small">{file.base.fileName}</Button>
|
|
46
46
|
{downloadAble? <Button type={'text'} onClick={async () => {
|
|
47
47
|
await HCService.download(file.base.path);
|
|
48
48
|
}} size="small"><DownloadOutlined/></Button>:null}
|
|
49
|
-
{
|
|
49
|
+
{drawerOpen ? <Drawer
|
|
50
50
|
title={file.base.fileName}
|
|
51
51
|
placement={'left'}
|
|
52
52
|
closable={false}
|
|
53
53
|
onClose={this.onClose}
|
|
54
54
|
width={'1200px'}
|
|
55
|
-
|
|
55
|
+
open={drawerOpen}
|
|
56
56
|
extra={
|
|
57
57
|
<Space>
|
|
58
58
|
{downloadAble? <Button onClick={async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
.ant-popover-inner-content {
|
|
3
|
-
padding: 4px;
|
|
4
|
-
}
|
|
1
|
+
|
|
2
|
+
.ant-popover-inner-content {
|
|
3
|
+
padding: 4px;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
.buttons {
|
|
3
|
-
max-width: 300px;
|
|
4
|
-
}
|
|
1
|
+
|
|
2
|
+
.buttons {
|
|
3
|
+
max-width: 300px;
|
|
4
|
+
}
|
|
@@ -153,7 +153,7 @@ export default class Rfield extends React.PureComponent<RfieldProps, RfieldState
|
|
|
153
153
|
</Popover> : null
|
|
154
154
|
}
|
|
155
155
|
{buttons && buttons.includes('detail') ?
|
|
156
|
-
<ModalDtmplView key={'mdv'}
|
|
156
|
+
<ModalDtmplView key={'mdv'} open={showDtmplView} onCancel={this.hiddenDtmplView}
|
|
157
157
|
sourceId={fieldConfig.id}
|
|
158
158
|
code={openCode}> </ModalDtmplView> : ""}
|
|
159
159
|
</Space>
|
|
@@ -10,7 +10,7 @@ interface SignatureProps extends VEControlProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
interface SignatureState {
|
|
13
|
-
|
|
13
|
+
modalOpen: boolean,
|
|
14
14
|
molFileLoaded: boolean,
|
|
15
15
|
trimmedDataURL:any,
|
|
16
16
|
}
|
|
@@ -23,7 +23,7 @@ export default class Signature extends React.PureComponent<SignatureProps, Signa
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
state = {
|
|
26
|
-
|
|
26
|
+
modalOpen: false,
|
|
27
27
|
molFileLoaded: false,
|
|
28
28
|
molFile: undefined,
|
|
29
29
|
trimmedDataURL:undefined,
|
|
@@ -76,7 +76,7 @@ export default class Signature extends React.PureComponent<SignatureProps, Signa
|
|
|
76
76
|
// console.log('data data:', value);
|
|
77
77
|
this.triggerChange(value);
|
|
78
78
|
this.setState({
|
|
79
|
-
|
|
79
|
+
modalOpen: false,
|
|
80
80
|
trimmedDataURL:value,
|
|
81
81
|
})
|
|
82
82
|
}
|
|
@@ -93,12 +93,12 @@ export default class Signature extends React.PureComponent<SignatureProps, Signa
|
|
|
93
93
|
this.signCanvas.clear();
|
|
94
94
|
this.signCanvas.fromDataURL(this.state.trimmedDataURL);
|
|
95
95
|
this.setState({
|
|
96
|
-
|
|
96
|
+
modalOpen: true
|
|
97
97
|
})
|
|
98
98
|
}
|
|
99
99
|
onCancel = () => {
|
|
100
100
|
this.setState({
|
|
101
|
-
|
|
101
|
+
modalOpen: false,
|
|
102
102
|
})
|
|
103
103
|
}
|
|
104
104
|
onClear=()=>{
|
|
@@ -125,7 +125,7 @@ export default class Signature extends React.PureComponent<SignatureProps, Signa
|
|
|
125
125
|
|
|
126
126
|
<Modal
|
|
127
127
|
closable={false}
|
|
128
|
-
|
|
128
|
+
open={this.state.modalOpen}
|
|
129
129
|
forceRender={true}
|
|
130
130
|
centered
|
|
131
131
|
style={{maxWidth: 'calc(100vw - 62px)', maxHeight: 'calc(100vw - 50px)'}}
|
|
@@ -9,14 +9,13 @@ import Steps from "./steps";
|
|
|
9
9
|
import Units from './../units';
|
|
10
10
|
import FileView from '../controls/file-view';
|
|
11
11
|
import Rfield from "./rfield";
|
|
12
|
-
import
|
|
12
|
+
import dayjs from "dayjs";
|
|
13
13
|
import Progress from './progress'
|
|
14
14
|
import ColorPicker from "./color-picker";
|
|
15
15
|
import EllipsisText from './text/ellipsis-text'
|
|
16
16
|
import {ProgramConfig} from "../index";
|
|
17
17
|
import SqlCodeEditor from "./code-editor/sql-code-editor";
|
|
18
|
-
|
|
19
|
-
// import HtmlEditor from "../HtmlEditor/tinymce";
|
|
18
|
+
|
|
20
19
|
const Loading = <Spin tip="Loading...">
|
|
21
20
|
<Alert
|
|
22
21
|
message="正在加载数据。。。"
|
|
@@ -87,7 +86,7 @@ function renderControl(fieldConfig: FieldConfig, fieldValue: any,pHolderType:Con
|
|
|
87
86
|
case 'time-HH':
|
|
88
87
|
case 'time-mm':
|
|
89
88
|
case 'time':
|
|
90
|
-
viewControl = <span className="infoStyle">{value ?
|
|
89
|
+
viewControl = <span className="infoStyle">{value ? dayjs(value).format(Units.getDayjsFormat(itemType)) : undefined}</span>
|
|
91
90
|
break;
|
|
92
91
|
case 'daterange-YY':
|
|
93
92
|
case 'daterange-M1':
|