@kmkf-fe-packages/basic-components 0.4.0 → 0.5.2-alpha.0

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.
@@ -0,0 +1,22 @@
1
+ interface LogisticsInterceptionValueType {
2
+ interceptCompany: string;
3
+ interceptCode: string;
4
+ interceptType: string;
5
+ interceptAddress: any[];
6
+ interceptDetail: string;
7
+ interceptReceiverName: string;
8
+ interceptReceiverMobile: string;
9
+ interceptStatus: string | number;
10
+ interceptOther: string;
11
+ }
12
+ interface LogisticsInterceptionProps {
13
+ value: Partial<LogisticsInterceptionValueType>;
14
+ logisticsOptions: any[];
15
+ required: boolean;
16
+ disabled: boolean;
17
+ isEditing: boolean;
18
+ id: string;
19
+ onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
20
+ }
21
+ declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => JSX.Element;
22
+ export default LogisticsInterception;
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export { default as Supplier } from './business/Supplier';
28
28
  export { default as Invoice } from './business/Invoice';
29
29
  export { default as Status } from './business/Status';
30
30
  export { default as Payment } from './business/Payment';
31
+ export { default as LogisticsInterception } from './business/LogisticsInterception';
31
32
  export { default as Goods } from './common/Goods';
32
33
  export { default as JstGoods } from './jst/Goods';
33
34
  export { default as JstItemList } from './jst/ItemList';
package/dist/index.esm.js CHANGED
@@ -3116,6 +3116,188 @@ var Payment = function Payment(props) {
3116
3116
  }));
3117
3117
  };
3118
3118
 
