lew-ui 2.1.13 → 2.2.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.
Files changed (107) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +49 -53
  3. package/dist/components/avatar/src/LewAvatar.vue.d.ts +0 -11
  4. package/dist/components/avatar/src/props.d.ts +0 -5
  5. package/dist/components/backtop/src/LewBackTop.vue.d.ts +6 -4
  6. package/dist/components/badge/src/LewBadge.vue.d.ts +6 -4
  7. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +6 -2
  8. package/dist/components/breadcrumb/src/props.d.ts +1 -1
  9. package/dist/components/button/src/LewButton.vue.d.ts +7 -5
  10. package/dist/components/cascader/src/LewCascader.vue.d.ts +8 -6
  11. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +4 -4
  12. package/dist/components/collapse/index.d.ts +4 -0
  13. package/dist/components/collapse/src/LewCollapse.vue.d.ts +38 -0
  14. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +68 -0
  15. package/dist/components/collapse/src/props.d.ts +52 -0
  16. package/dist/components/date-picker/index.d.ts +0 -2
  17. package/dist/components/date-picker/src/LewDate.vue.d.ts +3 -3
  18. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +13 -2
  19. package/dist/components/date-picker/src/props.d.ts +6 -69
  20. package/dist/components/date-range-picker/index.d.ts +3 -0
  21. package/dist/components/{date-picker → date-range-picker}/src/LewDateRange.vue.d.ts +2 -2
  22. package/dist/components/{date-picker → date-range-picker}/src/LewDateRangePicker.vue.d.ts +7 -5
  23. package/dist/components/date-range-picker/src/props.d.ts +75 -0
  24. package/dist/components/drawer/src/LewDrawer.vue.d.ts +16 -14
  25. package/dist/components/drawer/src/props.d.ts +3 -3
  26. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +9 -42
  27. package/dist/components/dropdown/src/props.d.ts +2 -16
  28. package/dist/components/empty/src/LewEmpty.vue.d.ts +23 -1
  29. package/dist/components/empty/src/props.d.ts +10 -0
  30. package/dist/components/flex/src/LewFlex.vue.d.ts +6 -4
  31. package/dist/components/form/index.d.ts +1 -0
  32. package/dist/components/form/src/LewForm.vue.d.ts +67 -7
  33. package/dist/components/form/src/LewFormItem.vue.d.ts +189 -0
  34. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +22 -0
  35. package/dist/components/form/src/RequiredIcon.vue.d.ts +14 -0
  36. package/dist/components/form/src/props.d.ts +107 -7
  37. package/dist/components/image/index.d.ts +2 -0
  38. package/dist/components/image/src/LewImage.vue.d.ts +124 -0
  39. package/dist/components/image/src/props.d.ts +55 -0
  40. package/dist/components/index.d.ts +7 -0
  41. package/dist/components/input/src/LewInput.vue.d.ts +12 -12
  42. package/dist/components/input/src/props.d.ts +3 -3
  43. package/dist/components/input-number/index.d.ts +2 -0
  44. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +150 -0
  45. package/dist/components/input-number/src/props.d.ts +67 -0
  46. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +2 -2
  47. package/dist/components/mark/src/LewMark.vue.d.ts +15 -9
  48. package/dist/components/mark/src/props.d.ts +1 -1
  49. package/dist/components/menu/src/props.d.ts +1 -1
  50. package/dist/components/menu-tree/src/props.d.ts +1 -1
  51. package/dist/components/modal/src/LewModal.vue.d.ts +34 -10
  52. package/dist/components/modal/src/props.d.ts +11 -1
  53. package/dist/components/pagination/src/LewPagination.vue.d.ts +15 -13
  54. package/dist/components/pagination/src/props.d.ts +2 -2
  55. package/dist/components/popok/src/LewPopok.vue.d.ts +9 -7
  56. package/dist/components/popok/src/props.d.ts +1 -1
  57. package/dist/components/popover/src/LewPopover.vue.d.ts +12 -10
  58. package/dist/components/popover/src/props.d.ts +1 -1
  59. package/dist/components/radio/src/LewRadio.vue.d.ts +1 -1
  60. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +2 -2
  61. package/dist/components/result/src/LewResult.vue.d.ts +6 -4
  62. package/dist/components/select/src/LewSelect.vue.d.ts +14 -12
  63. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +14 -12
  64. package/dist/components/slider/index.d.ts +2 -0
  65. package/dist/components/slider/src/LewSlider.vue.d.ts +8 -0
  66. package/dist/components/slider/src/props.d.ts +4 -0
  67. package/dist/components/slider-range/index.d.ts +2 -0
  68. package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +8 -0
  69. package/dist/components/slider-range/src/props.d.ts +4 -0
  70. package/dist/components/steps/src/LewSteps.vue.d.ts +2 -2
  71. package/dist/components/switch/src/LewSwitch.vue.d.ts +5 -5
  72. package/dist/components/switch/src/props.d.ts +1 -1
  73. package/dist/components/table/src/LewTable.vue.d.ts +16 -14
  74. package/dist/components/tabs/src/LewTabs.vue.d.ts +3 -3
  75. package/dist/components/tag/src/LewTag.vue.d.ts +8 -6
  76. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +3 -3
  77. package/dist/components/text-trim/src/props.d.ts +1 -1
  78. package/dist/components/textarea/src/LewTextarea.vue.d.ts +2 -2
  79. package/dist/components/title/src/LewTitle.vue.d.ts +6 -4
  80. package/dist/components/tree/src/LewTree.vue.d.ts +13 -11
  81. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +13 -11
  82. package/dist/components/tree-select/src/props.d.ts +1 -1
  83. package/dist/components/upload/index.d.ts +2 -0
  84. package/dist/components/upload/src/LewUpload.vue.d.ts +123 -0
  85. package/dist/components/upload/src/props.d.ts +69 -0
  86. package/dist/directives/context-menu/index.d.ts +2 -0
  87. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +22 -0
  88. package/dist/directives/context-menu/src/index.d.ts +24 -0
  89. package/dist/directives/dialog/index.d.ts +1 -2
  90. package/dist/directives/dialog/src/LewDialog.vue.d.ts +7 -7
  91. package/dist/directives/dialog/src/index.d.ts +10 -2
  92. package/dist/directives/dialog/src/props.d.ts +1 -1
  93. package/dist/directives/index.d.ts +1 -0
  94. package/dist/directives/loading/index.d.ts +1 -1
  95. package/dist/directives/loading/src/index.d.ts +1 -2
  96. package/dist/directives/notification/index.d.ts +0 -1
  97. package/dist/directives/notification/src/index.d.ts +16 -2
  98. package/dist/directives/tooltip/index.d.ts +1 -1
  99. package/dist/directives/tooltip/src/index.d.ts +1 -2
  100. package/dist/hooks/index.d.ts +0 -1
  101. package/dist/index.d.ts +1 -1
  102. package/dist/index.mjs +5654 -3562
  103. package/dist/index.umd.js +16 -16
  104. package/dist/style.css +1 -1
  105. package/dist/utils/index.d.ts +8 -2
  106. package/package.json +7 -6
  107. package/dist/hooks/src/useLewTo.d.ts +0 -3
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 lew
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 lew
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,53 +1,49 @@
1
- ![471656552467_.pic_i9uhs1_.jpeg](https://cdn.jsdelivr.net/gh/lewkamtao/PicHub-Cloud@master/PicHub/471656552467_.pic_i9uhs1_.jpeg)
2
-
3
- # Lew-UI
4
-
5
- A Component Library for Vue3.js. Doc address: https://lew.kamtao.com
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install lew-ui --save
11
- ```
12
-
13
- ## How to use
14
-
15
- 引入 css
16
-
17
- ```js
18
- // main.ts
19
- import 'lew-ui/style';
20
- ```
21
-
22
- 页面
23
-
24
- ```vue
25
- <script setup lang="ts">
26
- import { LewButton } from 'lew-ui';
27
- </script>
28
-
29
- <template>
30
- <lew-button text="发送" />
31
- </template>
32
- ```
33
-
34
- ## Todo List
35
-
36
- - Step 步骤
37
- - Upload 上传
38
- - Card 卡片
39
- - Progress 进度条
40
- - Loading 加载
41
-
42
- ## Thanks
43
-
44
- - https://github.com/atomiks/tippyjs
45
- - https://fengyuanchen.github.io/vue-feather/
46
-
47
- ## License
48
-
49
- Lew UI is open source software licensed as MIT.
50
-
51
- ## Demo
52
-
53
- ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6221709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6231709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6241709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6251709887502_.pic.jpg)
1
+ ![471656552467_.pic_i9uhs1_.jpeg](https://cdn.jsdelivr.net/gh/lewkamtao/PicHub-Cloud@master/PicHub/471656552467_.pic_i9uhs1_.jpeg)
2
+
3
+ # Lew-UI
4
+
5
+ A Component Library for Vue3.js. Doc address: https://lew.kamtao.com
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install lew-ui --save
11
+ ```
12
+
13
+ ## How to use
14
+
15
+ 引入 css
16
+
17
+ ```js
18
+ // main.ts
19
+ import 'lew-ui/style';
20
+ ```
21
+
22
+ 页面
23
+
24
+ ```vue
25
+ <script setup lang="ts">
26
+ import { LewButton } from 'lew-ui';
27
+ </script>
28
+
29
+ <template>
30
+ <lew-button text="发送" />
31
+ </template>
32
+ ```
33
+
34
+ ## Todo List
35
+
36
+ - Upload 上传
37
+
38
+ ## Thanks
39
+
40
+ - https://github.com/atomiks/tippyjs
41
+ - https://fengyuanchen.github.io/vue-feather/
42
+
43
+ ## License
44
+
45
+ Lew UI is open source software licensed as MIT.
46
+
47
+ ## Demo
48
+
49
+ ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6221709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6231709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6241709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6251709887502_.pic.jpg)
@@ -24,11 +24,6 @@ declare const _default: import('vue').DefineComponent<{
24
24
  default: number;
25
25
  description: string;
26
26
  };
