kts-components-document-access-point 1.4.12 → 2.0.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.
Files changed (82) hide show
  1. package/dist/DocumentWhiteList/___demo___/base/index.d.ts +2 -1
  2. package/dist/DocumentWhiteList/___demo___/setService/index.d.ts +2 -1
  3. package/dist/DocumentWhiteList/control/actions/addblack/index.d.ts +1 -1
  4. package/dist/DocumentWhiteList/control/actions/addwhite/index.d.ts +1 -1
  5. package/dist/DocumentWhiteList/control/actions/blacklist/index.d.ts +1 -1
  6. package/dist/DocumentWhiteList/control/actions/demo/index.d.ts +1 -1
  7. package/dist/DocumentWhiteList/control/actions/didilist/index.d.ts +1 -1
  8. package/dist/DocumentWhiteList/control/actions/enableblacklist/index.d.ts +1 -1
  9. package/dist/DocumentWhiteList/control/actions/enablelist/index.d.ts +1 -1
  10. package/dist/DocumentWhiteList/control/actions/enablewhitelist/index.d.ts +1 -1
  11. package/dist/DocumentWhiteList/control/actions/getmode/index.d.ts +1 -1
  12. package/dist/DocumentWhiteList/control/actions/synclist/index.d.ts +1 -1
  13. package/dist/DocumentWhiteList/control/actions/whitelist/index.d.ts +1 -1
  14. package/dist/DocumentWhiteList/index.d.ts +1 -1
  15. package/dist/DocumentWhiteList/ui/clientmodal/index.d.ts +2 -1
  16. package/dist/DocumentWhiteList/ui/main/black.d.ts +2 -1
  17. package/dist/DocumentWhiteList/ui/main/index.d.ts +2 -1
  18. package/dist/DocumentWhiteList/ui/main/switchmode.d.ts +2 -1
  19. package/dist/DocumentWhiteList/ui/main/white.d.ts +2 -1
  20. package/dist/DocumentWhiteList/ui/pageheader/BlackHeader.d.ts +2 -1
  21. package/dist/DocumentWhiteList/ui/pageheader/WhiteHeader.d.ts +2 -1
  22. package/dist/DocumentWhiteList/ui/pageui/index.d.ts +1 -1
  23. package/dist/DocumentWhiteList/ui/whitemodal/index.d.ts +2 -1
  24. package/dist/DocumentsCont/___demo___/base/index.d.ts +2 -1
  25. package/dist/DocumentsCont/___demo___/setService/index.d.ts +2 -1
  26. package/dist/DocumentsCont/index.d.ts +1 -1
  27. package/dist/DocumentsDemo/Text.d.ts +2 -1
  28. package/dist/DocumentsDemo/___demo___/base/index.d.ts +2 -1
  29. package/dist/DocumentsDemo/index.d.ts +1 -1
  30. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IProperties/index.d.ts +3 -3
  31. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.d.ts +1 -1
  32. package/dist/DocumentsEdit/DocumentsEditController/actions/addProperties/index.d.ts +3 -3
  33. package/dist/DocumentsEdit/DocumentsEditController/actions/delProperties/index.d.ts +1 -1
  34. package/dist/DocumentsEdit/___demo___/conventional/index.d.ts +2 -1
  35. package/dist/DocumentsEdit/___demo___/monitor/index.d.ts +2 -1
  36. package/dist/DocumentsEdit/___demo___/readOnly/index.d.ts +2 -1
  37. package/dist/DocumentsEdit/index.d.ts +1 -1
  38. package/dist/DocumentsEdit/ui/AddPropertyButton/index.d.ts +2 -1
  39. package/dist/DocumentsEdit/ui/Breadcrumb/index.d.ts +2 -1
  40. package/dist/DocumentsEdit/ui/EditProperty/index.d.ts +2 -1
  41. package/dist/DocumentsEdit/ui/EditRule/index.d.ts +2 -1
  42. package/dist/DocumentsEdit/ui/EditRule/ui/AddRuleButton/index.d.ts +2 -1
  43. package/dist/DocumentsEdit/ui/EditRule/ui/DelRuleButton/index.d.ts +2 -1
  44. package/dist/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.d.ts +2 -1
  45. package/dist/DocumentsEdit/ui/EditRule/ui/RuleForm/index.d.ts +2 -1
  46. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddChildPropertyButton/index.d.ts +2 -1
  47. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddRuleButton/index.d.ts +2 -1
  48. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/EditPropertyButton/index.d.ts +2 -1
  49. package/dist/DocumentsEdit/ui/PropertyTable/index.d.ts +2 -1
  50. package/dist/DocumentsEdit/ui/RefPropertyButton/index.d.ts +2 -1
  51. package/dist/DocumentsList/DocumentsListController/actions/demo/index.d.ts +1 -1
  52. package/dist/DocumentsList/___demo___/list/index.d.ts +2 -1
  53. package/dist/DocumentsList/index.d.ts +1 -1
  54. package/dist/DocumentsList/ui/ModalComfirm/index.d.ts +2 -1
  55. package/dist/DocumentsList/ui/PageHeader/SendHeader.d.ts +2 -1
  56. package/dist/DocumentsList/ui/PageHeader/index.d.ts +2 -1
  57. package/dist/DocumentsList/ui/PageUI/index.d.ts +1 -1
  58. package/dist/DocumentsList/ui/RuleTable/index.d.ts +2 -1
  59. package/dist/DocumentsList/ui/sendlist/index.d.ts +2 -1
  60. package/dist/DocumentsRule/index.d.ts +1 -1
  61. package/dist/DocumentsRule/ui/main/index.d.ts +2 -1
  62. package/dist/index.esm.js +3200 -4152
  63. package/dist/index.js +3180 -4132
  64. package/package.json +5 -5
  65. package/src/DocumentWhiteList/control/actions/blacklist/index.ts +3 -0
  66. package/src/DocumentWhiteList/control/actions/checkclient/index.ts +3 -0
  67. package/src/DocumentWhiteList/control/actions/didilist/index.ts +3 -0
  68. package/src/DocumentWhiteList/control/actions/enableblacklist/index.ts +3 -0
  69. package/src/DocumentWhiteList/control/actions/enablelist/index.ts +3 -0
  70. package/src/DocumentWhiteList/control/actions/enablewhitelist/index.ts +3 -0
  71. package/src/DocumentWhiteList/control/actions/synclist/index.ts +3 -0
  72. package/src/DocumentWhiteList/control/actions/whitelist/index.ts +3 -0
  73. package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +81 -70
  74. package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +81 -68
  75. package/src/DocumentWhiteList/ui/pageheader/index.less +10 -0
  76. package/src/DocumentsEdit/constant/propertyColumns/index.tsx +1 -1
  77. package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.tsx +3 -3
  78. package/src/DocumentsList/index.less +0 -23
  79. package/src/DocumentsList/ui/PageHeader/index.less +10 -0
  80. package/src/DocumentsList/ui/PageHeader/index.tsx +215 -180
  81. package/src/DocumentsList/ui/RuleTable/index.tsx +7 -3
  82. package/tsconfig.json +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-components-document-access-point",
