@kmkf-fe-packages/services-components 0.13.0-alpha.16 → 0.13.0-alpha.17
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/PrevSubmitter/index.d.ts +39 -0
- package/dist/esm/components/PrevSubmitter/index.js +87 -0
- package/dist/esm/components/Submitter/index.js +1 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +3 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +4 -4
- package/dist/esm/components/FlowCreator/index_e.d.ts +0 -6
- package/dist/esm/components/FlowCreator/index_e.js +0 -31
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentInterface, ColumnConfig, Record, PickOption } from "../../type";
|
|
3
|
+
declare class PrevSubmitter implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
12
|
+
canSort: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
|
+
renderLog: () => null;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
20
|
+
renderExport: (value: any, record: Record) => any;
|
|
21
|
+
renderClient: () => null;
|
|
22
|
+
editRender: () => null;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "MultipleSelect";
|
|
29
|
+
props: {
|
|
30
|
+
options: {
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
};
|
|
35
|
+
formatFilterValue: (val: Array<string>) => (string | undefined)[];
|
|
36
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default PrevSubmitter;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
9
|
+
import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
11
|
+
var PrevSubmitter = /*#__PURE__*/_createClass(function PrevSubmitter(options) {
|
|
12
|
+
var _this = this,
|
|
13
|
+
_this$effects3;
|
|
14
|
+
_classCallCheck(this, PrevSubmitter);
|
|
15
|
+
_defineProperty(this, "name", void 0);
|
|
16
|
+
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "effects", void 0);
|
|
21
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
27
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
|
+
var _record;
|
|
29
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--");
|
|
30
|
+
});
|
|
31
|
+
_defineProperty(this, "renderLog", function () {
|
|
32
|
+
return null;
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
35
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
38
|
+
var _record2;
|
|
39
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderClient", function () {
|
|
42
|
+
return null;
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "editRender", function () {
|
|
45
|
+
return null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
48
|
+
var _this$effects;
|
|
49
|
+
return {
|
|
50
|
+
searchDefaultConditions: SYMBOL.in,
|
|
51
|
+
type: item.type,
|
|
52
|
+
id: item.id,
|
|
53
|
+
// 过滤组件id
|
|
54
|
+
name: item.name,
|
|
55
|
+
// 过滤组件名称
|
|
56
|
+
filterComponentType: "MultipleSelect",
|
|
57
|
+
props: {
|
|
58
|
+
options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
|
|
59
|
+
},
|
|
60
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
61
|
+
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
62
|
+
var _this$effects2, _this$effects2$userLi, _this$effects2$userLi2;
|
|
63
|
+
return (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : (_this$effects2$userLi = _this$effects2.userList) === null || _this$effects2$userLi === void 0 ? void 0 : (_this$effects2$userLi2 = _this$effects2$userLi.find(function (u) {
|
|
64
|
+
return u.value === v;
|
|
65
|
+
})) === null || _this$effects2$userLi2 === void 0 ? void 0 : _this$effects2$userLi2.label;
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
filterFn: function filterFn(value) {
|
|
69
|
+
return function (i) {
|
|
70
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
this.name = options.name || "流程创建人";
|
|
76
|
+
this.id = (options === null || options === void 0 ? void 0 : options.id) || "prevSubmitter";
|
|
77
|
+
this.type = "PREV_SUBMITTER_INPUT";
|
|
78
|
+
this.sortField = "prevSubmitter";
|
|
79
|
+
this.formField = "prevSubmitter";
|
|
80
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
|
+
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
83
|
+
this.children = [];
|
|
84
|
+
this.dataType = "string";
|
|
85
|
+
this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
|
|
86
|
+
});
|
|
87
|
+
export default PrevSubmitter;
|
|
@@ -72,7 +72,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
});
|
|
75
|
-
this.name = options.name || "
|
|
75
|
+
this.name = options.name || "提交人";
|
|
76
76
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "submitter";
|
|
77
77
|
this.type = "OPERATOR_INPUT";
|
|
78
78
|
this.sortField = "submitter";
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
|
|
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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BasicAddress | BsExchange | BsPosting | BsReissue | BsSystemOrder | BasicCascader | FlowTag | BasicInput | ReceiverAddress | ERemark | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicAddress | BsExchange | BsPosting | BsReissue | BsReturn | BsSystemOrder | BasicCascader | FlowCreator | FlowTag | BasicInput | PrevSubmitter | ReceiverAddress | ERemark | Submitter | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
|
|
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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -8,6 +8,8 @@ export var factory = function factory(type, options) {
|
|
|
8
8
|
return new ShopInput(options);
|
|
9
9
|
case "OPERATOR_INPUT":
|
|
10
10
|
return new Submitter(options);
|
|
11
|
+
case "PREV_SUBMITTER_INPUT":
|
|
12
|
+
return new PrevSubmitter(options);
|
|
11
13
|
case "FLOW_CREATOR_INPUT":
|
|
12
14
|
return new FlowCreator(options);
|
|
13
15
|
case "HANDLER_INPUT":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory
|
|
|
53
53
|
export { default as PlatForm } from "./components/PlatForm";
|
|
54
54
|
export { default as ShopInput } from "./components/ShopInput";
|
|
55
55
|
export { default as Submitter } from "./components/Submitter";
|
|
56
|
+
export { default as PrevSubmitter } from "./components/PrevSubmitter";
|
|
56
57
|
export { default as FlowCreator } from "./components/FlowCreator";
|
|
57
58
|
export { default as Handler } from "./components/Handler";
|
|
58
59
|
export { default as CompletedUser } from "./components/CompletedUser";
|
package/dist/esm/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory
|
|
|
53
53
|
export { default as PlatForm } from "./components/PlatForm";
|
|
54
54
|
export { default as ShopInput } from "./components/ShopInput";
|
|
55
55
|
export { default as Submitter } from "./components/Submitter";
|
|
56
|
+
export { default as PrevSubmitter } from "./components/PrevSubmitter";
|
|
56
57
|
export { default as FlowCreator } from "./components/FlowCreator";
|
|
57
58
|
export { default as Handler } from "./components/Handler";
|
|
58
59
|
export { default as CompletedUser } from "./components/CompletedUser";
|
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.17",
|
|
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.13.0-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.13.0-alpha.17",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.17"
|
|
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": "
|
|
43
|
+
"gitHead": "200dad00bf332f208674b7e28d8994717b736895"
|
|
44
44
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
5
|
-
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); }
|
|
6
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
-
import Submitter from "./components/Submitter";
|
|
15
|
-
var FlowCreator = /*#__PURE__*/function (_Submitter) {
|
|
16
|
-
_inherits(FlowCreator, _Submitter);
|
|
17
|
-
var _super = _createSuper(FlowCreator);
|
|
18
|
-
function FlowCreator(options) {
|
|
19
|
-
var _this;
|
|
20
|
-
_classCallCheck(this, FlowCreator);
|
|
21
|
-
_this = _super.call(this, options);
|
|
22
|
-
_this.name = "流程创建人";
|
|
23
|
-
_this.id = (options === null || options === void 0 ? void 0 : options.id) || "flowCreator";
|
|
24
|
-
_this.type = "FLOW_CREATOR_INPUT";
|
|
25
|
-
_this.sortField = "flowCreator";
|
|
26
|
-
_this.formField = "flowCreator";
|
|
27
|
-
return _this;
|
|
28
|
-
}
|
|
29
|
-
return _createClass(FlowCreator);
|
|
30
|
-
}(Submitter);
|
|
31
|
-
export default FlowCreator;
|