27
- errorSrc: {
28
- type: StringConstructor;
29
- default: string;
30
- description: string;
31
- };
32
27
  src: {
33
28
  type: StringConstructor;
34
29
  default: string;
@@ -65,11 +60,6 @@ declare const _default: import('vue').DefineComponent<{
65
60
  default: number;
66
61
  description: string;
67
62
  };
68
- errorSrc: {
69
- type: StringConstructor;
70
- default: string;
71
- description: string;
72
- };
73
63
  src: {
74
64
  type: StringConstructor;
75
65
  default: string;
@@ -86,7 +76,6 @@ declare const _default: import('vue').DefineComponent<{
86
76
  height: string | number;
87
77
  status: "offline" | "online" | "processing" | "away" | "busy";
88
78
  statusPlacement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
89
- errorSrc: string;
90
79
  src: string;
91
80
  alt: string;
92
81
  }, {}>;
@@ -28,11 +28,6 @@ export declare const avatarProps: {
28
28
  default: number;
29
29
  description: string;
30
30
  };
31
- errorSrc: {
32
- type: StringConstructor;
33
- default: string;
34
- description: string;
35
- };
36
31
  src: {
37
32
  type: StringConstructor;
38
33
  default: string;
@@ -1,4 +1,7 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{
2
5
  right: {
3
6
  type: NumberConstructor;
4
7
  default: number;
@@ -49,9 +52,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
49
52
  right: number;
50
53
  bottom: number;
51
54
  valveHeight: number;
52
- }, {}>, {
53
- default?(_: {}): any;
54
- }>;
55
+ }, {}>;
56
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
55
57
  export default _default;
56
58
  type __VLS_WithTemplateSlots<T, S> = T & {
57
59
  new (): {
@@ -1,4 +1,7 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{
2
5
  value: {
3
6
  type: StringConstructor;
4
7
  default: string;
@@ -23,9 +26,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
23
26
  }>>, {
24
27
  value: string;
25
28
  color: import('./props').BadgeColor;
26
- }, {}>, {
27
- default?(_: {}): any;
28
- }>;
29
+ }, {}>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
31
  export default _default;
30
32
  type __VLS_WithTemplateSlots<T, S> = T & {
31
33
  new (): {
@@ -9,7 +9,9 @@ declare const _default: import('vue').DefineComponent<{
9
9
  default: string;
10
10
  description: string;
11
11
  };
12
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
12
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ click: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
13
15
  options: {
14
16
  type: globalThis.PropType<import('./props').BreadcrumbOptions[]>;
15
17
  default: never[];
@@ -20,7 +22,9 @@ declare const _default: import('vue').DefineComponent<{
20
22
  default: string;
21
23
  description: string;
22
24
  };
23
- }>>, {
25
+ }>> & {
26
+ onClick?: ((...args: any[]) => any) | undefined;
27
+ }, {
24
28
  options: import('./props').BreadcrumbOptions[];
25
29
  iconType: import('./props').BreadcrumbIconType;
26
30
  }, {}>;
@@ -2,7 +2,7 @@ import { PropType, ExtractPropTypes } from 'vue';
2
2
 
3
3
  export type BreadcrumbOptions = {
4
4
  label: string;
5
- to: string;
5
+ value: string;
6
6
  active: boolean;
7
7
  };
8
8
  export type BreadcrumbIconType = 'shoulder' | 'sprit';
@@ -1,4 +1,7 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{
2
5
  color: {
3
6
  type: globalThis.PropType<import('../../..').ButtonColor>;
4
7
  default: string;
@@ -106,18 +109,17 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
106
109
  onClick?: ((...args: any[]) => any) | undefined;
107
110
  }, {
108
111
  type: import('../../..').ButtonType;
112
+ icon: string;
109
113
  text: string;
110
114
  color: import('../../..').ButtonColor;
111
115
  round: boolean;
112
116
  size: import('../../..').ButtonSize;
113
117
  disabled: boolean;
114
118
  loading: boolean;
115
- icon: string;
116
119
  iconPosition: string;
117
120
  request: Function;
118
- }, {}>, {
119
- default?(_: {}): any;
120
- }>;
121
+ }, {}>;
122
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
121
123
  export default _default;
122
124
  type __VLS_WithTemplateSlots<T, S> = T & {
123
125
  new (): {
@@ -1,7 +1,10 @@
1
1
  import { CascaderOptions } from './props';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
- modelValue: globalThis.PropType<any>;
3
+ declare function __VLS_template(): {
4
+ header?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<{
7
+ modelValue: import('vue').PropType<any>;
5
8
  options: {
6
9
  type: globalThis.PropType<CascaderOptions[]>;
7
10
  default: never[];
@@ -65,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
65
68
  blur: (...args: any[]) => void;
66
69
  clear: (...args: any[]) => void;
67
70
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
68
- modelValue: globalThis.PropType<any>;
71
+ modelValue: import('vue').PropType<any>;
69
72
  options: {
70
73
  type: globalThis.PropType<CascaderOptions[]>;
71
74
  default: never[];
@@ -137,9 +140,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
137
140
  clearable: boolean;
138
141
  readonly: boolean;
139
142
  disabled: boolean;
140
- }, {}>, {
141
- header?(_: {}): any;
142
- }>;
143
+ }, {}>;
144
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
143
145
  export default _default;
144
146
  type __VLS_WithTemplateSlots<T, S> = T & {
145
147
  new (): {
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- modelValue: globalThis.PropType<any>;
2
+ modelValue: import('vue').PropType<any>;
3
3
  checked: {
4
4
  type: (BooleanConstructor | FunctionConstructor)[];
5
5
  default: boolean;
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<{
48
48
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
49
49
  change: (...args: any[]) => void;
50
50
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
51
- modelValue: globalThis.PropType<any>;
51
+ modelValue: import('vue').PropType<any>;
52
52
  checked: {
53
53
  type: (BooleanConstructor | FunctionConstructor)[];
54
54
  default: boolean;
@@ -102,9 +102,9 @@ declare const _default: import('vue').DefineComponent<{
102
102
  size: import('./props').CheckboxSize;
103
103
  readonly: boolean;
104
104
  disabled: boolean;
105
- checked: boolean | Function;
106
- certain: boolean | Function;
107
105
  block: boolean;
108
106
  iconable: boolean;
107
+ checked: boolean | Function;
108
+ certain: boolean | Function;
109
109
  }, {}>;
110
110
  export default _default;
@@ -0,0 +1,4 @@
1
+ export { default as LewCollapse } from './src/LewCollapse.vue';
2
+ export { default as LewCollapseItem } from './src/LewCollapseItem.vue';
3
+ export { default as LewCollapseTransition } from './src/LewCollapseTransition.vue';
4
+ export * from './src/props';
@@ -0,0 +1,38 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{
5
+ modelValue: import('vue').PropType<any>;
6
+ width: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ description: string;
10
+ };
11
+ gap: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ description: string;
15
+ };
16
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
17
+ modelValue: import('vue').PropType<any>;
18
+ width: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ description: string;
22
+ };
23
+ gap: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ description: string;
27
+ };
28
+ }>>, {
29
+ gap: string;
30
+ width: string;
31
+ }, {}>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,68 @@
1
+ declare function __VLS_template(): {
2
+ title?(_: {
3
+ props: {
4
+ readonly title: string;
5
+ readonly padding: string;
6
+ readonly collapseKey: string;
7
+ readonly radius: string;
8
+ };
9
+ }): any;
10
+ default?(_: {}): any;
11
+ };
12
+ declare const __VLS_component: import('vue').DefineComponent<{
13
+ modelValue: import('vue').PropType<any>;
14
+ collapseKey: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ description: string;
18
+ };
19
+ title: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ description: string;
23
+ };
24
+ radius: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ description: string;
28
+ };
29
+ padding: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ description: string;
33
+ };
34
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
35
+ modelValue: import('vue').PropType<any>;
36
+ collapseKey: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ description: string;
40
+ };
41
+ title: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ description: string;
45
+ };
46
+ radius: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ description: string;
50
+ };
51
+ padding: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ description: string;
55
+ };
56
+ }>>, {
57
+ title: string;
58
+ padding: string;
59
+ collapseKey: string;
60
+ radius: string;
61
+ }, {}>;
62
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
63
+ export default _default;
64
+ type __VLS_WithTemplateSlots<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
@@ -0,0 +1,52 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const collapseModel: {
4
+ modelValue: {
5
+ type: (StringConstructor | globalThis.PropType<String[] | Number[]>)[];
6
+ default: boolean;
7
+ description: string;
8
+ };
9
+ };
10
+ export declare const collapseItemModel: {
11
+ modelValue: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ description: string;
15
+ };
16
+ };
17
+ export declare const collapseProps: {
18
+ width: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ description: string;
22
+ };
23
+ gap: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ description: string;
27
+ };
28
+ };
29
+ export declare const collapseItemProps: {
30
+ collapseKey: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ description: string;
34
+ };
35
+ title: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ description: string;
39
+ };
40
+ radius: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ description: string;
44
+ };
45
+ padding: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ description: string;
49
+ };
50
+ };
51
+ export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
52
+ export type CollapseItemProps = ExtractPropTypes<typeof collapseItemProps>;
@@ -1,5 +1,3 @@
1
1
  export { default as LewDate } from './src/LewDate.vue';