3
- "version": "1.4.12",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "dumi dev",
@@ -33,9 +33,9 @@
33
33
  "antd": "3.26.20",
34
34
  "grey-react-box": "0.2.15",
35
35
  "kts-component-service": "^1.0.4",
36
- "kts-components": "^1.2.26",
37
- "kts-components-antd-x4": "^4.0.3",
38
- "kts-xui": "^1.0.31",
36
+ "kts-components": "1.3.9",
37
+ "kts-components-antd-x4": "5.0.0",
38
+ "kts-xui": "2.1.77",
39
39
  "lodash": "^4.17.21",
40
40
  "moment": "2.29.1",
41
41
  "query-string": "^7.0.1",
@@ -53,4 +53,4 @@
53
53
  "prettier": "^2.2.1",
54
54
  "yorkie": "^2.0.0"
55
55
  }
56
- }
56
+ }
@@ -6,6 +6,9 @@ import { IParams } from '../../../interface'
6
6
 
7
7
  export default async (s: ControllerState, params?: IParams) => {
8
8
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/queryBlackListPage', data: params, type: 'post' }) as any;
9
+ if (!res) {
10
+ return false;
11
+ }
9
12
  if (res.err) {
10
13
  return false;
11
14
  }
@@ -5,6 +5,9 @@ import { DocumentsService } from "../../../..";
5
5
 
6
6
  export default async (s: ControllerState,) => {
7
7
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/showButton', data: {}, type: 'post' }) as any;
8
+ if (!res) {
9
+ return false;
10
+ }
8
11
  if (res.err) {
9
12
  return false;
10
13
  }
@@ -7,6 +7,9 @@ import { IParams } from '../../../interface'
7
7
  export default async (s: ControllerState, params?: IParams) => {
8
8
  const res = await DocumentsService.instance.service?.call({ url: '/participant/list', data: params, type: 'post' }) as any;
9
9
  // return res;
10
+ if (!res) {
11
+ return false;
12
+ }
10
13
  if (res.err) {
11
14
  return false;
12
15
  }
@@ -8,6 +8,9 @@ export interface IParams{
8
8
 
9
9
  export default async (s: ControllerState, params?: IParams,) => {
10
10
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/enableOrDisableBlackList?status=' + params?.flag, data: params?.didList, type: 'post' }) as any;
11
+ if (!res) {
12
+ return false;
13
+ }
11
14
  if (res.err) {
12
15
  return false;
13
16
  }
@@ -9,6 +9,9 @@ export interface IParams{
9
9
 
10
10
  export default async (s: ControllerState, params?: IParams,) => {
11
11
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/enableList?status=' + params?.status, data: params?.didList, type: 'post' }) as any;
12
+ if (!res) {
13
+ return false;
14
+ }
12
15
  if (res.err) {
13
16
  return false;
14
17
  }
@@ -8,6 +8,9 @@ export interface IParams{
8
8
 
9
9
  export default async (s: ControllerState, params?: IParams,) => {
10
10
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/enableOrDisableWhiteList?status=' + params?.flag, data: params?.didList, type: 'post' }) as any;
11
+ if (!res) {
12
+ return false;
13
+ }
11
14
  if (res.err) {
12
15
  return false;
13
16
  }
@@ -11,6 +11,9 @@ export interface IParams {
11
11
 
12
12
  export default async (s: ControllerState, params?: IParams) => {
13
13
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/querySyncPage', data: params, type: 'post' }) as any;
14
+ if (!res) {
15
+ return false;
16
+ }
14
17
  if (res.err) {
15
18
  return false;
16
19
  }
@@ -6,6 +6,9 @@ import { IParams } from '../../../interface'
6
6
 
7
7
  export default async (s: ControllerState, params?:IParams) => {
8
8
  const res = await DocumentsService.instance.service?.call({ url: '/whiteblacklist/config/queryWhiteListPage', data: params, type: 'post' }) as any;
9
+ if (!res) {
10
+ return false;
11
+ }
9
12
  if (res.err) {
10
13
  return false;
11
14
  }
@@ -1,20 +1,23 @@
1
1
  import React, { useState, useEffect, useCallback } from 'react';
2
2
  import { Button, PageHeaderFoot } from 'kts-xui';
3
- import { AdvancedSearch, KtsForm } from 'kts-components';
3
+ import { Search as SearchXui, searchUnFormat, ISearchItemProps } from 'kts-xui';
4
+ import { Select as SearchSelect } from 'kts-xui';
5
+ import { Select, DatePicker } from 'antd';
4
6
  import Main from '../../index';
5
7
  // import { LifeCycleTypes } from "@formily/antd";
6
8
  import _ from 'lodash';
7
9
  import moment from 'moment';
10
+ import css from './index.less';
11
+ const { Option } = Select;
12
+ const { RangePicker } = DatePicker;
8
13
  export default () => {
9
14
  const controller = Main.useController();
10
- const [schema, setSchema] = useState({});
11
15
  const pageMeta = controller.useMemo((s) => s.pageMeta, []);
12
16
  const params = controller.useMemo(s => s.params, [])
13
17
  const clientInfo = controller.useMemo(s => s.clientInfo, [])
14
18
  const selectedRowKey = controller.useMemo(s => s.selectedBlackRowKey, [])
15
19
  const disabled = selectedRowKey.length > 0 ? false : true
16
20
  const didlist = controller.useMemo((s) => s.didlist, []);
17
- const [companyDidNote, setNote] = useState('');
18
21
  const onSearchFormSubmit = React.useCallback((value) => {
19
22
  value = {
20
23
  ...value,
@@ -33,54 +36,64 @@ export default () => {
33
36
  useEffect(() => {
34
37
  controller.didList({}) as any;
35
38
  }, []);
36
- useEffect(() => {
37
- const didEnum = didlist.map(item => {
39
+ // 动态生成 formItems
40
+ const formItems: ISearchItemProps[] = React.useMemo(() => {
41
+ const didEnum = didlist?.map(item => {
38
42
  return { label: item.remarkName + ':' + item.participantId, value: item.participantId };
39
- })
40
- let obj: any = {
41
- type: "object",
42
- properties: {
43
- customerDid: {
44
- type: "string",
45
- title: "DID",
46
- },
47
- customerName: {
48
- type: "string",
49
- title: "所属公司",
50
- },
51
- companyDid: {
52
- type: "string",
53
- title: "我司对应DID",
54
- enum: didEnum
55
- },
56
- dataStatus: {
57
- type: "string",
58
- title: "数据状态",
59
- enum: [{
60
- "label": "使用中",
61
- "value": 1
62
- }, {
63
- "label": "停用",
64
- "value": 2
65
- }],
66
- },
67
- createTime: {
68
- type: "daterange",
69
- title: "创建时间",
70
- 'x-props':{
71
- extendsFields: ['beginCreateTime', 'endCreateTime'],
72
- }
73
- },
74
- // '[beginUpdateTime,endUpdateTime]': {
75
- // key: "[beginUpdateTime,endUpdateTime]",
76
- // name: "[beginUpdateTime,endUpdateTime]",
77
- // type: "daterange",
78
- // title: "更新时间",
79
- // },
80
- }
81
- }
82
- setSchema(obj);
83
- }, [didlist])
43
+ });
44
+
45
+ const items: ISearchItemProps[] = [];
46
+
47
+ // DID
48
+ items.push({
49
+ name: "customerDid",
50
+ label: "DID",
51
+ children: <SearchXui.Input />,
52
+ });
53
+
54
+ // 所属公司
55
+ items.push({
56
+ name: "customerName",
57
+ label: "所属公司",
58
+ children: <SearchXui.Input />,
59
+ });
60
+
61
+ // 我司对应DID
62
+ items.push({
63
+ name: "companyDid",
64
+ label: "我司对应DID",
65
+ children: (
66
+ <SearchSelect className={css.underline} allowClear>
67
+ {didEnum?.map(item => (
68
+ <Option key={item.value} value={item.value}>
69
+ {item.label}
70
+ </Option>
71
+ ))}
72
+ </SearchSelect>
73
+ ),
74
+ });
75
+
76
+ // 数据状态
77
+ items.push({
78
+ name: "dataStatus",
79
+ label: "数据状态",
80
+ children: (
81
+ <SearchSelect className={css.underline} allowClear>
82
+ <Option value={1}>使用中</Option>
83
+ <Option value={2}>停用</Option>
84
+ </SearchSelect>
85
+ ),
86
+ });
87
+
88
+ // 创建时间
89
+ items.push({
90
+ name: "createTime",
91
+ label: "创建时间",
92
+ children: <RangePicker className={css.underline} />,
93
+ });
94
+
95
+ return items;
96
+ }, [didlist]);
84
97
  const batchBlockList = useCallback((type: number) => {
85
98
  (async () => {
86
99
  const res = await controller.enableblacklist({
@@ -104,29 +117,27 @@ export default () => {
104
117
  s.listNature = '2';
105
118
  })()
106
119
  }, []);
120
+ // 创建搜索组件
121
+ const { search } = SearchXui.useCreate({
122
+ labelCol: 9,
123
+ onSubmit: (e) => {
124
+ onSearchFormSubmit(e);
125
+ },
126
+ values: React.useMemo(() => {
127
+ return searchUnFormat(params, formItems);
128
+ }, [params, formItems]),
129
+ formItems,
130
+ });
131
+
107
132
  const topExpand = useCallback(() => {
108
133
  return (
109
- <AdvancedSearch
110
- width={380}
111
- height={44}
112
- compact={true}
113
- defaultKey="customerDid"
114
- placeholder="输入DID"
115
- searchFormSubmit={onSearchFormSubmit}
116
- >
117
- <KtsForm
118
- labelCol={9}
119
- wrapperCol={15}
120
- labelAlign='left'
121
- compact={true}
122
- schema={schema}
123
- defaultValue={params}
124
-
125
- >
126
- </KtsForm>
127
- </AdvancedSearch>
134
+ <div style={{ width: "100%" }}>
135
+ <div style={{ display: "flex", alignItems: "flex-start", gap: "16px" }}>
136
+ <div style={{ flex: 1 }}>{search}</div>
137
+ </div>
138
+ </div>
128
139
  );
129
- }, [schema, params]);
140
+ }, [search]);
130
141
  return (
131
142
  <div style={{ flex: 'none', position: 'relative', zIndex: 1 }} >
132
143
  <PageHeaderFoot
@@ -1,12 +1,17 @@
1
1
  import React, { useState, useEffect, useCallback } from 'react';
2
2
  import { Button, PageHeaderFoot } from 'kts-xui';
3
- import { AdvancedSearch, KtsForm } from 'kts-components';
3
+ import { Search as SearchXui, searchUnFormat, ISearchItemProps } from 'kts-xui';
4
+ import { Select as SearchSelect } from 'kts-xui';
5
+ import { Select, DatePicker } from 'antd';
4
6
  import Main from '../../index';
5
7
  import _ from 'lodash';
6
8
  import moment from 'moment';
9
+ import css from './index.less';
10
+
11
+ const { Option } = Select;
12
+ const { RangePicker } = DatePicker;
7
13
  export default () => {
8
14
  const controller = Main.useController();
9
- const [schema, setSchema] = useState({});
10
15
  const pageMeta = controller.useMemo((s) => s.pageMeta, []);
11
16
  const whiteParams = controller.useMemo(s => s.whiteParams, [])
12
17
  const clientInfo = controller.useMemo(s => s.clientInfo, [])
@@ -40,55 +45,64 @@ export default () => {
40
45
 
41
46
 
42
47
  }, []);
43
- useEffect(() => {
44
- const didEnum = didlist.map(item => {
48
+ // 动态生成 formItems
49
+ const formItems: ISearchItemProps[] = React.useMemo(() => {
50
+ const didEnum = didlist?.map(item => {
45
51
  return { label: item.remarkName + ':' + item.participantId, value: item.participantId };
46
- })
52
+ });
47
53
 
48
- let obj: any = {
49
- type: "object",
50
- properties: {
51
- customerDid: {
52
- type: "string",
53
- title: "DID",
54
- },
55
- customerName: {
56
- type: "string",
57
- title: "所属公司",
58
- },
59
- companyDid: {
60
- type: "string",
61
- title: "我司对应DID",
62
- enum: didEnum
63
- },
64
- dataStatus: {
65
- type: "string",
66
- title: "数据状态",
67
- enum: [{
68
- "label": "使用中",
69
- "value": 1
70
- }, {
71
- "label": "停用",
72
- "value": 2
73
- }],
74
- },
75
- createTime: {
76
- type: "daterange",
77
- title: "创建时间",
78
- 'x-props':{
79
- extendsFields: ['beginCreateTime', 'endCreateTime'],
80
- }
81
- },
82
- // '[beginUpdateTime,endUpdateTime]': {
83
- // key: "[beginUpdateTime,endUpdateTime]",
84
- // name: "[beginUpdateTime,endUpdateTime]",
85
- // type: "daterange",
86
- // title: "更新时间",
87
- // },
88
- }
89
- }
90
- setSchema(obj);
91
- }, [didlist])
54
+ const items: ISearchItemProps[] = [];
55
+
56
+ // DID
57
+ items.push({
58
+ name: "customerDid",
59
+ label: "DID",
60
+ children: <SearchXui.Input />,
61
+ });
62
+
63
+ // 所属公司
64
+ items.push({
65
+ name: "customerName",
66
+ label: "所属公司",
67
+ children: <SearchXui.Input />,
68
+ });
69
+
70
+ // 我司对应DID
71
+ items.push({
72
+ name: "companyDid",
73
+ label: "我司对应DID",
74
+ children: (
75
+ <SearchSelect className={css.underline} allowClear>
76
+ {didEnum?.map(item => (
77
+ <Option key={item.value} value={item.value}>
78
+ {item.label}
79
+ </Option>
80
+ ))}
81
+ </SearchSelect>
82
+ ),
83
+ });
84
+
85
+ // 数据状态
86
+ items.push({
87
+ name: "dataStatus",
88
+ label: "数据状态",
89
+ children: (
90
+ <SearchSelect className={css.underline} allowClear>
91
+ <Option value={1}>使用中</Option>
92
+ <Option value={2}>停用</Option>
93
+ </SearchSelect>
94
+ ),
95
+ });
96
+
97
+ // 创建时间
98
+ items.push({
99
+ name: "createTime",
100
+ label: "创建时间",
101
+ children: <RangePicker className={css.underline}/>,
102
+ });
103
+
104
+ return items;
105
+ }, [didlist]);
92
106
  const batchBlockList = useCallback((type: number) => {
93
107
  (async () => {
94
108
  const res = await controller.enablewhitelist({
@@ -112,28 +126,27 @@ export default () => {
112
126
  s.listNature = '1';
113
127
  })()
114
128
  }, []);
129
+ // 创建搜索组件
130
+ const { search } = SearchXui.useCreate({
131
+ labelCol: 9,
132
+ onSubmit: (e) => {
133
+ onSearchFormSubmit(e);
134
+ },
135
+ values: React.useMemo(() => {
136
+ return searchUnFormat(whiteParams, formItems);
137
+ }, [whiteParams, formItems]),
138
+ formItems,
139
+ });
140
+
115
141
  const topExpand = useCallback(() => {
116
142
  return (
117
- <AdvancedSearch
118
- width={380}
119
- height={44}
120
- compact={true}
121
- defaultKey="customerDid"
122
- placeholder="输入DID"
123
- searchFormSubmit={onSearchFormSubmit}
124
- >
125
- <KtsForm
126
- labelCol={9}
127
- wrapperCol={15}
128
- labelAlign='left'
129
- compact={true}
130
- schema={schema}
131
- defaultValue={whiteParams}
132
- >
133
- </KtsForm>
134
- </AdvancedSearch>
143
+ <div style={{ width: "100%" }} className={'unifiedSearch'}>
144
+ <div style={{ display: "flex", alignItems: "flex-start", gap: "16px" }}>
145
+ <div style={{ flex: 1 }}>{search}</div>
146
+ </div>
147
+ </div>
135
148
  );
136
- }, [schema, whiteParams]);
149
+ }, [search]);
137
150
  return (
138
151
  <div style={{ flex: 'none', position: 'relative', zIndex: 1 }} >
139
152
  <PageHeaderFoot
@@ -0,0 +1,10 @@
1
+ .underline{
2
+ :global(.ktsAntX-select-selector){
3
+ border: none !important;
4
+ border-bottom: 1px solid #d9d9d9 !important;
5
+ }
6
+ :global(.ant-input){
7
+ border: none !important;
8
+ border-bottom: 1px solid #d9d9d9 !important;
9
+ }
10
+ }
@@ -46,7 +46,7 @@ const propertyColumns: ColumnType<any>[] = [
46
46
  },
47
47
  ]
48
48
 
49
- class MySpan extends React.Component {
49
+ class MySpan extends React.Component<any> {
50
50
  render() {
51
51
  return (
52
52
  <span style={{ padding: '0 8px' }}>
@@ -13,7 +13,7 @@ export default function algorithmFormComponent(operator: IOperator, ruleProperti
13
13
 
14
14
  const info = ruleProperties.items ? ruleProperties.items : ruleProperties;
15
15
 
16
- function renderFormItem(child: React.ReactChild) {
16
+ function renderFormItem(child: any) {
17
17
  return (
18
18
  <Form.Item key={`algorithmForm_${operator.name}`} {...operator}>
19
19
  {child}
@@ -109,7 +109,7 @@ const MyDatePickerTime = (props: { value?: any, disabled?: boolean, onChange?: (
109
109
  props.onChange && props.onChange(e ? e.format('YYYY-MM-DDTHH:mm:ss') : undefined)
110
110
  }, [props.onChange])
111
111
  const value = React.useMemo(() => props.value ? moment(props.value) : undefined, [props.value])
112
- return <DatePicker disabled={props.disabled} value={value} onChange={onChange} showTime />
112
+ return <DatePicker disabled={props.disabled} value={value as any} onChange={onChange} showTime />
113
113
  }
114
114
 
115
115
  const MyDatePicker = (props: { value?: any, disabled?: boolean, onChange?: (e: any) => void }) => {
@@ -117,7 +117,7 @@ const MyDatePicker = (props: { value?: any, disabled?: boolean, onChange?: (e: a
117
117
  props.onChange && props.onChange(e ? e.format('YYYY-MM-DD') : undefined)
118
118
  }, [props.onChange])
119
119
  const value = React.useMemo(() => props.value ? moment(props.value) : undefined, [props.value])
120
- return <DatePicker disabled={props.disabled} value={value} onChange={onChange} />
120
+ return <DatePicker disabled={props.disabled} value={value as any} onChange={onChange} />
121
121
  }
122
122
 
123
123
  const MyArray = (props: { readOnly?: boolean, value?: string[] | string, onChange?: (e: string) => void }) => {
@@ -1,23 +0,0 @@
1
- .header{
2
- padding:10px 0px;
3
- display: flex;
4
- align-items: center;
5
- .buttonGroup{
6
- margin-right: 20px;
7
- white-space: nowrap;
8
- }
9
- .buttons{
10
- text-align: right;
11
- flex: 1;
12
- white-space: nowrap;
13
- }
14
- }
15
- .tabel-action{
16
- padding: 0 5px;
17
- font-size: 12px;
18
- font-family: PingFangSC-Regular,PingFang SC;
19
- font-weight: 400;
20
- color: #0074ff;
21
- white-space: nowrap;
22
- cursor: pointer;
23
- }
@@ -0,0 +1,10 @@
1
+ .underline{
2
+ :global(.ktsAntX-select-selector){
3
+ border: none !important;
4
+ border-bottom: 1px solid #d9d9d9 !important;
5
+ }
6
+ :global(.ant-input){
7
+ border: none !important;
8
+ border-bottom: 1px solid #d9d9d9 !important;
9
+ }
10
+ }