@zgfe/business-lib 1.1.7-dmd2.3 → 1.1.7-dmd2.4

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.
@@ -149,17 +149,20 @@ var AttrListPanel = function AttrListPanel(props) {
149
149
  disableItemlist === null || disableItemlist === void 0 ? void 0 : disableItemlist.forEach(function (item) {
150
150
  if (item.key === option.key) disabled = true;
151
151
  });
152
- childList.push( /*#__PURE__*/React.createElement(Option, {
153
- option: option,
154
- key: option === null || option === void 0 ? void 0 : option.key,
155
- checked: (currentAttr === null || currentAttr === void 0 ? void 0 : currentAttr.key) === (option === null || option === void 0 ? void 0 : option.key),
156
- highlight: {
157
- enable: true,
158
- text: searchValue
159
- },
160
- disabled: disabled,
161
- onClick: onClick
162
- }));
152
+
153
+ if (option.hidden != 1) {
154
+ childList.push( /*#__PURE__*/React.createElement(Option, {
155
+ option: option,
156
+ key: option === null || option === void 0 ? void 0 : option.key,
157
+ checked: (currentAttr === null || currentAttr === void 0 ? void 0 : currentAttr.key) === (option === null || option === void 0 ? void 0 : option.key),
158
+ highlight: {
159
+ enable: true,
160
+ text: searchValue
161
+ },
162
+ disabled: disabled,
163
+ onClick: onClick
164
+ }));
165
+ }
163
166
  });
164
167
 
165
168
  if (childList.length) {
@@ -8,6 +8,7 @@ var Option = function Option(props) {
8
8
  group = props.group,
9
9
  checked = props.checked,
10
10
  disabled = props.disabled;
11
+ console.log('option', option);
11
12
  var classPrefix = 'biz-attr-select';
12
13
 
13
14
  function onClick() {
@@ -44,6 +44,7 @@ export interface UserProp extends BasicProp {
44
44
  propCategory: 'userProp';
45
45
  key?: string;
46
46
  subtype?: number;
47
+ hidden?: number;
47
48
  }
48
49
  export interface EnvProp extends BasicProp {
49
50
  category?: 'fixed' | 'custom';
@@ -68,6 +68,7 @@ export default function convertAttributeData(store) {
68
68
  res.userPropList = (_store$userPropList = store.userPropList) === null || _store$userPropList === void 0 ? void 0 : _store$userPropList.map(function (prop) {
69
69
  return {
70
70
  id: prop.id || 0,
71
+ hidden: prop.hidden,
71
72
  alias: prop.alias_name,
72
73
  category: prop.category,
73
74
  key: "userProp-".concat(prop.name),
@@ -45,6 +45,7 @@ export declare namespace OldSystem {
45
45
  prop_type: PropType;
46
46
  }
47
47
  interface UserProp {
48
+ hidden: any;
48
49
  id: number;
49
50
  alias_name?: string;
50
51
  category: 'fixed' | 'custom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.7-dmd2.3",
3
+ "version": "1.1.7-dmd2.4",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "87d939f09dbce11ec1752631eff839108fa631db"
63
+ "gitHead": "cdb0d003093aea6b08d3c5e2b9ea14fc89121748"
64
64
  }