@kmkf-fe-packages/services-components 1.0.10-beta.16 → 1.0.10-beta.18

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,17 +1,17 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class SubForm 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['componentConfig'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
14
+ dataType: ComponentInterface["dataType"];
15
15
  templateId?: string;
16
16
  workOrderUniqueKey?: string;
17
17
  constructor(options: PickOption);
@@ -13,15 +13,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
13
13
  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; }
14
14
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
15
  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); }
16
- import React from 'react';
17
- import { Table } from 'antd';
18
- import { SubForm as SubFormComponent } from '@kmkf-fe-packages/basic-components';
16
+ import React from "react";
17
+ import { Table } from "antd";
18
+ import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
19
19
  import Input from "../Input";
20
20
  import TextArea from "../TextArea";
21
21
  import BsHeaderChild from "../BS/common/BsHeaderChild";
22
22
  import GetFormItem from "../GetFormItem";
23
23
  import ItemView from "../../commonComponents/ItemView";
24
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
24
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { SYMBOL } from "../../constant";
26
26
  var WidgetMap = {
27
27
  INPUT: Input,
@@ -49,9 +49,9 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
49
49
  _defineProperty(this, "renderTabel", function (list) {
50
50
  var _ref, _ref$filter, _this$componentConfig, _this$componentConfig2;
51
51
  var columns = [{
52
- dataIndex: '',
53
- title: '序号',
54
- align: 'center',
52
+ dataIndex: "",
53
+ title: "序号",
54
+ align: "center",
55
55
  ellipsis: true,
56
56
  width: 50,
57
57
  render: function render(val, record, index) {
@@ -63,7 +63,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
63
63
  return {
64
64
  dataIndex: item.key,
65
65
  title: item.name,
66
- align: 'center',
66
+ align: "center",
67
67
  ellipsis: true,
68
68
  width: 200,
69
69
  render: function render(val) {
@@ -74,14 +74,14 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
74
74
  return /*#__PURE__*/React.createElement(Table, {
75
75
  columns: columns,
76
76
  dataSource: list,
77
- rowKey: 'uuid',
77
+ rowKey: "uuid",
78
78
  size: "small",
79
79
  pagination: false,
80
80
  scroll: {
81
- x: '100%'
81
+ x: "100%"
82
82
  },
83
83
  locale: {
84
- emptyText: '暂无数据'
84
+ emptyText: "暂无数据"
85
85
  }
86
86
  });
87
87
  });
@@ -119,13 +119,13 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
119
119
  });
120
120
  _defineProperty(this, "filterConfig", function (item) {
121
121
  return [{
122
- searchDefaultConditions: SYMBOL.in,
122
+ searchDefaultConditions: SYMBOL.like,
123
123
  type: item.type,
124
124
  id: "".concat(item.id, "_productList"),
125
125
  // 过滤组件id
126
126
  name: item.name,
127
127
  // 过滤组件名称
128
- filterComponentType: 'Input'
128
+ filterComponentType: "Input"
129
129
  }];
130
130
  });
131
131
  this.name = options.name;
@@ -153,7 +153,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
153
153
  }
154
154
  });
155
155
  return prv;
156
- }, '');
156
+ }, "");
157
157
  if (msg) {
158
158
  return Promise.reject(new Error(msg));
159
159
  }
@@ -168,6 +168,6 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
168
168
  id: "".concat(options.id, "_productList_").concat(item.key)
169
169
  }));
170
170
  });
171
- this.dataType = 'object';
171
+ this.dataType = "object";
172
172
  });
173
173
  export default SubForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.10-beta.16",
3
+ "version": "1.0.10-beta.18",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.0.10-beta.16",
25
- "@kmkf-fe-packages/kmkf-utils": "1.0.10-beta.15"
24
+ "@kmkf-fe-packages/basic-components": "1.0.10-beta.17",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.0.10-beta.17"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -38,7 +38,7 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "8ae15fe2d1ec963b5da2602cf4ffd08d902bda6a",
41
+ "gitHead": "4d15ab2b34190ae3d78c36d52b1b738e42070410",
42
42
  "gitHooks": {
43
43
  "pre-commit": "lint-staged"
44
44
  }