revdev-components 0.228.0 → 0.230.0
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.
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { ButtonType } from "antd/es/button";
|
|
2
3
|
interface Props {
|
|
3
4
|
className?: string;
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
loading?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
8
|
+
type?: ButtonType;
|
|
7
9
|
}
|
|
8
10
|
export declare const FormButton: React.FC<Props>;
|
|
9
11
|
export {};
|
package/build/index.js
CHANGED
|
@@ -1909,9 +1909,9 @@ function _extends$m() { return _extends$m = Object.assign ? Object.assign.bind()
|
|
|
1909
1909
|
var SvgCopy = function SvgCopy(props) {
|
|
1910
1910
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
1911
1911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1912
|
-
viewBox: "0 0
|
|
1912
|
+
viewBox: "0 0 24 24"
|
|
1913
1913
|
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1914
|
-
d: "
|
|
1914
|
+
d: "M18.984 21V6.984H8.015V21zm0-15.984q.797 0 1.406.586t.609 1.383v14.016q0 .797-.609 1.406t-1.406.609H8.015q-.797 0-1.406-.609T6 21.001V6.985q0-.797.609-1.383t1.406-.586zm-3-4.032V3h-12v14.016H2.015V3q0-.797.586-1.406T3.984.985z"
|
|
1915
1915
|
})));
|
|
1916
1916
|
};
|
|
1917
1917
|
|
|
@@ -5455,9 +5455,9 @@ var SwitchButtonField = function (props) {
|
|
|
5455
5455
|
var s$r = {"root":"index-module_root__9GQDU"};
|
|
5456
5456
|
|
|
5457
5457
|
var FormButton = function (_a) {
|
|
5458
|
-
var className = _a.className, _b = _a.children, children = _b === void 0 ? "Save" : _b, loading = _a.loading, disabled = _a.disabled;
|
|
5458
|
+
var className = _a.className, _b = _a.children, children = _b === void 0 ? "Save" : _b, loading = _a.loading, disabled = _a.disabled, _c = _a.type, type = _c === void 0 ? "primary" : _c;
|
|
5459
5459
|
return (React.createElement("div", { className: classNames(s$r.root, className) },
|
|
5460
|
-
React.createElement(antd.Button, { htmlType: "submit", type:
|
|
5460
|
+
React.createElement(antd.Button, { htmlType: "submit", type: type, loading: loading, disabled: disabled }, children)));
|
|
5461
5461
|
};
|
|
5462
5462
|
|
|
5463
5463
|
var s$q = {"root":"index-module_root__C05Ty"};
|