| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import type { ToolBtn, Header } from "@@@/table/models"
- import type { VbFormItem, VbFormRowItem } from "@@@/form/models"
- export default {
- tableBox: Symbol("tableBox") as InjectionKey<Ref<HTMLElement>>,
- table: Symbol("table") as InjectionKey<Ref<HTMLElement>>,
- //loading: Symbol("loading") as InjectionKey<Ref<boolean>>,
- searchFrom: Symbol("searchFrom") as InjectionKey<{
- searchFormRowItems: Ref<VbFormRowItem[]>
- searchFormItems: Ref<VbFormItem[]>
- queryParams: Ref<any>
- searchFormSpan?: number
- tableSearchBtnSpan?: number
- }>,
- toolBtns: Symbol("toolBtns") as InjectionKey<Ref<ToolBtn[]>>,
- selectedRowCount: Symbol("selectedRowCount") as InjectionKey<Ref<number>>,
- rightToolbar: Symbol("rightToolbar") as InjectionKey<{
- columns: Ref<Header[]>
- showSearchBtn: boolean
- showColumnBtn: boolean
- gutter: number
- }>,
- content: Symbol("content") as InjectionKey<{
- loading: Ref<boolean>
- tableClass: string
- tableStyle: string
- }>,
- checkAll: Symbol("checkAll") as InjectionKey<Ref<boolean>>,
- header: Symbol("header") as InjectionKey<{
- columns: Ref<Header[]>
- hasCheckbox: boolean // 是否有选择框
- isMultipleCheck: boolean // 是否多选
- sortField: string // 排序字段
- sortOrder: string
- headerClass: string
- thTrClass: string
- }>,
- body: Symbol("body") as InjectionKey<{
- isTree: boolean
- childrenField: string
- bodyClass: string
- }>,
- bodyTr: Symbol("bodyTr") as InjectionKey<{
- selectedIds: Ref<any[]>
- isTree: boolean
- keyField: string
- hasCheckbox?: boolean
- isMultipleCheck?: boolean
- parentField: string
- expandDepth: number
- intervalLeft: number
- iconField: string
- childrenField: string
- leafField: string
- isLazy: boolean
- lazySearch: boolean
- tdTrClass?: string
- }>,
- bodyTds: Symbol("bodyTds") as InjectionKey<{
- columns: Ref<Header[]>
- rowSpanSuffix: string
- colSpanSuffix: string
- expandDepth: number
- intervalLeft: number
- iconField: string
- parentField: string
- childrenField: string
- leafField: string
- isLazy: boolean
- }>,
- bodyTd: Symbol("bodyTd") as InjectionKey<{
- isExpand: boolean
- hasChildren: boolean
- expandDepth: number
- intervalLeft: number
- iconField: string
- parentField: string
- childrenField: string
- leafField: string
- isLazy: boolean
- }>,
- displayData: Symbol("displayData") as InjectionKey<any>,
- fixedColumn: Symbol("fixedColumn") as InjectionKey<{
- tableClass: string
- showBody: boolean
- }>,
- pagination: Symbol("pagination") as InjectionKey<{
- total: Ref<number>
- currentPage: Ref<number>
- pageSize: Ref<number>
- maxPageBtnCount: number
- }>,
- pagePerItems: Symbol("pagePerItems") as InjectionKey<{
- total: Ref<number>
- currentPage: Ref<number>
- pageSize: Ref<number>
- pageSizeArray: number[]
- pageSizeChange: boolean
- }>,
- formSlotSuffix: Symbol("formSlotSuffix") as InjectionKey<string>
- }
|