@kmkf-fe-packages/services-components 0.13.0-alpha.22 → 0.13.0-alpha.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.
@@ -1,11 +1,11 @@
1
1
  import { ComponentInterface, PickOption, Record } from "../../../type";
2
2
  import React from "react";
3
- import Province from './components/Province';
4
- import City from './components/City';
5
- import District from './components/District';
6
- import Detail from './components/Detail';
7
- import ReceiverName from './components/ReceiverName';
8
- import ReceiverMobile from './components/ReceiverMobile';
3
+ import Province from "./components/Province";
4
+ import City from "./components/City";
5
+ import District from "./components/District";
6
+ import Detail from "./components/Detail";
7
+ import ReceiverName from "./components/ReceiverName";
8
+ import ReceiverMobile from "./components/ReceiverMobile";
9
9
  declare class BsPosting implements ComponentInterface {
10
10
  name: string;
11
11
  id: string;
@@ -42,7 +42,7 @@ var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
42
42
  return null;
43
43
  });
44
44
  _defineProperty(this, "renderLog", function (r) {
45
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.province.name, ": ", _this.province.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.city.name, ": ", _this.city.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.district.name, ": ", _this.district.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.detail.name, ": ", _this.detail.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.receiverName.name, ": ", _this.receiverName.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.receiverMobile.name, ": ", _this.receiverMobile.renderLog(r)));
45
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.province.renderLog(r), _this.city.renderLog(r), _this.district.renderLog(r), _this.detail.renderLog(r), "/", _this.receiverName.renderLog(r), _this.receiverMobile.renderLog(r));
46
46
  });
47
47
  _defineProperty(this, "getComponentValue", function (r) {
48
48
  return {
@@ -85,7 +85,7 @@ var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
85
85
  this.isCombinationComponent = true;
86
86
  this.canSort = false;
87
87
  this.children = [];
88
- this.dataType = 'object';
88
+ this.dataType = "object";
89
89
  this.province = new Province(_objectSpread({}, options));
90
90
  this.city = new City(_objectSpread({}, options));
91
91
  this.district = new District(_objectSpread({}, options));
@@ -77,7 +77,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
77
77
  detail = _this$getComponentVal.detail,
78
78
  name = _this$getComponentVal.name,
79
79
  mobile = _this$getComponentVal.mobile;
80
- if ([province, detail, name, mobile].every(function (item) {
80
+ if ([province, city, district, detail, name, mobile].every(function (item) {
81
81
  return isNull(item);
82
82
  })) return null;
83
83
  var addressText = (_ref2 = [province, city, district]) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (suffix) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.13.0-alpha.22",
3
+ "version": "0.13.0-alpha.24",
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.22",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.22"
29
+ "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.23",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.23"
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": "0c64d5fdcdb658ba642d7d80185da92b3050efa7"
43
+ "gitHead": "86dd7660fe316f87e864ee3f090a25c6341481e2"
44
44
  }