更新0.1.1版本

This commit is contained in:
Ah jung
2021-07-07 10:26:14 +08:00
parent b74b6e61a4
commit d423f27e94
174 changed files with 15966 additions and 0 deletions

27
types/tableColumn.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
import { ColumnProps, TableProps } from 'ant-design-vue/lib/table/interface'
declare global {
interface ActionOptions {
type: 'select' | 'button' | 'text' | 'popconfirm' // 控制类型默认为a,可选: select | button | text
text: string
permission?: {
// 权限
action?: 'create' | 'delete' | 'update' | 'retrieve' // CRUD权限创建Create、更新Update、读取Retrieve和删除Delete操作
effect?: 'disabled'
}
props?: any // 组件属性v-bind="props"
func?: ({ text, record, index }, callback: (...rest) => any) => any // 动作事件触发回调
}
interface TableColumn extends ColumnProps {
title: string
dataIndex: string
width?: number
slots?: {
customRender: string
}
slotsType?: 'format' | 'link' | 'component'
slotsFunc?: (...rest) => any
actions?: ActionOptions[]
}
}