@yetuzi/vue3-query-components 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .common-query-table{--spacing: 15px;width:100%;height:100%;flex:1;display:flex;flex-direction:column;box-sizing:border-box;padding:var(--spacing) 12px;overflow:hidden}[class^=common-query-table-]{width:100%}[class^=common-query-table-]+[class^=common-query-table-]{margin-top:var(--spacing)}.common-query-table .common-query-table-table{flex:1;overflow:hidden}.common-form .el-form{margin-bottom:-18px!important}.common-form .el-form .el-form-item :deep(.el-form-item__content){width:var(--v19239107)}.common-table{width:100%;height:100%;display:flex;flex-direction:column}.common-button{margin:0 4px}.common-button--primary{background:linear-gradient(135deg,#667eea,#764ba2);border:none}.common-button--success{background:linear-gradient(135deg,#84fab0,#8fd3f4);border:none}
1
+ .common-query-table[data-v-5f2af7f3]{--spacing: 15px;width:100%;height:100%;flex:1;display:flex;flex-direction:column;box-sizing:border-box;padding:var(--spacing) 12px;overflow:hidden}[class^=common-query-table-][data-v-5f2af7f3]{width:100%}[class^=common-query-table-]+[class^=common-query-table-][data-v-5f2af7f3]{margin-top:var(--spacing)}.common-query-table .common-query-table-table[data-v-5f2af7f3]{flex:1;overflow:hidden}.el-form[data-v-54fee924]{margin-bottom:-18px!important}.el-form .el-form-item[data-v-54fee924] .el-form-item__content{width:var(--e6b4abe4);min-width:200px}.el-form .el-form-item[data-v-54fee924] .el-select,.el-form .el-form-item[data-v-54fee924] .el-input,.el-form .el-form-item[data-v-54fee924] .el-date-editor{width:100%}.common-table[data-v-d7777e76]{width:100%;height:100%;display:flex;flex-direction:column}
@@ -0,0 +1,127 @@
1
+ // Vue3 Common Components 类型声明文件
2
+ import type { Plugin, DefineComponent } from 'vue'
3
+ import type { InputProps, ButtonProps } from 'element-plus'
4
+
5
+ // 基础配置类型
6
+ export interface Config {
7
+ component: {
8
+ placeholder: string
9
+ pagination: {
10
+ defaultPageCount: number
11
+ defaultPageSize: number
12
+ }
13
+ table: {
14
+ headerCellStyle: Record<string, any>
15
+ }
16
+ form: {
17
+ submitText: string
18
+ resetText: string
19
+ formItem: {
20
+ components: {
21
+ width: string
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
27
+
28
+ // 表格列配置
29
+ export interface CommonTableColumn {
30
+ prop: string
31
+ label: string
32
+ width?: string | number
33
+ minWidth?: string | number
34
+ fixed?: boolean | string
35
+ sortable?: boolean | string
36
+ formatter?: (row: any, column: any, cellValue: any, index: number) => string
37
+ renderHeader?: (h: any, column: any) => any
38
+ [key: string]: any
39
+ }
40
+
41
+ // 表单配置
42
+ export interface CommonFormPropForm {
43
+ components: {
44
+ width: string
45
+ }
46
+ }
47
+
48
+ // 分页参数
49
+ export interface PaginationParam {
50
+ page: number
51
+ size: number
52
+ total?: number
53
+ }
54
+
55
+ // 列表参数
56
+ export interface ListParam extends PaginationParam {
57
+ [key: string]: any
58
+ }
59
+
60
+ // 表格属性
61
+ export interface CommonTableProps {
62
+ columns: CommonTableColumn[]
63
+ data: any[]
64
+ loading?: boolean
65
+ pagination?: boolean | PaginationParam
66
+ [key: string]: any
67
+ }
68
+
69
+ // 表单属性
70
+ export interface CommonFormProps {
71
+ formItems: any[]
72
+ modelValue: Record<string, any>
73
+ form?: CommonFormPropForm
74
+ [key: string]: any
75
+ }
76
+
77
+ // 查询表格属性
78
+ export interface CommonQueryTableProps extends CommonTableProps {
79
+ queryFormItems?: any[]
80
+ [key: string]: any
81
+ }
82
+
83
+ // 组件属性类型
84
+ export type CommonInputProps = InputProps
85
+ export type CommonButtonProps = ButtonProps
86
+ export interface CommonSelectProps {
87
+ [key: string]: any
88
+ }
89
+ export interface CommonDatePickerProps {
90
+ [key: string]: any
91
+ }
92
+ export interface CommonPaginationProps {
93
+ [key: string]: any
94
+ }
95
+ export interface CommonCheckboxProps {
96
+ [key: string]: any
97
+ }
98
+ export interface CommonRadioProps {
99
+ [key: string]: any
100
+ }
101
+ export interface CommonSwitchProps {
102
+ [key: string]: any
103
+ }
104
+
105
+ // 组件类型定义
106
+ export declare const CommonInput: DefineComponent<CommonInputProps>
107
+ export declare const CommonButton: DefineComponent<CommonButtonProps>
108
+ export declare const CommonForm: DefineComponent<CommonFormProps>
109
+ export declare const CommonTable: DefineComponent<CommonTableProps>
110
+ export declare const CommonQueryTable: DefineComponent<CommonQueryTableProps>
111
+ export declare const CommonPagination: DefineComponent<CommonPaginationProps>
112
+ export declare const CommonSelect: DefineComponent<CommonSelectProps>
113
+ export declare const CommonDatePicker: DefineComponent<CommonDatePickerProps>
114
+ export declare const CommonCheckbox: DefineComponent<CommonCheckboxProps>
115
+ export declare const CommonRadio: DefineComponent<CommonRadioProps>
116
+ export declare const CommonSwitch: DefineComponent<CommonSwitchProps>
117
+ export declare const CommonConfigProvider: DefineComponent<any>
118
+
119
+ // 配置对象
120
+ export declare const config: Config
121
+
122
+ // 插件定义
123
+ export declare const plugin: Plugin
124
+
125
+ // 默认导出
126
+ declare const defaultExport: Plugin
127
+ export default defaultExport