view-ui-plus-derive 0.1.3 → 0.2.0

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.d.ts CHANGED
@@ -7,6 +7,8 @@ import { ComponentOptionsBase } from 'vue';
7
7
  import { ComponentOptionsMixin } from 'vue';
8
8
  import { ComponentProvideOptions } from 'vue';
9
9
  import { ComponentPublicInstance } from 'vue';
10
+ import { ComputedOptions } from 'vue';
11
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
10
12
  import { DebuggerEvent } from 'vue';
11
13
  import { DefineComponent } from 'vue';
12
14
  import { Directive } from 'vue';
@@ -14,6 +16,7 @@ import { ExtractPropTypes } from 'vue';
14
16
  import { GlobalComponents } from 'vue';
15
17
  import { GlobalDirectives } from 'vue';
16
18
  import { JSX } from 'vue/jsx-runtime';
19
+ import { MethodOptions } from 'vue';
17
20
  import { nextTick } from 'vue';
18
21
  import { OnCleanup } from '@vue/reactivity';
19
22
  import { PropType } from 'vue';
@@ -286,6 +289,10 @@ falseValue: string | number | boolean;
286
289
  close(): any;
287
290
  }>;
288
291
 
292
+ declare type BtnSize = '' | 'default' | 'small' | 'large' | undefined;
293
+
294
+ declare type BtnType = '' | 'default' | 'primary' | 'dashed' | 'text' | 'info' | 'success' | 'warning' | 'error' | undefined;
295
+
289
296
  export declare const CacheSelect: __VLS_WithTemplateSlots_4<DefineComponent<ExtractPropTypes< {
290
297
  modelValue: PropType<SelectValue>;
291
298
  /**
@@ -914,10 +921,10 @@ beforeAdd: FunctionConstructor;
914
921
  */
915
922
  beforeRemove: FunctionConstructor;
916
923
  addBtnType: {
917
- type: StringConstructor;
924
+ type: PropType<BtnType>;
918
925
  default: string;
919
926
  };
920
- addBtnSize: StringConstructor;
927
+ addBtnSize: PropType<BtnSize>;
921
928
  addBtnGhost: {
922
929
  type: BooleanConstructor;
923
930
  default: boolean;
@@ -931,11 +938,11 @@ type: ObjectConstructor;
931
938
  default: () => {};
932
939
  };
933
940
  delBtnType: {
934
- type: StringConstructor;
941
+ type: PropType<BtnType>;
935
942
  default: string;
936
943
  };
937
944
  delBtnSize: {
938
- type: StringConstructor;
945
+ type: PropType<BtnSize>;
939
946
  default: string;
940
947
  };
941
948
  delBtnGhost: {
@@ -1038,10 +1045,10 @@ beforeAdd: FunctionConstructor;
1038
1045
  */
1039
1046
  beforeRemove: FunctionConstructor;
1040
1047
  addBtnType: {
1041
- type: StringConstructor;
1048
+ type: PropType<BtnType>;
1042
1049
  default: string;
1043
1050
  };
1044
- addBtnSize: StringConstructor;
1051
+ addBtnSize: PropType<BtnSize>;
1045
1052
  addBtnGhost: {
1046
1053
  type: BooleanConstructor;
1047
1054
  default: boolean;
@@ -1055,11 +1062,11 @@ type: ObjectConstructor;
1055
1062
  default: () => {};
1056
1063
  };
1057
1064
  delBtnType: {
1058
- type: StringConstructor;
1065
+ type: PropType<BtnType>;
1059
1066
  default: string;
1060
1067
  };
1061
1068
  delBtnSize: {
1062
- type: StringConstructor;
1069
+ type: PropType<BtnSize>;
1063
1070
  default: string;
1064
1071
  };
1065
1072
  delBtnGhost: {
@@ -1097,12 +1104,12 @@ actionWidth: number;
1097
1104
  actionAlign: string;
1098
1105
  actionCol: Record<string, any>;
1099
1106
  addRow: Function;
1100
- addBtnType: string;
1107
+ addBtnType: BtnType;
1101
1108
  addBtnGhost: boolean;
1102
1109
  addBtnDisabled: boolean;
1103
1110
  addBtn: Record<string, any>;
1104
- delBtnType: string;
1105
- delBtnSize: string;
1111
+ delBtnType: BtnType;
1112
+ delBtnSize: BtnSize;
1106
1113
  delBtnGhost: boolean;
1107
1114
  delBtn: Record<string, any>;
1108
1115
  delBtnDisabled: Function;
@@ -1345,7 +1352,7 @@ disableToday: BooleanConstructor;
1345
1352
  transfer: BooleanConstructor;
1346
1353
  placeholder: StringConstructor;
1347
1354
  disabled: BooleanConstructor;
1348
- placement: StringConstructor;
1355
+ placement: PropType<"top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | undefined>;
1349
1356
  /**
1350
1357
  * 用于格式化绑定时间,默认 YYYY-MM-DD
1351
1358
  */
@@ -1400,7 +1407,7 @@ disableToday: BooleanConstructor;
1400
1407
  transfer: BooleanConstructor;
1401
1408
  placeholder: StringConstructor;
1402
1409
  disabled: BooleanConstructor;
1403
- placement: StringConstructor;
1410
+ placement: PropType<"top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | undefined>;
1404
1411
  /**
1405
1412
  * 用于格式化绑定时间,默认 YYYY-MM-DD
1406
1413
  */
@@ -1720,7 +1727,7 @@ cancelDisabled: BooleanConstructor;
1720
1727
  * 取消按钮type,默认 text
1721
1728
  */
1722
1729
  cancelType: {
1723
- type: StringConstructor;
1730
+ type: PropType<BtnType>;
1724
1731
  default: string;
1725
1732
  };
1726
1733
  /**
@@ -1776,7 +1783,7 @@ cancelDisabled: BooleanConstructor;
1776
1783
  * 取消按钮type,默认 text
1777
1784
  */
1778
1785
  cancelType: {
1779
- type: StringConstructor;
1786
+ type: PropType<BtnType>;
1780
1787
  default: string;
1781
1788
  };
1782
1789
  /**
@@ -1801,7 +1808,7 @@ okDisabled: boolean;
1801
1808
  cancelLoading: boolean;
1802
1809
  cancelDisabled: boolean;
1803
1810
  rightCancel: boolean;
1804
- cancelType: string;
1811
+ cancelType: BtnType;
1805
1812
  hasOk: boolean;
1806
1813
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
1807
1814
  other?(_: {}): any;
@@ -2210,8 +2217,178 @@ autoMaxHeight: boolean;
2210
2217
  maximizeHeightType: "height" | "maxHeight";
2211
2218
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
2212
2219
  elRef: HTMLDivElement;
2213
- tableRef: unknown;
2214
- pageRef: unknown;
2220
+ tableRef: CreateComponentPublicInstanceWithMixins<Readonly<{
2221
+ data?: any[];
2222
+ columns?: any[];
2223
+ stripe?: boolean;
2224
+ border?: boolean;
2225
+ 'show-header'?: boolean;
2226
+ width?: number | string;
2227
+ height?: number | string;
2228
+ 'max-height'?: number | string;
2229
+ loading?: boolean;
2230
+ 'disabled-hover'?: boolean;
2231
+ 'highlight-row'?: boolean;
2232
+ 'row-class-name'?: Function;
2233
+ size?: string;
2234
+ 'no-data-text'?: string;
2235
+ 'no-filtered-data-text'?: string;
2236
+ draggable?: boolean;
2237
+ 'tooltip-theme'?: string;
2238
+ 'tooltip-max-width'?: number;
2239
+ 'row-key'?: boolean | string;
2240
+ 'span-method'?: Function;
2241
+ 'show-summary'?: boolean;
2242
+ 'sum-text'?: string;
2243
+ 'summary-method'?: Function;
2244
+ 'indent-size'?: number;
2245
+ 'load-data'?: Function;
2246
+ 'update-show-children'?: boolean;
2247
+ 'context-menu'?: boolean;
2248
+ 'show-context-menu'?: boolean;
2249
+ 'fixed-shadow'?: string;
2250
+ 'auto-close-contextmenu'?: boolean;
2251
+ onOnCurrentChange?: (event?: any) => any;
2252
+ onOnSelect?: (event?: any) => any;
2253
+ onOnSelectCancel?: (event?: any) => any;
2254
+ onOnSelectAll?: (event?: any) => any;
2255
+ onOnSelectAllCancel?: (event?: any) => any;
2256
+ onOnSelectionChange?: (event?: any) => any;
2257
+ onOnSortChange?: (event?: any) => any;
2258
+ onOnFilterChange?: (event?: any) => any;
2259
+ onOnRowClick?: (event?: any) => any;
2260
+ onOnRowDblclick?: (event?: any) => any;
2261
+ onOnCellClick?: (event?: any) => any;
2262
+ onOnExpand?: (event?: any) => any;
2263
+ onOnDragDrop?: (event?: any) => any;
2264
+ onOnColumnWidthResize?: (event?: any) => any;
2265
+ onOnContextmenu?: (event?: any) => any;
2266
+ onOnExpandTree?: (event?: any) => any;
2267
+ 'v-slots'?: {
2268
+ header?: () => any;
2269
+ footer?: () => any;
2270
+ loading?: () => any;
2271
+ contextMenu?: () => any;
2272
+ };
2273
+ }>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2274
+ P: {};
2275
+ B: {};
2276
+ D: {};
2277
+ C: {};
2278
+ M: {};
2279
+ Defaults: {};
2280
+ }, Readonly<{
2281
+ data?: any[];
2282
+ columns?: any[];
2283
+ stripe?: boolean;
2284
+ border?: boolean;
2285
+ 'show-header'?: boolean;
2286
+ width?: number | string;
2287
+ height?: number | string;
2288
+ 'max-height'?: number | string;
2289
+ loading?: boolean;
2290
+ 'disabled-hover'?: boolean;
2291
+ 'highlight-row'?: boolean;
2292
+ 'row-class-name'?: Function;
2293
+ size?: string;
2294
+ 'no-data-text'?: string;
2295
+ 'no-filtered-data-text'?: string;
2296
+ draggable?: boolean;
2297
+ 'tooltip-theme'?: string;
2298
+ 'tooltip-max-width'?: number;
2299
+ 'row-key'?: boolean | string;
2300
+ 'span-method'?: Function;
2301
+ 'show-summary'?: boolean;
2302
+ 'sum-text'?: string;
2303
+ 'summary-method'?: Function;
2304
+ 'indent-size'?: number;
2305
+ 'load-data'?: Function;
2306
+ 'update-show-children'?: boolean;
2307
+ 'context-menu'?: boolean;
2308
+ 'show-context-menu'?: boolean;
2309
+ 'fixed-shadow'?: string;
2310
+ 'auto-close-contextmenu'?: boolean;
2311
+ onOnCurrentChange?: (event?: any) => any;
2312
+ onOnSelect?: (event?: any) => any;
2313
+ onOnSelectCancel?: (event?: any) => any;
2314
+ onOnSelectAll?: (event?: any) => any;
2315
+ onOnSelectAllCancel?: (event?: any) => any;
2316
+ onOnSelectionChange?: (event?: any) => any;
2317
+ onOnSortChange?: (event?: any) => any;
2318
+ onOnFilterChange?: (event?: any) => any;
2319
+ onOnRowClick?: (event?: any) => any;
2320
+ onOnRowDblclick?: (event?: any) => any;
2321
+ onOnCellClick?: (event?: any) => any;
2322
+ onOnExpand?: (event?: any) => any;
2323
+ onOnDragDrop?: (event?: any) => any;
2324
+ onOnColumnWidthResize?: (event?: any) => any;
2325
+ onOnContextmenu?: (event?: any) => any;
2326
+ onOnExpandTree?: (event?: any) => any;
2327
+ 'v-slots'?: {
2328
+ header?: () => any;
2329
+ footer?: () => any;
2330
+ loading?: () => any;
2331
+ contextMenu?: () => any;
2332
+ };
2333
+ }>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
2334
+ pageRef: CreateComponentPublicInstanceWithMixins<Readonly<{
2335
+ 'model-value'?: number;
2336
+ total?: number;
2337
+ 'page-size'?: number;
2338
+ 'page-size-opts'?: any[];
2339
+ placement?: string;
2340
+ size?: string;
2341
+ simple?: boolean;
2342
+ 'show-total'?: boolean;
2343
+ 'show-elevator'?: boolean;
2344
+ 'show-sizer'?: boolean;
2345
+ 'class-name'?: string;
2346
+ styles?: object;
2347
+ transfer?: boolean;
2348
+ 'prev-text'?: string;
2349
+ 'next-text'?: string;
2350
+ disabled?: boolean;
2351
+ 'events-enabled'?: boolean;
2352
+ onOnChange?: (event?: any) => any;
2353
+ onOnPageSizeChange?: (event?: any) => any;
2354
+ onOnPrev?: (event?: any) => any;
2355
+ onOnNext?: (event?: any) => any;
2356
+ 'v-slots'?: {
2357
+ default?: () => any;
2358
+ };
2359
+ }>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2360
+ P: {};
2361
+ B: {};
2362
+ D: {};
2363
+ C: {};
2364
+ M: {};
2365
+ Defaults: {};
2366
+ }, Readonly<{
2367
+ 'model-value'?: number;
2368
+ total?: number;
2369
+ 'page-size'?: number;
2370
+ 'page-size-opts'?: any[];
2371
+ placement?: string;
2372
+ size?: string;
2373
+ simple?: boolean;
2374
+ 'show-total'?: boolean;
2375
+ 'show-elevator'?: boolean;
2376
+ 'show-sizer'?: boolean;
2377
+ 'class-name'?: string;
2378
+ styles?: object;
2379
+ transfer?: boolean;
2380
+ 'prev-text'?: string;
2381
+ 'next-text'?: string;
2382
+ disabled?: boolean;
2383
+ 'events-enabled'?: boolean;
2384
+ onOnChange?: (event?: any) => any;
2385
+ onOnPageSizeChange?: (event?: any) => any;
2386
+ onOnPrev?: (event?: any) => any;
2387
+ onOnNext?: (event?: any) => any;
2388
+ 'v-slots'?: {
2389
+ default?: () => any;
2390
+ };
2391
+ }>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
2215
2392
  }, HTMLDivElement>, Partial<Record<any, (_: any) => any>> & {
2216
2393
  title?(_: {}): any;
2217
2394
  headerAction?(_: {}): any;