3119
+ var Item = Form.Item;
3120
+ var LogisticsInterception = function LogisticsInterception(props) {
3121
+ var _props$value = props.value,
3122
+ value = _props$value === void 0 ? {} : _props$value,
3123
+ _props$logisticsOptio = props.logisticsOptions,
3124
+ logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
3125
+ _props$required = props.required,
3126
+ required = _props$required === void 0 ? false : _props$required,
3127
+ onChange = props.onChange,
3128
+ _props$disabled = props.disabled,
3129
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
3130
+ _props$isEditing = props.isEditing,
3131
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
3132
+ var _useState = useState([]),
3133
+ _useState2 = _slicedToArray(_useState, 2),
3134
+ typeOptions = _useState2[0],
3135
+ setTypeOptions = _useState2[1];
3136
+ var _useState3 = useState([]),
3137
+ _useState4 = _slicedToArray(_useState3, 2),
3138
+ statusOptions = _useState4[0],
3139
+ setStatusOptions = _useState4[1];
3140
+ var _useState5 = useState(false),
3141
+ _useState6 = _slicedToArray(_useState5, 2),
3142
+ isInterface = _useState6[0],
3143
+ setIsInterface = _useState6[1];
3144
+ var canEdit = useMemo(function () {
3145
+ //非对接公司可以修改
3146
+ if (!isInterface) return true;
3147
+ //已对接公司在拦截中可以修改
3148
+ var INTERCEPTING = statusOptions.some(function (item) {
3149
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
3150
+ });
3151
+ return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
3152
+ }, [value, statusOptions, isInterface, isEditing]);
3153
+ useEffect(function () {
3154
+ if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
3155
+ setTypeOptions([]);
3156
+ setStatusOptions([]);
3157
+ setIsInterface(false);
3158
+ return;
3159
+ }
3160
+ var interceptCompany = logisticsOptions.find(function (item) {
3161
+ return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
3162
+ });
3163
+ setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
3164
+ setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
3165
+ setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
3166
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
3167
+ //是否展示新地址
3168
+ var showNewAddress = useMemo(function () {
3169
+ var _find, _find$config;
3170
+ return (_find = (typeOptions || []).find(function (item) {
3171
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
3172
+ })) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
3173
+ }, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
3174
+ var changeHandle = function changeHandle(val, type) {
3175
+ var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
3176
+ if (type === 'interceptCompany') {
3177
+ newValue = _objectSpread2(_objectSpread2({}, value), {}, {
3178
+ interceptCompany: val,
3179
+ interceptType: 'RETURN',
3180
+ interceptAddress: [],
3181
+ interceptDetail: '',
3182
+ interceptReceiverName: '',
3183
+ interceptReceiverMobile: '',
3184
+ interceptStatus: '',
3185
+ interceptOther: ''
3186
+ });
3187
+ }
3188
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
3189
+ };
3190
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Item, {
3191
+ label: '物流信息',
3192
+ required: required,
3193
+ key: 'logistics'
3194
+ }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
3195
+ disabled: disabled || !canEdit,
3196
+ placeholder: "\u7269\u6D41\u516C\u53F8",
3197
+ style: {
3198
+ width: '200px'
3199
+ },
3200
+ onChange: function onChange(val) {
3201
+ return changeHandle(val, 'interceptCompany');
3202
+ },
3203
+ value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
3204
+ options: logisticsOptions,
3205
+ showSearch: true,
3206
+ filterOption: function filterOption(input, option) {
3207
+ return option.label.includes(input);
3208
+ }
3209
+ }), /*#__PURE__*/React.createElement(Input, {
3210
+ disabled: disabled || !canEdit,
3211
+ placeholder: "\u7269\u6D41\u5355\u53F7",
3212
+ onChange: function onChange(e) {
3213
+ return changeHandle(e.target.value, 'interceptCode');
3214
+ },
3215
+ value: value === null || value === void 0 ? void 0 : value.interceptCode
3216
+ }))), /*#__PURE__*/React.createElement(Item, {
3217
+ label: '拦截类型',
3218
+ required: required,
3219
+ key: 'interceptType'
3220
+ }, /*#__PURE__*/React.createElement(Select, {
3221
+ disabled: disabled || !canEdit,
3222
+ style: {
3223
+ width: '200px'
3224
+ },
3225
+ options: typeOptions,
3226
+ onChange: function onChange(val) {
3227
+ return changeHandle(val, 'interceptType');
3228
+ },
3229
+ value: value === null || value === void 0 ? void 0 : value.interceptType,
3230
+ placeholder: "\u62E6\u622A\u7C7B\u578B",
3231
+ showSearch: true,
3232
+ filterOption: function filterOption(input, option) {
3233
+ return option.label.includes(input);
3234
+ }
3235
+ })), /*#__PURE__*/React.createElement(Item, {
3236
+ label: '新派送地',
3237
+ required: true,
3238
+ key: 'newAddress',
3239
+ hidden: !showNewAddress
3240
+ }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Province, {
3241
+ value: value === null || value === void 0 ? void 0 : value.interceptAddress,
3242
+ onChange: function onChange(val) {
3243
+ return changeHandle(val, 'interceptAddress');
3244
+ },
3245
+ options: [],
3246
+ disabled: disabled || !canEdit
3247
+ }), /*#__PURE__*/React.createElement(Input, {
3248
+ value: value === null || value === void 0 ? void 0 : value.interceptDetail,
3249
+ disabled: disabled || !canEdit,
3250
+ placeholder: "\u8BE6\u7EC6\u5730\u5740",
3251
+ onChange: function onChange(e) {
3252
+ return changeHandle(e.target.value, 'interceptDetail');
3253
+ }
3254
+ })), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
3255
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
3256
+ disabled: disabled || !canEdit,
3257
+ style: {
3258
+ width: '200px'
3259
+ },
3260
+ placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
3261
+ onChange: function onChange(e) {
3262
+ return changeHandle(e.target.value, 'interceptReceiverName');
3263
+ }
3264
+ }), /*#__PURE__*/React.createElement(Input, {
3265
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
3266
+ disabled: disabled || !canEdit,
3267
+ placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
3268
+ onChange: function onChange(e) {
3269
+ return changeHandle(e.target.value, 'interceptReceiverMobile');
3270
+ }
3271
+ }))), /*#__PURE__*/React.createElement(Item, {
3272
+ label: '拦截状态',
3273
+ key: 'interceptStatus'
3274
+ }, /*#__PURE__*/React.createElement(Select, {
3275
+ disabled: disabled || isInterface,
3276
+ style: {
3277
+ width: '200px'
3278
+ },
3279
+ options: statusOptions,
3280
+ onChange: function onChange(val) {
3281
+ return changeHandle(val, 'interceptStatus');
3282
+ },
3283
+ value: value === null || value === void 0 ? void 0 : value.interceptStatus,
3284
+ placeholder: "\u62E6\u622A\u72B6\u6001",
3285
+ showSearch: true,
3286
+ filterOption: function filterOption(input, option) {
3287
+ return option.label.includes(input);
3288
+ }
3289
+ }), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
3290
+ disabled: disabled || canEdit,
3291
+ style: {
3292
+ width: '200px'
3293
+ },
3294
+ placeholder: "\u5176\u4ED6",
3295
+ onChange: function onChange(e) {
3296
+ return changeHandle(e.target.value, 'interceptOther');
3297
+ }
3298
+ })));
3299
+ };
3300
+
3119
3301
  var jstGoods = function jstGoods(props) {
3120
3302
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
3121
3303
  var _props$value = props.value,
@@ -3781,4 +3963,4 @@ var Goods$1 = function Goods(props, ref) {
3781
3963
  };
3782
3964
  var index = /*#__PURE__*/forwardRef(Goods$1);
3783
3965
 
3784
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, Invoice, jstGoods as JstGoods, ItemList as JstItemList, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
3966
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
package/dist/index.js CHANGED
@@ -3126,6 +3126,188 @@ var Payment = function Payment(props) {
3126
3126
  }));
