@ucloud-fe/react-components 1.3.1 → 1.3.2

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.
@@ -28,7 +28,7 @@ export interface DefinedCascaderProps {
28
28
  /** 是否可清空 */
29
29
  clearable?: boolean;
30
30
  /** 状态 */
31
- status: InputProps['status'];
31
+ status?: InputProps['status'];
32
32
  /** @ignore */
33
33
  placeholder?: string;
34
34
  /** 自定义 popover 的配置 */
@@ -110,20 +110,22 @@ var Modal = (_dec = (0, _localeConsumerDecorator.default)({
110
110
  var _this2$props = _this2.props,
111
111
  onOk = _this2$props.onOk,
112
112
  onClose = _this2$props.onClose,
113
- locale = _this2$props.locale;
114
- return [/*#__PURE__*/_react.default.createElement(_Button.default, {
113
+ locale = _this2$props.locale,
114
+ okButtonProps = _this2$props.okButtonProps,
115
+ cancelButtonProps = _this2$props.cancelButtonProps;
116
+ return [/*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({
115
117
  size: "lg",
116
118
  key: "cancel",
117
119
  onClick: onClose,
118
120
  style: {
119
121
  marginRight: 8
120
122
  }
121
- }, locale.cancel), /*#__PURE__*/_react.default.createElement(_Button.default, {
123
+ }, okButtonProps), locale.cancel), /*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({
122
124
  size: "lg",
123
125
  key: "confirm",
124
126
  onClick: onOk,
125
127
  styleType: "primary"
126
- }, locale.confirm)];
128
+ }, cancelButtonProps), locale.confirm)];
127
129
  }.bind(this);
128
130
 
129
131
  _this2.savePopupContainer = function (ref) {
@@ -231,6 +233,12 @@ var Modal = (_dec = (0, _localeConsumerDecorator.default)({
231
233
  /** 点击默认的确认按钮时的回调 */
232
234
  onOk: _propTypes.default.func,
233
235
 
236
+ /** 默认展示的确定按钮的自定义 props */
237
+ okButtonProps: _propTypes.default.object,
238
+
239
+ /** 默认展示的取消按钮的自定义 props */
240
+ cancelButtonProps: _propTypes.default.object,
241
+
234
242
  /** 关闭后的回调 */
235
243
  afterClose: _propTypes.default.func,
236
244