@delta-comic/ui 0.0.0-semantically-released

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 (47) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +42 -0
  3. package/dist/index.cjs +11 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.css +2 -0
  6. package/dist/index.js +9771 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/index2.cjs +2 -0
  9. package/dist/index2.cjs.map +1 -0
  10. package/dist/index2.js +14 -0
  11. package/dist/index2.js.map +1 -0
  12. package/dist/lib/components/DcAwait.vue.d.ts +26 -0
  13. package/dist/lib/components/DcContent.vue.d.ts +43 -0
  14. package/dist/lib/components/DcFloatPopup.vue.d.ts +39 -0
  15. package/dist/lib/components/DcImage.vue.d.ts +1158 -0
  16. package/dist/lib/components/DcList.vue.d.ts +55 -0
  17. package/dist/lib/components/DcLoading.vue.d.ts +18 -0
  18. package/dist/lib/components/DcPopup.vue.d.ts +41 -0
  19. package/dist/lib/components/DcRouterTab.vue.d.ts +34 -0
  20. package/dist/lib/components/DcText.vue.d.ts +23 -0
  21. package/dist/lib/components/DcToggleIcon.vue.d.ts +42 -0
  22. package/dist/lib/components/DcVar.vue.d.ts +23 -0
  23. package/dist/lib/components/DcWaterfall.vue.d.ts +54 -0
  24. package/dist/lib/components/icons.d.ts +6 -0
  25. package/dist/lib/form/components/DcForm.vue.d.ts +38 -0
  26. package/dist/lib/form/components/DcFormCheckbox.vue.d.ts +13 -0
  27. package/dist/lib/form/components/DcFormDate.vue.d.ts +13 -0
  28. package/dist/lib/form/components/DcFormDateRange.vue.d.ts +13 -0
  29. package/dist/lib/form/components/DcFormItem.vue.d.ts +21 -0
  30. package/dist/lib/form/components/DcFormNumber.vue.d.ts +13 -0
  31. package/dist/lib/form/components/DcFormPairs.vue.d.ts +19 -0
  32. package/dist/lib/form/components/DcFormRadio.vue.d.ts +13 -0
  33. package/dist/lib/form/components/DcFormString.vue.d.ts +13 -0
  34. package/dist/lib/form/components/DcFormSwitch.vue.d.ts +13 -0
  35. package/dist/lib/form/row.d.ts +73 -0
  36. package/dist/lib/form/type.d.ts +10 -0
  37. package/dist/lib/index.d.ts +40 -0
  38. package/dist/lib/message/dialog.d.ts +9 -0
  39. package/dist/lib/message/download.d.ts +13 -0
  40. package/dist/lib/message/index.d.ts +3 -0
  41. package/dist/lib/message/loading.d.ts +14 -0
  42. package/dist/lib/utils/image.d.ts +5 -0
  43. package/dist/lib/utils/index.d.ts +3 -0
  44. package/dist/lib/utils/layout.d.ts +8 -0
  45. package/dist/pack.tgz +0 -0
  46. package/dist/vite/index.d.ts +2 -0
  47. package/package.json +79 -0
