Compare commits

..

No commits in common. "b10ced07f73fa3778fece21576c1204733ade14d" and "5df22efefa530a5fc01ec1919b65fa8ac48f9956" have entirely different histories.

4 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import type { CSSProperties, FC, ReactNode } from "react"; import type { FC, ReactNode } from "react";
export interface HeaderBackProps { export interface HeaderBackProps {
/** 标题 */ /** 标题 */
@ -10,8 +10,6 @@ export interface HeaderBackProps {
}; };
/** 是否显示返回按钮,默认为 true */ /** 是否显示返回按钮,默认为 true */
previous?: boolean; previous?: boolean;
/** 自定义样式 */
style?: CSSProperties;
} }
/** 头部返回组件 */ /** 头部返回组件 */

View File

@ -6,10 +6,10 @@ import "./index.less";
* 头部返回组件 * 头部返回组件
*/ */
function HeaderBack(props) { function HeaderBack(props) {
const { title, history, previous = true, style = {} } = props; const { title, history, previous = true } = props;
return ( return (
<div className="header-back" style={style}> <div className="header-back">
<div className="action"> <div className="action">
{ {
previous previous

View File

@ -1,7 +1,6 @@
.header-back { .header-back {
padding: 10px 20px; padding: 10px 20px;
border-bottom: 1px solid #dcdfe6; border-bottom: 1px solid #dcdfe6;
margin-bottom: 10px;
.action { .action {
display: flex; display: flex;

View File

@ -1,7 +1,7 @@
{ {
"name": "zy-react-library", "name": "zy-react-library",
"private": false, "private": false,
"version": "1.0.13", "version": "1.0.12",
"type": "module", "type": "module",
"description": "", "description": "",
"author": "LiuJiaNan", "author": "LiuJiaNan",