0.0.21 • Published 9 months ago
sm-component v0.0.21
Getting Started
yarn install sm-component
组件依赖ProFrom ProTable Antd
Demo
import { TablePiece } from "sm-component";
// 封装了一个上传按钮,外部自定义url 和上传成功逻辑
import { UploadBtn } from "sm-component";
import 'sm-component/dist/lib/index.css';
<TablePiece
columns={[
{
title: "tttt",
dataIndex: "ttt",
width: "200",
useSearch: true, // 放在搜索按钮 旁边的输入搜索项
},
]}
headerTitle={<UploadBtn />}
tableActions={{
column: { title: "TEst2222" }, // 操作栏的columns
actions: [
{ key: "EDIT" }, // 内置两个按钮 配置一下就行
{ key: "DELETE" },
],
// 事件
onHandleActionClick: (key, record) => {
console.log("props", key, record);
},
}}
/>;
0.0.20
9 months ago
0.0.21
9 months ago
0.0.11
12 months ago
0.0.12
12 months ago
0.0.13
11 months ago
0.0.14
11 months ago
0.0.15
11 months ago
0.0.16
9 months ago
0.0.17
9 months ago
0.0.18
9 months ago
0.0.19
9 months ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.7
1 year ago
0.0.6
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago