lew-ui 2.3.6 → 2.3.8

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.
Files changed (105) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +33 -33
  3. package/README.zh-CN.md +35 -35
  4. package/dist/components/alert/src/LewAlert.vue.d.ts +9 -7
  5. package/dist/components/alert/src/props.d.ts +8 -6
  6. package/dist/components/avatar/src/LewAvatar.vue.d.ts +37 -38
  7. package/dist/components/avatar/src/props.d.ts +22 -20
  8. package/dist/components/backtop/src/LewBackTop.vue.d.ts +9 -1
  9. package/dist/components/backtop/src/props.d.ts +4 -0
  10. package/dist/components/badge/src/LewBadge.vue.d.ts +12 -8
  11. package/dist/components/badge/src/props.d.ts +7 -5
  12. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +14 -10
  13. package/dist/components/breadcrumb/src/props.d.ts +10 -8
  14. package/dist/components/button/src/LewButton.vue.d.ts +60 -36
  15. package/dist/components/button/src/props.d.ts +31 -19
  16. package/dist/components/cascader/src/LewCascader.vue.d.ts +51 -48
  17. package/dist/components/cascader/src/props.d.ts +29 -21
  18. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +41 -39
  19. package/dist/components/checkbox/src/props.d.ts +43 -38
  20. package/dist/components/collapse/src/LewCollapse.vue.d.ts +4 -0
  21. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +10 -4
  22. package/dist/components/collapse/src/props.d.ts +8 -2
  23. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +31 -27
  24. package/dist/components/date-picker/src/props.d.ts +21 -18
  25. package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +4 -0
  26. package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +41 -35
  27. package/dist/components/date-range-picker/src/props.d.ts +24 -19
  28. package/dist/components/drawer/src/LewDrawer.vue.d.ts +36 -30
  29. package/dist/components/drawer/src/props.d.ts +18 -15
  30. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +24 -16
  31. package/dist/components/dropdown/src/props.d.ts +14 -12
  32. package/dist/components/empty/src/LewEmpty.vue.d.ts +15 -5
  33. package/dist/components/empty/src/props.d.ts +7 -2
  34. package/dist/components/flex/src/LewFlex.vue.d.ts +32 -26
  35. package/dist/components/flex/src/props.d.ts +18 -12
  36. package/dist/components/form/src/LewForm.vue.d.ts +35 -23
  37. package/dist/components/form/src/LewFormItem.vue.d.ts +70 -62
  38. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
  39. package/dist/components/form/src/props.d.ts +47 -36
  40. package/dist/components/image/src/LewImage.vue.d.ts +48 -33
  41. package/dist/components/image/src/props.d.ts +25 -16
  42. package/dist/components/input/src/LewInput.vue.d.ts +67 -64
  43. package/dist/components/input/src/props.d.ts +33 -29
  44. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +52 -40
  45. package/dist/components/input-number/src/props.d.ts +28 -20
  46. package/dist/components/input-table/src/props.d.ts +62 -15
  47. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
  48. package/dist/components/input-tag/src/props.d.ts +6 -4
  49. package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +3 -3
  50. package/dist/components/magic-number/src/props.d.ts +1 -1
  51. package/dist/components/mark/src/LewMark.vue.d.ts +20 -16
  52. package/dist/components/mark/src/props.d.ts +13 -9
  53. package/dist/components/menu/src/LewMenu.vue.d.ts +11 -7
  54. package/dist/components/menu/src/props.d.ts +7 -5
  55. package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +3 -3
  56. package/dist/components/menu-tree/src/props.d.ts +3 -3
  57. package/dist/components/modal/src/LewModal.vue.d.ts +10 -4
  58. package/dist/components/modal/src/props.d.ts +4 -1
  59. package/dist/components/pagination/src/LewPagination.vue.d.ts +7 -3
  60. package/dist/components/pagination/src/props.d.ts +10 -5
  61. package/dist/components/popok/src/LewPopok.vue.d.ts +18 -10
  62. package/dist/components/popok/src/props.d.ts +7 -3
  63. package/dist/components/popover/src/LewPopover.vue.d.ts +38 -34
  64. package/dist/components/popover/src/props.d.ts +20 -16
  65. package/dist/components/radio/src/LewRadio.vue.d.ts +33 -31
  66. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +27 -23
  67. package/dist/components/radio/src/props.d.ts +32 -28
  68. package/dist/components/result/src/LewResult.vue.d.ts +9 -3
  69. package/dist/components/result/src/props.d.ts +7 -1
  70. package/dist/components/select/src/LewSelect.vue.d.ts +20 -20
  71. package/dist/components/select/src/props.d.ts +10 -8
  72. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +29 -23
  73. package/dist/components/select-multiple/src/props.d.ts +13 -10
  74. package/dist/components/steps/src/LewSteps.vue.d.ts +10 -6
  75. package/dist/components/steps/src/props.d.ts +7 -4
  76. package/dist/components/switch/src/LewSwitch.vue.d.ts +12 -8
  77. package/dist/components/switch/src/props.d.ts +9 -3
  78. package/dist/components/table/src/LewTable.vue.d.ts +30 -23
  79. package/dist/components/table/src/props.d.ts +23 -11
  80. package/dist/components/tabs/src/LewTabs.vue.d.ts +27 -17
  81. package/dist/components/tabs/src/props.d.ts +16 -11
  82. package/dist/components/tag/src/LewTag.vue.d.ts +12 -6
  83. package/dist/components/tag/src/props.d.ts +6 -3
  84. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +42 -30
  85. package/dist/components/text-trim/src/props.d.ts +21 -13
  86. package/dist/components/textarea/src/LewTextarea.vue.d.ts +37 -42
  87. package/dist/components/textarea/src/props.d.ts +17 -18
  88. package/dist/components/title/src/LewTitle.vue.d.ts +17 -11
  89. package/dist/components/title/src/props.d.ts +10 -10
  90. package/dist/components/tree/src/LewTree.vue.d.ts +11 -9
  91. package/dist/components/tree/src/props.d.ts +5 -4
  92. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +100 -90
  93. package/dist/components/tree-select/src/props.d.ts +56 -44
  94. package/dist/components/upload/src/LewUpload.vue.d.ts +49 -39
  95. package/dist/components/upload/src/props.d.ts +26 -21
  96. package/dist/directives/backtop/src/index.d.ts +2 -2
  97. package/dist/directives/dialog/src/LewDialog.vue.d.ts +16 -12
  98. package/dist/directives/dialog/src/index.d.ts +5 -5
  99. package/dist/directives/dialog/src/props.d.ts +8 -7
  100. package/dist/index.d.ts +1 -0
  101. package/dist/index.mjs +2732 -1333
  102. package/dist/index.umd.js +46 -46
  103. package/dist/style.css +1 -1
  104. package/package.json +1 -1
  105. package/dist/components/input-table/src/LewInputTable.vue.d.ts +0 -87
@@ -1,12 +1,13 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { LewSize } from '../../..';
2
3
 
4
+ export type CheckboxGroupDirectionType = 'x' | 'y';
5
+ export type CheckboxValue = string | number;
3
6
  export type CheckboxOptions = {
4
7
  label: string;
5
- value: string | number;
8
+ value: CheckboxValue;
6
9
  disabled?: boolean;
7
10
  };
8
- export type CheckboxSize = 'small' | 'medium' | 'large';
9
- export type CheckboxGroupDirectionType = 'x' | 'y';
10
11
  export declare const checkboxModel: {
11
12
  modelValue: {
12
13
  type: BooleanConstructor;
@@ -16,27 +17,38 @@ export declare const checkboxModel: {
16
17
  };
17
18
  export declare const checkboxGroupModel: {
18
19
  modelValue: {
19
- type: (PropType<String[]> | undefined)[];
20
- default: never[];
20
+ type: ArrayConstructor;
21
+ default: () => never[];
21
22
  required: boolean;
22
23
  description: string;
23
24
  };
24
25
  };
25
26
  export declare const checkboxProps: {
26
- checked: {
27
- type: (BooleanConstructor | FunctionConstructor)[];
27
+ label: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ description: string;
31
+ };
32
+ disabled: {
33
+ type: BooleanConstructor;
28
34
  default: boolean;
29
35
  description: string;
30
36
  };
31
- certain: {
32
- type: (BooleanConstructor | FunctionConstructor)[];
37
+ readonly: {
38
+ type: BooleanConstructor;
33
39
  default: boolean;
34
40
  description: string;
35
41
  };
36
- label: {
37
- type: StringConstructor;
42
+ checked: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ description: string;
46
+ };
47
+ size: {
48
+ type: PropType<LewSize>;
38
49
  default: string;
39
50
  description: string;
51
+ validator: (value: LewSize) => boolean;
40
52
  };
41
53
  block: {
42
54
  type: BooleanConstructor;
@@ -53,52 +65,50 @@ export declare const checkboxProps: {
53
65
  default: boolean;
54
66
  description: string;
55
67
  };
56
- disabled: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- description: string;
60
- };
61
- readonly: {
68
+ certain: {
62
69
  type: BooleanConstructor;
63
70
  default: boolean;
64
71
  description: string;
65
72
  };
66
- size: {
67
- type: PropType<CheckboxSize>;
68
- default: string;
69
- description: string;
70
- };
71
73
  };
72
74
  export declare const checkboxGroupProps: {
73
75
  options: {
74
76
  type: PropType<CheckboxOptions[]>;
75
- default: never[];
77
+ default: () => never[];
76
78
  required: boolean;
77
79
  description: string;
80
+ validator: (value: CheckboxOptions[]) => boolean;
78
81
  };
79
- block: {
82
+ disabled: {
80
83
  type: BooleanConstructor;
81
84
  default: boolean;
82
85
  description: string;
83
86
  };
84
- round: {
87
+ readonly: {
85
88
  type: BooleanConstructor;
86
89
  default: boolean;
87
90
  description: string;
88
91
  };
89
- disabled: {
90
- type: BooleanConstructor;
91
- default: boolean;
92
+ size: {
93
+ type: PropType<LewSize>;
94
+ default: string;
92
95
  description: string;
96
+ validator: (value: LewSize) => boolean;
93
97
  };
94
- readonly: {
98
+ direction: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ description: string;
102
+ validator: (value: string) => boolean;
103
+ };
104
+ block: {
95
105
  type: BooleanConstructor;
96
106
  default: boolean;
97
107
  description: string;
98
108
  };
99
- direction: {
100
- type: PropType<CheckboxGroupDirectionType>;
101
- default: string;
109
+ round: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
102
112
  description: string;
103
113
  };
104
114
  iconable: {
@@ -106,11 +116,6 @@ export declare const checkboxGroupProps: {
106
116
  default: boolean;
107
117
  description: string;
108
118
  };
109
- size: {
110
- type: PropType<CheckboxSize>;
111
- default: string;
112
- description: string;
113
- };
114
119
  };
115
120
  export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
116
121
  export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
@@ -7,11 +7,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  description: string;
10
+ validator(value: string): boolean;
10
11
  };
11
12
  gap: {
12
13
  type: StringConstructor;
13
14
  default: string;
14
15
  description: string;
16
+ validator(value: string): boolean;
15
17
  };
16
18
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
17
19
  modelValue: import('vue').PropType<any>;
@@ -19,11 +21,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
19
21
  type: StringConstructor;
20
22
  default: string;
21
23
  description: string;
24
+ validator(value: string): boolean;
22
25
  };
23
26
  gap: {
24
27
  type: StringConstructor;
25
28
  default: string;
26
29
  description: string;
30
+ validator(value: string): boolean;
27
31
  };
28
32
  }>>, {
29
33
  gap: string;
@@ -3,7 +3,7 @@ declare function __VLS_template(): {
3
3
  props: {
4
4
  readonly title: string;
5
5
  readonly padding: string;
6
- readonly collapseKey: string;
6
+ readonly collapseKey: string | number;
7
7
  readonly radius: string;
8
8
  };
9
9
  }): any;
@@ -12,9 +12,10 @@ declare function __VLS_template(): {
12
12
  declare const __VLS_component: import('vue').DefineComponent<{
13
13
  modelValue: import('vue').PropType<any>;
14
14
  collapseKey: {
15
- type: StringConstructor;
15
+ type: (StringConstructor | NumberConstructor)[];
16
16
  default: string;
17
17
  description: string;
18
+ validator(value: string | number): boolean;
18
19
  };
19
20
  title: {
20
21
  type: StringConstructor;
@@ -25,18 +26,21 @@ declare const __VLS_component: import('vue').DefineComponent<{
25
26
  type: StringConstructor;
26
27
  default: string;
27
28
  description: string;
29
+ validator(value: string): boolean;
28
30
  };
29
31
  padding: {
30
32
  type: StringConstructor;
31
33
  default: string;
32
34
  description: string;
35
+ validator(value: string): boolean;
33
36
  };
34
37
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
35
38
  modelValue: import('vue').PropType<any>;
36
39
  collapseKey: {
37
- type: StringConstructor;
40
+ type: (StringConstructor | NumberConstructor)[];
38
41
  default: string;
39
42
  description: string;
43
+ validator(value: string | number): boolean;
40
44
  };
41
45
  title: {
42
46
  type: StringConstructor;
@@ -47,16 +51,18 @@ declare const __VLS_component: import('vue').DefineComponent<{
47
51
  type: StringConstructor;
48
52
  default: string;
49
53
  description: string;
54
+ validator(value: string): boolean;
50
55
  };
51
56
  padding: {
52
57
  type: StringConstructor;
53
58
  default: string;
54
59
  description: string;
60
+ validator(value: string): boolean;
55
61
  };
56
62
  }>>, {
57
63
  title: string;
58
64
  padding: string;
59
- collapseKey: string;
65
+ collapseKey: string | number;
60
66
  radius: string;
61
67
  }, {}>;
62
68
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -2,9 +2,10 @@ import { ExtractPropTypes } from 'vue';
2
2
 
3
3
  export declare const collapseModel: {
4
4
  modelValue: {
5
- type: (StringConstructor | globalThis.PropType<String[] | Number[]>)[];
5
+ type: (StringConstructor | ArrayConstructor)[];
6
6
  default: boolean;
7
7
  description: string;
8
+ validator(value: string[] | number[] | string): boolean;
8
9
  };
9
10
  };
10
11
  export declare const collapseItemModel: {
@@ -19,18 +20,21 @@ export declare const collapseProps: {
19
20
  type: StringConstructor;
20
21
  default: string;
21
22
  description: string;
23
+ validator(value: string): boolean;
22
24
  };
23
25
  gap: {
24
26
  type: StringConstructor;
25
27
  default: string;
26
28
  description: string;
29
+ validator(value: string): boolean;
27
30
  };
28
31
  };
29
32
  export declare const collapseItemProps: {
30
33
  collapseKey: {
31
- type: StringConstructor;
34
+ type: (StringConstructor | NumberConstructor)[];
32
35
  default: string;
33
36
  description: string;
37
+ validator(value: string | number): boolean;
34
38
  };
35
39
  title: {
36
40
  type: StringConstructor;
@@ -41,11 +45,13 @@ export declare const collapseItemProps: {
41
45
  type: StringConstructor;
42
46
  default: string;
43
47
  description: string;
48
+ validator(value: string): boolean;
44
49
  };
45
50
  padding: {
46
51
  type: StringConstructor;
47
52
  default: string;
48
53
  description: string;
54
+ validator(value: string): boolean;
49
55
  };
50
56
  };
51
57
  export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
@@ -1,7 +1,18 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  modelValue: import('vue').PropType<any>;
3
+ valueFormat: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ description: string;
7
+ };
3
8
  size: {
4
- type: globalThis.PropType<import('../../..').DatePickerSize>;
9
+ type: PropType<import('../../..').LewSize>;
10
+ default: string;
11
+ description: string;
12
+ validator(value: import('../../..').LewSize): boolean;
13
+ };
14
+ placeholder: {
15
+ type: StringConstructor;
5
16
  default: string;
6
17
  description: string;
7
18
  };
@@ -20,20 +31,11 @@ declare const _default: import('vue').DefineComponent<{
20
31
  default: boolean;
21
32
  description: string;
22
33
  };
23
- valueFormat: {
24
- type: StringConstructor;
25
- default: string;
26
- description: string;
27
- };
28
- placeholder: {
29
- type: StringConstructor;
30
- default: () => string;
31
- description: string;
32
- };
33
34
  presets: {
34
- type: globalThis.PropType<import('../../..').DatePickerPresetsOptions[]>;
35
+ type: PropType<import('../../..').DatePickerPresetsOption[]>;
35
36
  default: () => never[];
36
37
  description: string;
38
+ validator(value: import('../../..').DatePickerPresetsOption[]): boolean;
37
39
  };
38
40
  }, {
39
41
  show: () => void;
@@ -43,8 +45,19 @@ declare const _default: import('vue').DefineComponent<{
43
45
  clear: (...args: any[]) => void;
44
46
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
45
47
  modelValue: import('vue').PropType<any>;
48
+ valueFormat: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ description: string;
52
+ };
46
53
  size: {
47
- type: globalThis.PropType<import('../../..').DatePickerSize>;
54
+ type: PropType<import('../../..').LewSize>;
55
+ default: string;
56
+ description: string;
57
+ validator(value: import('../../..').LewSize): boolean;
58
+ };
59
+ placeholder: {
60
+ type: StringConstructor;
48
61
  default: string;
49
62
  description: string;
50
63
  };
@@ -63,31 +76,22 @@ declare const _default: import('vue').DefineComponent<{
63
76
  default: boolean;
64
77
  description: string;
65
78
  };
66
- valueFormat: {
67
- type: StringConstructor;
68
- default: string;
69
- description: string;
70
- };
71
- placeholder: {
72
- type: StringConstructor;
73
- default: () => string;
74
- description: string;
75
- };
76
79
  presets: {
77
- type: globalThis.PropType<import('../../..').DatePickerPresetsOptions[]>;
80
+ type: PropType<import('../../..').DatePickerPresetsOption[]>;
78
81
  default: () => never[];
79
82
  description: string;
83
+ validator(value: import('../../..').DatePickerPresetsOption[]): boolean;
80
84
  };
81
85
  }>> & {
82
86
  onChange?: ((...args: any[]) => any) | undefined;
83
87
  onClear?: ((...args: any[]) => any) | undefined;
84
88
  }, {
85
- size: import('../../..').DatePickerSize;
89
+ size: import('../../..').LewSize;
86
90
  placeholder: string;
91
+ disabled: boolean;
87
92
  clearable: boolean;
88
93
  readonly: boolean;
89
- disabled: boolean;
90
94
  valueFormat: string;
91
- presets: import('../../..').DatePickerPresetsOptions[];
95
+ presets: import('../../..').DatePickerPresetsOption[];
92
96
  }, {}>;
93
97
  export default _default;
@@ -1,6 +1,11 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { LewSize } from '../../..';
2
3
 
3
- export type DatePickerSize = 'small' | 'medium' | 'large';
4
+ export type DatePickerValueFormat = string;
5
+ export type DatePickerPresetsOption = {
6
+ label: string;
7
+ value: string;
8
+ };
4
9
  export declare const datePickerModel: {
5
10
  modelValue: {
6
11
  type: StringConstructor;
@@ -9,8 +14,19 @@ export declare const datePickerModel: {
9
14
  };
10
15
  };
11
16
  export declare const datePickerProps: {
17
+ valueFormat: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ description: string;
21
+ };
12
22
  size: {
13
- type: PropType<DatePickerSize>;
23
+ type: PropType<LewSize>;
24
+ default: string;
25
+ description: string;
26
+ validator(value: LewSize): boolean;
27
+ };
28
+ placeholder: {
29
+ type: StringConstructor;
14
30
  default: string;
15
31
  description: string;
16
32
  };
@@ -29,26 +45,13 @@ export declare const datePickerProps: {
29
45
  default: boolean;
30
46
  description: string;
31
47
  };
32
- valueFormat: {
33
- type: StringConstructor;
34
- default: string;
35
- description: string;
36
- };
37
- placeholder: {
38
- type: StringConstructor;
39
- default: () => string;
40
- description: string;
41
- };
42
48
  presets: {
43
- type: PropType<DatePickerPresetsOptions[]>;
49
+ type: PropType<DatePickerPresetsOption[]>;
44
50
  default: () => never[];
45
51
  description: string;
52
+ validator(value: DatePickerPresetsOption[]): boolean;
46
53
  };
47
54
  };
48
- export type DatePickerPresetsOptions = {
49
- label: string;
50
- value: string;
51
- };
52
55
  export declare const dateProps: {
53
56
  valueFormat: {
54
57
  type: StringConstructor;
@@ -4,11 +4,13 @@ declare const _default: import('vue').DefineComponent<{
4
4
  type: StringConstructor;
5
5
  default: string;
6
6
  description: string;
7
+ validator(value: string): boolean;
7
8
  };
8
9
  endKey: {
9
10
  type: StringConstructor;
10
11
  default: string;
11
12
  description: string;
13
+ validator(value: string): boolean;
12
14
  };
13
15
  valueFormat: {
14
16
  type: StringConstructor;
@@ -25,11 +27,13 @@ declare const _default: import('vue').DefineComponent<{
25
27
  type: StringConstructor;
26
28
  default: string;
27
29
  description: string;
30
+ validator(value: string): boolean;
28
31
  };
29
32
  endKey: {
30
33
  type: StringConstructor;
31
34
  default: string;
32
35
  description: string;
36
+ validator(value: string): boolean;
33
37
  };
34
38
  valueFormat: {
35
39
  type: StringConstructor;
@@ -1,4 +1,4 @@
1
- import { DatePickerSize } from '../../..';
1
+ import { LewSize } from '../../..';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  modelValue: import('vue').PropType<any>;
@@ -6,14 +6,32 @@ declare const _default: import('vue').DefineComponent<{
6
6
  type: StringConstructor;
7
7
  default: string;
8
8
  description: string;
9
+ validator(value: string): boolean;
9
10
  };
10
11
  endKey: {
11
12
  type: StringConstructor;
12
13
  default: string;
13
14
  description: string;
15
+ validator(value: string): boolean;
16
+ };
17
+ valueFormat: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ description: string;
14
21
  };
15
22
  size: {
16
- type: globalThis.PropType<DatePickerSize>;
23
+ type: globalThis.PropType<LewSize>;
24
+ default: string;
25
+ description: string;
26
+ validator(value: LewSize): boolean;
27
+ };
28
+ placeholderStart: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ description: string;
32
+ };
33
+ placeholderEnd: {
34
+ type: StringConstructor;
17
35
  default: string;
18
36
  description: string;
19
37
  };
@@ -32,21 +50,6 @@ declare const _default: import('vue').DefineComponent<{
32
50
  default: boolean;
33
51
  description: string;
34
52
  };
35
- valueFormat: {
36
- type: StringConstructor;
37
- default: string;
38
- description: string;
39
- };
40
- placeholderStart: {
41
- type: StringConstructor;
42
- default: () => string;
43
- description: string;
44
- };
45
- placeholderEnd: {
46
- type: StringConstructor;
47
- default: () => string;
48
- description: string;
49
- };
50
53
  }, {
51
54
  show: () => void;
52
55
  hide: () => void;
@@ -59,14 +62,32 @@ declare const _default: import('vue').DefineComponent<{
59
62
  type: StringConstructor;
60
63
  default: string;
61
64
  description: string;
65
+ validator(value: string): boolean;
62
66
  };
63
67
  endKey: {
64
68
  type: StringConstructor;
65
69
  default: string;
66
70
  description: string;
71
+ validator(value: string): boolean;
72
+ };
73
+ valueFormat: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ description: string;
67
77
  };
68
78
  size: {
69
- type: globalThis.PropType<DatePickerSize>;
79
+ type: globalThis.PropType<LewSize>;
80
+ default: string;
81
+ description: string;
82
+ validator(value: LewSize): boolean;
83
+ };
84
+ placeholderStart: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ description: string;
88
+ };
89
+ placeholderEnd: {
90
+ type: StringConstructor;
70
91
  default: string;
71
92
  description: string;
72
93
  };
@@ -85,29 +106,14 @@ declare const _default: import('vue').DefineComponent<{
85
106
  default: boolean;
86
107
  description: string;
87
108
  };
88
- valueFormat: {
89
- type: StringConstructor;
90
- default: string;
91
- description: string;
92
- };
93
- placeholderStart: {
94
- type: StringConstructor;
95
- default: () => string;
96
- description: string;
97
- };
98
- placeholderEnd: {
99
- type: StringConstructor;
100
- default: () => string;
101
- description: string;
102
- };
103
109
  }>> & {
104
110
  onChange?: ((...args: any[]) => any) | undefined;
105
111
  onClear?: ((...args: any[]) => any) | undefined;
106
112
  }, {
107
- size: DatePickerSize;
113
+ size: LewSize;
114
+ disabled: boolean;
108
115
  clearable: boolean;
109
116
  readonly: boolean;
110
- disabled: boolean;
111
117
  valueFormat: string;
112
118
  startKey: string;
113
119
  endKey: string;
@@ -1,10 +1,10 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { DatePickerSize } from '../../date-picker/src/props';
2
+ import { LewSize } from '../../..';
3
3
 
4
4
  export declare const dateRangePickerModel: {
5
5
  modelValue: {
6
- type: ObjectConstructor;
7
- default: {};
6
+ type: () => Record<string, Date | undefined>;
7
+ default: () => {};
8
8
  description: string;
9
9
  };
10
10
  };
@@ -13,14 +13,32 @@ export declare const dateRangePickerProps: {
13
13
  type: StringConstructor;
14
14
  default: string;
15
15
  description: string;
16
+ validator(value: string): boolean;
16
17
  };
17
18
  endKey: {
18
19
  type: StringConstructor;
19
20
  default: string;
20
21
  description: string;
22
+ validator(value: string): boolean;
23
+ };
24
+ valueFormat: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ description: string;
21
28
  };
22
29
  size: {
23
- type: PropType<DatePickerSize>;
30
+ type: PropType<LewSize>;
31
+ default: string;
32
+ description: string;
33
+ validator(value: LewSize): boolean;
34
+ };
35
+ placeholderStart: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ description: string;
39
+ };
40
+ placeholderEnd: {
41
+ type: StringConstructor;
24
42
  default: string;
25
43
  description: string;
26
44
  };
@@ -39,32 +57,19 @@ export declare const dateRangePickerProps: {
39
57
  default: boolean;
40
58
  description: string;
41
59
  };
42
- valueFormat: {
43
- type: StringConstructor;
44
- default: string;
45
- description: string;
46
- };
47
- placeholderStart: {
48
- type: StringConstructor;
49
- default: () => string;
50
- description: string;
51
- };
52
- placeholderEnd: {
53
- type: StringConstructor;
54
- default: () => string;
55
- description: string;
56
- };
57
60
  };
58
61
  export declare const dateRangeProps: {
59
62
  startKey: {
60
63
  type: StringConstructor;
61
64
  default: string;
62
65
  description: string;
66
+ validator(value: string): boolean;
63
67
  };
64
68
  endKey: {
65
69
  type: StringConstructor;
66
70
  default: string;
67
71
  description: string;
72
+ validator(value: string): boolean;
68
73
  };
69
74
  valueFormat: {
70
75
  type: StringConstructor;