@kmkf-fe-packages/services-components 0.5.2-alpha.6 → 0.5.2-alpha.7
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/dist/esm/components/Address/index.d.ts +3 -2
- package/dist/esm/components/Address/index.js +6 -3
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +3 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +7 -1
- package/dist/esm/components/ErpTradeId/index.js +15 -1
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +3 -0
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +3 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +3 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = (string | number)[] | undefined;
|
|
5
|
-
declare class
|
|
5
|
+
declare class Address implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
7
7
|
id: string;
|
|
8
8
|
type: string;
|
|
@@ -24,5 +24,6 @@ declare class BasicInput implements ComponentInterface {
|
|
|
24
24
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
25
25
|
renderExport: (value: any, record: any) => string;
|
|
26
26
|
editRender: (value: any) => JSX.Element;
|
|
27
|
+
filterConfig: () => never[];
|
|
27
28
|
}
|
|
28
|
-
export default
|
|
29
|
+
export default Address;
|
|
@@ -12,9 +12,9 @@ import GetFormItem from "../GetFormItem";
|
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import every from 'lodash/every';
|
|
15
|
-
var
|
|
15
|
+
var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
16
16
|
var _this = this;
|
|
17
|
-
_classCallCheck(this,
|
|
17
|
+
_classCallCheck(this, Address);
|
|
18
18
|
_defineProperty(this, "name", void 0);
|
|
19
19
|
_defineProperty(this, "id", void 0);
|
|
20
20
|
_defineProperty(this, "type", void 0);
|
|
@@ -78,6 +78,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
78
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
+
_defineProperty(this, "filterConfig", function () {
|
|
82
|
+
return [];
|
|
83
|
+
});
|
|
81
84
|
this.name = options.name;
|
|
82
85
|
this.id = options.id;
|
|
83
86
|
this.type = options.type;
|
|
@@ -93,4 +96,4 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
93
96
|
* @returns
|
|
94
97
|
*/);
|
|
95
98
|
|
|
96
|
-
export default
|
|
99
|
+
export default Address;
|
|
@@ -15,5 +15,6 @@ declare class EItemSelect implements ComponentInterface {
|
|
|
15
15
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
16
|
renderExport: (value: any, record: any) => any;
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
|
+
filterConfig: () => never[];
|
|
18
19
|
}
|
|
19
20
|
export default EItemSelect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class ErpTradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -14,5 +14,11 @@ declare class ErpTradeId implements ComponentInterface {
|
|
|
14
14
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
15
|
renderExport: (value: any, record: Record) => any;
|
|
16
16
|
editRender: (value: any) => JSX.Element;
|
|
17
|
+
filterConfig: (item: ColumnConfig) => {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
filterComponentType: "Input";
|
|
21
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
22
|
+
};
|
|
17
23
|
}
|
|
18
24
|
export default ErpTradeId;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, ErpTradeId);
|
|
@@ -48,6 +48,20 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
48
48
|
component: /*#__PURE__*/React.createElement(TradeId, null)
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
52
|
+
return {
|
|
53
|
+
id: item.id,
|
|
54
|
+
// 过滤组件id
|
|
55
|
+
name: item.name,
|
|
56
|
+
// 过滤组件名称
|
|
57
|
+
filterComponentType: 'Input',
|
|
58
|
+
filterFn: function filterFn(value) {
|
|
59
|
+
return function (i) {
|
|
60
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
});
|
|
51
65
|
this.name = options.name;
|
|
52
66
|
this.id = options.id;
|
|
53
67
|
this.type = options.type;
|
|
@@ -14,5 +14,6 @@ declare class BasicGrade implements ComponentInterface {
|
|
|
14
14
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
15
|
renderExport: (value: any, record: Record) => any;
|
|
16
16
|
editRender: () => JSX.Element;
|
|
17
|
+
filterConfig: () => never[];
|
|
17
18
|
}
|
|
18
19
|
export default BasicGrade;
|
|
@@ -48,6 +48,9 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
48
48
|
component: /*#__PURE__*/React.createElement(ApaasSlider, _this.componentConfig)
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
+
_defineProperty(this, "filterConfig", function () {
|
|
52
|
+
return [];
|
|
53
|
+
});
|
|
51
54
|
this.name = options.name;
|
|
52
55
|
this.id = options.id;
|
|
53
56
|
this.type = options.type;
|
|
@@ -22,5 +22,6 @@ declare class BasicRate implements ComponentInterface {
|
|
|
22
22
|
renderPc: (value: any, record: Record) => JSX.Element | null;
|
|
23
23
|
renderExport: (value: any, record: any) => any;
|
|
24
24
|
editRender: () => JSX.Element;
|
|
25
|
+
filterConfig: () => never[];
|
|
25
26
|
}
|
|
26
27
|
export default BasicRate;
|
|
@@ -110,6 +110,9 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
110
110
|
}))
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
|
+
_defineProperty(this, "filterConfig", function () {
|
|
114
|
+
return [];
|
|
115
|
+
});
|
|
113
116
|
this.name = options.name;
|
|
114
117
|
this.id = options.id;
|
|
115
118
|
this.type = options.type;
|
|
@@ -22,5 +22,6 @@ declare class BasicInput implements ComponentInterface {
|
|
|
22
22
|
renderExport: (value: any, record: any) => string;
|
|
23
23
|
renderClient: (record: any) => JSX.Element | null;
|
|
24
24
|
editRender: (value: any) => JSX.Element;
|
|
25
|
+
filterConfig: () => never[];
|
|
25
26
|
}
|
|
26
27
|
export default BasicInput;
|
|
@@ -93,6 +93,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
93
93
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
94
94
|
});
|
|
95
95
|
});
|
|
96
|
+
_defineProperty(this, "filterConfig", function () {
|
|
97
|
+
return [];
|
|
98
|
+
});
|
|
96
99
|
this.name = options.name;
|
|
97
100
|
this.id = options.id;
|
|
98
101
|
this.type = options.type;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.5.2-alpha.
|
|
3
|
+
"version": "0.5.2-alpha.7",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"gitHooks": {
|
|
36
36
|
"pre-commit": "lint-staged"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b744d4a75a02e842de968d4aff71cdec71908147"
|
|
39
39
|
}
|