- 添加文章列表页面,支持搜索、分页加载、下拉刷新等功能 - 实现文章详情查看、编辑和删除功能- 新增文章发布页面,支持富文本编辑和图片上传 - 优化地址管理页面,统一底部按钮样式 - 新增 FixedButton 组件用于底部固定按钮
27 lines
634 B
TypeScript
27 lines
634 B
TypeScript
import {View} from '@tarojs/components';
|
|
import {Button} from '@nutui/nutui-react-taro'
|
|
|
|
function FixedButton({text, onClick, icon}) {
|
|
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="success"
|
|
size="large"
|
|
block
|
|
icon={icon}
|
|
className="px-6"
|
|
onClick={onClick}>
|
|
{text || '新增'}
|
|
</Button>
|
|
</View>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default FixedButton;
|