@zgfe/modules-attribution 1.1.2-panel.2 → 1.1.3
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.
|
@@ -31,7 +31,8 @@ var EditTitle = function EditTitle(props) {
|
|
|
31
31
|
changeLoading = _useContext.changeLoading,
|
|
32
32
|
afterEditTarget = _useContext.afterEditTarget,
|
|
33
33
|
searching = _useContext.searching,
|
|
34
|
-
buttonDisable = _useContext.buttonDisable
|
|
34
|
+
buttonDisable = _useContext.buttonDisable,
|
|
35
|
+
panelDisabled = _useContext.panelDisabled;
|
|
35
36
|
var inputRef = useRef(null);
|
|
36
37
|
var menu = /*#__PURE__*/React.createElement(Menu, {
|
|
37
38
|
items: [{
|
|
@@ -158,12 +159,12 @@ var EditTitle = function EditTitle(props) {
|
|
|
158
159
|
}
|
|
159
160
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
160
161
|
className: "attribution-btn",
|
|
161
|
-
disabled: buttonDisable || searching || !curTitle,
|
|
162
|
+
disabled: panelDisabled || buttonDisable || searching || !curTitle,
|
|
162
163
|
type: "primary",
|
|
163
164
|
onClick: onSave
|
|
164
165
|
}, "\u4FDD\u5B58"), /*#__PURE__*/React.createElement(Button, {
|
|
165
166
|
className: "attribution-btn",
|
|
166
|
-
disabled: buttonDisable || searching,
|
|
167
|
+
disabled: panelDisabled || buttonDisable || searching,
|
|
167
168
|
type: "primary",
|
|
168
169
|
onClick: onSaveAs
|
|
169
170
|
}, "\u53E6\u5B58\u4E3A")) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -176,7 +177,7 @@ var EditTitle = function EditTitle(props) {
|
|
|
176
177
|
}
|
|
177
178
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
178
179
|
className: "attribution-btn",
|
|
179
|
-
disabled: buttonDisable || searching || !curTitle,
|
|
180
|
+
disabled: panelDisabled || buttonDisable || searching || !curTitle,
|
|
180
181
|
type: "primary",
|
|
181
182
|
onClick: onSaveAs
|
|
182
183
|
}, "\u4FDD\u5B58")));
|
package/es/modules/home/index.js
CHANGED
|
@@ -105,6 +105,7 @@ var AttributionHome = function AttributionHome(props) {
|
|
|
105
105
|
searching: searching,
|
|
106
106
|
buttonDisable: buttonDisable,
|
|
107
107
|
setButtonDisable: setButtonDisable,
|
|
108
|
+
panelDisabled: props.panelDisabled,
|
|
108
109
|
includeToday: props.includeToday,
|
|
109
110
|
enableAddScene: !props.defaultValue || props.defaultValue.source === 'attribution',
|
|
110
111
|
changeLoading: changeLoading,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-attribution",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react": "^16.12.0 || ^17.0.0",
|
|
51
51
|
"yorkie": "^2.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ec557b8688b036670f9ba04cc87c9f0d909ad16a"
|
|
54
54
|
}
|