@zc-ui/components 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/LICENSE +21 -0
- package/dist/index.cjs +1 -0
- package/dist/index.css +1 -0
- package/dist/index.mjs +9299 -0
- package/dist/index.umd.js +2 -0
- package/dist/types/affix/affix.d.ts +37 -0
- package/dist/types/affix/affix.d.ts.map +1 -0
- package/dist/types/alert/alert.d.ts +47 -0
- package/dist/types/alert/alert.d.ts.map +1 -0
- package/dist/types/alert/types.d.ts +31 -0
- package/dist/types/alert/types.d.ts.map +1 -0
- package/dist/types/anchor/anchor-link.d.ts +27 -0
- package/dist/types/anchor/anchor-link.d.ts.map +1 -0
- package/dist/types/anchor/anchor.d.ts +45 -0
- package/dist/types/anchor/anchor.d.ts.map +1 -0
- package/dist/types/auto-complete/auto-complete.d.ts +66 -0
- package/dist/types/auto-complete/auto-complete.d.ts.map +1 -0
- package/dist/types/auto-complete/types.d.ts +10 -0
- package/dist/types/auto-complete/types.d.ts.map +1 -0
- package/dist/types/avatar/avatar.d.ts +34 -0
- package/dist/types/avatar/avatar.d.ts.map +1 -0
- package/dist/types/backtop/backtop.d.ts +48 -0
- package/dist/types/backtop/backtop.d.ts.map +1 -0
- package/dist/types/badge/badge.d.ts +32 -0
- package/dist/types/badge/badge.d.ts.map +1 -0
- package/dist/types/breadcrumb/breadcrumb-item.d.ts +26 -0
- package/dist/types/breadcrumb/breadcrumb-item.d.ts.map +1 -0
- package/dist/types/breadcrumb/breadcrumb.d.ts +25 -0
- package/dist/types/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/types/button/button.d.ts +40 -0
- package/dist/types/button/button.d.ts.map +1 -0
- package/dist/types/card/card.d.ts +37 -0
- package/dist/types/card/card.d.ts.map +1 -0
- package/dist/types/carousel/carousel-item.d.ts +18 -0
- package/dist/types/carousel/carousel-item.d.ts.map +1 -0
- package/dist/types/carousel/carousel.d.ts +44 -0
- package/dist/types/carousel/carousel.d.ts.map +1 -0
- package/dist/types/carousel/types.d.ts +13 -0
- package/dist/types/carousel/types.d.ts.map +1 -0
- package/dist/types/cascader/cascader.d.ts +41 -0
- package/dist/types/cascader/cascader.d.ts.map +1 -0
- package/dist/types/cascader/types.d.ts +28 -0
- package/dist/types/cascader/types.d.ts.map +1 -0
- package/dist/types/checkbox/checkbox-group.d.ts +34 -0
- package/dist/types/checkbox/checkbox-group.d.ts.map +1 -0
- package/dist/types/checkbox/checkbox.d.ts +32 -0
- package/dist/types/checkbox/checkbox.d.ts.map +1 -0
- package/dist/types/col/col.d.ts +51 -0
- package/dist/types/col/col.d.ts.map +1 -0
- package/dist/types/collapse/collapse-item.d.ts +33 -0
- package/dist/types/collapse/collapse-item.d.ts.map +1 -0
- package/dist/types/collapse/collapse.d.ts +32 -0
- package/dist/types/collapse/collapse.d.ts.map +1 -0
- package/dist/types/color-picker/color-picker.d.ts +29 -0
- package/dist/types/color-picker/color-picker.d.ts.map +1 -0
- package/dist/types/color-picker/types.d.ts +23 -0
- package/dist/types/color-picker/types.d.ts.map +1 -0
- package/dist/types/container/aside.d.ts +24 -0
- package/dist/types/container/aside.d.ts.map +1 -0
- package/dist/types/container/container.d.ts +29 -0
- package/dist/types/container/container.d.ts.map +1 -0
- package/dist/types/container/footer.d.ts +24 -0
- package/dist/types/container/footer.d.ts.map +1 -0
- package/dist/types/container/header.d.ts +24 -0
- package/dist/types/container/header.d.ts.map +1 -0
- package/dist/types/container/main.d.ts +21 -0
- package/dist/types/container/main.d.ts.map +1 -0
- package/dist/types/date-picker/date-picker.d.ts +45 -0
- package/dist/types/date-picker/date-picker.d.ts.map +1 -0
- package/dist/types/descriptions/descriptions-item.d.ts +18 -0
- package/dist/types/descriptions/descriptions-item.d.ts.map +1 -0
- package/dist/types/descriptions/descriptions.d.ts +41 -0
- package/dist/types/descriptions/descriptions.d.ts.map +1 -0
- package/dist/types/descriptions/types.d.ts +25 -0
- package/dist/types/descriptions/types.d.ts.map +1 -0
- package/dist/types/dialog/dialog.d.ts +71 -0
- package/dist/types/dialog/dialog.d.ts.map +1 -0
- package/dist/types/dialog/types.d.ts +42 -0
- package/dist/types/dialog/types.d.ts.map +1 -0
- package/dist/types/divider/divider.d.ts +33 -0
- package/dist/types/divider/divider.d.ts.map +1 -0
- package/dist/types/drawer/drawer.d.ts +66 -0
- package/dist/types/drawer/drawer.d.ts.map +1 -0
- package/dist/types/drawer/types.d.ts +41 -0
- package/dist/types/drawer/types.d.ts.map +1 -0
- package/dist/types/dropdown/dropdown-item.d.ts +32 -0
- package/dist/types/dropdown/dropdown-item.d.ts.map +1 -0
- package/dist/types/dropdown/dropdown-menu.d.ts +15 -0
- package/dist/types/dropdown/dropdown-menu.d.ts.map +1 -0
- package/dist/types/dropdown/dropdown.d.ts +59 -0
- package/dist/types/dropdown/dropdown.d.ts.map +1 -0
- package/dist/types/dropdown/types.d.ts +9 -0
- package/dist/types/dropdown/types.d.ts.map +1 -0
- package/dist/types/empty/empty.d.ts +28 -0
- package/dist/types/empty/empty.d.ts.map +1 -0
- package/dist/types/form/form-item.d.ts +44 -0
- package/dist/types/form/form-item.d.ts.map +1 -0
- package/dist/types/form/form.d.ts +47 -0
- package/dist/types/form/form.d.ts.map +1 -0
- package/dist/types/form/types.d.ts +63 -0
- package/dist/types/form/types.d.ts.map +1 -0
- package/dist/types/form/validate.d.ts +14 -0
- package/dist/types/form/validate.d.ts.map +1 -0
- package/dist/types/grid/grid-item.d.ts +35 -0
- package/dist/types/grid/grid-item.d.ts.map +1 -0
- package/dist/types/grid/grid.d.ts +65 -0
- package/dist/types/grid/grid.d.ts.map +1 -0
- package/dist/types/icon/icon.d.ts +37 -0
- package/dist/types/icon/icon.d.ts.map +1 -0
- package/dist/types/image/image-preview.d.ts +22 -0
- package/dist/types/image/image-preview.d.ts.map +1 -0
- package/dist/types/image/image.d.ts +55 -0
- package/dist/types/image/image.d.ts.map +1 -0
- package/dist/types/index.d.ts +6464 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/input/input.d.ts +75 -0
- package/dist/types/input/input.d.ts.map +1 -0
- package/dist/types/input-number/input-number.d.ts +54 -0
- package/dist/types/input-number/input-number.d.ts.map +1 -0
- package/dist/types/input-number/types.d.ts +20 -0
- package/dist/types/input-number/types.d.ts.map +1 -0
- package/dist/types/list/list-item.d.ts +40 -0
- package/dist/types/list/list-item.d.ts.map +1 -0
- package/dist/types/list/list.d.ts +44 -0
- package/dist/types/list/list.d.ts.map +1 -0
- package/dist/types/list/types.d.ts +10 -0
- package/dist/types/list/types.d.ts.map +1 -0
- package/dist/types/loading/loading.d.ts +26 -0
- package/dist/types/loading/loading.d.ts.map +1 -0
- package/dist/types/mention/mention.d.ts +37 -0
- package/dist/types/mention/mention.d.ts.map +1 -0
- package/dist/types/mention/types.d.ts +18 -0
- package/dist/types/mention/types.d.ts.map +1 -0
- package/dist/types/menu/menu-item.d.ts +24 -0
- package/dist/types/menu/menu-item.d.ts.map +1 -0
- package/dist/types/menu/menu.d.ts +48 -0
- package/dist/types/menu/menu.d.ts.map +1 -0
- package/dist/types/menu/submenu.d.ts +36 -0
- package/dist/types/menu/submenu.d.ts.map +1 -0
- package/dist/types/menu/types.d.ts +18 -0
- package/dist/types/menu/types.d.ts.map +1 -0
- package/dist/types/message/message.d.ts +34 -0
- package/dist/types/message/message.d.ts.map +1 -0
- package/dist/types/notification/notification.d.ts +26 -0
- package/dist/types/notification/notification.d.ts.map +1 -0
- package/dist/types/pagination/pagination.d.ts +38 -0
- package/dist/types/pagination/pagination.d.ts.map +1 -0
- package/dist/types/pagination/types.d.ts +29 -0
- package/dist/types/pagination/types.d.ts.map +1 -0
- package/dist/types/popconfirm/popconfirm.d.ts +76 -0
- package/dist/types/popconfirm/popconfirm.d.ts.map +1 -0
- package/dist/types/progress/progress.d.ts +54 -0
- package/dist/types/progress/progress.d.ts.map +1 -0
- package/dist/types/progress/types.d.ts +33 -0
- package/dist/types/progress/types.d.ts.map +1 -0
- package/dist/types/radio/radio-group.d.ts +39 -0
- package/dist/types/radio/radio-group.d.ts.map +1 -0
- package/dist/types/radio/radio.d.ts +30 -0
- package/dist/types/radio/radio.d.ts.map +1 -0
- package/dist/types/rate/rate.d.ts +48 -0
- package/dist/types/rate/rate.d.ts.map +1 -0
- package/dist/types/rate/types.d.ts +18 -0
- package/dist/types/rate/types.d.ts.map +1 -0
- package/dist/types/result/result.d.ts +39 -0
- package/dist/types/result/result.d.ts.map +1 -0
- package/dist/types/row/row.d.ts +55 -0
- package/dist/types/row/row.d.ts.map +1 -0
- package/dist/types/scrollbar/scrollbar.d.ts +34 -0
- package/dist/types/scrollbar/scrollbar.d.ts.map +1 -0
- package/dist/types/select/select.d.ts +63 -0
- package/dist/types/select/select.d.ts.map +1 -0
- package/dist/types/select/types.d.ts +9 -0
- package/dist/types/select/types.d.ts.map +1 -0
- package/dist/types/skeleton/skeleton.d.ts +42 -0
- package/dist/types/skeleton/skeleton.d.ts.map +1 -0
- package/dist/types/slider/slider.d.ts +41 -0
- package/dist/types/slider/slider.d.ts.map +1 -0
- package/dist/types/slider/types.d.ts +10 -0
- package/dist/types/slider/types.d.ts.map +1 -0
- package/dist/types/space/space.d.ts +52 -0
- package/dist/types/space/space.d.ts.map +1 -0
- package/dist/types/statistic/statistic.d.ts +52 -0
- package/dist/types/statistic/statistic.d.ts.map +1 -0
- package/dist/types/steps/step.d.ts +31 -0
- package/dist/types/steps/step.d.ts.map +1 -0
- package/dist/types/steps/steps.d.ts +30 -0
- package/dist/types/steps/steps.d.ts.map +1 -0
- package/dist/types/steps/types.d.ts +22 -0
- package/dist/types/steps/types.d.ts.map +1 -0
- package/dist/types/switch/switch.d.ts +55 -0
- package/dist/types/switch/switch.d.ts.map +1 -0
- package/dist/types/table/table.d.ts +71 -0
- package/dist/types/table/table.d.ts.map +1 -0
- package/dist/types/table/types.d.ts +52 -0
- package/dist/types/table/types.d.ts.map +1 -0
- package/dist/types/tabs/tab-pane.d.ts +33 -0
- package/dist/types/tabs/tab-pane.d.ts.map +1 -0
- package/dist/types/tabs/tabs.d.ts +51 -0
- package/dist/types/tabs/tabs.d.ts.map +1 -0
- package/dist/types/tabs/types.d.ts +44 -0
- package/dist/types/tabs/types.d.ts.map +1 -0
- package/dist/types/tag/tag.d.ts +38 -0
- package/dist/types/tag/tag.d.ts.map +1 -0
- package/dist/types/time-picker/time-picker.d.ts +38 -0
- package/dist/types/time-picker/time-picker.d.ts.map +1 -0
- package/dist/types/timeline/timeline-item.d.ts +37 -0
- package/dist/types/timeline/timeline-item.d.ts.map +1 -0
- package/dist/types/timeline/timeline.d.ts +20 -0
- package/dist/types/timeline/timeline.d.ts.map +1 -0
- package/dist/types/tooltip/tooltip.d.ts +57 -0
- package/dist/types/tooltip/tooltip.d.ts.map +1 -0
- package/dist/types/transfer/transfer.d.ts +31 -0
- package/dist/types/transfer/transfer.d.ts.map +1 -0
- package/dist/types/transfer/types.d.ts +21 -0
- package/dist/types/transfer/types.d.ts.map +1 -0
- package/dist/types/tree/tree-node.d.ts +20 -0
- package/dist/types/tree/tree-node.d.ts.map +1 -0
- package/dist/types/tree/tree.d.ts +101 -0
- package/dist/types/tree/tree.d.ts.map +1 -0
- package/dist/types/tree/types.d.ts +72 -0
- package/dist/types/tree/types.d.ts.map +1 -0
- package/dist/types/tree-select/tree-node.d.ts +65 -0
- package/dist/types/tree-select/tree-node.d.ts.map +1 -0
- package/dist/types/tree-select/tree-select.d.ts +37 -0
- package/dist/types/tree-select/tree-select.d.ts.map +1 -0
- package/dist/types/tree-select/types.d.ts +27 -0
- package/dist/types/tree-select/types.d.ts.map +1 -0
- package/dist/types/types.d.ts +24 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/upload/types.d.ts +25 -0
- package/dist/types/upload/types.d.ts.map +1 -0
- package/dist/types/upload/upload.d.ts +81 -0
- package/dist/types/upload/upload.d.ts.map +1 -0
- package/dist/types/watermark/watermark.d.ts +57 -0
- package/dist/types/watermark/watermark.d.ts.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions-item.vue.d.ts","sourceRoot":"","sources":["../../../src/descriptions/descriptions-item.vue"],"names":[],"mappings":";AA4FA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpC,CAAC;AAwEJ,QAAA,MAAM,YAAY;WA7EN,MAAM;UACP,MAAM;gBAGA,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;oBAFlB,MAAM;sBACJ,MAAM;6EA6E3B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DescriptionsDirection, DescriptionsSize } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
border?: boolean;
|
|
5
|
+
column?: number;
|
|
6
|
+
direction?: DescriptionsDirection;
|
|
7
|
+
size?: DescriptionsSize;
|
|
8
|
+
title?: string;
|
|
9
|
+
extra?: string;
|
|
10
|
+
colon?: boolean;
|
|
11
|
+
labelStyle?: Record<string, string>;
|
|
12
|
+
contentStyle?: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
title?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
extra?: (props: typeof __VLS_3) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: typeof __VLS_5) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
size: DescriptionsSize;
|
|
24
|
+
title: string;
|
|
25
|
+
direction: DescriptionsDirection;
|
|
26
|
+
column: number;
|
|
27
|
+
labelStyle: Record<string, string>;
|
|
28
|
+
extra: string;
|
|
29
|
+
border: boolean;
|
|
30
|
+
colon: boolean;
|
|
31
|
+
contentStyle: Record<string, string>;
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=descriptions.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.vue.d.ts","sourceRoot":"","sources":["../../../src/descriptions/descriptions.vue"],"names":[],"mappings":";AAsOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAuB,MAAM,SAAS,CAAA;AAK3F,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,qBAAqB,CAAA;IACjC,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACtC,CAAC;AAuNJ,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;UAtOL,gBAAgB;WACf,MAAM;eAFF,qBAAqB;YADxB,MAAM;gBAMF,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;WAF3B,MAAM;YALL,OAAO;WAMR,OAAO;kBAEA,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;6EAoOvC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { InjectionKey, ComputedRef, VNode } from 'vue';
|
|
2
|
+
export type DescriptionsDirection = 'horizontal' | 'vertical';
|
|
3
|
+
export type DescriptionsSize = 'large' | 'default' | 'small';
|
|
4
|
+
export interface DescriptionItemData {
|
|
5
|
+
uid: number;
|
|
6
|
+
label: string;
|
|
7
|
+
span: number;
|
|
8
|
+
content?: () => VNode[];
|
|
9
|
+
labelClassName?: string;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
labelStyle?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
export interface DescriptionsContext {
|
|
14
|
+
column: ComputedRef<number>;
|
|
15
|
+
border: ComputedRef<boolean>;
|
|
16
|
+
direction: ComputedRef<DescriptionsDirection>;
|
|
17
|
+
size: ComputedRef<DescriptionsSize>;
|
|
18
|
+
colon: ComputedRef<boolean>;
|
|
19
|
+
labelStyle: ComputedRef<Record<string, string>>;
|
|
20
|
+
contentStyle: ComputedRef<Record<string, string>>;
|
|
21
|
+
addItem: (item: DescriptionItemData) => void;
|
|
22
|
+
removeItem: (uid: number) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const DESCRIPTIONS_KEY: InjectionKey<DescriptionsContext>;
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/descriptions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAE3D,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,UAAU,CAAA;AAC7D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5D,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B,SAAS,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAA;IAC7C,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;IACnC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC/C,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACjD,OAAO,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC5C,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,mBAAmB,CAA4B,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { DialogSize } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Visibility (v-model) */
|
|
5
|
+
modelValue: boolean;
|
|
6
|
+
/** Dialog title */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Dialog width (CSS string or number in px) */
|
|
9
|
+
width?: string | number;
|
|
10
|
+
/** Dialog size preset */
|
|
11
|
+
size?: DialogSize;
|
|
12
|
+
/** Show fullscreen toggle button */
|
|
13
|
+
fullscreen?: boolean;
|
|
14
|
+
/** Enable header drag */
|
|
15
|
+
draggable?: boolean;
|
|
16
|
+
/** Show close button */
|
|
17
|
+
showClose?: boolean;
|
|
18
|
+
/** Center the dialog */
|
|
19
|
+
center?: boolean;
|
|
20
|
+
/** Overlay background */
|
|
21
|
+
overlayClass?: string;
|
|
22
|
+
/** Close on overlay click */
|
|
23
|
+
closeOnClickOverlay?: boolean;
|
|
24
|
+
/** Close on Escape key */
|
|
25
|
+
closeOnEsc?: boolean;
|
|
26
|
+
/** Lock body scroll when open */
|
|
27
|
+
lockScroll?: boolean;
|
|
28
|
+
/** Custom dialog class */
|
|
29
|
+
dialogClass?: string;
|
|
30
|
+
};
|
|
31
|
+
declare var __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
title?: (props: typeof __VLS_19) => any;
|
|
34
|
+
} & {
|
|
35
|
+
default?: (props: typeof __VLS_21) => any;
|
|
36
|
+
} & {
|
|
37
|
+
footer?: (props: typeof __VLS_23) => any;
|
|
38
|
+
};
|
|
39
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
40
|
+
"update:modelValue": (val: boolean) => any;
|
|
41
|
+
open: () => any;
|
|
42
|
+
close: () => any;
|
|
43
|
+
closed: () => any;
|
|
44
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
45
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
46
|
+
onOpen?: (() => any) | undefined;
|
|
47
|
+
onClose?: (() => any) | undefined;
|
|
48
|
+
onClosed?: (() => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
size: DialogSize;
|
|
51
|
+
title: string;
|
|
52
|
+
center: boolean;
|
|
53
|
+
width: string | number;
|
|
54
|
+
draggable: boolean;
|
|
55
|
+
fullscreen: boolean;
|
|
56
|
+
showClose: boolean;
|
|
57
|
+
overlayClass: string;
|
|
58
|
+
closeOnClickOverlay: boolean;
|
|
59
|
+
closeOnEsc: boolean;
|
|
60
|
+
lockScroll: boolean;
|
|
61
|
+
dialogClass: string;
|
|
62
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=dialog.vue.d.ts.map
|
|
@@ -0,0 +1 @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,QAAA,MAAM,UAAU;;;;;;;;;;;UA1aL,UAAU;WAJT,MAAM;YAYL,OAAO;WAVR,MAAM,GAAG,MAAM;eAMX,OAAO;gBAFN,OAAO;eAIR,OAAO;kBAIJ,MAAM;yBAEC,OAAO;gBAEhB,OAAO;gBAEP,OAAO;iBAEN,MAAM;6EA4ZtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZcDialog type definitions
|
|
3
|
+
*/
|
|
4
|
+
/** Dialog size preset */
|
|
5
|
+
export type DialogSize = 'small' | 'medium' | 'large' | 'full';
|
|
6
|
+
/** Dialog props */
|
|
7
|
+
export interface DialogProps {
|
|
8
|
+
/** Visibility (v-model) */
|
|
9
|
+
modelValue: boolean;
|
|
10
|
+
/** Dialog title */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Dialog width (CSS string or number in px) */
|
|
13
|
+
width?: string | number;
|
|
14
|
+
/** Dialog size preset */
|
|
15
|
+
size?: DialogSize;
|
|
16
|
+
/** Show fullscreen toggle button */
|
|
17
|
+
fullscreen?: boolean;
|
|
18
|
+
/** Enable header drag */
|
|
19
|
+
draggable?: boolean;
|
|
20
|
+
/** Show close button */
|
|
21
|
+
showClose?: boolean;
|
|
22
|
+
/** Center the dialog */
|
|
23
|
+
center?: boolean;
|
|
24
|
+
/** Overlay background */
|
|
25
|
+
overlayClass?: string;
|
|
26
|
+
/** Close on overlay click */
|
|
27
|
+
closeOnClickOverlay?: boolean;
|
|
28
|
+
/** Close on Escape key */
|
|
29
|
+
closeOnEsc?: boolean;
|
|
30
|
+
/** Lock body scroll when open */
|
|
31
|
+
lockScroll?: boolean;
|
|
32
|
+
/** Custom dialog class */
|
|
33
|
+
dialogClass?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Dialog emit events */
|
|
36
|
+
export interface DialogEmits {
|
|
37
|
+
(e: 'update:modelValue', val: boolean): void;
|
|
38
|
+
(e: 'open'): void;
|
|
39
|
+
(e: 'close'): void;
|
|
40
|
+
(e: 'closed'): void;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dialog/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,yBAAyB;AACzB,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAE9D,mBAAmB;AACnB,MAAM,WAAW,WAAW;IAC1B,2BAA2B;IAC3B,UAAU,EAAE,OAAO,CAAA;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,yBAAyB;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wBAAwB;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,yBAAyB;AACzB,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5C,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjB,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAClB,CAAC,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;CACpB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export type DividerDirection = 'horizontal' | 'vertical';
|
|
3
|
+
export type DividerContentPosition = 'left' | 'center' | 'right';
|
|
4
|
+
export type DividerBorderStyle = 'solid' | 'dashed' | 'dotted' | 'double';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** Divider direction */
|
|
7
|
+
direction?: DividerDirection;
|
|
8
|
+
/** Text alignment (horizontal only) */
|
|
9
|
+
contentPosition?: DividerContentPosition;
|
|
10
|
+
/** Border style */
|
|
11
|
+
borderStyle?: DividerBorderStyle;
|
|
12
|
+
/** Shortcut for dashed border */
|
|
13
|
+
dashed?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare var __VLS_1: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_1) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
direction: DividerDirection;
|
|
21
|
+
dashed: boolean;
|
|
22
|
+
contentPosition: DividerContentPosition;
|
|
23
|
+
borderStyle: DividerBorderStyle;
|
|
24
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=divider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.vue.d.ts","sourceRoot":"","sources":["../../../src/divider/divider.vue"],"names":[],"mappings":";AAiKA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAA;AACxD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEzE,KAAK,WAAW,GAAG;IACf,wBAAwB;IACxB,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B,uCAAuC;IACvC,eAAe,CAAC,EAAE,sBAAsB,CAAA;IACxC,mBAAmB;IACnB,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,iCAAiC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAsHJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;eApIA,gBAAgB;YAMnB,OAAO;qBAJE,sBAAsB;iBAE1B,kBAAkB;6EAmIlC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { DrawerDirection } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Visibility (v-model) */
|
|
5
|
+
modelValue: boolean;
|
|
6
|
+
/** Drawer title */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Drawer direction: rtl(right)|ltr(left)|ttb(top)|btt(bottom) */
|
|
9
|
+
direction?: DrawerDirection;
|
|
10
|
+
/** Drawer size (width for ltr/rtl, height for ttb/btt) */
|
|
11
|
+
size?: string | number;
|
|
12
|
+
/** Show close button */
|
|
13
|
+
showClose?: boolean;
|
|
14
|
+
/** Close on overlay click */
|
|
15
|
+
closeOnClickOverlay?: boolean;
|
|
16
|
+
/** Close on Escape key */
|
|
17
|
+
closeOnEsc?: boolean;
|
|
18
|
+
/** Lock body scroll when open */
|
|
19
|
+
lockScroll?: boolean;
|
|
20
|
+
/** Enable drag to resize */
|
|
21
|
+
resizable?: boolean;
|
|
22
|
+
/** Min size when dragging */
|
|
23
|
+
minSize?: number;
|
|
24
|
+
/** Max size when dragging */
|
|
25
|
+
maxSize?: number;
|
|
26
|
+
/** Custom drawer class */
|
|
27
|
+
drawerClass?: string;
|
|
28
|
+
};
|
|
29
|
+
declare var __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
|
|
30
|
+
type __VLS_Slots = {} & {
|
|
31
|
+
title?: (props: typeof __VLS_19) => any;
|
|
32
|
+
} & {
|
|
33
|
+
default?: (props: typeof __VLS_21) => any;
|
|
34
|
+
} & {
|
|
35
|
+
footer?: (props: typeof __VLS_23) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
38
|
+
"update:modelValue": (val: boolean) => any;
|
|
39
|
+
open: () => any;
|
|
40
|
+
close: () => any;
|
|
41
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
43
|
+
onOpen?: (() => any) | undefined;
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
size: string | number;
|
|
47
|
+
title: string;
|
|
48
|
+
direction: DrawerDirection;
|
|
49
|
+
showClose: boolean;
|
|
50
|
+
closeOnClickOverlay: boolean;
|
|
51
|
+
closeOnEsc: boolean;
|
|
52
|
+
lockScroll: boolean;
|
|
53
|
+
resizable: boolean;
|
|
54
|
+
minSize: number;
|
|
55
|
+
maxSize: number;
|
|
56
|
+
drawerClass: string;
|
|
57
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=drawer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.vue.d.ts","sourceRoot":"","sources":["../../../src/drawer/drawer.vue"],"names":[],"mappings":";AAgeA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACf,2BAA2B;IAC3B,UAAU,EAAE,OAAO,CAAA;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IAC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
|
+
* ZcDrawer type definitions
|
|
3
|
+
*/
|
|
4
|
+
/** Drawer open direction */
|
|
5
|
+
export type DrawerDirection = 'rtl' | 'ltr' | 'ttb' | 'btt';
|
|
6
|
+
/** Drawer props */
|
|
7
|
+
export interface DrawerProps {
|
|
8
|
+
/** Visibility (v-model) */
|
|
9
|
+
modelValue: boolean;
|
|
10
|
+
/** Drawer title */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Drawer direction: rtl(right)|ltr(left)|ttb(top)|btt(bottom) */
|
|
13
|
+
direction?: DrawerDirection;
|
|
14
|
+
/** Drawer size (width for ltr/rtl, height for ttb/btt) */
|
|
15
|
+
size?: string | number;
|
|
16
|
+
/** Show close button */
|
|
17
|
+
showClose?: boolean;
|
|
18
|
+
/** Close on overlay click */
|
|
19
|
+
closeOnClickOverlay?: boolean;
|
|
20
|
+
/** Close on Escape key */
|
|
21
|
+
closeOnEsc?: boolean;
|
|
22
|
+
/** Lock body scroll when open */
|
|
23
|
+
lockScroll?: boolean;
|
|
24
|
+
/** Enable drag to resize */
|
|
25
|
+
resizable?: boolean;
|
|
26
|
+
/** Min size when dragging */
|
|
27
|
+
minSize?: number;
|
|
28
|
+
/** Max size when dragging */
|
|
29
|
+
maxSize?: number;
|
|
30
|
+
/** Custom drawer class */
|
|
31
|
+
drawerClass?: string;
|
|
32
|
+
/** Show footer */
|
|
33
|
+
withFooter?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** Drawer emit events */
|
|
36
|
+
export interface DrawerEmits {
|
|
37
|
+
(e: 'update:modelValue', val: boolean): void;
|
|
38
|
+
(e: 'open'): void;
|
|
39
|
+
(e: 'close'): void;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/drawer/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,4BAA4B;AAC5B,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;AAE3D,mBAAmB;AACnB,MAAM,WAAW,WAAW;IAC1B,2BAA2B;IAC3B,UAAU,EAAE,OAAO,CAAA;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,6BAA6B;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,yBAAyB;AACzB,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5C,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjB,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CACnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Command value emitted on click */
|
|
4
|
+
command?: string | number | object;
|
|
5
|
+
/** Disable the item */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** Show a divider line */
|
|
8
|
+
divided?: boolean;
|
|
9
|
+
/** Show an icon (slot) */
|
|
10
|
+
icon?: string;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
default?: (props: typeof __VLS_3) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
icon: string;
|
|
21
|
+
command: string | number | object;
|
|
22
|
+
divided: boolean;
|
|
23
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=dropdown-item.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-item.vue.d.ts","sourceRoot":"","sources":["../../../src/dropdown/dropdown-item.vue"],"names":[],"mappings":";AAqHA,KAAK,WAAW,GAAG;IACf,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;IAClC,uBAAuB;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;AAkFJ,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;cA/FD,OAAO;UAIX,MAAM;aANH,MAAM,GAAG,MAAM,GAAG,MAAM;aAIxB,OAAO;6EAgGnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=dropdown-menu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.vue.d.ts","sourceRoot":"","sources":["../../../src/dropdown/dropdown-menu.vue"],"names":[],"mappings":";AAqDA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { DropdownTrigger, DropdownPlacement } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Trigger method */
|
|
5
|
+
trigger?: DropdownTrigger;
|
|
6
|
+
/** Visibility (v-model) */
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/** Placement relative to trigger */
|
|
9
|
+
placement?: DropdownPlacement;
|
|
10
|
+
/** Disable the dropdown */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Show/hide delay (ms) */
|
|
13
|
+
showTimeout?: number;
|
|
14
|
+
hideTimeout?: number;
|
|
15
|
+
/** Custom popper class */
|
|
16
|
+
popperClass?: string;
|
|
17
|
+
/** Hide on click outside */
|
|
18
|
+
hideOnClick?: boolean;
|
|
19
|
+
/** Maximum height of the dropdown menu */
|
|
20
|
+
maxHeight?: string;
|
|
21
|
+
};
|
|
22
|
+
declare var __VLS_1: {}, __VLS_15: {};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
default?: (props: typeof __VLS_1) => any;
|
|
25
|
+
} & {
|
|
26
|
+
dropdown?: (props: typeof __VLS_15) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
29
|
+
click: (event: MouseEvent) => any;
|
|
30
|
+
"update:visible": (val: boolean) => any;
|
|
31
|
+
show: () => any;
|
|
32
|
+
hide: () => any;
|
|
33
|
+
command: (command: string | number | object) => any;
|
|
34
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
36
|
+
"onUpdate:visible"?: ((val: boolean) => any) | undefined;
|
|
37
|
+
onShow?: (() => any) | undefined;
|
|
38
|
+
onHide?: (() => any) | undefined;
|
|
39
|
+
onCommand?: ((command: string | number | object) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
visible: boolean;
|
|
43
|
+
placement: DropdownPlacement;
|
|
44
|
+
trigger: DropdownTrigger;
|
|
45
|
+
popperClass: string;
|
|
46
|
+
showTimeout: number;
|
|
47
|
+
hideTimeout: number;
|
|
48
|
+
hideOnClick: boolean;
|
|
49
|
+
maxHeight: string;
|
|
50
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=dropdown.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/dropdown/dropdown.vue"],"names":[],"mappings":";AAwQA,OAAO,KAAK,EAA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@@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export type DropdownTrigger = 'hover' | 'click' | 'contextmenu';
|
|
3
|
+
export type DropdownPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
4
|
+
export interface DropdownContext {
|
|
5
|
+
handleCommand: (command: string | number | object) => void;
|
|
6
|
+
hide: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const DROPDOWN_KEY: InjectionKey<DropdownContext>;
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAA;AAC/D,MAAM,MAAM,iBAAiB,GACzB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAA;AAEf,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,KAAK,IAAI,CAAA;IAC1D,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,eAAe,CAAwB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
description?: string;
|
|
4
|
+
image?: string;
|
|
5
|
+
imageSize?: number;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
image?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
description?: (props: typeof __VLS_3) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_5) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
image: string;
|
|
17
|
+
description: string;
|
|
18
|
+
imageSize: number;
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=empty.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.vue.d.ts","sourceRoot":"","sources":["../../../src/empty/empty.vue"],"names":[],"mappings":";AAoJA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAsIJ,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAChD;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;WAjJJ,MAAM;iBADA,MAAM;eAER,MAAM;6EAmJpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { FormItemRule, FormItemValidationResult } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Field path in the form model (e.g. "user.name"). */
|
|
5
|
+
prop?: string;
|
|
6
|
+
/** Label text. */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Width override for this item's label. */
|
|
9
|
+
labelWidth?: string | number;
|
|
10
|
+
/** Custom validation rules (merged with form-level rules). */
|
|
11
|
+
rules?: FormItemRule | FormItemRule[];
|
|
12
|
+
/** Whether to show error message. */
|
|
13
|
+
showMessage?: boolean;
|
|
14
|
+
/** Required indicator (auto-detected from rules if not set). */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare function validate(trigger?: 'blur' | 'change'): Promise<FormItemValidationResult>;
|
|
18
|
+
declare function clearValidate(): void;
|
|
19
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {
|
|
20
|
+
error: string;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
label?: (props: typeof __VLS_1) => any;
|
|
24
|
+
} & {
|
|
25
|
+
default?: (props: typeof __VLS_3) => any;
|
|
26
|
+
} & {
|
|
27
|
+
error?: (props: typeof __VLS_11) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
30
|
+
validate: typeof validate;
|
|
31
|
+
clearValidate: typeof clearValidate;
|
|
32
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
33
|
+
showMessage: boolean;
|
|
34
|
+
required: boolean;
|
|
35
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=form-item.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-item.vue.d.ts","sourceRoot":"","sources":["../../../src/form/form-item.vue"],"names":[],"mappings":";AA6SA,OAAO,EAGL,KAAK,YAAY,EAEjB,KAAK,wBAAwB,EAC9B,MAAM,SAAS,CAAA;AAKhB,KAAK,WAAW,GAAG;IACf,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACrC,qCAAqC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA2EJ,iBAAe,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAsBtF;AAED,iBAAS,aAAa,SAGrB;AA4JD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ;;CAAY,CAAE;AAChE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;iBA9QE,OAAO;cAEV,OAAO;6EAgRpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FormLabelPosition, FormRules } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
model: Record<string, unknown>;
|
|
5
|
+
rules?: FormRules;
|
|
6
|
+
labelWidth?: string | number;
|
|
7
|
+
labelPosition?: FormLabelPosition;
|
|
8
|
+
showMessage?: boolean;
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** Validate all registered fields. Returns true if all pass. */
|
|
12
|
+
declare function validate(): Promise<boolean>;
|
|
13
|
+
/** Validate a specific field. */
|
|
14
|
+
declare function validateFieldByName(name: string): Promise<boolean>;
|
|
15
|
+
/** Reset all fields: restore initial model values and clear validation. */
|
|
16
|
+
declare function resetFields(): void;
|
|
17
|
+
/** Clear validation messages for all fields. */
|
|
18
|
+
declare function clearValidate(): Promise<void>;
|
|
19
|
+
declare var __VLS_1: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
default?: (props: typeof __VLS_1) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
24
|
+
validate: typeof validate;
|
|
25
|
+
validateField: typeof validateFieldByName;
|
|
26
|
+
resetFields: typeof resetFields;
|
|
27
|
+
clearValidate: typeof clearValidate;
|
|
28
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
29
|
+
validate: (prop: string, success: boolean, message: string) => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onValidate?: ((prop: string, success: boolean, message: string) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
inline: boolean;
|
|
34
|
+
rules: FormRules;
|
|
35
|
+
labelWidth: string | number;
|
|
36
|
+
labelPosition: FormLabelPosition;
|
|
37
|
+
showMessage: boolean;
|
|
38
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=form.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.vue.d.ts","sourceRoot":"","sources":["../../../src/form/form.vue"],"names":[],"mappings":";AA2KA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAEf,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG;IACf,KA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