@@ -0,0 +1,55 @@
1
+ import { VirtualListInst, VirtualListProps } from 'naive-ui';
2
+ import { ListFn } from '../utils';
3
+ import { Ref, StyleValue } from 'vue';
4
+ import { IfAny } from '@vueuse/core';
5
+ import { RPromiseContent, Stream } from '@delta-comic/model';
6
+ declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number], 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<{
8
+ readonly onRetry?: ((then: () => void) => any) | undefined;
9
+ readonly onNext?: ((then: () => void) => any) | undefined;
10
+ readonly onReset?: (() => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext"> & {
12
+ source: {
13
+ data: RPromiseContent<any, T[]>;
14
+ isEnd?: boolean;
15
+ reloadable?: boolean;
16
+ } | Stream<T> | Array<T>;
17
+ itemHeight: number;
18
+ listProp?: Partial<VirtualListProps>;
19
+ goBottom?: boolean;
20
+ itemResizable?: boolean;
21
+ dataProcessor?: PF;
22
+ unReloadable?: boolean;
23
+ style?: StyleValue;
24
+ class?: any;
25
+ } & Partial<{}>> & import('vue').PublicProps;
26
+ expose(exposed: import('vue').ShallowUnwrapRef<{
27
+ scrollTop: import('vue').WritableComputedRef<number, number>;
28
+ listInstance: Ref<VirtualListInst>;
29
+ }>): void;
30
+ attrs: any;
31
+ slots: Readonly<{
32
+ default(props: {
33
+ height: number;
34
+ data: {
35
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
36
+ index: number;
37
+ };
38
+ }): any;
39
+ }> & {
40
+ default(props: {
41
+ height: number;
42
+ data: {
43
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
44
+ index: number;
45
+ };
46
+ }): any;
47
+ };
48
+ emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
49
+ }>) => import('vue').VNode & {
50
+ __ctx?: Awaited<typeof __VLS_setup>;
51
+ };
52
+ export default _default;
53
+ type __VLS_PrettifyLocal<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
@@ -0,0 +1,18 @@
1
+ import { LoadingProps } from 'vant';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<Partial<LoadingProps>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<LoadingProps>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,41 @@
1
+ import { PopupProps } from 'vant';
2
+ import { StyleValue } from 'vue';
3
+ type __VLS_Props = Partial<PopupProps & {
4
+ noBorder?: boolean;
5
+ useTrulyShow: boolean;
6
+ style?: StyleValue;
7
+ }>;
8
+ type __VLS_PublicProps = {
9
+ 'show': boolean;
10
+ } & __VLS_Props;
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Readonly<{
14
+ default(): void;
15
+ }> & {
16
+ default(): void;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
23
+ zIndex: import('vue').ComputedRef<number>;
24
+ trulyShow: import('vue').ShallowRef<boolean, boolean>;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ closed: () => any;
27
+ "update:show": (value: boolean) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ onClosed?: (() => any) | undefined;
30
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
31
+ }>, {
32
+ position: import('vant').PopupPosition;
33
+ noBorder: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,34 @@
1
+ declare const _default: <T extends {
2
+ name: string;
3
+ title: string;
4
+ queries?: Record<string, string>;
5
+ }>(__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> & {
7
+ items: T[];
8
+ routerBase: string;
9
+ } & Partial<{}>> & import('vue').PublicProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: Readonly<{
13
+ default(arg: {
14
+ itemName: T;
15
+ }): any;
16
+ left(): any;
17
+ right(): any;
18
+ bottom(): any;
19
+ }> & {
20
+ default(arg: {
21
+ itemName: T;
22
+ }): any;
23
+ left(): any;
24
+ right(): any;
25
+ bottom(): any;
26
+ };
27
+ emit: {};
28
+ }>) => import('vue').VNode & {
29
+ __ctx?: Awaited<typeof __VLS_setup>;
30
+ };
31
+ export default _default;
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ text?: string;
3
+ ellipsis?: number;
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<{}>, {
15
+ text: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,42 @@
1
+ import { Component as _Component } from 'vue';
2
+ type __VLS_Props = {
3
+ icon: _Component;
4
+ size?: string | number;
5
+ disChanged?: boolean;
6
+ rowMode?: boolean;
7
+ padding?: boolean;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ modelValue?: boolean;
11
+ } & __VLS_Props;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {
18
+ htmlRefHook: HTMLDivElement;
19
+ };
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ click: (to: boolean) => any;
25
+ "update:modelValue": (value: boolean) => any;
26
+ change: (mode: boolean) => any;
27
+ longClick: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ onClick?: ((to: boolean) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
31
+ onChange?: ((mode: boolean) => any) | undefined;
32
+ onLongClick?: (() => any) | undefined;
33
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
+ htmlRefHook: HTMLDivElement;
35
+ }, HTMLDivElement>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
+ export default _default;
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,23 @@
1
+ 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<{
2
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
3
+ value: T;
4
+ } & Partial<{}>> & import('vue').PublicProps;
5
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: Readonly<{
8
+ default(arg: {
9
+ value: T;
10
+ }): any;
11
+ }> & {
12
+ default(arg: {
13
+ value: T;
14
+ }): any;
15
+ };
16
+ emit: {};
17
+ }>) => import('vue').VNode & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
19
+ };
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
@@ -0,0 +1,54 @@
1
+ import { RPromiseContent, Stream } from '@delta-comic/model';
2
+ import { StyleValue } from 'vue';
3
+ import { IfAny } from '@vueuse/core';
4
+ declare const _default: <T = any, PF extends (d: T[]) => any[] = ((d: T[]) => T[]) | ((d: T[]) => 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<{
6
+ readonly onCol?: ((args_0: 2, args_1: 2) => any) | undefined;
7
+ readonly onRetry?: ((then: () => void) => any) | undefined;
8
+ readonly onNext?: ((then: () => void) => any) | undefined;
9
+ readonly onReset?: (() => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext" | "onCol"> & {
11
+ source: {
12
+ data: RPromiseContent<any, T[]>;
13
+ isEnd?: boolean;
14
+ } | Stream<T>;
15
+ style?: StyleValue;
16
+ class?: any;
17
+ col?: [min: number, max: number] | number;
18
+ padding?: number;
19
+ gap?: number;
20
+ minHeight?: number;
21
+ dataProcessor?: PF;
22
+ unReloadable?: boolean;
23
+ } & Partial<{}>> & import('vue').PublicProps;
24
+ expose(exposed: import('vue').ShallowUnwrapRef<{
25
+ scrollTop: import('vue').WritableComputedRef<number, number>;
26
+ scrollParent: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
27
+ reloadList(): Promise<void>;
28
+ }>): void;
29
+ attrs: any;
30
+ slots: Readonly<{
31
+ default(props: {
32
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
33
+ index: number;
34
+ height?: number;
35
+ minHeight: number;
36
+ length: number;
37
+ }): any;
38
+ }> & {
39
+ default(props: {
40
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
41
+ index: number;
42
+ height?: number;
43
+ minHeight: number;
44
+ length: number;
45
+ }): any;
46
+ };
47
+ emit: ((evt: "col", args_0: 2, args_1: 2) => void) & ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
48
+ }>) => import('vue').VNode & {
49
+ __ctx?: Awaited<typeof __VLS_setup>;
50
+ };
51
+ export default _default;
52
+ type __VLS_PrettifyLocal<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
@@ -0,0 +1,6 @@
1
+ import { FunctionalComponent } from 'vue';
2
+ export declare const ReloadOutlined: FunctionalComponent;
3
+ export declare const WifiTetheringErrorRound: FunctionalComponent;
4
+ export declare const CloseRound: FunctionalComponent;
5
+ export declare const DoneRound: FunctionalComponent;
6
+ export declare const FileDownloadRound: FunctionalComponent;
@@ -0,0 +1,38 @@
1
+ import { Configure, Result, SingleResult } from '../type';
2
+ declare const _default: <T extends Configure, O extends (keyof T)[] = (keyof 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<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((value: Result<T>) => any) | undefined;
5
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
6
+ modelValue?: Result<T>;
7
+ } & {
8
+ configs: T;
9
+ /**
10
+ * 设置为`true`,则所有的`DcFormItem`都会替换;如果是数组,则它仅替换数组内包含的`key`的`DcFormItem`
11
+ */
12
+ overrideRow?: boolean | O;
13
+ }) & Partial<{}>> & import('vue').PublicProps;
14
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
15
+ attrs: any;
16
+ slots: Readonly<{
17
+ default?<K extends O[number], S extends T[K]>(args: {
18
+ config: S;
19
+ path: K;
20
+ modelValue: SingleResult<S>;
21
+ setModelValue(value: SingleResult<S>): void;
22
+ }): any;
23
+ }> & {
24
+ default?<K extends O[number], S extends T[K]>(args: {
25
+ config: S;
26
+ path: K;
27
+ modelValue: SingleResult<S>;
28
+ setModelValue(value: SingleResult<S>): void;
29
+ }): any;
30
+ };
31
+ emit: (evt: "update:modelValue", value: Result<T>) => void;
32
+ }>) => import('vue').VNode & {
33
+ __ctx?: Awaited<typeof __VLS_setup>;
34
+ };
35
+ export default _default;
36
+ type __VLS_PrettifyLocal<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.Checkbox;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.Checkbox>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string[]) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.Date;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.Date>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: number) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.DateRange;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.DateRange>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: [from: number, to: number]) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: [from: number, to: number]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { SingleConfigure, SingleResult } from '../type';
2
+ declare const _default: <T extends SingleConfigure>(__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<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((value: SingleResult<T>) => any) | undefined;
5
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
6
+ modelValue: SingleResult<T>;
7
+ } & {
8
+ config: T;
9
+ path: string;
10
+ }) & Partial<{}>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
+ attrs: any;
13
+ slots: {};
14
+ emit: (evt: "update:modelValue", value: SingleResult<T>) => void;
15
+ }>) => import('vue').VNode & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
17
+ };
18
+ export default _default;
19
+ type __VLS_PrettifyLocal<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.Number;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.Number>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: number) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.Pairs;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.Pairs>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: {
10
+ key: string;
11
+ value: string;
12
+ }[]) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: {
15
+ key: string;
16
+ value: string;
17
+ }[]) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.Radio;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.Radio>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.String;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.String>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { SingleResult, Type } from '../type';
2
+ type __VLS_Props = {
3
+ config: Type.Switch;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: SingleResult<Type.Switch>;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: boolean) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,73 @@
1
+ export interface Base {
2
+ info: string;
3
+ placeholder?: string;
4
+ /**
5
+ * @default true
6
+ */
7
+ required?: boolean;
8
+ }
9
+ export interface String extends Base {
10
+ type: 'string';
11
+ patten?: RegExp;
12
+ defaultValue?: DefaultValue['string'];
13
+ }
14
+ export interface Number extends Base {
15
+ type: 'number';
16
+ range?: [number, number];
17
+ float?: boolean;
18
+ defaultValue?: DefaultValue['number'];
19
+ }
20
+ export interface Radio extends Base {
21
+ type: 'radio';
22
+ selects: {
23
+ label: string;
24
+ value: string;
25
+ }[];
26
+ comp: 'radio' | 'select';
27
+ defaultValue?: DefaultValue['radio'];
28
+ }
29
+ export interface Checkbox extends Base {
30
+ type: 'checkbox';
31
+ selects: {
32
+ label: string;
33
+ value: string;
34
+ }[];
35
+ comp: 'checkbox' | 'multipleSelect';
36
+ defaultValue?: DefaultValue['checkbox'];
37
+ }
38
+ export interface Switch extends Base {
39
+ type: 'switch';
40
+ close?: string;
41
+ open?: string;
42
+ defaultValue?: DefaultValue['switch'];
43
+ }
44
+ export interface Date extends Base {
45
+ type: 'date';
46
+ format: string;
47
+ time?: boolean;
48
+ defaultValue?: DefaultValue['date'];
49
+ }
50
+ export interface DateRange extends Base {
51
+ type: 'dateRange';
52
+ format: string;
53
+ time?: boolean;
54
+ defaultValue?: DefaultValue['date'];
55
+ }
56
+ export interface Pairs extends Base {
57
+ type: 'pairs';
58
+ defaultValue?: DefaultValue['pairs'];
59
+ noMultiple?: boolean;
60
+ }
61
+ export interface DefaultValue {
62
+ string: string;
63
+ number: number;
64
+ radio: string;
65
+ checkbox: string[];
66
+ switch: boolean;
67
+ date: number;
68
+ pairs: {
69
+ key: string;
70
+ value: string;
71
+ }[];
72
+ dateRange: [from: DefaultValue['date'], to: DefaultValue['date']];
73
+ }
@@ -0,0 +1,10 @@
1
+ import * as Type from './row';
2
+ export type SingleConfigure = Type.String | Type.Number | Type.Radio | Type.Checkbox | Type.Switch | Type.Date | Type.DateRange | Type.Pairs;
3
+ export type SingleResult<T extends SingleConfigure> = Type.DefaultValue[T['type']];
4
+ export type Configure = {
5
+ [x in string]: SingleConfigure;
6
+ };
7
+ export type Result<T extends Configure> = {
8
+ [K in keyof T]: SingleResult<T[K]>;
9
+ };
10
+ export * as Type from './row';
@@ -0,0 +1,40 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { default as DcAwait } from './components/DcAwait.vue';
3
+ import { default as DcContent } from './components/DcContent.vue';
4
+ import { default as DcFloatPopup } from './components/DcFloatPopup.vue';
5
+ import { default as DcImage } from './components/DcImage.vue';
6
+ import { default as DcList } from './components/DcList.vue';
7
+ import { default as DcLoading } from './components/DcLoading.vue';
8
+ import { default as DcPopup } from './components/DcPopup.vue';
9
+ import { default as DcRouterTab } from './components/DcRouterTab.vue';
10
+ import { default as DcText } from './components/DcText.vue';
11
+ import { default as DcToggleIcon } from './components/DcToggleIcon.vue';
12
+ import { default as DcVar } from './components/DcVar.vue';
13
+ import { default as DcWaterfall } from './components/DcWaterfall.vue';
14
+ import { default as DcForm } from './form/components/DcForm.vue';
15
+ import { default as DcFormCheckbox } from './form/components/DcFormCheckbox.vue';
16
+ import { default as DcFormDate } from './form/components/DcFormDate.vue';
17
+ import { default as DcFormDateRange } from './form/components/DcFormDateRange.vue';
18
+ import { default as DcFormItem } from './form/components/DcFormItem.vue';
19
+ import { default as DcFormNumber } from './form/components/DcFormNumber.vue';
20
+ import { default as DcFormPairs } from './form/components/DcFormPairs.vue';
21
+ import { default as DcFormRadio } from './form/components/DcFormRadio.vue';
22
+ import { default as DcFormString } from './form/components/DcFormString.vue';
23
+ import { default as DcFormSwitch } from './form/components/DcFormSwitch.vue';
24
+ export { DcAwait, DcContent, DcImage, DcFloatPopup, DcList, DcLoading, DcPopup, DcRouterTab, DcText, DcToggleIcon, DcVar, DcWaterfall };
25
+ declare module 'vue-router' {
26
+ interface Router {
27
+ force: {
28
+ push: Router['push'];
29
+ replace: Router['replace'];
30
+ };
31
+ }
32
+ interface RouteMeta {
33
+ statusBar?: MaybeRefOrGetter<'dark' | 'light' | 'auto'>;
34
+ force?: boolean;
35
+ }
36
+ }
37
+ export * from './utils';
38
+ export { DcForm, DcFormItem, DcFormCheckbox, DcFormString, DcFormPairs, DcFormDate, DcFormDateRange, DcFormRadio, DcFormNumber, DcFormSwitch };
39
+ export * as FormType from './form/type';
40
+ export * from './message';
@@ -0,0 +1,9 @@
1
+ import { DialogReactive, DialogOptions } from 'naive-ui';
2
+ import { CSSProperties } from 'vue';
3
+ type PromiseWith<T, D> = Promise<T> & Partial<D>;
4
+ export declare const createDialog: (options: DialogOptions & {
5
+ style?: CSSProperties;
6
+ }) => PromiseWith<void, {
7
+ ins: DialogReactive;
8
+ }>;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Reactive } from 'vue';
2
+ export interface DownloadMessageProgress extends DownloadMessageLoading {
3
+ /** 0~100 */ progress: number;
4
+ }
5
+ export interface DownloadMessageLoading {
6
+ description: string;
7
+ retryable: boolean;
8
+ }
9
+ export interface DownloadMessageBind {
10
+ createProgress<TResult>(title: string, fn: (ins: Reactive<DownloadMessageProgress>) => Promise<TResult>): Promise<TResult>;
11
+ createLoading<TResult>(title: string, fn: (ins: Reactive<DownloadMessageLoading>) => Promise<TResult>): Promise<TResult>;
12
+ }
13
+ export declare const createDownloadMessage: <T>(title: string, bind: (method: DownloadMessageBind) => Promise<T>) => Promise<T>;
@@ -0,0 +1,3 @@
1
+ export * from './dialog';
2
+ export * from './download';
3
+ export * from './loading';