@delta-comic/ui 0.1.3 → 1.3.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/LICENSE +1 -1
- package/dist/index.css +2 -12949
- package/dist/index.js +6529 -3877
- package/dist/index.js.map +1 -1
- package/dist/index2.js +2 -0
- package/dist/index2.js.map +1 -1
- package/dist/lib/components/DcContent.vue.d.ts +21 -16
- package/dist/lib/components/DcFloatPopup.vue.d.ts +4 -4
- package/dist/lib/components/DcImage.vue.d.ts +1 -1
- package/dist/lib/components/DcImagedIcon.vue.d.ts +2 -1
- package/dist/lib/components/DcList.vue.d.ts +20 -18
- package/dist/lib/components/DcMarkdown/index.vue.d.ts +3 -1
- package/dist/lib/components/DcPopup.vue.d.ts +4 -8
- package/dist/lib/components/DcRouterTab.vue.d.ts +9 -10
- package/dist/lib/components/DcState.vue.d.ts +27 -0
- package/dist/lib/components/DcText.vue.d.ts +3 -18
- package/dist/lib/components/DcToggleIcon.vue.d.ts +2 -1
- package/dist/lib/components/DcWaterfall.vue.d.ts +19 -16
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/layout.d.ts +14 -4
- package/dist/lib/utils/type.d.ts +6 -0
- package/dist/pack.tgz +0 -0
- package/package.json +23 -22
- package/dist/index.cjs +0 -953
- package/dist/index.cjs.map +0 -1
- package/dist/index2.cjs +0 -2
- package/dist/index2.cjs.map +0 -1
package/dist/index2.js
CHANGED
package/dist/index2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: '@delta-comic/ui' }\n }\n }\n}"],"mappings":"AAEA,SAAgB,IAA0C;AACxD,QAAO;EACL,MAAM;EACN,UAAU,MAAiB;AACzB,OAAI,EAAK,MAAM,sBAAsB,CAAE,QAAO;IAAE;IAAM,MAAM;IAAmB;;EAElF"}
|
|
1
|
+
{"version":3,"file":"index2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: '@delta-comic/ui' }\n }\n }\n}"],"mappings":";AAEA,SAAgB,IAA0C;AACxD,QAAO;EACL,MAAM;EACN,UAAU,MAAiB;AACzB,OAAI,EAAK,MAAM,sBAAsB,CAAE,QAAO;IAAE;IAAM,MAAM;IAAmB;;EAElF"}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseInfiniteQueryReturn, UseQueryReturn } from '@pinia/colada';
|
|
2
|
+
import { ClassNameValue } from 'tailwind-merge';
|
|
2
3
|
import { StyleValue } from 'vue';
|
|
4
|
+
import { StyleProps } from '../utils';
|
|
3
5
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
-
readonly onRetry?: (() => any) | undefined;
|
|
6
|
-
readonly onResetRetry?: (() => any) | undefined;
|
|
7
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onRetry" | "onResetRetry"> & ({
|
|
8
|
-
retriable?: boolean;
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
9
7
|
hideError?: boolean;
|
|
10
8
|
hideEmpty?: boolean;
|
|
11
9
|
hideLoading?: boolean;
|
|
12
|
-
source:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
source: {
|
|
11
|
+
type: "query";
|
|
12
|
+
query: UseQueryReturn<T, any, any>;
|
|
13
|
+
} | {
|
|
14
|
+
type: "infinite";
|
|
15
|
+
stream: UseInfiniteQueryReturn<T, any, any>;
|
|
16
|
+
} | {
|
|
17
|
+
type: "raw";
|
|
18
|
+
data: T;
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
error?: Error | null;
|
|
21
|
+
refetch?: () => any;
|
|
22
|
+
};
|
|
23
|
+
classError?: ClassNameValue;
|
|
24
|
+
classEmpty?: ClassNameValue;
|
|
19
25
|
styleError?: StyleValue;
|
|
20
26
|
styleEmpty?: StyleValue;
|
|
21
|
-
|
|
22
|
-
}) & Partial<{}>> & import('vue').PublicProps;
|
|
27
|
+
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
23
28
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
24
29
|
cont: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
25
30
|
}>): void;
|
|
@@ -33,7 +38,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
33
38
|
data?: T;
|
|
34
39
|
}): any;
|
|
35
40
|
};
|
|
36
|
-
emit:
|
|
41
|
+
emit: {};
|
|
37
42
|
}>) => import('vue').VNode & {
|
|
38
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
44
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleProps } from '../utils';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
anchors?: 'high' | 'low' | number[];
|
|
4
4
|
lockScroll?: boolean;
|
|
5
|
-
class?: any;
|
|
6
|
-
style?: StyleValue;
|
|
7
5
|
overlay?: boolean;
|
|
8
|
-
|
|
6
|
+
contentDraggable?: boolean;
|
|
7
|
+
} & StyleProps;
|
|
9
8
|
declare function __VLS_template(): {
|
|
10
9
|
attrs: Partial<{}>;
|
|
11
10
|
slots: Readonly<{
|
|
@@ -29,6 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
29
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
30
29
|
anchors: "high" | "low" | number[];
|
|
31
30
|
lockScroll: boolean;
|
|
31
|
+
contentDraggable: boolean;
|
|
32
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
34
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { uni } from '@delta-comic/model';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
+
import { StyleProps } from '../utils';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
icon: Component | uni.image.Image | uni.resource.Resource;
|
|
5
6
|
bgColor?: string;
|
|
6
7
|
sizeSpacing: number;
|
|
7
|
-
};
|
|
8
|
+
} & StyleProps;
|
|
8
9
|
declare const _default: 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>;
|
|
9
10
|
export default _default;
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseInfiniteQueryReturn, UseQueryReturn } from '@pinia/colada';
|
|
2
2
|
import { IfAny } from '@vueuse/core';
|
|
3
3
|
import { VirtualListInst, VirtualListProps } from 'naive-ui';
|
|
4
|
-
import { Ref
|
|
5
|
-
import { ListFn } from '../utils';
|
|
6
|
-
declare const _default: <T extends
|
|
7
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
|
-
readonly onNext?: ((then: () => void) => any) | undefined;
|
|
9
|
-
readonly onRetry?: ((then: () => void) => any) | undefined;
|
|
10
|
-
readonly onReset?: (() => any) | undefined;
|
|
11
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext"> & {
|
|
4
|
+
import { Ref } from 'vue';
|
|
5
|
+
import { ListFn, StyleProps } from '../utils';
|
|
6
|
+
declare const _default: <T extends object, PF extends ListFn<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
12
8
|
source: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} |
|
|
9
|
+
type: "query";
|
|
10
|
+
value: UseQueryReturn<T[]>;
|
|
11
|
+
next?: () => any;
|
|
12
|
+
} | {
|
|
13
|
+
type: "infinite";
|
|
14
|
+
value: UseInfiniteQueryReturn<T[]>;
|
|
15
|
+
} | {
|
|
16
|
+
type: "array";
|
|
17
|
+
value: Array<T>;
|
|
18
|
+
refetch?: () => any;
|
|
19
|
+
refresh?: () => any;
|
|
20
|
+
next?: () => any;
|
|
21
|
+
};
|
|
17
22
|
itemHeight: number;
|
|
18
23
|
listProp?: Partial<VirtualListProps>;
|
|
19
|
-
goBottom?: boolean;
|
|
20
24
|
itemResizable?: boolean;
|
|
21
25
|
dataProcessor?: PF;
|
|
22
26
|
unReloadable?: boolean;
|
|
23
|
-
|
|
24
|
-
class?: any;
|
|
25
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
27
|
+
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
26
28
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
27
29
|
scrollTop: import('vue').WritableComputedRef<number, number>;
|
|
28
30
|
listInstance: Ref<VirtualListInst>;
|
|
@@ -45,7 +47,7 @@ declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number
|
|
|
45
47
|
};
|
|
46
48
|
}): any;
|
|
47
49
|
};
|
|
48
|
-
emit:
|
|
50
|
+
emit: {};
|
|
49
51
|
}>) => import('vue').VNode & {
|
|
50
52
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
53
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { default as MarkdownIt, Options } from 'markdown-it';
|
|
2
|
+
import { StyleProps } from '../../utils';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
markdown: string;
|
|
4
5
|
plugins?: Parameters<MarkdownIt['use']>[];
|
|
5
6
|
config?: Options;
|
|
6
7
|
env?: object;
|
|
7
|
-
|
|
8
|
+
isDarkMode?: boolean;
|
|
9
|
+
} & StyleProps;
|
|
8
10
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
11
|
plugins: Parameters<MarkdownIt["use"]>[];
|
|
10
12
|
config: Options;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { PopupProps } from 'vant';
|
|
2
|
-
import {
|
|
3
|
-
type __VLS_Props = Partial<PopupProps &
|
|
4
|
-
noBorder?: boolean;
|
|
5
|
-
useTrulyShow: boolean;
|
|
6
|
-
style?: StyleValue;
|
|
7
|
-
}>;
|
|
2
|
+
import { StyleProps } from '../utils';
|
|
3
|
+
type __VLS_Props = Partial<PopupProps & StyleProps>;
|
|
8
4
|
type __VLS_PublicProps = {
|
|
9
5
|
'show': boolean;
|
|
10
6
|
} & __VLS_Props;
|
|
@@ -21,7 +17,6 @@ declare function __VLS_template(): {
|
|
|
21
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
18
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
23
19
|
zIndex: import('vue').ComputedRef<number>;
|
|
24
|
-
trulyShow: import('vue').ShallowRef<boolean, boolean>;
|
|
25
20
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
21
|
closed: () => any;
|
|
27
22
|
"update:show": (value: boolean) => any;
|
|
@@ -29,10 +24,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
29
24
|
onClosed?: (() => any) | undefined;
|
|
30
25
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
31
26
|
}>, {
|
|
27
|
+
teleport: string | import('vue').RendererElement | null;
|
|
32
28
|
closeOnClickOverlay: boolean;
|
|
33
29
|
overlay: boolean;
|
|
34
30
|
position: import('vant').PopupPosition;
|
|
35
|
-
|
|
31
|
+
destroyOnClose: boolean;
|
|
36
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
34
|
export default _default;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import { StyleProps } from '../utils';
|
|
1
3
|
declare const _default: <T extends {
|
|
2
4
|
name: string;
|
|
3
5
|
title: string;
|
|
4
|
-
|
|
6
|
+
route: RouteLocationRaw;
|
|
5
7
|
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
8
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
9
|
+
/**
|
|
10
|
+
* 基于路由的name匹配
|
|
11
|
+
*/
|
|
7
12
|
items: T[];
|
|
8
|
-
|
|
9
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
13
|
+
mode?: "replace" | "push";
|
|
14
|
+
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
10
15
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
16
|
attrs: any;
|
|
12
17
|
slots: Readonly<{
|
|
13
|
-
default(arg: {
|
|
14
|
-
itemName: T;
|
|
15
|
-
}): any;
|
|
16
18
|
left(): any;
|
|
17
19
|
right(): any;
|
|
18
20
|
bottom(): any;
|
|
19
21
|
}> & {
|
|
20
|
-
default(arg: {
|
|
21
|
-
itemName: T;
|
|
22
|
-
}): any;
|
|
23
22
|
left(): any;
|
|
24
23
|
right(): any;
|
|
25
24
|
bottom(): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DataState } from '@pinia/colada';
|
|
2
|
+
import { ClassNameValue } from 'tailwind-merge';
|
|
3
|
+
import { StyleProps } from '../utils';
|
|
4
|
+
declare const _default: <T extends DataState<any, any, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
6
|
+
state: T;
|
|
7
|
+
contentClass?: ClassNameValue;
|
|
8
|
+
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
9
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default(args: {
|
|
13
|
+
data: T["data"];
|
|
14
|
+
}): any;
|
|
15
|
+
}> & {
|
|
16
|
+
default(args: {
|
|
17
|
+
data: T["data"];
|
|
18
|
+
}): any;
|
|
19
|
+
};
|
|
20
|
+
emit: {};
|
|
21
|
+
}>) => import('vue').VNode & {
|
|
22
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_PrettifyLocal<T> = {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} & {};
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
+
import { StyleProps } from '../utils';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
text?: string;
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: {
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: HTMLDivElement;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
4
|
+
} & StyleProps;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
6
|
text: string;
|
|
16
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
8
|
export default _default;
|
|
19
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Component as _Component } from 'vue';
|
|
2
|
+
import { StyleProps } from '../utils';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
icon: _Component;
|
|
4
5
|
size?: string | number;
|
|
5
6
|
disChanged?: boolean;
|
|
6
7
|
rowMode?: boolean;
|
|
7
8
|
padding?: boolean;
|
|
8
|
-
};
|
|
9
|
+
} & StyleProps;
|
|
9
10
|
type __VLS_PublicProps = {
|
|
10
11
|
modelValue?: boolean;
|
|
11
12
|
} & __VLS_Props;
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseInfiniteQueryReturn, UseQueryReturn } from '@pinia/colada';
|
|
2
2
|
import { IfAny } from '@vueuse/core';
|
|
3
|
-
import {
|
|
4
|
-
declare const _default: <T
|
|
5
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
-
readonly onNext?: ((then: () => void) => any) | undefined;
|
|
7
|
-
readonly onCol?: ((args_0: 2, args_1: 2) => any) | undefined;
|
|
8
|
-
readonly onRetry?: ((then: () => void) => any) | undefined;
|
|
9
|
-
readonly onReset?: (() => any) | undefined;
|
|
10
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext" | "onCol"> & {
|
|
3
|
+
import { ListFn, StyleProps } from '../utils';
|
|
4
|
+
declare const _default: <T extends object, PF extends ListFn<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
11
6
|
source: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
type: "query";
|
|
8
|
+
value: UseQueryReturn<T[], any, any>;
|
|
9
|
+
next?: () => any;
|
|
10
|
+
} | {
|
|
11
|
+
type: "infinite";
|
|
12
|
+
value: UseInfiniteQueryReturn<T[], any, any>;
|
|
13
|
+
} | {
|
|
14
|
+
type: "array";
|
|
15
|
+
value: Array<T>;
|
|
16
|
+
refetch?: () => any;
|
|
17
|
+
refresh?: () => any;
|
|
18
|
+
next?: () => any;
|
|
19
|
+
};
|
|
17
20
|
col?: [min: number, max: number] | number;
|
|
18
21
|
padding?: number;
|
|
19
22
|
gap?: number;
|
|
20
23
|
minHeight?: number;
|
|
21
24
|
dataProcessor?: PF;
|
|
22
25
|
unReloadable?: boolean;
|
|
23
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
26
|
+
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
24
27
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
25
28
|
scrollTop: import('vue').WritableComputedRef<number, number>;
|
|
26
29
|
scrollParent: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
|
|
@@ -44,7 +47,7 @@ declare const _default: <T = any, PF extends (d: T[]) => any[] = ((d: T[]) => T[
|
|
|
44
47
|
length: number;
|
|
45
48
|
}): any;
|
|
46
49
|
};
|
|
47
|
-
emit:
|
|
50
|
+
emit: {};
|
|
48
51
|
}>) => import('vue').VNode & {
|
|
49
52
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
53
|
};
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { default as DcLoading } from './components/DcLoading.vue';
|
|
|
10
10
|
import { default as DcMarkdown } from './components/DcMarkdown/index.vue';
|
|
11
11
|
import { default as DcPopup } from './components/DcPopup.vue';
|
|
12
12
|
import { default as DcRouterTab } from './components/DcRouterTab.vue';
|
|
13
|
+
import { default as DcState } from './components/DcState.vue';
|
|
13
14
|
import { default as DcText } from './components/DcText.vue';
|
|
14
15
|
import { default as DcToggleIcon } from './components/DcToggleIcon.vue';
|
|
15
16
|
import { default as DcVar } from './components/DcVar.vue';
|
|
@@ -24,7 +25,7 @@ import { default as DcFormPairs } from './form/components/DcFormPairs.vue';
|
|
|
24
25
|
import { default as DcFormRadio } from './form/components/DcFormRadio.vue';
|
|
25
26
|
import { default as DcFormString } from './form/components/DcFormString.vue';
|
|
26
27
|
import { default as DcFormSwitch } from './form/components/DcFormSwitch.vue';
|
|
27
|
-
export { DcAuthorIcon, DcImagedIcon, DcAwait, DcContent, DcImage, DcFloatPopup, DcList, DcLoading, DcPopup, DcRouterTab, DcText, DcToggleIcon, DcVar, DcWaterfall, DcMarkdown };
|
|
28
|
+
export { DcAuthorIcon, DcImagedIcon, DcAwait, DcContent, DcImage, DcFloatPopup, DcList, DcLoading, DcPopup, DcRouterTab, DcText, DcToggleIcon, DcVar, DcWaterfall, DcMarkdown, DcState };
|
|
28
29
|
declare module 'vue-router' {
|
|
29
30
|
interface Router {
|
|
30
31
|
force: {
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef, WatchHandle, Ref } from 'vue';
|
|
2
|
+
export type LayerIndex = [
|
|
3
|
+
index: ComputedRef<number>,
|
|
4
|
+
isLast: ComputedRef<boolean>,
|
|
5
|
+
watcher: WatchHandle
|
|
6
|
+
];
|
|
2
7
|
/**
|
|
3
8
|
* @description
|
|
4
9
|
* 对于所有弹出层,使用其确定`z-index`
|
|
5
|
-
* 在组件内使用时,卸载组件 _`(
|
|
6
|
-
*
|
|
10
|
+
* 在组件内使用时,卸载组件 _`(tryOnUnmounted)`_ 会自动清理,否则需要主动调用`[2].stop()`清理
|
|
7
11
|
*/
|
|
8
|
-
export declare const useZIndex: (
|
|
12
|
+
export declare const useZIndex: (isShow: Ref<boolean>) => LayerIndex;
|
|
13
|
+
/**
|
|
14
|
+
* @description
|
|
15
|
+
* 与`useZIndex`函数配合,使得弹出层在显示时会阻止替换路由返回。
|
|
16
|
+
* 同时还会自动处理force路由
|
|
17
|
+
*/
|
|
18
|
+
export declare const usePreventBack: (isShow: Ref<boolean>, isLast: Ref<boolean>) => WatchHandle;
|
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delta-comic/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "空阙虱楼",
|
|
5
|
-
"homepage": "https://github.com/delta-comic/delta-comic
|
|
5
|
+
"homepage": "https://github.com/delta-comic/delta-comic",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "wenxig",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/delta-comic/delta-comic
|
|
13
|
+
"url": "https://github.com/delta-comic/delta-comic.git"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
@@ -22,13 +22,11 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/lib/index.d.ts",
|
|
25
|
-
"import": "./dist/index.js"
|
|
26
|
-
"require": "./dist/index.cjs"
|
|
25
|
+
"import": "./dist/index.js"
|
|
27
26
|
},
|
|
28
27
|
"./vite": {
|
|
29
28
|
"types": "./dist/vite/index.d.ts",
|
|
30
|
-
"import": "./dist/index2.js"
|
|
31
|
-
"require": "./dist/index2.cjs"
|
|
29
|
+
"import": "./dist/index2.js"
|
|
32
30
|
},
|
|
33
31
|
"./style.css": "./dist/index.css"
|
|
34
32
|
},
|
|
@@ -36,28 +34,34 @@
|
|
|
36
34
|
"access": "public"
|
|
37
35
|
},
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@delta-comic/plugin": "^0.3.5",
|
|
40
37
|
"@lhlyu/vue-virtual-waterfall": "1.0.8",
|
|
38
|
+
"@pinia/colada": "^1.0.0",
|
|
41
39
|
"@tauri-apps/plugin-shell": "^2.3.5",
|
|
42
40
|
"@vant/use": "^1.6.0",
|
|
43
41
|
"@vueuse/core": "^14.2.1",
|
|
44
|
-
"dayjs": "^1.11.
|
|
42
|
+
"dayjs": "^1.11.20",
|
|
43
|
+
"dompurify": "^3.3.3",
|
|
44
|
+
"linkify-it": "^5.0.0",
|
|
45
45
|
"markdown-it": "^14.1.1",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
|
-
"motion-v": "2.0.
|
|
48
|
-
"
|
|
47
|
+
"motion-v": "2.0.1",
|
|
48
|
+
"tailwind-merge": "^3.5.0",
|
|
49
|
+
"tailwindcss-safe-area-capacitor": "^0.5.1",
|
|
50
|
+
"tlds": "^1.261.0"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"@tailwindcss/vite": "^4.2.1",
|
|
54
|
+
"@types/linkify-it": "^5.0.0",
|
|
52
55
|
"@types/markdown-it": "^14.1.2",
|
|
53
56
|
"@vitejs/plugin-vue": "^6.0.4",
|
|
54
57
|
"@vitejs/plugin-vue-jsx": "^5.1.4",
|
|
55
58
|
"browserslist": "^4.28.1",
|
|
56
|
-
"lightningcss": "^1.
|
|
57
|
-
"tailwindcss": "^4.2.
|
|
59
|
+
"lightningcss": "^1.32.0",
|
|
60
|
+
"tailwindcss": "^4.2.2",
|
|
58
61
|
"unplugin-vue-components": "31.0.0",
|
|
59
|
-
"vite": "
|
|
60
|
-
"
|
|
62
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
63
|
+
"vite-plus": "latest",
|
|
64
|
+
"vue-component-type-helpers": "^3.2.6"
|
|
61
65
|
},
|
|
62
66
|
"peerDependencies": {
|
|
63
67
|
"naive-ui": "^2.43",
|
|
@@ -65,9 +69,9 @@
|
|
|
65
69
|
"vant": "^4.9",
|
|
66
70
|
"vue": "^3.5",
|
|
67
71
|
"vue-router": "^5.0",
|
|
68
|
-
"@delta-comic/
|
|
69
|
-
"@delta-comic/
|
|
70
|
-
"@delta-comic/core": "
|
|
72
|
+
"@delta-comic/utils": "1.3.1",
|
|
73
|
+
"@delta-comic/model": "1.3.1",
|
|
74
|
+
"@delta-comic/core": "1.3.1"
|
|
71
75
|
},
|
|
72
76
|
"release": {
|
|
73
77
|
"tagFormat": "ui-${version}"
|
|
@@ -77,9 +81,6 @@
|
|
|
77
81
|
},
|
|
78
82
|
"readme": "./README.md",
|
|
79
83
|
"scripts": {
|
|
80
|
-
"build": "
|
|
81
|
-
"version:major": "pnpm version major --no-git-tag-version || true",
|
|
82
|
-
"version:minor": "pnpm version minor --no-git-tag-version || true",
|
|
83
|
-
"version:patch": "pnpm version patch --no-git-tag-version || true"
|
|
84
|
+
"build": "vp build && pnpm pack --out ./dist/pack.tgz"
|
|
84
85
|
}
|
|
85
86
|
}
|