3127
3127
  };
3128
3128
 
3129
+ var Item = antd.Form.Item;
3130
+ var LogisticsInterception = function LogisticsInterception(props) {
3131
+ var _props$value = props.value,
3132
+ value = _props$value === void 0 ? {} : _props$value,
3133
+ _props$logisticsOptio = props.logisticsOptions,
3134
+ logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
3135
+ _props$required = props.required,
3136
+ required = _props$required === void 0 ? false : _props$required,
3137
+ onChange = props.onChange,
3138
+ _props$disabled = props.disabled,
3139
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
3140
+ _props$isEditing = props.isEditing,
3141
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
3142
+ var _useState = React.useState([]),
3143
+ _useState2 = _slicedToArray(_useState, 2),
3144
+ typeOptions = _useState2[0],
3145
+ setTypeOptions = _useState2[1];
3146
+ var _useState3 = React.useState([]),
3147
+ _useState4 = _slicedToArray(_useState3, 2),
3148
+ statusOptions = _useState4[0],
3149
+ setStatusOptions = _useState4[1];
3150
+ var _useState5 = React.useState(false),
3151
+ _useState6 = _slicedToArray(_useState5, 2),
3152
+ isInterface = _useState6[0],
3153
+ setIsInterface = _useState6[1];
3154
+ var canEdit = React.useMemo(function () {
3155
+ //非对接公司可以修改
3156
+ if (!isInterface) return true;
3157
+ //已对接公司在拦截中可以修改
3158
+ var INTERCEPTING = statusOptions.some(function (item) {
3159
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
3160
+ });
3161
+ return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
3162
+ }, [value, statusOptions, isInterface, isEditing]);
3163
+ React.useEffect(function () {
3164
+ if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
3165
+ setTypeOptions([]);
3166
+ setStatusOptions([]);
3167
+ setIsInterface(false);
3168
+ return;
3169
+ }
3170
+ var interceptCompany = logisticsOptions.find(function (item) {
3171
+ return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
3172
+ });
3173
+ setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
3174
+ setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
3175
+ setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
3176
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
3177
+ //是否展示新地址
3178
+ var showNewAddress = React.useMemo(function () {
3179
+ var _find, _find$config;
3180
+ return (_find = (typeOptions || []).find(function (item) {
3181
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
3182
+ })) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
3183
+ }, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
3184
+ var changeHandle = function changeHandle(val, type) {
3185
+ var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
3186
+ if (type === 'interceptCompany') {
3187
+ newValue = _objectSpread2(_objectSpread2({}, value), {}, {
3188
+ interceptCompany: val,
3189
+ interceptType: 'RETURN',
3190
+ interceptAddress: [],
3191
+ interceptDetail: '',
3192
+ interceptReceiverName: '',
3193
+ interceptReceiverMobile: '',
3194
+ interceptStatus: '',
3195
+ interceptOther: ''
3196
+ });
3197
+ }
3198
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
3199
+ };
3200
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Item, {
3201
+ label: '物流信息',
3202
+ required: required,
3203
+ key: 'logistics'
3204
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
3205
+ disabled: disabled || !canEdit,
3206
+ placeholder: "\u7269\u6D41\u516C\u53F8",
3207
+ style: {
3208
+ width: '200px'
3209
+ },
3210
+ onChange: function onChange(val) {
3211
+ return changeHandle(val, 'interceptCompany');
3212
+ },
3213
+ value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
3214
+ options: logisticsOptions,
3215
+ showSearch: true,
3216
+ filterOption: function filterOption(input, option) {
3217
+ return option.label.includes(input);
3218
+ }
3219
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3220
+ disabled: disabled || !canEdit,
3221
+ placeholder: "\u7269\u6D41\u5355\u53F7",
3222
+ onChange: function onChange(e) {
3223
+ return changeHandle(e.target.value, 'interceptCode');
3224
+ },
3225
+ value: value === null || value === void 0 ? void 0 : value.interceptCode
3226
+ }))), /*#__PURE__*/React__default['default'].createElement(Item, {
3227
+ label: '拦截类型',
3228
+ required: required,
3229
+ key: 'interceptType'
3230
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
3231
+ disabled: disabled || !canEdit,
3232
+ style: {
3233
+ width: '200px'
3234
+ },
3235
+ options: typeOptions,
3236
+ onChange: function onChange(val) {
3237
+ return changeHandle(val, 'interceptType');
3238
+ },
3239
+ value: value === null || value === void 0 ? void 0 : value.interceptType,
3240
+ placeholder: "\u62E6\u622A\u7C7B\u578B",
3241
+ showSearch: true,
3242
+ filterOption: function filterOption(input, option) {
3243
+ return option.label.includes(input);
3244
+ }
3245
+ })), /*#__PURE__*/React__default['default'].createElement(Item, {
3246
+ label: '新派送地',
3247
+ required: true,
3248
+ key: 'newAddress',
3249
+ hidden: !showNewAddress
3250
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Province, {
3251
+ value: value === null || value === void 0 ? void 0 : value.interceptAddress,
3252
+ onChange: function onChange(val) {
3253
+ return changeHandle(val, 'interceptAddress');
3254
+ },
3255
+ options: [],
3256
+ disabled: disabled || !canEdit
3257
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3258
+ value: value === null || value === void 0 ? void 0 : value.interceptDetail,
3259
+ disabled: disabled || !canEdit,
3260
+ placeholder: "\u8BE6\u7EC6\u5730\u5740",
3261
+ onChange: function onChange(e) {
3262
+ return changeHandle(e.target.value, 'interceptDetail');
3263
+ }
3264
+ })), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3265
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
3266
+ disabled: disabled || !canEdit,
3267
+ style: {
3268
+ width: '200px'
3269
+ },
3270
+ placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
3271
+ onChange: function onChange(e) {
3272
+ return changeHandle(e.target.value, 'interceptReceiverName');
3273
+ }
3274
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3275
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
3276
+ disabled: disabled || !canEdit,
3277
+ placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
3278
+ onChange: function onChange(e) {
3279
+ return changeHandle(e.target.value, 'interceptReceiverMobile');
3280
+ }
3281
+ }))), /*#__PURE__*/React__default['default'].createElement(Item, {
3282
+ label: '拦截状态',
3283
+ key: 'interceptStatus'
3284
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
3285
+ disabled: disabled || isInterface,
3286
+ style: {
3287
+ width: '200px'
3288
+ },
3289
+ options: statusOptions,
3290
+ onChange: function onChange(val) {
3291
+ return changeHandle(val, 'interceptStatus');
3292
+ },
3293
+ value: value === null || value === void 0 ? void 0 : value.interceptStatus,
3294
+ placeholder: "\u62E6\u622A\u72B6\u6001",
3295
+ showSearch: true,
3296
+ filterOption: function filterOption(input, option) {
3297
+ return option.label.includes(input);
3298
+ }
3299
+ }), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3300
+ disabled: disabled || canEdit,
3301
+ style: {
3302
+ width: '200px'
3303
+ },
3304
+ placeholder: "\u5176\u4ED6",
3305
+ onChange: function onChange(e) {
3306
+ return changeHandle(e.target.value, 'interceptOther');
3307
+ }
3308
+ })));
3309
+ };
3310
+
3129
3311
  var jstGoods = function jstGoods(props) {
3130
3312
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
3131
3313
  var _props$value = props.value,
@@ -3816,6 +3998,7 @@ exports.GoodsTable = index;
3816
3998
  exports.Invoice = Invoice;
3817
3999
  exports.JstGoods = jstGoods;
3818
4000
  exports.JstItemList = ItemList;
4001
+ exports.LogisticsInterception = LogisticsInterception;
3819
4002
  exports.Payment = Payment;
3820
4003
  exports.Remark = RemarkInput;
3821
4004
  exports.ReturnLogistics = ExpressLogistics;
package/package.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.4.0",
3
+ "version": "0.5.2-alpha.0",
4
4
  "description": "> TODO: description",
5
- "author": "wangzhenggui <jianjia.wzg@raycloud.com>",
6
5
  "homepage": "",
7
6
  "license": "ISC",
7
+ "author": "wangzhenggui <jianjia.wzg@raycloud.com>",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.esm.js",
10
+ "files": [
11
+ "dist"
12
+ ],
10
13
  "scripts": {
14
+ "async": "yarn build && yalc push",
11
15
  "build": "father-build",
12
16
  "start": "dumi dev",
13
- "async": "yarn build && yalc push",
14
17
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
15
18
  },
16
- "gitHead": "e3b9404a5ea8a0021630fcbee65b0ae13a4fef52",
17
- "publishConfig": {
18
- "access": "public"
19
+ "dependencies": {
20
+ "umi-request": "^1.4.0"
19
21
  },
20
22
  "devDependencies": {
21
23
  "@umijs/test": "^3.0.5",
@@ -27,15 +29,13 @@
27
29
  "prettier": "^2.2.1",
28
30
  "yorkie": "^2.0.0"
29
31
  },
30
- "dependencies": {
31
- "umi-request": "^1.4.0"
32
- },
33
32
  "peerDependencies": {
34
33
  "@ant-design/icons": "^4.7.0",
35
34
  "antd": "^4.21.4",
36
35
  "react": "^16.8.0"
37
36
  },
38
- "files": [
39
- "dist"
40
- ]
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "gitHead": "58fef2f350ae18368acc1a892dd1b4595efaee2d"
41
41
  }