zhihao-ui 1.2.41 → 1.2.43

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.
@@ -31,6 +31,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
31
31
  beforeAddRow: {
32
32
  type: import('vue').PropType<(data: DiyDataType[]) => DiyDataType>;
33
33
  };
34
+ addRowText: {
35
+ type: import('vue').PropType<string>;
36
+ default: string;
37
+ };
38
+ addColumnText: {
39
+ type: import('vue').PropType<string>;
40
+ default: string;
41
+ };
42
+ customAddRow: {
43
+ type: import('vue').PropType<boolean>;
44
+ default: boolean;
45
+ };
46
+ customAddColumn: {
47
+ type: import('vue').PropType<boolean>;
48
+ default: boolean;
49
+ };
34
50
  }>, {
35
51
  /** 初始化数据 */
36
52
  initData: (rawdata: DiyDataType[], rawColumns: DiyDataTableColumnItem[]) => void;
@@ -64,6 +80,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
64
80
  updateColumn: (index: number, column: DiyDataTableColumnItem) => void;
65
81
  /** 重置默认列配置数据 */
66
82
  resetColumns: (cols: DiyDataTableColumnItem[]) => void;
83
+ onAddRow: () => void;
84
+ onAddColumn: () => void;
67
85
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
68
86
  rawData: {
69
87
  required: true;
@@ -88,11 +106,31 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
88
106
  beforeAddRow: {
89
107
  type: import('vue').PropType<(data: DiyDataType[]) => DiyDataType>;
90
108
  };
109
+ addRowText: {
110
+ type: import('vue').PropType<string>;
111
+ default: string;
112
+ };
113
+ addColumnText: {
114
+ type: import('vue').PropType<string>;
115
+ default: string;
116
+ };
117
+ customAddRow: {
118
+ type: import('vue').PropType<boolean>;
119
+ default: boolean;
120
+ };
121
+ customAddColumn: {
122
+ type: import('vue').PropType<boolean>;
123
+ default: boolean;
124
+ };
91
125
  }>> & Readonly<{}>, {
92
126
  isEdit: boolean;
93
127
  maxRowLength: number;
94
128
  maxColLength: number;
95
129
  defaultMinWidth: number;
130
+ addRowText: string;
131
+ addColumnText: string;
132
+ customAddRow: boolean;
133
+ customAddColumn: boolean;
96
134
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
97
135
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
98
136
  export default _default;
@@ -23,6 +23,22 @@ export declare const ZhDiyDataTable: {
23
23
  beforeAddRow: {
24
24
  type: import('vue').PropType<(data: import('./type').DiyDataType[]) => import('./type').DiyDataType>;
25
25
  };
26
+ addRowText: {
27
+ type: import('vue').PropType<string>;
28
+ default: string;
29
+ };
30
+ addColumnText: {
31
+ type: import('vue').PropType<string>;
32
+ default: string;
33
+ };
34
+ customAddRow: {
35
+ type: import('vue').PropType<boolean>;
36
+ default: boolean;
37
+ };
38
+ customAddColumn: {
39
+ type: import('vue').PropType<boolean>;
40
+ default: boolean;
41
+ };
26
42
  }>> & Readonly<{}>, {
27
43
  initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
28
44
  getData: () => Promise<{
@@ -52,11 +68,17 @@ export declare const ZhDiyDataTable: {
52
68
  } | undefined>;
53
69
  updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
54
70
  resetColumns: (cols: import('./type').DiyDataTableColumnItem[]) => void;
71
+ onAddRow: () => void;
72
+ onAddColumn: () => void;
55
73
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
56
74
  isEdit: boolean;
57
75
  maxRowLength: number;
58
76
  maxColLength: number;
59
77
  defaultMinWidth: number;
78
+ addRowText: string;
79
+ addColumnText: string;
80
+ customAddRow: boolean;
81
+ customAddColumn: boolean;
60
82
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
61
83
  P: {};
62
84
  B: {};
@@ -88,6 +110,22 @@ export declare const ZhDiyDataTable: {
88
110
  beforeAddRow: {
89
111
  type: import('vue').PropType<(data: import('./type').DiyDataType[]) => import('./type').DiyDataType>;
90
112
  };
113
+ addRowText: {
114
+ type: import('vue').PropType<string>;
115
+ default: string;
116
+ };
117
+ addColumnText: {
118
+ type: import('vue').PropType<string>;
119
+ default: string;
120
+ };
121
+ customAddRow: {
122
+ type: import('vue').PropType<boolean>;
123
+ default: boolean;
124
+ };
125
+ customAddColumn: {
126
+ type: import('vue').PropType<boolean>;
127
+ default: boolean;
128
+ };
91
129
  }>> & Readonly<{}>, {
92
130
  initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
93
131
  getData: () => Promise<{
@@ -117,11 +155,17 @@ export declare const ZhDiyDataTable: {
117
155
  } | undefined>;
118
156
  updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
119
157
  resetColumns: (cols: import('./type').DiyDataTableColumnItem[]) => void;
158
+ onAddRow: () => void;
159
+ onAddColumn: () => void;
120
160
  }, {}, {}, {}, {
121
161
  isEdit: boolean;
122
162
  maxRowLength: number;
123
163
  maxColLength: number;
124
164
  defaultMinWidth: number;
165
+ addRowText: string;
166
+ addColumnText: string;
167
+ customAddRow: boolean;
168
+ customAddColumn: boolean;
125
169
  }>;
126
170
  __isFragment?: never;
127
171
  __isTeleport?: never;
@@ -150,6 +194,22 @@ export declare const ZhDiyDataTable: {
150
194
  beforeAddRow: {
151
195
  type: import('vue').PropType<(data: import('./type').DiyDataType[]) => import('./type').DiyDataType>;
152
196
  };
197
+ addRowText: {
198
+ type: import('vue').PropType<string>;
199
+ default: string;
200
+ };
201
+ addColumnText: {
202
+ type: import('vue').PropType<string>;
203
+ default: string;
204
+ };
205
+ customAddRow: {
206
+ type: import('vue').PropType<boolean>;
207
+ default: boolean;
208
+ };
209
+ customAddColumn: {
210
+ type: import('vue').PropType<boolean>;
211
+ default: boolean;
212
+ };
153
213
  }>> & Readonly<{}>, {
154
214
  initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
155
215
  getData: () => Promise<{
@@ -179,11 +239,17 @@ export declare const ZhDiyDataTable: {
179
239
  } | undefined>;
180
240
  updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
181
241
  resetColumns: (cols: import('./type').DiyDataTableColumnItem[]) => void;
242
+ onAddRow: () => void;
243
+ onAddColumn: () => void;
182
244
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
183
245
  isEdit: boolean;
184
246
  maxRowLength: number;
185
247
  maxColLength: number;
186
248
  defaultMinWidth: number;
249
+ addRowText: string;
250
+ addColumnText: string;
251
+ customAddRow: boolean;
252
+ customAddColumn: boolean;
187
253
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
188
254
  $slots: Partial<Record<string, (_: {
189
255
  row: any;
@@ -2,16 +2,19 @@ import { BaseMapType, COPY_RIGHT_TYPE } from '../types.ts';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
4
  type?: number;
5
+ mapTile: number;
5
6
  }>, {
6
7
  type: COPY_RIGHT_TYPE;
7
- mapTile: typeof BaseMapType;
8
+ mapTile: BaseMapType;
8
9
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
10
  type?: number;
11
+ mapTile: number;
10
12
  }>, {
11
13
  type: COPY_RIGHT_TYPE;
12
- mapTile: typeof BaseMapType;
14
+ mapTile: BaseMapType;
13
15
  }>>> & Readonly<{}>, {
14
16
  type: number;
17
+ mapTile: number;
15
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
19
  export default _default;
17
20
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;