@kmkf-fe-packages/services-components 1.22.1-beta.21 → 1.22.1-beta.23

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.
@@ -17,9 +17,9 @@ declare class MemberLevel implements ComponentInterface {
17
17
  getComponentValue: (r: Record) => any;
18
18
  editRender: (p: any) => React.JSX.Element;
19
19
  renderClient: (record: any) => React.JSX.Element | null;
20
- renderPc: (value: any, record: Record) => string;
21
- renderLog: (r: Record) => string;
22
- renderExport: (value: any, record: Record) => string;
20
+ renderPc: (value: any, record: Record) => React.JSX.Element;
21
+ renderLog: (r: Record) => React.JSX.Element | null;
22
+ renderExport: (value: any, record: Record) => any;
23
23
  filterConfig: (item: ColumnConfig) => {
24
24
  searchDefaultConditions: "in";
25
25
  type: string;
@@ -39,7 +39,7 @@ var MemberLevel = /*#__PURE__*/_createClass(function MemberLevel(options) {
39
39
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_memberLevel")];
40
40
  });
41
41
  _defineProperty(this, "editRender", function (p) {
42
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$options;
42
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
43
43
  return /*#__PURE__*/React.createElement(GetFormItem, {
44
44
  title: _this.name,
45
45
  name: _this.id,
@@ -52,34 +52,36 @@ var MemberLevel = /*#__PURE__*/_createClass(function MemberLevel(options) {
52
52
  placeholder: "\u8BF7\u9009\u62E9\u4F1A\u5458\u7B49\u7EA7",
53
53
  showSearch: true,
54
54
  onChange: p === null || p === void 0 ? void 0 : p.onChange,
55
- options: (_this$options = _this.options) === null || _this$options === void 0 ? void 0 : _this$options.map(function (option) {
56
- return {
57
- value: option,
58
- label: option
59
- };
60
- }),
55
+ options: _this.options,
61
56
  optionFilterProp: "label"
62
57
  }))
63
58
  });
64
59
  });
65
60
  _defineProperty(this, "renderClient", function (record) {
66
- var _Array$from;
61
+ var _record;
67
62
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
68
63
  id: _this.id,
69
64
  label: _this.name,
70
- value: (_Array$from = Array.from(new Set(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")]))) === null || _Array$from === void 0 ? void 0 : _Array$from.join("、")
65
+ value: record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_memberLevel")]) === null || _record === void 0 ? void 0 : _record.join("、")
71
66
  }) : null;
72
67
  });
73
68
  _defineProperty(this, "renderPc", function (value, record) {
74
- var _Array$from2;
75
- return (_Array$from2 = Array.from(new Set(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")]))) === null || _Array$from2 === void 0 ? void 0 : _Array$from2.join("、");
69
+ var _record2;
70
+ if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")])) {
71
+ return /*#__PURE__*/React.createElement("span", null, "--");
72
+ }
73
+ return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_memberLevel")]) === null || _record2 === void 0 ? void 0 : _record2.join("、"));
76
74
  });
77
75
  _defineProperty(this, "renderLog", function (r) {
76
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_memberLevel")])) return null;
78
77
  return _this.renderPc(undefined, r);
79
78
  });
80
79
  _defineProperty(this, "renderExport", function (value, record) {
81
- var _Array$from3;
82
- return (_Array$from3 = Array.from(new Set(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")]))) === null || _Array$from3 === void 0 ? void 0 : _Array$from3.join("、");
80
+ var _record3;
81
+ if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")])) {
82
+ return "--";
83
+ }
84
+ return record === null || record === void 0 ? void 0 : (_record3 = record["".concat(_this.id, "_memberLevel")]) === null || _record3 === void 0 ? void 0 : _record3.join("、");
83
85
  });
84
86
  _defineProperty(this, "filterConfig", function (item) {
85
87
  return {
@@ -111,12 +113,11 @@ var MemberLevel = /*#__PURE__*/_createClass(function MemberLevel(options) {
111
113
  this.canSort = false;
112
114
  this.children = [];
113
115
  this.dataType = "array";
114
- this.options = ['赏花官', '鉴花官', '伴花官', '护花官', '种花官', '店铺客户(非会员)'];
115
- }
116
-
117
- // formDataTransform = (v: Array<{ labelShowName: string }>) => {
118
- // return v
119
- // }
120
- );
121
-
116
+ this.options = ["赏花官", "鉴花官", "伴花官", "护花官", "种花官", "店铺客户(非会员)"].map(function (item) {
117
+ return {
118
+ value: item,
119
+ label: item
120
+ };
121
+ });
122
+ });
122
123
  export default MemberLevel;
@@ -1,3 +1,3 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsGoods | CommonMultiStatus | JstLogistics | JstSendGood | MemberLevel | MsgStatus | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsGoods | CommonMultiStatus | JstLogistics | JstSendGood | MemberLevel | MsgStatus | BasicMultSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.22.1-beta.21",
3
+ "version": "1.22.1-beta.23",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "5ad2aa21d35dc67d13a118386397b8e558a04526",
44
+ "gitHead": "492fa61aa17d54385a77fd56b29b10e9d2ea26a5",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }