🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@ecoding/components.antd.layout

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecoding/components.antd.layout - npm Package Compare versions

Comparing version
0.0.21
to
0.0.22
+2
-0
lib/core/fixed-button-area/index.d.ts

@@ -15,4 +15,6 @@ import React from 'react';

htmlType?: "button" | "submit" | "reset";
fixedLeft?: number;
fixedRight?: number;
}
declare const FixedButtonArea: React.FC<IProps>;
export default FixedButtonArea;
+8
-5
import React, { useCallback, useState } from 'react';
import { Space, Button } from 'antd';
const FixedButtonArea = ({ className, addonAfter, addonBefore, okType, onCancel, cancelText, onOkAfter, onOk, okText, hiddenCancel, htmlType }) => {
const FixedButtonArea = ({ className, addonAfter, addonBefore, okType, onCancel, cancelText, onOkAfter, onOk, okText, hiddenCancel, htmlType, fixedRight, fixedLeft }) => {
const [loading, setLoading] = useState(false);

@@ -26,5 +26,6 @@ const cancel = useCallback(() => {

position: 'fixed',
bottom: '10px',
right: '60px',
left: '250px'
bottom: 0,
right: fixedRight,
left: fixedLeft,
backgroundColor: "#fff"
};

@@ -44,4 +45,6 @@ return (React.createElement("div", { className: className, style: { height: '48px' } },

hiddenCancel: true,
htmlType: "button"
htmlType: "button",
fixedLeft: 250,
fixedRight: 0
};
export default FixedButtonArea;
{
"name": "@ecoding/components.antd.layout",
"version": "0.0.21",
"version": "0.0.22",
"author": "cxc",

@@ -26,3 +26,3 @@ "homepage": "",

},
"gitHead": "9fa1f267c06a73beb6f72657433e4af22048b259"
"gitHead": "fc4b19803c5c0f4abe0b9b0517b90e5e89e326eb"
}