@kmkf-fe-packages/services-components 0.7.3-alpha.3 → 0.7.3-alpha.5

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.
@@ -33,6 +33,11 @@ declare class Address implements ComponentInterface {
33
33
  filterComponentType: "Cascader";
34
34
  props: {
35
35
  options: any;
36
+ fieldNames: {
37
+ label: string;
38
+ value: string;
39
+ children: string;
40
+ };
36
41
  };
37
42
  filterFn: (value: string) => (i: Record) => boolean;
38
43
  };
@@ -94,7 +94,12 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
94
94
  // 过滤组件名称
95
95
  filterComponentType: 'Cascader',
96
96
  props: {
97
- options: _this.addressDateInstance.addressOptions || []
97
+ options: _this.addressDateInstance.addressOptions || [],
98
+ fieldNames: {
99
+ label: 'label',
100
+ value: 'value',
101
+ children: 'children'
102
+ }
98
103
  },
99
104
  filterFn: function filterFn(value) {
100
105
  return function (i) {
@@ -29,6 +29,11 @@ declare class BasicCascader implements ComponentInterface {
29
29
  filterComponentType: "Cascader";
30
30
  props: {
31
31
  options: any;
32
+ fieldNames: {
33
+ label: string;
34
+ value: string;
35
+ children: string;
36
+ };
32
37
  };
33
38
  filterFn: (value: string) => (i: Record) => boolean;
34
39
  };
@@ -96,7 +96,12 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
96
96
  // 过滤组件名称
97
97
  filterComponentType: 'Cascader',
98
98
  props: {
99
- options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [])
99
+ options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []),
100
+ fieldNames: {
101
+ label: 'label',
102
+ value: 'actived',
103
+ children: 'children'
104
+ }
100
105
  },
101
106
  filterFn: function filterFn(value) {
102
107
  return function (i) {
@@ -42,8 +42,14 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
42
42
  },
43
43
  alt: "",
44
44
  onClick: function onClick() {
45
- var _this$effects, _this$effects2;
45
+ var _this$effects, _this$effects2, _this$effects3, _this$effects4;
46
+ // TODO: 前端筛选时的重复提醒版本,等分享页面整改之后,这个将会废弃
46
47
  typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
48
+ typeof (_this === null || _this === void 0 ? void 0 : (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.handleOpenRepeatDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.handleOpenRepeatDetail({
49
+ templateId: record === null || record === void 0 ? void 0 : record.templateId,
50
+ workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.id,
51
+ fieldList: record === null || record === void 0 ? void 0 : record.repeatValueList
52
+ }));
47
53
  }
48
54
  }), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
49
55
  onClick: function onClick() {
@@ -125,6 +125,7 @@ export interface ComponentInterface {
125
125
  effects?: {
126
126
  queryWorkOrderDetail?: (r: Record) => void;
127
127
  handleOpenRepeatList?: (r: Record) => void;
128
+ handleOpenRepeatDetail?: (r: Record) => void;
128
129
  handleChangeSingleWorkOrderStatus?: (t: string, r: Record) => void;
129
130
  templateList?: any[];
130
131
  isEditing?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.3-alpha.3",
3
+ "version": "0.7.3-alpha.5",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "16fa3cfef3ddf6c5545e3b6d48f42ce92af29816"
43
+ "gitHead": "1cc57749c83f7a5e81046d42ef9d709b7988f18c"
44
44
  }