@delta-comic/ui 0.1.2 → 1.3.0

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 (50) hide show
  1. package/LICENSE +1 -1
  2. package/dist/index.css +2 -12949
  3. package/dist/index.js +7314 -4663
  4. package/dist/index.js.map +1 -1
  5. package/dist/index2.js +2 -0
  6. package/dist/index2.js.map +1 -1
  7. package/dist/pack.tgz +0 -0
  8. package/package.json +23 -22
  9. package/dist/index.cjs +0 -953
  10. package/dist/index.cjs.map +0 -1
  11. package/dist/index2.cjs +0 -2
  12. package/dist/index2.cjs.map +0 -1
  13. package/dist/lib/components/DcAuthorIcon.vue.d.ts +0 -10
  14. package/dist/lib/components/DcAwait.vue.d.ts +0 -26
  15. package/dist/lib/components/DcContent.vue.d.ts +0 -43
  16. package/dist/lib/components/DcFloatPopup.vue.d.ts +0 -39
  17. package/dist/lib/components/DcImage.vue.d.ts +0 -1158
  18. package/dist/lib/components/DcImagedIcon.vue.d.ts +0 -9
  19. package/dist/lib/components/DcList.vue.d.ts +0 -55
  20. package/dist/lib/components/DcLoading.vue.d.ts +0 -18
  21. package/dist/lib/components/DcMarkdown/index.vue.d.ts +0 -12
  22. package/dist/lib/components/DcPopup.vue.d.ts +0 -43
  23. package/dist/lib/components/DcRouterTab.vue.d.ts +0 -34
  24. package/dist/lib/components/DcText.vue.d.ts +0 -23
  25. package/dist/lib/components/DcToggleIcon.vue.d.ts +0 -42
  26. package/dist/lib/components/DcVar.vue.d.ts +0 -23
  27. package/dist/lib/components/DcWaterfall.vue.d.ts +0 -54
  28. package/dist/lib/components/icons.d.ts +0 -6
  29. package/dist/lib/form/components/DcForm.vue.d.ts +0 -40
  30. package/dist/lib/form/components/DcFormCheckbox.vue.d.ts +0 -13
  31. package/dist/lib/form/components/DcFormDate.vue.d.ts +0 -13
  32. package/dist/lib/form/components/DcFormDateRange.vue.d.ts +0 -13
  33. package/dist/lib/form/components/DcFormItem.vue.d.ts +0 -21
  34. package/dist/lib/form/components/DcFormNumber.vue.d.ts +0 -13
  35. package/dist/lib/form/components/DcFormPairs.vue.d.ts +0 -19
  36. package/dist/lib/form/components/DcFormRadio.vue.d.ts +0 -13
  37. package/dist/lib/form/components/DcFormString.vue.d.ts +0 -13
  38. package/dist/lib/form/components/DcFormSwitch.vue.d.ts +0 -13
  39. package/dist/lib/form/functional.d.ts +0 -5
  40. package/dist/lib/form/row.d.ts +0 -73
  41. package/dist/lib/form/type.d.ts +0 -16
  42. package/dist/lib/index.d.ts +0 -44
  43. package/dist/lib/message/dialog.d.ts +0 -9
  44. package/dist/lib/message/download.d.ts +0 -13
  45. package/dist/lib/message/index.d.ts +0 -3
  46. package/dist/lib/message/loading.d.ts +0 -14
  47. package/dist/lib/utils/image.d.ts +0 -5
  48. package/dist/lib/utils/index.d.ts +0 -3
  49. package/dist/lib/utils/layout.d.ts +0 -8
  50. package/dist/vite/index.d.ts +0 -2
@@ -1,9 +0,0 @@
1
- import { uni } from '@delta-comic/model';
2
- import { Component } from 'vue';
3
- type __VLS_Props = {
4
- icon: Component | uni.image.Image | uni.resource.Resource;
5
- bgColor?: string;
6
- sizeSpacing: number;
7
- };
8
- 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
- export default _default;
@@ -1,55 +0,0 @@
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 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"> & {
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: "next", then: () => void) => void) & ((evt: "retry", 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
- } & {};
@@ -1,18 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
1
- import { default as MarkdownIt, Options } from 'markdown-it';
2
- type __VLS_Props = {
3
- markdown: string;
4
- plugins?: Parameters<MarkdownIt['use']>[];
5
- config?: Options;
6
- env?: object;
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
- plugins: Parameters<MarkdownIt["use"]>[];
10
- config: Options;
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLIFrameElement>;
12
- export default _default;
@@ -1,43 +0,0 @@
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
- closeOnClickOverlay: boolean;
33
- overlay: boolean;
34
- position: import('vant').PopupPosition;
35
- noBorder: boolean;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
- export default _default;
39
- type __VLS_WithTemplateSlots<T, S> = T & {
40
- new (): {
41
- $slots: S;
42
- };
43
- };
@@ -1,34 +0,0 @@
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
- } & {};
@@ -1,23 +0,0 @@
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
- };
@@ -1,42 +0,0 @@
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
- };
@@ -1,23 +0,0 @@
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
- } & {};
@@ -1,54 +0,0 @@
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 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"> & {
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: "next", then: () => void) => void) & ((evt: "col", args_0: 2, args_1: 2) => void) & ((evt: "retry", 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
- } & {};
@@ -1,6 +0,0 @@
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;
@@ -1,40 +0,0 @@
1
- import { Configure, FormRowSlot, Result } 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
- row?<K extends O[number]>(args: FormRowSlot<T, O, K>): any;
18
- top?(args: {
19
- config: T;
20
- }): any;
21
- bottom?(args: {
22
- config: T;
23
- }): any;
24
- }> & {
25
- row?<K extends O[number]>(args: FormRowSlot<T, O, K>): any;
26
- top?(args: {
27
- config: T;
28
- }): any;
29
- bottom?(args: {
30
- config: T;
31
- }): any;
32
- };
33
- emit: (evt: "update:modelValue", value: Result<T>) => void;
34
- }>) => import('vue').VNode & {
35
- __ctx?: Awaited<typeof __VLS_setup>;
36
- };
37
- export default _default;
38
- type __VLS_PrettifyLocal<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
@@ -1,13 +0,0 @@
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;
@@ -1,13 +0,0 @@
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: 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;
@@ -1,13 +0,0 @@
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: string, to: string]) => any;
10
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
- "onUpdate:modelValue"?: ((value: [from: string, to: string]) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
- export default _default;
@@ -1,21 +0,0 @@
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
- } & {};
@@ -1,13 +0,0 @@
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;
@@ -1,19 +0,0 @@
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;
@@ -1,13 +0,0 @@
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;
@@ -1,13 +0,0 @@
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;
@@ -1,13 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- import { FormType } from '..';
2
- export declare const createForm: <T extends FormType.Configure>(configs: T) => {
3
- comp: import("vue/jsx-runtime").JSX.Element;
4
- data: Promise<FormType.Result<T>>;
5
- };
@@ -1,73 +0,0 @@
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['dateRange'];
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: string;
68
- pairs: {
69
- key: string;
70
- value: string;
71
- }[];
72
- dateRange: [from: DefaultValue['date'], to: DefaultValue['date']];
73
- }
@@ -1,16 +0,0 @@
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';
11
- export interface FormRowSlot<T extends Configure, O extends (keyof T)[], K extends O[number]> {
12
- config: T[K];
13
- path: K;
14
- modelValue: SingleResult<T[K]>;
15
- setModelValue(value: SingleResult<T[K]>): void;
16
- }