@kmkf-fe-packages/services-components 0.21.3 → 0.21.4-alpha.11

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/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -12,6 +12,7 @@ declare class FlowCreator implements ComponentInterface {
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface["dataType"];
15
+ format: ComponentInterface["format"];
15
16
  options: ComponentInterface["options"];
16
17
  constructor(options: PickOption);
17
18
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -23,6 +23,7 @@ var FlowCreator = /*#__PURE__*/_createClass(function FlowCreator(options) {
23
23
  _defineProperty(this, "canSort", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
25
  _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "format", void 0);
26
27
  _defineProperty(this, "options", void 0);
27
28
  _defineProperty(this, "renderPc", function (value, record) {
28
29
  var _record;
@@ -83,5 +84,6 @@ var FlowCreator = /*#__PURE__*/_createClass(function FlowCreator(options) {
83
84
  this.children = [];
84
85
  this.dataType = "string";
85
86
  this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
87
+ this.format = "staffGroup";
86
88
  });
87
89
  export default FlowCreator;
@@ -6,7 +6,7 @@ declare class PaymentAmount implements ComponentInterface {
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
10
  align: ALignType;
11
11
  width: number;
12
12
  isCombinationComponent: boolean;
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
36
36
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  };
39
+ formDataTransform: (value: string) => string | number;
39
40
  }
40
41
  export default PaymentAmount;
@@ -130,6 +130,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
130
130
  }
131
131
  };
132
132
  });
133
+ _defineProperty(this, "formDataTransform", function (value) {
134
+ var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
135
+ return isNumber.test(value) ? Number(value) : value;
136
+ });
133
137
  this.name = '打款金额';
134
138
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
135
139
  this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
@@ -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, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => FlowStatusSelect | BasicPosting | BasicInput | BasicAddress | BasicCascader | 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 | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
3
+ export declare const factory: (type: string, options: PickOption) => BasicAddress | BsExchange | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | BasicDataTime | FlowCreator | FlowTag | BasicInput | JstLogistics | JstSendGood | MsgStatus | NodeDeadLine | BasicPosting | PrevSubmitter | BasicRadio | ReceiverAddress | StatusSelect | Submitter | BasicSelect | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Handler | CompletedUser | FlowWorkOrderId | Calculation | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -48,7 +48,7 @@ export interface ComponentInterface {
48
48
  width?: number;
49
49
  align?: ALignType;
50
50
  dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object';
51
- format?: 'dateTime' | 'date' | 'time' | 'cascader' | 'shopInput';
51
+ format?: 'dateTime' | 'date' | 'time' | 'cascader' | 'shopInput' | 'staffGroup';
52
52
  options?: Array<any>;
53
53
  templateId?: string;
54
54
  workOrderUniqueKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.21.3",
3
+ "version": "0.21.4-alpha.11",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.21.3",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.21.3"
23
+ "@kmkf-fe-packages/basic-components": "^0.21.4-alpha.11",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.21.4-alpha.11"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "41b66f12bbbeb30d30fa6f8b523f66d173970c12",
40
+ "gitHead": "55327124c05d6228652e8936c4cbe42e39d59e74",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }