@zgfe/business-lib 1.2.71-hxd.24 → 1.2.71-hxd.26

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.
@@ -20,7 +20,7 @@ import BizGlobalDataContext from '../../context';
20
20
  import { Spin, message } from 'antd';
21
21
  export var classPrefix = 'biz-layout-panel';
22
22
  var BizTargetFromPanel = function BizTargetFromPanel(props) {
23
- var _props$value, _props$value10, _props$value$target$p;
23
+ var _props$value, _props$value10, _props$disabled, _props$value$target$p;
24
24
  var _useContext = useContext(BizGlobalDataContext),
25
25
  authority = _useContext.authority;
26
26
  var _useState = useState([]),
@@ -123,8 +123,9 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
123
123
  setOptions(function (option) {
124
124
  var _props$value9;
125
125
  if (!option.length) return [];
126
- option[option.length - 1].disabled = authority[100005] ? disabled ? true : false : true;
126
+ option[option.length - 1].disabled = disabled;
127
127
  if ((_props$value9 = props.value) === null || _props$value9 === void 0 ? void 0 : _props$value9.target.id) {
128
+ option[option.length - 1].disabled = authority[100005] ? disabled ? true : false : true;
128
129
  option[option.length - 2].disabled = authority[100005] ? disabled ? true : false : true;
129
130
  }
130
131
  return _toConsumableArray(option);
@@ -139,7 +140,8 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
139
140
  value: {
140
141
  handleSearch: setBtnOptions,
141
142
  afterEditTarget: props.afterEditTarget,
142
- itemValue: props.value
143
+ itemValue: props.value,
144
+ disabled: (_props$disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props$disabled !== void 0 ? _props$disabled : false
143
145
  }
144
146
  }, /*#__PURE__*/React.createElement(Spin, {
145
147
  spinning: loading,
@@ -88,4 +88,5 @@ export declare const BizTargetFromPanelContext: React.Context<{
88
88
  handleSearch?: ((isSearch?: boolean) => void) | undefined;
89
89
  afterEditTarget?: ((type: string, value?: any) => void) | undefined;
90
90
  itemValue?: BizOptionTitleProps.Value | undefined;
91
+ disabled?: boolean | undefined;
91
92
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.71-hxd.24",
3
+ "version": "1.2.71-hxd.26",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "0cefde1fc91267db4b1d210d686271f4074e012e",
58
+ "gitHead": "b5c661187961c2c154dad15a97a9ae9e2e6a359a",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }