cloud-b2b 1.1.21 → 1.1.23
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.
package/es/Area/Area.js
CHANGED
|
@@ -152,7 +152,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
|
|
|
152
152
|
onChange: _bindInstanceProperty(_context3 = _this2.onChange).call(_context3, _this2, item.key),
|
|
153
153
|
options: childOptions,
|
|
154
154
|
value: value[item.key] && value[item.key].title ? value[item.key].title : value[item.key],
|
|
155
|
-
type: readonly ? 'readonly' : item.type
|
|
155
|
+
type: readonly ? 'readonly' : item.type,
|
|
156
|
+
searchWhenClick: true
|
|
156
157
|
});
|
|
157
158
|
|
|
158
159
|
return /*#__PURE__*/React.createElement(_Col, {
|
|
@@ -98,7 +98,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
98
98
|
key: index,
|
|
99
99
|
value: String(option.value),
|
|
100
100
|
text: option.title,
|
|
101
|
-
remark: option.remark || ''
|
|
101
|
+
remark: option.remark || '',
|
|
102
|
+
disabled: option.disabled || false
|
|
102
103
|
}, /*#__PURE__*/React.createElement("span", null, option.title), /*#__PURE__*/React.createElement("span", {
|
|
103
104
|
style: OPTION_STYLE
|
|
104
105
|
}, option.remark || ''));
|
|
@@ -107,7 +108,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
107
108
|
_defineProperty(_assertThisInitialized(_this), "toOption", function (option, index) {
|
|
108
109
|
return /*#__PURE__*/React.createElement(SelectOption, {
|
|
109
110
|
key: index,
|
|
110
|
-
value: String(option.value)
|
|
111
|
+
value: String(option.value),
|
|
112
|
+
disabled: option.disabled || false
|
|
111
113
|
}, option.title);
|
|
112
114
|
});
|
|
113
115
|
|
|
@@ -152,7 +154,9 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
152
154
|
options = _this$props2$options === void 0 ? [] : _this$props2$options,
|
|
153
155
|
size = _this$props2.size,
|
|
154
156
|
_this$props2$value = _this$props2.value,
|
|
155
|
-
value = _this$props2$value === void 0 ? [] : _this$props2$value
|
|
157
|
+
value = _this$props2$value === void 0 ? [] : _this$props2$value,
|
|
158
|
+
_this$props2$allowCle = _this$props2.allowClear,
|
|
159
|
+
allowClear = _this$props2$allowCle === void 0 ? true : _this$props2$allowCle;
|
|
156
160
|
|
|
157
161
|
var values = _mapInstanceProperty(value).call(value, function (o) {
|
|
158
162
|
return o.value;
|
|
@@ -172,7 +176,7 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
172
176
|
onSearch: this.onSearch,
|
|
173
177
|
onChange: _bindInstanceProperty(_context4 = this.onChange).call(_context4, this, allOptions),
|
|
174
178
|
labelInValue: true,
|
|
175
|
-
allowClear:
|
|
179
|
+
allowClear: allowClear,
|
|
176
180
|
size: size
|
|
177
181
|
};
|
|
178
182
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -755,10 +755,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
755
755
|
key: "render",
|
|
756
756
|
value: function render() {
|
|
757
757
|
this.initValidState();
|
|
758
|
+
var _this$props$layout = this.props.layout,
|
|
759
|
+
layout = _this$props$layout === void 0 ? 'horizontal' : _this$props$layout;
|
|
758
760
|
return /*#__PURE__*/React.createElement("div", {
|
|
759
761
|
className: variables('SuperForm2')
|
|
760
762
|
}, /*#__PURE__*/React.createElement(_Form, {
|
|
761
|
-
layout:
|
|
763
|
+
layout: layout,
|
|
762
764
|
style: {
|
|
763
765
|
maxWidth: this.props.allFullFather ? '100%' : this.getMaxWidth()
|
|
764
766
|
}
|
|
@@ -788,8 +790,9 @@ _defineProperty(SuperForm2, "propTypes", {
|
|
|
788
790
|
onGetCode: PropTypes.func,
|
|
789
791
|
onFileChange: PropTypes.func,
|
|
790
792
|
onAreaSearch: PropTypes.func,
|
|
791
|
-
buildSuperUploadProps: PropTypes.func
|
|
792
|
-
|
|
793
|
+
buildSuperUploadProps: PropTypes.func,
|
|
794
|
+
//构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
|
|
795
|
+
layout: PropTypes.string
|
|
793
796
|
});
|
|
794
797
|
|
|
795
798
|
export default SuperForm2;
|
package/lib/Area/Area.js
CHANGED
|
@@ -180,7 +180,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
|
|
|
180
180
|
onChange: (0, _bind["default"])(_context3 = _this2.onChange).call(_context3, _this2, item.key),
|
|
181
181
|
options: childOptions,
|
|
182
182
|
value: value[item.key] && value[item.key].title ? value[item.key].title : value[item.key],
|
|
183
|
-
type: readonly ? 'readonly' : item.type
|
|
183
|
+
type: readonly ? 'readonly' : item.type,
|
|
184
|
+
searchWhenClick: true
|
|
184
185
|
});
|
|
185
186
|
|
|
186
187
|
return /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
@@ -128,7 +128,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
128
128
|
key: index,
|
|
129
129
|
value: String(option.value),
|
|
130
130
|
text: option.title,
|
|
131
|
-
remark: option.remark || ''
|
|
131
|
+
remark: option.remark || '',
|
|
132
|
+
disabled: option.disabled || false
|
|
132
133
|
}, /*#__PURE__*/_react["default"].createElement("span", null, option.title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
134
|
style: OPTION_STYLE
|
|
134
135
|
}, option.remark || ''));
|
|
@@ -136,7 +137,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
136
137
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toOption", function (option, index) {
|
|
137
138
|
return /*#__PURE__*/_react["default"].createElement(SelectOption, {
|
|
138
139
|
key: index,
|
|
139
|
-
value: String(option.value)
|
|
140
|
+
value: String(option.value),
|
|
141
|
+
disabled: option.disabled || false
|
|
140
142
|
}, option.title);
|
|
141
143
|
});
|
|
142
144
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (options, keyValue) {
|
|
@@ -178,7 +180,9 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
178
180
|
options = _this$props2$options === void 0 ? [] : _this$props2$options,
|
|
179
181
|
size = _this$props2.size,
|
|
180
182
|
_this$props2$value = _this$props2.value,
|
|
181
|
-
value = _this$props2$value === void 0 ? [] : _this$props2$value
|
|
183
|
+
value = _this$props2$value === void 0 ? [] : _this$props2$value,
|
|
184
|
+
_this$props2$allowCle = _this$props2.allowClear,
|
|
185
|
+
allowClear = _this$props2$allowCle === void 0 ? true : _this$props2$allowCle;
|
|
182
186
|
var values = (0, _map["default"])(value).call(value, function (o) {
|
|
183
187
|
return o.value;
|
|
184
188
|
});
|
|
@@ -195,7 +199,7 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
195
199
|
onSearch: this.onSearch,
|
|
196
200
|
onChange: (0, _bind["default"])(_context4 = this.onChange).call(_context4, this, allOptions),
|
|
197
201
|
labelInValue: true,
|
|
198
|
-
allowClear:
|
|
202
|
+
allowClear: allowClear,
|
|
199
203
|
size: size
|
|
200
204
|
};
|
|
201
205
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -764,10 +764,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
764
764
|
key: "render",
|
|
765
765
|
value: function render() {
|
|
766
766
|
this.initValidState();
|
|
767
|
+
var _this$props$layout = this.props.layout,
|
|
768
|
+
layout = _this$props$layout === void 0 ? 'horizontal' : _this$props$layout;
|
|
767
769
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
768
770
|
className: (0, _variables["default"])('SuperForm2')
|
|
769
771
|
}, /*#__PURE__*/_react["default"].createElement(_form["default"], {
|
|
770
|
-
layout:
|
|
772
|
+
layout: layout,
|
|
771
773
|
style: {
|
|
772
774
|
maxWidth: this.props.allFullFather ? '100%' : this.getMaxWidth()
|
|
773
775
|
}
|
|
@@ -796,8 +798,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
796
798
|
onGetCode: _propTypes["default"].func,
|
|
797
799
|
onFileChange: _propTypes["default"].func,
|
|
798
800
|
onAreaSearch: _propTypes["default"].func,
|
|
799
|
-
buildSuperUploadProps: _propTypes["default"].func
|
|
800
|
-
|
|
801
|
+
buildSuperUploadProps: _propTypes["default"].func,
|
|
802
|
+
//构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
|
|
803
|
+
layout: _propTypes["default"].string
|
|
801
804
|
});
|
|
802
805
|
var _default = SuperForm2;
|
|
803
806
|
exports["default"] = _default;
|