@kylexd/vant-extend 0.0.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/README.md +64 -0
- package/dist/components/BaseTip/index.d.ts +1 -0
- package/dist/components/BaseTip/index.vue.d.ts +13 -0
- package/dist/components/CuEmpty/index.d.ts +1 -0
- package/dist/components/CuEmpty/index.vue.d.ts +25 -0
- package/dist/components/CuFloatingPanel/index.d.ts +1 -0
- package/dist/components/CuFloatingPanel/index.vue.d.ts +40 -0
- package/dist/components/CuImage/index.d.ts +1 -0
- package/dist/components/CuImage/index.vue.d.ts +37 -0
- package/dist/components/CuPopup/index.d.ts +1 -0
- package/dist/components/CuPopup/index.vue.d.ts +50 -0
- package/dist/components/CuSelect/index.d.ts +1 -0
- package/dist/components/CuSelect/index.vue.d.ts +32 -0
- package/dist/components/GridImage/index.d.ts +1 -0
- package/dist/components/GridImage/index.vue.d.ts +14 -0
- package/dist/components/Headroom/index.d.ts +1 -0
- package/dist/components/Headroom/index.vue.d.ts +16 -0
- package/dist/components/InputNumber/index.d.ts +1 -0
- package/dist/components/InputNumber/index.vue.d.ts +21 -0
- package/dist/components/SafeBottom/index.d.ts +1 -0
- package/dist/components/SafeBottom/index.vue.d.ts +2 -0
- package/dist/components/SelectDateRange/index.d.ts +1 -0
- package/dist/components/SelectDateRange/index.vue.d.ts +27 -0
- package/dist/components/SortGroup/InjectionKey.d.ts +15 -0
- package/dist/components/SortGroup/index.d.ts +1 -0
- package/dist/components/SortGroup/index.vue.d.ts +32 -0
- package/dist/components/SortItem/index.d.ts +1 -0
- package/dist/components/SortItem/index.vue.d.ts +45 -0
- package/dist/components/ViewportBottomLoad/index.d.ts +1 -0
- package/dist/components/ViewportBottomLoad/index.vue.d.ts +15 -0
- package/dist/composables/debounce.d.ts +4 -0
- package/dist/composables/useDialogRendered.d.ts +5 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +895 -0
- package/dist/types/shared.d.ts +2 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @kylexd/vant-extend
|
|
2
|
+
|
|
3
|
+
Extended Vant components for Vue mobile interfaces.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package contains a small set of components built on top of Vant. It is intended for mobile pages, WebView pages, and compact Vue interfaces that already use Vant.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @kylexd/vant-extend
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Vant and Vue are expected to be available in the consuming project.
|
|
16
|
+
|
|
17
|
+
## Exports
|
|
18
|
+
|
|
19
|
+
Main components:
|
|
20
|
+
|
|
21
|
+
- `CuPopup`
|
|
22
|
+
- `CuFloatingPanel`
|
|
23
|
+
- `CuSelect`
|
|
24
|
+
- `InputNumber`
|
|
25
|
+
- `BaseTip`
|
|
26
|
+
- `CuEmpty`
|
|
27
|
+
- `CuImage`
|
|
28
|
+
- `GridImage`
|
|
29
|
+
- `ViewportBottomLoad`
|
|
30
|
+
- `Headroom`
|
|
31
|
+
- `SafeBottom`
|
|
32
|
+
- `SortGroup`
|
|
33
|
+
- `SortItem`
|
|
34
|
+
- `SelectDateRange`
|
|
35
|
+
|
|
36
|
+
Composable:
|
|
37
|
+
|
|
38
|
+
- `useDialogRendered`
|
|
39
|
+
|
|
40
|
+
## Basic Usage
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { CuPopup, InputNumber } from '@kylexd/vant-extend'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```vue
|
|
47
|
+
<CuPopup v-model:show="visible" title="Options">
|
|
48
|
+
<div>Content</div>
|
|
49
|
+
</CuPopup>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Build
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm run build
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Notes
|
|
59
|
+
|
|
60
|
+
Some components depend on Vant overlays, popups, fields, calendars, or icons. VueUse and Day.js are also peer dependencies. Component layout uses utility classes, so the consuming project should include the package output in its style pipeline when needed.
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
UNLICENSED
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
text?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
confirmButtonColor?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
size: number | string;
|
|
9
|
+
text: string;
|
|
10
|
+
title: string;
|
|
11
|
+
confirmButtonColor: string;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
image?: string;
|
|
3
|
+
imageSize?: number | string;
|
|
4
|
+
description?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
image?: (props: typeof __VLS_6) => any;
|
|
9
|
+
} & {
|
|
10
|
+
description?: (props: typeof __VLS_8) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_10) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
image: string;
|
|
16
|
+
imageSize: number | string;
|
|
17
|
+
description: string;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
zIndex?: number;
|
|
4
|
+
heightPercent?: number;
|
|
5
|
+
panelClass?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function handleClose(): void;
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
9
|
+
'showPanel'?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_23: {
|
|
12
|
+
close: typeof handleClose;
|
|
13
|
+
}, __VLS_29: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
header?: (props: typeof __VLS_23) => any;
|
|
16
|
+
} & {
|
|
17
|
+
default?: (props: typeof __VLS_29) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:showPanel": (value: boolean | undefined) => any;
|
|
21
|
+
} & {
|
|
22
|
+
close: () => any;
|
|
23
|
+
panelChange: (value: boolean) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
+
onClose?: (() => any) | undefined;
|
|
26
|
+
onPanelChange?: ((value: boolean) => any) | undefined;
|
|
27
|
+
"onUpdate:showPanel"?: ((value: boolean | undefined) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
title: string;
|
|
30
|
+
zIndex: number;
|
|
31
|
+
heightPercent: number;
|
|
32
|
+
panelClass: string;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface CuImageFormatOptions {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
quality?: number;
|
|
5
|
+
format?: string | false;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
src?: string;
|
|
9
|
+
fallbackSrc?: string;
|
|
10
|
+
thumbnail?: CuImageFormatOptions | true | false;
|
|
11
|
+
formatSrc?: (src: string, options?: CuImageFormatOptions) => string;
|
|
12
|
+
noReferrer?: boolean;
|
|
13
|
+
noReferrerHosts?: string[];
|
|
14
|
+
loadingSize?: string | number;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_6: {}, __VLS_12: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
loading?: (props: typeof __VLS_6) => any;
|
|
19
|
+
} & {
|
|
20
|
+
error?: (props: typeof __VLS_12) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
src: string;
|
|
24
|
+
fallbackSrc: string;
|
|
25
|
+
thumbnail: CuImageFormatOptions | true | false;
|
|
26
|
+
formatSrc: (src: string, options?: CuImageFormatOptions) => string;
|
|
27
|
+
noReferrer: boolean;
|
|
28
|
+
noReferrerHosts: string[];
|
|
29
|
+
loadingSize: string | number;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { PopupPosition } from 'vant';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
teleport?: string;
|
|
5
|
+
position?: PopupPosition;
|
|
6
|
+
contentClass?: string;
|
|
7
|
+
headerClass?: string;
|
|
8
|
+
popupClass?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
closeable?: boolean;
|
|
11
|
+
round?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
14
|
+
'show'?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
header?: (props: typeof __VLS_11) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: typeof __VLS_13) => any;
|
|
21
|
+
} & {
|
|
22
|
+
footer?: (props: typeof __VLS_15) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:show": (value: boolean | undefined) => any;
|
|
26
|
+
} & {
|
|
27
|
+
close: () => any;
|
|
28
|
+
closed: () => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
|
+
onClose?: (() => any) | undefined;
|
|
31
|
+
onClosed?: (() => any) | undefined;
|
|
32
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
title: string;
|
|
35
|
+
position: PopupPosition;
|
|
36
|
+
height: string;
|
|
37
|
+
teleport: string;
|
|
38
|
+
round: boolean;
|
|
39
|
+
contentClass: string;
|
|
40
|
+
headerClass: string;
|
|
41
|
+
popupClass: string;
|
|
42
|
+
closeable: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface CuSelectAction {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
required?: boolean;
|
|
8
|
+
inputAlign?: 'left' | 'right';
|
|
9
|
+
border?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
actions?: CuSelectAction[];
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
cancelText?: string;
|
|
14
|
+
type?: 'cell' | 'field';
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
title: string;
|
|
26
|
+
type: "cell" | "field";
|
|
27
|
+
placeholder: string;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
actions: CuSelectAction[];
|
|
30
|
+
cancelText: string;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
imageList: string[];
|
|
3
|
+
imageIconSize?: number;
|
|
4
|
+
count?: number;
|
|
5
|
+
countText?: string;
|
|
6
|
+
fallbackSrc?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
fallbackSrc: string;
|
|
10
|
+
imageIconSize: number;
|
|
11
|
+
count: number;
|
|
12
|
+
countText: string;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
basicTop?: number;
|
|
3
|
+
class?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
min?: number;
|
|
3
|
+
max?: number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
+
modelValue?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
11
|
+
} & {
|
|
12
|
+
change: (value?: number | undefined) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
15
|
+
onChange?: ((value?: number | undefined) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
max: number;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
min: number;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
minDate?: Date;
|
|
3
|
+
maxDate?: Date;
|
|
4
|
+
startPlaceholder?: string;
|
|
5
|
+
endPlaceholder?: string;
|
|
6
|
+
dateFormat?: string;
|
|
7
|
+
teleport?: string;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
10
|
+
'startTime'?: string;
|
|
11
|
+
'endTime'?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:startTime": (value: string | undefined) => any;
|
|
15
|
+
"update:endTime": (value: string | undefined) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:startTime"?: ((value: string | undefined) => any) | undefined;
|
|
18
|
+
"onUpdate:endTime"?: ((value: string | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
teleport: string;
|
|
21
|
+
minDate: Date;
|
|
22
|
+
maxDate: Date;
|
|
23
|
+
startPlaceholder: string;
|
|
24
|
+
endPlaceholder: string;
|
|
25
|
+
dateFormat: string;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import type { NumericValue } from '../../types/shared';
|
|
3
|
+
export interface SortGroupContext {
|
|
4
|
+
modelValue: Ref<NumericValue | undefined>;
|
|
5
|
+
modelActiveValue: Ref<NumericValue | undefined>;
|
|
6
|
+
setGroupModelValue: (params: {
|
|
7
|
+
value: NumericValue | undefined;
|
|
8
|
+
activeValue: NumericValue | undefined;
|
|
9
|
+
}) => void;
|
|
10
|
+
emitChange: (params: {
|
|
11
|
+
value: NumericValue | undefined;
|
|
12
|
+
activeValue: NumericValue | undefined;
|
|
13
|
+
}) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const sortGroupKey: InjectionKey<SortGroupContext>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { NumericValue } from '../../types/shared';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
modelValue?: NumericValue | undefined;
|
|
4
|
+
'activeValue'?: NumericValue | undefined;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: NumericValue | undefined) => any;
|
|
12
|
+
"update:activeValue": (value: NumericValue | undefined) => any;
|
|
13
|
+
} & {
|
|
14
|
+
change: (params: {
|
|
15
|
+
value?: NumericValue;
|
|
16
|
+
activeValue?: NumericValue;
|
|
17
|
+
}) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: NumericValue | undefined) => any) | undefined;
|
|
20
|
+
onChange?: ((params: {
|
|
21
|
+
value?: NumericValue;
|
|
22
|
+
activeValue?: NumericValue;
|
|
23
|
+
}) => any) | undefined;
|
|
24
|
+
"onUpdate:activeValue"?: ((value: NumericValue | undefined) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { NumericValue } from '../../types/shared';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
ascValue?: NumericValue;
|
|
5
|
+
descValue?: NumericValue;
|
|
6
|
+
activeValue?: NumericValue;
|
|
7
|
+
sort?: 'asc' | 'desc';
|
|
8
|
+
activeColor?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
iconColor?: string;
|
|
11
|
+
loopEmptyValue?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
14
|
+
modelValue?: NumericValue | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
title?: (props: typeof __VLS_1) => any;
|
|
19
|
+
} & {
|
|
20
|
+
icon?: (props: typeof __VLS_3) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (value: NumericValue | undefined) => any;
|
|
24
|
+
} & {
|
|
25
|
+
change: (value: NumericValue | undefined) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: NumericValue | undefined) => any) | undefined;
|
|
28
|
+
onChange?: ((value: NumericValue | undefined) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
sort: "asc" | "desc";
|
|
31
|
+
color: string;
|
|
32
|
+
activeValue: NumericValue;
|
|
33
|
+
ascValue: NumericValue;
|
|
34
|
+
descValue: NumericValue;
|
|
35
|
+
activeColor: string;
|
|
36
|
+
iconColor: string;
|
|
37
|
+
loopEmptyValue: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
distance?: number;
|
|
3
|
+
debounceNum?: number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
load: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onLoad?: (() => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
distance: number;
|
|
13
|
+
debounceNum: number;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as BaseTip } from './components/BaseTip';
|
|
2
|
+
export { default as CuEmpty } from './components/CuEmpty';
|
|
3
|
+
export { default as CuFloatingPanel } from './components/CuFloatingPanel';
|
|
4
|
+
export { default as CuImage } from './components/CuImage';
|
|
5
|
+
export { default as CuPopup } from './components/CuPopup';
|
|
6
|
+
export { default as CuSelect } from './components/CuSelect';
|
|
7
|
+
export { default as GridImage } from './components/GridImage';
|
|
8
|
+
export { default as Headroom } from './components/Headroom';
|
|
9
|
+
export { default as InputNumber } from './components/InputNumber';
|
|
10
|
+
export { default as SafeBottom } from './components/SafeBottom';
|
|
11
|
+
export { default as SelectDateRange } from './components/SelectDateRange';
|
|
12
|
+
export { default as SortGroup } from './components/SortGroup';
|
|
13
|
+
export { default as SortItem } from './components/SortItem';
|
|
14
|
+
export { default as ViewportBottomLoad } from './components/ViewportBottomLoad';
|
|
15
|
+
export * from './composables/useDialogRendered';
|
|
16
|
+
export * from './types/shared';
|