1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| import { renderCustomIcon, renderIcon } from "@/utils" import { CashOutline } from "@vicons/ionicons5"
export const UserTableField = makeColumn([ { key: "id", title: "ID", width: 50 }, { key: "name", title: "昵称", width: 100 }, { key: "avatar", title: "头像", type: "image", width: 100 }, { key: "email", title: "邮箱" }, { key: "tags", title: "标签", type: "tags" }, { key: "created_at", title: "创建时间", type: "date", width: 140 }, { key: "updated_at", title: "更新时间", type: "date", width: 140 }, ] as RenderColumnType[])
export const UserTableButton: TableButton[] = [ { title: "编辑", command: "edit", props: { type: "primary", quaternary: true, renderIcon: renderCustomIcon("carbon:edit"), }, }, { title: "", command: "disabled", props: { type: "warning", circle: true, quaternary: false, renderIcon: renderIcon(CashOutline), }, }, { title: "删除", command: "delete", props: { type: "error", quaternary: true, }, }, ]
|