2
- export { default as LewDateRange } from './src/LewDateRange.vue';
3
2
  export { default as LewDatePicker } from './src/LewDatePicker.vue';
4
- export { default as LewDateRangePicker } from './src/LewDateRangePicker.vue';
5
3
  export * from './src/props';
@@ -1,16 +1,16 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- modelValue: globalThis.PropType<any>;
2
+ modelValue: import('vue').PropType<any>;
3
3
  valueFormat: {
4
4
  type: StringConstructor;
5
5
  default: string;
6
6
  description: string;
7
7
  };
8
8
  }, {
9
- init: () => void;
9
+ init: (date?: string | undefined) => void;
10
10
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
11
  change: (...args: any[]) => void;
12
12
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
13
- modelValue: globalThis.PropType<any>;
13
+ modelValue: import('vue').PropType<any>;
14
14
  valueFormat: {
15
15
  type: StringConstructor;
16
16
  default: string;
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- modelValue: globalThis.PropType<any>;
2
+ modelValue: import('vue').PropType<any>;
3
3
  size: {
4
4
  type: globalThis.PropType<import('../../..').DatePickerSize>;
5
5
  default: string;
@@ -30,6 +30,11 @@ declare const _default: import('vue').DefineComponent<{
30
30
  default: () => string;
31
31
  description: string;
32
32
  };
33
+ presets: {
34
+ type: globalThis.PropType<import('../../..').DatePickerPresetsOptions[]>;
35
+ default: () => never[];
36
+ description: string;
37
+ };
33
38
  }, {
34
39
  show: () => void;
35
40
  hide: () => void;
@@ -37,7 +42,7 @@ declare const _default: import('vue').DefineComponent<{
37
42
  change: (...args: any[]) => void;
38
43
  clear: (...args: any[]) => void;
39
44
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
40
- modelValue: globalThis.PropType<any>;
45
+ modelValue: import('vue').PropType<any>;
41
46
  size: {
42
47
  type: globalThis.PropType<import('../../..').DatePickerSize>;
43
48
  default: string;
@@ -68,6 +73,11 @@ declare const _default: import('vue').DefineComponent<{
68
73
  default: () => string;
69
74
  description: string;
70
75
  };
76
+ presets: {
77
+ type: globalThis.PropType<import('../../..').DatePickerPresetsOptions[]>;
78
+ default: () => never[];
79
+ description: string;
80
+ };
71
81
  }>> & {
72
82
  onChange?: ((...args: any[]) => any) | undefined;
73
83
  onClear?: ((...args: any[]) => any) | undefined;
@@ -78,5 +88,6 @@ declare const _default: import('vue').DefineComponent<{
78
88
  readonly: boolean;
79
89
  disabled: boolean;
80
90
  valueFormat: string;
91
+ presets: import('../../..').DatePickerPresetsOptions[];
81
92
  }, {}>;
82
93
  export default _default;