- 新增文章添加页面,支持文章基本信息、设置、高级设置和图片上传 - 新增经销商申请页面,支持申请信息填写和审核状态显示 - 新增用户地址添加页面,支持地址信息填写和地址识别功能 - 新增礼物添加页面,功能与文章添加类似 - 统一使用 .tsx 文件格式 - 添加 .editorconfig、.eslintrc 和 .gitignore 文件,规范代码风格和项目结构
39 lines
923 B
TypeScript
39 lines
923 B
TypeScript
import React from 'react';
|
|
import {View} from '@tarojs/components';
|
|
import {Button} from '@nutui/nutui-react-taro'
|
|
|
|
interface FixedButtonProps {
|
|
text?: string;
|
|
onClick?: () => void;
|
|
icon?: React.ReactNode;
|
|
disabled?: boolean;
|
|
background?: string;
|
|
}
|
|
|
|
function FixedButton({text, onClick, icon, disabled, background}: FixedButtonProps) {
|
|
return (
|
|
<>
|
|
{/* 底部安全区域占位 */}
|
|
<View className="h-20 w-full"></View>
|
|
<View
|
|
className="fixed z-50 bottom-0 left-0 right-0 bg-white border-t border-gray-200 px-4 py-3 safe-area-bottom">
|
|
<Button
|
|
type="primary"
|
|
style={{
|
|
background
|
|
}}
|
|
size="large"
|
|
block
|
|
icon={icon}
|
|
disabled={disabled}
|
|
className="px-6"
|
|
onClick={onClick}>
|
|
{text || '新增'}
|
|
</Button>
|
|
</View>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default FixedButton;
|