@bit-sun/business-component 4.0.13-alpha.8 → 4.2.0-alpha.0
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/.umirc.ts +21 -10
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -2
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -0
- package/dist/components/Business/ItemPropertySelector/index.d.ts +3 -0
- package/dist/components/Business/ModalUtils/index.d.ts +8 -0
- package/dist/components/Business/SearchSelect/utils.d.ts +4 -2
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +3 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +19 -2
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +20 -3
- package/dist/components/Functional/DataValidation/index.d.ts +11 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1998 -885
- package/dist/index.js +1998 -884
- package/package.json +9 -7
- package/src/assets/btn-cancel.svg +3 -0
- package/src/assets/btn-copy.svg +3 -0
- package/src/assets/btn-delete.svg +2 -29
- package/src/assets/btn-edit.svg +2 -19
- package/src/assets/btn-hangUp.svg +3 -0
- package/src/assets/btn-print.svg +3 -0
- package/src/assets/btn-refresh.svg +3 -0
- package/src/assets/btn-unhook.svg +3 -0
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +4 -3
- package/src/components/Business/BsSulaQueryTable/index.less +5 -3
- package/src/components/Business/BsSulaQueryTable/index.md +45 -32
- package/src/components/Business/BsSulaQueryTable/index.tsx +153 -76
- package/src/components/Business/BsSulaQueryTable/setting.tsx +40 -10
- package/src/components/Business/BsSulaQueryTable/utils.tsx +15 -12
- package/src/components/Business/CommodityEntry/index.md +1 -1
- package/src/components/Business/CommodityEntry/index.tsx +11 -9
- package/src/components/Business/DetailPageWrapper/index.less +1 -1
- package/src/components/Business/DetailPageWrapper/index.tsx +24 -5
- package/src/components/Business/DetailPageWrapper/utils.tsx +7 -2
- package/src/components/Business/HomePageWrapper/index.less +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/JsonQueryTable/function.ts +1 -1
- package/src/components/Business/ModalUtils/index.tsx +45 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +284 -57
- package/src/components/Business/SearchSelect/index.md +4 -4
- package/src/components/Business/SearchSelect/utils.ts +26 -4
- package/src/components/Business/columnSettingTable/columnSetting.tsx +27 -11
- package/src/components/Business/columnSettingTable/index.less +5 -3
- package/src/components/Business/columnSettingTable/index.md +200 -136
- package/src/components/Business/columnSettingTable/index.tsx +167 -39
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +178 -47
- package/src/components/Functional/AddSelect/index.tsx +19 -9
- package/src/components/Functional/BillEntry/index.less +3 -0
- package/src/components/Functional/DataValidation/index.md +1 -0
- package/src/components/Functional/DataValidation/index.tsx +138 -23
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +4 -0
- package/src/components/Functional/SearchSelect/index.tsx +61 -20
- package/src/components/Functional/SearchSelect/utils.tsx +13 -10
- package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
- package/src/components/Solution/RuleComponent/index.js +59 -1
- package/src/components/Solution/RuleComponent/ruleFiled.js +1 -1
- package/src/index.ts +1 -0
- package/src/plugin/TableColumnSetting/index.less +5 -3
- package/src/plugin/TableColumnSetting/index.tsx +4 -3
- package/src/styles/bsDefault.less +9 -3
- package/src/utils/request.ts +8 -4
|
@@ -151,16 +151,18 @@
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
.ant-table-
|
|
154
|
+
.ant-table-tbody::-webkit-scrollbar {
|
|
155
155
|
display: none;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ant-table-wrapper {
|
|
159
159
|
margin-top: 10px;
|
|
160
|
-
height: 364px;
|
|
161
|
-
overflow: scroll;
|
|
162
160
|
padding-bottom: 50px;
|
|
163
161
|
|
|
162
|
+
tbody tr:first-child {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
164
166
|
tr {
|
|
165
167
|
height: 30px;
|
|
166
168
|
td {
|
|
@@ -411,7 +411,7 @@ class TableColumnSetting extends React.Component<TableColumnSettingProps> {
|
|
|
411
411
|
DraggableContainer = (props: any) => (
|
|
412
412
|
<SortableBody
|
|
413
413
|
useDragHandle
|
|
414
|
-
|
|
414
|
+
lockAxis='y'
|
|
415
415
|
helperClass="row-dragging"
|
|
416
416
|
onSortEnd={this.onSortEnd}
|
|
417
417
|
{...props}
|
|
@@ -422,9 +422,9 @@ class TableColumnSetting extends React.Component<TableColumnSettingProps> {
|
|
|
422
422
|
const { sortDataSource } = this.state;
|
|
423
423
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
424
424
|
const index = sortDataSource.findIndex(
|
|
425
|
-
(x:any) => x.key
|
|
425
|
+
(x:any) => (x.key||x.dataIndex) == restProps['data-row-key'],
|
|
426
426
|
);
|
|
427
|
-
return <SortableItem index={index} {...restProps} />;
|
|
427
|
+
return <SortableItem key={restProps['data-row-key']} index={index} {...restProps} />;
|
|
428
428
|
};
|
|
429
429
|
|
|
430
430
|
onChange = (e: any, title: any) => {
|
|
@@ -709,6 +709,7 @@ class TableColumnSetting extends React.Component<TableColumnSettingProps> {
|
|
|
709
709
|
row: this.DraggableBodyRow,
|
|
710
710
|
},
|
|
711
711
|
}}
|
|
712
|
+
scroll={{ y: 364 }}
|
|
712
713
|
/>
|
|
713
714
|
</div>
|
|
714
715
|
</div>
|
|
@@ -1469,8 +1469,12 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1469
1469
|
.table_odd {
|
|
1470
1470
|
background: #f7f8fb;
|
|
1471
1471
|
}
|
|
1472
|
+
.table_gray {
|
|
1473
|
+
background: #D3D3D3;
|
|
1474
|
+
}
|
|
1472
1475
|
// 浮起的列 设置斑马
|
|
1473
1476
|
.table_base,
|
|
1477
|
+
.table_gray,
|
|
1474
1478
|
.table_odd {
|
|
1475
1479
|
|
|
1476
1480
|
.ant-table-cell-fix-left,
|
|
@@ -1908,16 +1912,18 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1908
1912
|
}
|
|
1909
1913
|
}
|
|
1910
1914
|
|
|
1911
|
-
.ant-table-
|
|
1915
|
+
.ant-table-tbody::-webkit-scrollbar {
|
|
1912
1916
|
display: none;
|
|
1913
1917
|
}
|
|
1914
1918
|
|
|
1915
1919
|
.ant-table-wrapper {
|
|
1916
1920
|
margin-top: 10px;
|
|
1917
|
-
height: 364px;
|
|
1918
|
-
overflow: scroll;
|
|
1919
1921
|
padding-bottom: 50px;
|
|
1920
1922
|
|
|
1923
|
+
tbody tr:first-child {
|
|
1924
|
+
display: none;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1921
1927
|
tr {
|
|
1922
1928
|
height: 30px;
|
|
1923
1929
|
td {
|
package/src/utils/request.ts
CHANGED
|
@@ -7,27 +7,31 @@ const get = (url, params?: any) => {
|
|
|
7
7
|
}).then(handleResponseData);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
const post = (url, data?: any) => {
|
|
10
|
+
const post = (url, data?: any, params?: any) => {
|
|
11
11
|
return request.post(url, {
|
|
12
12
|
data,
|
|
13
|
+
...params,
|
|
13
14
|
}).then(handleResponseData);
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
const patch = (url, data?: any) => {
|
|
17
|
+
const patch = (url, data?: any, params?: any) => {
|
|
17
18
|
return request.patch(url, {
|
|
18
19
|
data,
|
|
20
|
+
...params,
|
|
19
21
|
}).then(handleResponseData);
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
const put = (url, data?: any) => {
|
|
24
|
+
const put = (url, data?: any, params?: any) => {
|
|
23
25
|
return request.put(url, {
|
|
24
26
|
data,
|
|
27
|
+
...params,
|
|
25
28
|
}).then(handleResponseData);
|
|
26
29
|
};
|
|
27
30
|
|
|
28
|
-
const deleteS = (url, data?: any) => {
|
|
31
|
+
const deleteS = (url, data?: any, params?: any) => {
|
|
29
32
|
return request.delete(url, {
|
|
30
33
|
data,
|
|
34
|
+
...params,
|
|
31
35
|
}).then(handleResponseData);
|
|
32
36
|
};
|
|
33
37
|
|