@kmkf-fe-packages/services-components 0.13.0-alpha.11 → 0.13.0-alpha.12
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 +5 -5
- package/dist/esm/components/Address/index.js +31 -25
- package/dist/esm/components/BS/BsPosting/components/City/index.js +2 -1
- package/dist/esm/components/BS/BsPosting/components/District/index.js +2 -1
- package/dist/esm/components/BS/BsPosting/components/Province/index.js +2 -1
- package/dist/esm/components/Common/img/reject.png +0 -0
- package/dist/esm/components/Common/img/reminder.png +0 -0
- package/dist/esm/components/FlowTag/index.js +15 -3
- package/dist/esm/components/ReceiverAddress/index.d.ts +5 -5
- package/dist/esm/components/ReceiverAddress/index.js +27 -19
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
declare type Value = (string | number)[] | undefined;
|
|
5
5
|
declare class Address implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
@@ -14,7 +14,7 @@ declare class Address implements ComponentInterface {
|
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
16
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
/**
|
|
20
20
|
* 通过值计算展示内容
|
|
@@ -25,7 +25,7 @@ declare class Address implements ComponentInterface {
|
|
|
25
25
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
26
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
27
27
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
28
|
-
renderLog: (r: Record) =>
|
|
28
|
+
renderLog: (r: Record) => string;
|
|
29
29
|
getComponentValue: (r: Record) => any[];
|
|
30
30
|
renderExport: (value: any, record: any) => string;
|
|
31
31
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -5,14 +5,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from
|
|
9
|
-
import { ApaasAddress } from
|
|
10
|
-
import { AddressData } from
|
|
11
|
-
import intersection from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { ApaasAddress } from "@kmkf-fe-packages/basic-components";
|
|
10
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import intersection from "lodash/intersection";
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
-
import every from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import every from "lodash/every";
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
18
18
|
var _this = this;
|
|
@@ -33,7 +33,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
33
33
|
var _value$map;
|
|
34
34
|
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (suffix) {
|
|
35
35
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
36
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(
|
|
36
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join("");
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "transTextToNumber", function (value) {
|
|
39
39
|
return value ? +value : value;
|
|
@@ -42,7 +42,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
42
42
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
43
43
|
id: _this.id,
|
|
44
44
|
label: _this.name,
|
|
45
|
-
value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
45
|
+
value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) || ""
|
|
46
46
|
}) : null;
|
|
47
47
|
});
|
|
48
48
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -55,28 +55,34 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
55
55
|
return !item;
|
|
56
56
|
}) ? [] : address;
|
|
57
57
|
return /*#__PURE__*/React.createElement("span", null, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function (suffix) {
|
|
58
|
-
return _this.addressDateInstance.getNameByCode(suffix ||
|
|
59
|
-
}).join(
|
|
58
|
+
return _this.addressDateInstance.getNameByCode(suffix || "");
|
|
59
|
+
}).join(""));
|
|
60
60
|
});
|
|
61
61
|
_defineProperty(this, "renderLog", function (r) {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
var _address2;
|
|
63
|
+
var address = [_this.transTextToNumber(r["".concat(_this.id, "_basicProvince")]), _this.transTextToNumber(r["".concat(_this.id, "_basicCity")]), _this.transTextToNumber(r["".concat(_this.id, "_basicDistrict")])];
|
|
64
|
+
address = every(address, function (item) {
|
|
65
|
+
return !item;
|
|
66
|
+
}) ? [] : address;
|
|
67
|
+
return (_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.map(function (suffix) {
|
|
68
|
+
return _this.addressDateInstance.getNameByCode(suffix || "");
|
|
69
|
+
}).join("");
|
|
64
70
|
});
|
|
65
71
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
66
72
|
return !isNull(r["".concat(_this.id, "_basicProvince")]) ? [r["".concat(_this.id, "_basicProvince")], r["".concat(_this.id, "_basicCity")], r["".concat(_this.id, "_basicDistrict")]] : [];
|
|
67
73
|
});
|
|
68
74
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
69
|
-
var
|
|
75
|
+
var _address3;
|
|
70
76
|
if (record["".concat(_this.id, "_basicProvince")] === undefined) {
|
|
71
|
-
return
|
|
77
|
+
return "--";
|
|
72
78
|
}
|
|
73
79
|
var address = [_this.transTextToNumber(record["".concat(_this.id, "_basicProvince")]), _this.transTextToNumber(record["".concat(_this.id, "_basicCity")]), _this.transTextToNumber(record["".concat(_this.id, "_basicDistrict")])];
|
|
74
80
|
address = every(address, function (item) {
|
|
75
81
|
return !item;
|
|
76
82
|
}) ? [] : address;
|
|
77
|
-
return (
|
|
78
|
-
return _this.addressDateInstance.getNameByCode(suffix ||
|
|
79
|
-
}).join(
|
|
83
|
+
return (_address3 = address) === null || _address3 === void 0 ? void 0 : _address3.map(function (suffix) {
|
|
84
|
+
return _this.addressDateInstance.getNameByCode(suffix || "");
|
|
85
|
+
}).join("");
|
|
80
86
|
});
|
|
81
87
|
_defineProperty(this, "editRender", function (p) {
|
|
82
88
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -97,18 +103,18 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
97
103
|
// 过滤组件id
|
|
98
104
|
name: item.name,
|
|
99
105
|
// 过滤组件名称
|
|
100
|
-
filterComponentType:
|
|
106
|
+
filterComponentType: "Cascader",
|
|
101
107
|
props: {
|
|
102
108
|
options: _this.addressDateInstance.addressOptions || [],
|
|
103
109
|
fieldNames: {
|
|
104
|
-
label:
|
|
105
|
-
value:
|
|
106
|
-
children:
|
|
110
|
+
label: "label",
|
|
111
|
+
value: "value",
|
|
112
|
+
children: "children"
|
|
107
113
|
}
|
|
108
114
|
},
|
|
109
115
|
filterFn: function filterFn(value) {
|
|
110
116
|
return function (i) {
|
|
111
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
117
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "basicMultSelect")).length > 0;
|
|
112
118
|
};
|
|
113
119
|
},
|
|
114
120
|
formatFilterValue: function formatFilterValue(val) {
|
|
@@ -123,7 +129,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
123
129
|
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
124
130
|
this.formField = "".concat(options.id, "_basicDistrict");
|
|
125
131
|
this.type = options.type;
|
|
126
|
-
this.dataType =
|
|
132
|
+
this.dataType = "object";
|
|
127
133
|
this.isCombinationComponent = false;
|
|
128
134
|
this.canSort = true;
|
|
129
135
|
this.children = [];
|
|
@@ -133,8 +139,8 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
133
139
|
}
|
|
134
140
|
/**
|
|
135
141
|
* 通过值计算展示内容
|
|
136
|
-
* @param value
|
|
137
|
-
* @returns
|
|
142
|
+
* @param value
|
|
143
|
+
* @returns
|
|
138
144
|
*/);
|
|
139
145
|
|
|
140
146
|
export default Address;
|
|
@@ -45,7 +45,8 @@ var City = /*#__PURE__*/_createClass(function City(options) {
|
|
|
45
45
|
return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(this, "renderExport", function (value) {
|
|
48
|
-
|
|
48
|
+
var _this$addressDateInst;
|
|
49
|
+
return (_this$addressDateInst = _this.addressDateInstance.getNameByCode(value)) !== null && _this$addressDateInst !== void 0 ? _this$addressDateInst : '--';
|
|
49
50
|
});
|
|
50
51
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
52
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
@@ -45,7 +45,8 @@ var District = /*#__PURE__*/_createClass(function District(options) {
|
|
|
45
45
|
return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(this, "renderExport", function (value) {
|
|
48
|
-
|
|
48
|
+
var _this$addressDateInst;
|
|
49
|
+
return (_this$addressDateInst = _this.addressDateInstance.getNameByCode(value)) !== null && _this$addressDateInst !== void 0 ? _this$addressDateInst : '--';
|
|
49
50
|
});
|
|
50
51
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
52
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
@@ -45,7 +45,8 @@ var Province = /*#__PURE__*/_createClass(function Province(options) {
|
|
|
45
45
|
return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(this, "renderExport", function (value) {
|
|
48
|
-
|
|
48
|
+
var _this$addressDateInst;
|
|
49
|
+
return (_this$addressDateInst = _this.addressDateInstance.getNameByCode(value)) !== null && _this$addressDateInst !== void 0 ? _this$addressDateInst : '--';
|
|
49
50
|
});
|
|
50
51
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
52
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
Binary file
|
|
Binary file
|
|
@@ -14,13 +14,25 @@ import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
|
14
14
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import GetFormItem from "../GetFormItem";
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
|
+
import reject from "../Common/img/reject.png";
|
|
18
|
+
import reminder from "../Common/img/reminder.png";
|
|
17
19
|
var TAG_MAP = {
|
|
18
20
|
REMINDER: "催单",
|
|
19
21
|
REJECT: "驳回"
|
|
20
22
|
};
|
|
21
23
|
var TAG_ICON_MAP = {
|
|
22
|
-
REMINDER: "
|
|
23
|
-
|
|
24
|
+
REMINDER: /*#__PURE__*/React.createElement("img", {
|
|
25
|
+
src: reminder,
|
|
26
|
+
style: {
|
|
27
|
+
width: "16px"
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
REJECT: /*#__PURE__*/React.createElement("img", {
|
|
31
|
+
src: reject,
|
|
32
|
+
style: {
|
|
33
|
+
width: "16px"
|
|
34
|
+
}
|
|
35
|
+
})
|
|
24
36
|
};
|
|
25
37
|
var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
|
|
26
38
|
var _this = this;
|
|
@@ -99,7 +111,7 @@ var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
|
|
|
99
111
|
label: "催单",
|
|
100
112
|
value: "REMINDER"
|
|
101
113
|
}, {
|
|
102
|
-
label: "
|
|
114
|
+
label: "驳回",
|
|
103
115
|
value: "REJECT"
|
|
104
116
|
}]
|
|
105
117
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
declare type Value = {
|
|
5
5
|
address?: (string | number)[];
|
|
6
6
|
detail?: string;
|
|
@@ -18,12 +18,12 @@ declare class BasicInput implements ComponentInterface {
|
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
21
|
-
dataType: ComponentInterface[
|
|
21
|
+
dataType: ComponentInterface["dataType"];
|
|
22
22
|
constructor(options: PickOption);
|
|
23
23
|
render: (value: Value) => React.JSX.Element;
|
|
24
24
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
25
25
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
26
|
-
renderLog: (r: Record) =>
|
|
26
|
+
renderLog: (r: Record) => string;
|
|
27
27
|
getComponentValue: (r: Record) => {
|
|
28
28
|
address: any[];
|
|
29
29
|
detail: any;
|
|
@@ -5,13 +5,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from
|
|
9
|
-
import { Address } from
|
|
10
|
-
import { AddressData } from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Address } from "@kmkf-fe-packages/basic-components";
|
|
10
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from
|
|
14
|
-
import every from
|
|
13
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
+
import every from "lodash/every";
|
|
15
15
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
16
16
|
var _this = this,
|
|
17
17
|
_this$componentConfig3;
|
|
@@ -35,7 +35,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
35
35
|
className: "pointer"
|
|
36
36
|
}, value === null || value === void 0 ? void 0 : (_value$address = value.address) === null || _value$address === void 0 ? void 0 : _value$address.map(function (suffix) {
|
|
37
37
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
38
|
-
}).join(
|
|
38
|
+
}).join(""), value === null || value === void 0 ? void 0 : value.detail);
|
|
39
39
|
});
|
|
40
40
|
_defineProperty(this, "transTextToNumber", function (value) {
|
|
41
41
|
return value ? +value : value;
|
|
@@ -54,17 +54,25 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
54
54
|
className: "pointer",
|
|
55
55
|
onClick: function onClick(e) {
|
|
56
56
|
var _this$effects, _this$effects2;
|
|
57
|
-
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) ===
|
|
57
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
58
58
|
e.stopPropagation();
|
|
59
59
|
}
|
|
60
60
|
}, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
61
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
61
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
62
62
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
63
|
-
}).join(
|
|
63
|
+
}).join(""), detail);
|
|
64
64
|
});
|
|
65
65
|
_defineProperty(this, "renderLog", function (r) {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
var _address2;
|
|
67
|
+
var address = [_this.transTextToNumber(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")]), _this.transTextToNumber(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_city")]), _this.transTextToNumber(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_district")])];
|
|
68
|
+
address = every(address, function (item) {
|
|
69
|
+
return !item;
|
|
70
|
+
}) ? [] : address;
|
|
71
|
+
var detail = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")];
|
|
72
|
+
return "".concat((_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.map(function () {
|
|
73
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
74
|
+
return _this.addressDateInstance.getNameByCode(suffix);
|
|
75
|
+
}).join(""), " ").concat(detail || "");
|
|
68
76
|
});
|
|
69
77
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
70
78
|
return {
|
|
@@ -73,19 +81,19 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
73
81
|
};
|
|
74
82
|
});
|
|
75
83
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
|
-
var
|
|
84
|
+
var _address3;
|
|
77
85
|
if (record["".concat(_this.id, "_province")] === undefined) {
|
|
78
|
-
return
|
|
86
|
+
return "--";
|
|
79
87
|
}
|
|
80
88
|
var address = [_this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_province")]), _this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_city")]), _this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_district")])];
|
|
81
89
|
address = every(address, function (item) {
|
|
82
90
|
return !item;
|
|
83
91
|
}) ? [] : address;
|
|
84
92
|
var detail = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_address")];
|
|
85
|
-
return "".concat((
|
|
86
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
93
|
+
return "".concat((_address3 = address) === null || _address3 === void 0 ? void 0 : _address3.map(function () {
|
|
94
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
87
95
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
88
|
-
}).join(
|
|
96
|
+
}).join(""), " ").concat(detail || "");
|
|
89
97
|
});
|
|
90
98
|
_defineProperty(this, "renderClient", function (record) {
|
|
91
99
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -121,16 +129,16 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
121
129
|
validator: function validator(_, value) {
|
|
122
130
|
var _value$address2;
|
|
123
131
|
if (!(value !== null && value !== void 0 && (_value$address2 = value.address) !== null && _value$address2 !== void 0 && _value$address2.length)) {
|
|
124
|
-
return Promise.reject(new Error(
|
|
132
|
+
return Promise.reject(new Error("请选择地址"));
|
|
125
133
|
}
|
|
126
134
|
if (!(value !== null && value !== void 0 && value.detail)) {
|
|
127
|
-
return Promise.reject(new Error(
|
|
135
|
+
return Promise.reject(new Error("请填写详细地址"));
|
|
128
136
|
}
|
|
129
137
|
return Promise.resolve();
|
|
130
138
|
}
|
|
131
139
|
}] : [];
|
|
132
140
|
this.effects = options.effects;
|
|
133
141
|
this.addressDateInstance = AddressData.getInstance();
|
|
134
|
-
this.dataType =
|
|
142
|
+
this.dataType = "object";
|
|
135
143
|
});
|
|
136
144
|
export default BasicInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.13.0-alpha.
|
|
3
|
+
"version": "0.13.0-alpha.12",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "96c3764429747a78680ea91dc66927309fa7b979"
|
|
44
44
|
}
|