@kmkf-fe-packages/services-components 2.0.79-beta.23 → 2.0.79-beta.24
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/BuyerNick/index.d.ts +6 -5
- package/dist/esm/components/BuyerNick/index.js +20 -10
- package/dist/esm/components/Checkbox/index.d.ts +2 -1
- package/dist/esm/components/Checkbox/index.js +11 -0
- package/dist/esm/components/File/index.d.ts +2 -0
- package/dist/esm/components/File/index.js +5 -1
- package/dist/esm/components/Radio/index.d.ts +1 -0
- package/dist/esm/components/Radio/index.js +10 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +21 -15
- package/package.json +2 -2
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class EBuyerNick implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
|
+
compoundConfig: ComponentInterface['compoundConfig'];
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
18
19
|
renderClient: (record: any, params: any) => React.JSX.Element | null;
|
|
@@ -6,12 +6,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { BuyerNick } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { BuyerNick } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
import wangImg from "../../commonComponents/Wangwang/img/wang.gif";
|
|
17
17
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
@@ -30,12 +30,13 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
32
|
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
33
34
|
_defineProperty(this, "renderTaoBaoWangWang", function (record, params) {
|
|
34
35
|
var _record$_this$id3;
|
|
35
36
|
return /*#__PURE__*/React.createElement("span", {
|
|
36
37
|
onClick: function onClick() {
|
|
37
38
|
var _record$_this$id, _record$_this$id2;
|
|
38
|
-
typeof params.openWangWang ===
|
|
39
|
+
typeof params.openWangWang === 'function' && params.openWangWang(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, record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.buyerOpenUid);
|
|
39
40
|
}
|
|
40
41
|
}, /*#__PURE__*/React.createElement("img", {
|
|
41
42
|
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
@@ -49,7 +50,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
49
50
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
51
|
id: _this.id,
|
|
51
52
|
label: _this.name,
|
|
52
|
-
value: (params === null || params === void 0 ? void 0 : params.platform) ===
|
|
53
|
+
value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.buyerNick
|
|
53
54
|
}) : null;
|
|
54
55
|
});
|
|
55
56
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -93,7 +94,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
93
94
|
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,
|
|
94
95
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
95
96
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
96
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
97
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
97
98
|
component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
|
|
98
99
|
shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
|
|
99
100
|
shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
|
|
@@ -109,10 +110,10 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
109
110
|
// 过滤组件id
|
|
110
111
|
name: item.name,
|
|
111
112
|
// 过滤组件名称
|
|
112
|
-
filterComponentType:
|
|
113
|
+
filterComponentType: 'Input',
|
|
113
114
|
filterFn: function filterFn(value) {
|
|
114
115
|
return function (i) {
|
|
115
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
116
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'buyerNick')).includes(value);
|
|
116
117
|
};
|
|
117
118
|
}
|
|
118
119
|
};
|
|
@@ -125,17 +126,26 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
125
126
|
this.isCombinationComponent = false;
|
|
126
127
|
this.canSort = true;
|
|
127
128
|
this.children = [];
|
|
128
|
-
this.dataType =
|
|
129
|
+
this.dataType = 'string';
|
|
129
130
|
this.componentConfig = options.componentConfig;
|
|
130
131
|
this.effects = options.effects;
|
|
131
132
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
132
133
|
validator: function validator(_, value) {
|
|
133
134
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
134
|
-
return Promise.reject(new Error(
|
|
135
|
+
return Promise.reject(new Error('请输入买家昵称'));
|
|
135
136
|
}
|
|
136
137
|
return Promise.resolve();
|
|
137
138
|
}
|
|
138
139
|
}] : [];
|
|
140
|
+
this.compoundConfig = [{
|
|
141
|
+
name: options.name,
|
|
142
|
+
id: "".concat(options.id, "_buyerNick"),
|
|
143
|
+
standardDateType: 'String'
|
|
144
|
+
}, {
|
|
145
|
+
name: "".concat(options.name, "(id)"),
|
|
146
|
+
id: "".concat(options.id, "_buyerOpenUid"),
|
|
147
|
+
standardDateType: 'String'
|
|
148
|
+
}];
|
|
139
149
|
}
|
|
140
150
|
// 渲染淘宝端的时候需要亮灯
|
|
141
151
|
);
|
|
@@ -10,13 +10,14 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
10
10
|
sortField: string;
|
|
11
11
|
type: string;
|
|
12
12
|
rules: any[];
|
|
13
|
-
componentConfig: ComponentInterface[
|
|
13
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
dataType: ComponentInterface['dataType'];
|
|
19
19
|
options: ComponentInterface['options'];
|
|
20
|
+
compoundConfig: ComponentInterface['compoundConfig'];
|
|
20
21
|
constructor(options: PickOption);
|
|
21
22
|
getValues: (value: Value) => string | null | undefined;
|
|
22
23
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -29,6 +29,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
30
|
_defineProperty(this, "dataType", void 0);
|
|
31
31
|
_defineProperty(this, "options", void 0);
|
|
32
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
32
33
|
_defineProperty(this, "getValues", function (value) {
|
|
33
34
|
var _value$value, _value$value2, _value$value3;
|
|
34
35
|
if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
|
|
@@ -137,5 +138,15 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
137
138
|
}] : [];
|
|
138
139
|
this.dataType = 'array';
|
|
139
140
|
this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
|
|
141
|
+
this.compoundConfig = [{
|
|
142
|
+
name: options.name,
|
|
143
|
+
id: "".concat(options.id, "_checkbox"),
|
|
144
|
+
standardDateType: 'Array',
|
|
145
|
+
exampleValue: '["选项1","选项2"]'
|
|
146
|
+
}, {
|
|
147
|
+
name: "".concat(options.name, "(\u5176\u4ED6)"),
|
|
148
|
+
id: "".concat(options.id, "_checkboxOther"),
|
|
149
|
+
standardDateType: 'String'
|
|
150
|
+
}];
|
|
140
151
|
});
|
|
141
152
|
export default BasicCheckbox;
|
|
@@ -13,6 +13,8 @@ declare class BasicFile implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
effects: ComponentInterface["effects"];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
+
exampleValue?: string;
|
|
17
|
+
standardDateType: ComponentInterface["standardDateType"];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderPc: (value: any, record: Record) => any;
|
|
18
20
|
renderLog: (r: Record) => any;
|
|
@@ -34,6 +34,8 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
34
34
|
_defineProperty(this, "children", void 0);
|
|
35
35
|
_defineProperty(this, "effects", void 0);
|
|
36
36
|
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "exampleValue", void 0);
|
|
38
|
+
_defineProperty(this, "standardDateType", void 0);
|
|
37
39
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
40
|
var fileList = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]) || [];
|
|
39
41
|
if (!fileList.length) {
|
|
@@ -81,7 +83,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
81
83
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
82
84
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
83
85
|
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,
|
|
84
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
86
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
85
87
|
component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
|
|
86
88
|
uniqueKey: _this.id,
|
|
87
89
|
platform: p === null || p === void 0 ? void 0 : p.platform,
|
|
@@ -112,5 +114,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
112
114
|
this.children = [];
|
|
113
115
|
this.dataType = "array";
|
|
114
116
|
this.effects = options.effects;
|
|
117
|
+
this.exampleValue = '[{"name":"c.jpeg","url":"https://kefu.kuaimai.com/pic/c.jpeg"}]';
|
|
118
|
+
this.standardDateType = "Array";
|
|
115
119
|
});
|
|
116
120
|
export default BasicFile;
|
|
@@ -17,6 +17,7 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
dataType: ComponentInterface["dataType"];
|
|
19
19
|
options: ComponentInterface["options"];
|
|
20
|
+
compoundConfig: ComponentInterface["compoundConfig"];
|
|
20
21
|
constructor(options: PickOption);
|
|
21
22
|
render: (value: Value) => React.JSX.Element;
|
|
22
23
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -33,6 +33,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
33
33
|
_defineProperty(this, "children", void 0);
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
35
|
_defineProperty(this, "options", void 0);
|
|
36
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
36
37
|
_defineProperty(this, "render", function (value) {
|
|
37
38
|
var _value$value;
|
|
38
39
|
return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.value, (value === null || value === void 0 ? void 0 : value.value) && typeof value.value === "string" && (value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.indexOf("其他")) > -1 && (value === null || value === void 0 ? void 0 : value.other) && "(".concat(value === null || value === void 0 ? void 0 : value.other, ")"));
|
|
@@ -135,5 +136,14 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
135
136
|
}] : [];
|
|
136
137
|
this.dataType = "string";
|
|
137
138
|
this.options = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || [];
|
|
139
|
+
this.compoundConfig = [{
|
|
140
|
+
name: options.name,
|
|
141
|
+
id: "".concat(options.id, "_radio"),
|
|
142
|
+
standardDateType: "String"
|
|
143
|
+
}, {
|
|
144
|
+
name: "".concat(options.name, "(\u5176\u4ED6)"),
|
|
145
|
+
id: "".concat(options.id, "_radioOther"),
|
|
146
|
+
standardDateType: "String"
|
|
147
|
+
}];
|
|
138
148
|
});
|
|
139
149
|
export default BasicRadio;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsReissue | BsSystemOrder | BsE3Reissue | BuyerNick |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BsE3Goods | BsE3Reissue | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | PublicGoods | PublicReissueGoods | PublicExchange | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | GyGoods | GyReissue | GyReturn | AsyncSelect;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FormInstance } from
|
|
3
|
-
import { SYMBOL } from
|
|
2
|
+
import type { FormInstance } from 'antd';
|
|
3
|
+
import { SYMBOL } from './constant';
|
|
4
4
|
export declare type ShowHeaderObjType = {
|
|
5
5
|
title: string;
|
|
6
6
|
dataIndex: string;
|
|
7
7
|
show?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare type DataType =
|
|
10
|
-
export declare type ALignType =
|
|
9
|
+
export declare type DataType = 'string' | 'number' | 'array' | 'dateArray' | 'date' | 'tradeId';
|
|
10
|
+
export declare type ALignType = 'left' | 'right' | 'center';
|
|
11
11
|
export declare type QuerySymbol = keyof typeof SYMBOL;
|
|
12
12
|
export declare type Record = {
|
|
13
13
|
[props in string]: any;
|
|
@@ -33,7 +33,7 @@ export declare type FilterConfigType = {
|
|
|
33
33
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
34
34
|
formatFilterValue?: (p: any) => any;
|
|
35
35
|
};
|
|
36
|
-
export declare type FilterComponentType =
|
|
36
|
+
export declare type FilterComponentType = 'MultipleSelect' | 'Input' | 'Date' | 'Cascader' | 'ShopList' | 'Rate' | 'SelectInput' | 'AsyncSelect';
|
|
37
37
|
export interface ComponentInterface {
|
|
38
38
|
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
39
39
|
id: string;
|
|
@@ -54,9 +54,9 @@ export interface ComponentInterface {
|
|
|
54
54
|
rules?: any[];
|
|
55
55
|
width?: number;
|
|
56
56
|
align?: ALignType;
|
|
57
|
-
dataType:
|
|
58
|
-
standardDateType
|
|
59
|
-
format?:
|
|
57
|
+
dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object' | 'weakenArray' | 'arrayObject';
|
|
58
|
+
standardDateType?: 'String' | 'Number' | 'Boolean' | 'Array' | 'Object';
|
|
59
|
+
format?: 'dateTime' | 'date' | 'time' | 'cascader' | 'shopInput' | 'staffGroup' | 'object';
|
|
60
60
|
options?: Array<any>;
|
|
61
61
|
optionsMap?: Record;
|
|
62
62
|
templateId?: string;
|
|
@@ -65,6 +65,12 @@ export interface ComponentInterface {
|
|
|
65
65
|
platform?: PlatForm;
|
|
66
66
|
parentName?: string;
|
|
67
67
|
exampleValue?: any;
|
|
68
|
+
compoundConfig?: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
standardDateType?: 'String' | 'Number' | 'Boolean' | 'Array' | 'Object';
|
|
71
|
+
name: string;
|
|
72
|
+
exampleValue?: any;
|
|
73
|
+
}>;
|
|
68
74
|
/**
|
|
69
75
|
* @description 组件下标
|
|
70
76
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -102,7 +108,7 @@ export interface ComponentInterface {
|
|
|
102
108
|
/**
|
|
103
109
|
* @description 显示字段名称
|
|
104
110
|
*/
|
|
105
|
-
showField?:
|
|
111
|
+
showField?: 'EXPRESS_COMPANY' | 'EXPRESS_WAYBILL_CODE' | 'EXPRESS_SNAPSHOT' | 'all' | 'bs' | 'workOrder' | 'logisticsCompany' | 'logisticsCode' | string;
|
|
106
112
|
/**
|
|
107
113
|
* @description 是否选择SKU
|
|
108
114
|
*/
|
|
@@ -122,7 +128,7 @@ export interface ComponentInterface {
|
|
|
122
128
|
/**
|
|
123
129
|
* @description 备注状态
|
|
124
130
|
*/
|
|
125
|
-
associatedType?:
|
|
131
|
+
associatedType?: 'APPEND';
|
|
126
132
|
isAssociated?: boolean;
|
|
127
133
|
isShowFlag?: boolean;
|
|
128
134
|
/**
|
|
@@ -163,7 +169,7 @@ export interface ComponentInterface {
|
|
|
163
169
|
* @description 时间初始值
|
|
164
170
|
*/
|
|
165
171
|
dateTime?: string;
|
|
166
|
-
dateType?:
|
|
172
|
+
dateType?: 'DATE' | 'DATE_TIME' | 'DATE_RANGE' | 'DATE_TIME_RANGE';
|
|
167
173
|
maxSize?: number;
|
|
168
174
|
basicGrade?: number;
|
|
169
175
|
range?: number;
|
|
@@ -285,13 +291,13 @@ export interface ComponentInterface {
|
|
|
285
291
|
getComponentValue: (r: Record) => any;
|
|
286
292
|
formDataTransform?: (r: any) => any;
|
|
287
293
|
}
|
|
288
|
-
export declare type PickOption = Pick<ComponentInterface,
|
|
294
|
+
export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects' | 'columnHeader' | 'templateId' | 'workOrderUniqueKey' | 'platform' | 'parentName' | 'width' | 'flowTemplateKey' | 'transformValue' | 'renderExport'>;
|
|
289
295
|
export declare type ColumnConfig = {
|
|
290
296
|
id: string;
|
|
291
297
|
name: string;
|
|
292
298
|
type: string;
|
|
293
299
|
subKey?: string;
|
|
294
|
-
mode?:
|
|
295
|
-
config?: ComponentInterface[
|
|
296
|
-
templateConfig?: ComponentInterface[
|
|
300
|
+
mode?: 'multiple';
|
|
301
|
+
config?: ComponentInterface['componentConfig'];
|
|
302
|
+
templateConfig?: ComponentInterface['componentConfig'];
|
|
297
303
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.79-beta.
|
|
3
|
+
"version": "2.0.79-beta.24",
|
|
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": "
|
|
44
|
+
"gitHead": "b418be84060c1e2bda6c4a75e4669199dab54c9d",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|