@kmkf-fe-packages/services-components 0.7.15-alpha.35 → 0.7.15-alpha.38

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.
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
3
3
  export declare type ButtonType = typeof DateType[number];
4
4
  export interface ApaasDate {
5
5
  dateType?: ButtonType;
6
6
  [propName: string]: any;
7
7
  }
8
- declare const Date: (props: ApaasDate) => JSX.Element;
8
+ declare const Date: (props: ApaasDate) => React.JSX.Element;
9
9
  export default Date;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => React.JSX.Element;
3
3
  export default ItemEncode;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemId;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemSelect;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ExpressCompany: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const ExpressCompany: (props: any) => React.JSX.Element;
3
3
  export default ExpressCompany;
@@ -52,11 +52,10 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
52
52
  }, record === null || record === void 0 ? void 0 : record[_this.id]));
53
53
  });
54
54
  _defineProperty(this, "renderClient", function (record, params) {
55
- var _record$_this$id;
56
55
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
57
56
  id: _this.id,
58
57
  label: _this.name,
59
- value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick
58
+ value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : record[_this.id]
60
59
  }) : null;
61
60
  });
62
61
  _defineProperty(this, "editRender", function (p) {
@@ -26,6 +26,7 @@ declare class Logistics implements ComponentInterface {
26
26
  canSort: boolean;
27
27
  children: ComponentInterface[];
28
28
  dataType: ComponentInterface['dataType'];
29
+ effects: ComponentInterface["effects"];
29
30
  constructor(options: PickOption);
30
31
  renderClient: (record: any, params: any) => React.JSX.Element;
31
32
  renderPc: () => null;
@@ -39,6 +39,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
39
39
  _defineProperty(this, "canSort", void 0);
40
40
  _defineProperty(this, "children", void 0);
41
41
  _defineProperty(this, "dataType", void 0);
42
+ _defineProperty(this, "effects", void 0);
42
43
  _defineProperty(this, "renderClient", function (record, params) {
43
44
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record, params), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
44
45
  });
@@ -63,7 +64,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
63
64
  return null;
64
65
  });
65
66
  _defineProperty(this, "editRender", function (p) {
66
- var _this$componentConfig, _this$componentConfig2;
67
+ var _this$componentConfig, _this$componentConfig2, _this$effects;
67
68
  return /*#__PURE__*/React.createElement(GetFormItem, {
68
69
  title: _this.name,
69
70
  name: _this.id,
@@ -71,6 +72,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
71
72
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
72
73
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
73
74
  component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
75
+ disabled: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing,
74
76
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur
75
77
  }))
76
78
  });
@@ -93,6 +95,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
93
95
  this.payTime = new AlipayTime(options);
94
96
  this.isCombinationComponent = true;
95
97
  this.canSort = false;
98
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
96
99
  this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
97
100
  this.rules = [{
98
101
  validator: function validator(_, value) {
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const Popover: ({ Overlay, ShowComponent }: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const Popover: ({ Overlay, ShowComponent }: any) => React.JSX.Element;
3
3
  export default Popover;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemEncode;
@@ -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, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsGoods, BsExchange, BsReissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => JstLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
3
+ export declare const factory: (type: string, options: PickOption) => BasicCascader | JstLogistics | BasicPosting | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.15-alpha.35",
3
+ "version": "0.7.15-alpha.38",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.35",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.35"
29
+ "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.38",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.36"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "b6abe937716eb2ad1fce0990212072f9d9f2713a"
43
+ "gitHead": "d65f522019c81b1f86a99b4af3fbc9892c185f59"
44
44
  }