@tplc/wot 0.0.1 → 0.1.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.
- package/CHANGELOG.md +5 -0
- package/components/composables/useParent.ts +1 -1
- package/components/wd-table/types.ts +1 -1
- package/components/wd-table-col/wd-table-col.vue +1 -1
- package/global.d.ts +91 -102
- package/package.json +10 -1
- package/tsconfig.dts.json +9 -0
- package/types/components/common/AbortablePromise.d.ts +8 -0
- package/types/components/common/base64.d.ts +1 -0
- package/types/components/common/canvasHelper.d.ts +6 -0
- package/types/components/common/clickoutside.d.ts +4 -0
- package/types/components/common/dayjs.d.ts +26 -0
- package/types/components/common/props.d.ts +47 -0
- package/types/components/common/util.d.ts +263 -0
- package/types/components/composables/useCell.d.ts +3 -0
- package/types/components/composables/useChildren.d.ts +9 -0
- package/types/components/composables/useCountDown.d.ts +20 -0
- package/types/components/composables/useLockScroll.d.ts +5 -0
- package/types/components/composables/useParent.d.ts +15 -0
- package/types/components/composables/usePopover.d.ts +9 -0
- package/types/components/composables/useQueue.d.ts +13 -0
- package/types/components/composables/useRaf.d.ts +6 -0
- package/types/components/composables/useTouch.d.ts +11 -0
- package/types/components/composables/useTranslate.d.ts +3 -0
- package/types/components/wd-action-sheet/types.d.ts +145 -0
- package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +145 -0
- package/types/components/wd-backtop/types.d.ts +66 -0
- package/types/components/wd-backtop/wd-backtop.vue.d.ts +101 -0
- package/types/components/wd-badge/types.d.ts +53 -0
- package/types/components/wd-badge/wd-badge.vue.d.ts +71 -0
- package/types/components/wd-button/types.d.ts +125 -0
- package/types/components/wd-button/wd-button.vue.d.ts +157 -0
- package/types/components/wd-calendar/types.d.ts +283 -0
- package/types/components/wd-calendar/wd-calendar.vue.d.ts +324 -0
- package/types/components/wd-calendar-view/month/month.vue.d.ts +79 -0
- package/types/components/wd-calendar-view/month/types.d.ts +38 -0
- package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +113 -0
- package/types/components/wd-calendar-view/monthPanel/types.d.ts +70 -0
- package/types/components/wd-calendar-view/types.d.ts +131 -0
- package/types/components/wd-calendar-view/utils.d.ts +121 -0
- package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +141 -0
- package/types/components/wd-calendar-view/year/types.d.ts +34 -0
- package/types/components/wd-calendar-view/year/year.vue.d.ts +71 -0
- package/types/components/wd-calendar-view/yearPanel/types.d.ts +53 -0
- package/types/components/wd-calendar-view/yearPanel/year-panel.vue.d.ts +81 -0
- package/types/components/wd-card/types.d.ts +42 -0
- package/types/components/wd-card/wd-card.vue.d.ts +63 -0
- package/types/components/wd-cell/types.d.ts +129 -0
- package/types/components/wd-cell/wd-cell.vue.d.ts +163 -0
- package/types/components/wd-cell-group/types.d.ts +40 -0
- package/types/components/wd-cell-group/wd-cell-group.vue.d.ts +54 -0
- package/types/components/wd-checkbox/types.d.ts +75 -0
- package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +106 -0
- package/types/components/wd-checkbox-group/types.d.ts +78 -0
- package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +103 -0
- package/types/components/wd-circle/types.d.ts +77 -0
- package/types/components/wd-circle/wd-circle.vue.d.ts +106 -0
- package/types/components/wd-col/types.d.ts +26 -0
- package/types/components/wd-col/wd-col.vue.d.ts +48 -0
- package/types/components/wd-col-picker/types.d.ts +226 -0
- package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +269 -0
- package/types/components/wd-collapse/types.d.ts +70 -0
- package/types/components/wd-collapse/wd-collapse.vue.d.ts +92 -0
- package/types/components/wd-collapse-item/types.d.ts +46 -0
- package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +65 -0
- package/types/components/wd-config-provider/types.d.ts +874 -0
- package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +48 -0
- package/types/components/wd-count-down/types.d.ts +55 -0
- package/types/components/wd-count-down/utils.d.ts +8 -0
- package/types/components/wd-count-down/wd-count-down.vue.d.ts +77 -0
- package/types/components/wd-count-to/types.d.ts +125 -0
- package/types/components/wd-count-to/wd-count-to.vue.d.ts +154 -0
- package/types/components/wd-curtain/types.d.ts +53 -0
- package/types/components/wd-curtain/wd-curtain.vue.d.ts +91 -0
- package/types/components/wd-datetime-picker/types.d.ts +297 -0
- package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +354 -0
- package/types/components/wd-datetime-picker-view/types.d.ts +148 -0
- package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +184 -0
- package/types/components/wd-divider/types.d.ts +19 -0
- package/types/components/wd-divider/wd-divider.vue.d.ts +39 -0
- package/types/components/wd-drop-menu/types.d.ts +54 -0
- package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +75 -0
- package/types/components/wd-drop-menu-item/types.d.ts +106 -0
- package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +145 -0
- package/types/components/wd-fab/types.d.ts +88 -0
- package/types/components/wd-fab/wd-fab.vue.d.ts +127 -0
- package/types/components/wd-form/types.d.ts +79 -0
- package/types/components/wd-form/wd-form.vue.d.ts +72 -0
- package/types/components/wd-form-item/types.d.ts +32 -0
- package/types/components/wd-form-item/wd-form-item.vue.d.ts +73 -0
- package/types/components/wd-gap/types.d.ts +31 -0
- package/types/components/wd-gap/wd-gap.vue.d.ts +50 -0
- package/types/components/wd-grid/types.d.ts +59 -0
- package/types/components/wd-grid/wd-grid.vue.d.ts +70 -0
- package/types/components/wd-grid-item/types.d.ts +101 -0
- package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +134 -0
- package/types/components/wd-icon/types.d.ts +32 -0
- package/types/components/wd-icon/wd-icon.vue.d.ts +50 -0
- package/types/components/wd-img/types.d.ts +59 -0
- package/types/components/wd-img/wd-img.vue.d.ts +92 -0
- package/types/components/wd-img-cropper/types.d.ts +101 -0
- package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +124 -0
- package/types/components/wd-index-anchor/type.d.ts +16 -0
- package/types/components/wd-index-anchor/wd-index-anchor.vue.d.ts +40 -0
- package/types/components/wd-index-bar/type.d.ts +26 -0
- package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +23 -0
- package/types/components/wd-input/types.d.ts +271 -0
- package/types/components/wd-input/wd-input.vue.d.ts +369 -0
- package/types/components/wd-input-number/types.d.ts +108 -0
- package/types/components/wd-input-number/wd-input-number.vue.d.ts +158 -0
- package/types/components/wd-loading/types.d.ts +34 -0
- package/types/components/wd-loading/wd-loading.vue.d.ts +50 -0
- package/types/components/wd-loadmore/types.d.ts +31 -0
- package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +43 -0
- package/types/components/wd-message-box/index.d.ts +9 -0
- package/types/components/wd-message-box/types.d.ts +99 -0
- package/types/components/wd-message-box/wd-message-box.vue.d.ts +32 -0
- package/types/components/wd-navbar/types.d.ts +80 -0
- package/types/components/wd-navbar/wd-navbar.vue.d.ts +117 -0
- package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +8 -0
- package/types/components/wd-notice-bar/types.d.ts +81 -0
- package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +118 -0
- package/types/components/wd-notify/index.d.ts +8 -0
- package/types/components/wd-notify/types.d.ts +87 -0
- package/types/components/wd-notify/wd-notify.vue.d.ts +105 -0
- package/types/components/wd-number-keyboard/key/index.vue.d.ts +54 -0
- package/types/components/wd-number-keyboard/key/types.d.ts +23 -0
- package/types/components/wd-number-keyboard/types.d.ts +118 -0
- package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +158 -0
- package/types/components/wd-overlay/types.d.ts +39 -0
- package/types/components/wd-overlay/wd-overlay.vue.d.ts +70 -0
- package/types/components/wd-pagination/types.d.ts +67 -0
- package/types/components/wd-pagination/wd-pagination.vue.d.ts +95 -0
- package/types/components/wd-password-input/types.d.ts +59 -0
- package/types/components/wd-password-input/wd-password-input.vue.d.ts +90 -0
- package/types/components/wd-picker/types.d.ts +234 -0
- package/types/components/wd-picker/wd-picker.vue.d.ts +276 -0
- package/types/components/wd-picker-view/types.d.ts +100 -0
- package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +119 -0
- package/types/components/wd-popover/types.d.ts +86 -0
- package/types/components/wd-popover/wd-popover.vue.d.ts +138 -0
- package/types/components/wd-popup/types.d.ts +96 -0
- package/types/components/wd-popup/wd-popup.vue.d.ts +160 -0
- package/types/components/wd-progress/types.d.ts +44 -0
- package/types/components/wd-progress/wd-progress.vue.d.ts +61 -0
- package/types/components/wd-radio/types.d.ts +40 -0
- package/types/components/wd-radio/wd-radio.vue.d.ts +73 -0
- package/types/components/wd-radio-group/types.d.ts +54 -0
- package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +85 -0
- package/types/components/wd-rate/types.d.ts +110 -0
- package/types/components/wd-rate/wd-rate.vue.d.ts +128 -0
- package/types/components/wd-resize/types.d.ts +14 -0
- package/types/components/wd-resize/wd-resize.vue.d.ts +43 -0
- package/types/components/wd-row/types.d.ts +24 -0
- package/types/components/wd-row/wd-row.vue.d.ts +39 -0
- package/types/components/wd-search/types.d.ts +104 -0
- package/types/components/wd-search/wd-search.vue.d.ts +132 -0
- package/types/components/wd-segmented/types.d.ts +69 -0
- package/types/components/wd-segmented/wd-segmented.vue.d.ts +87 -0
- package/types/components/wd-select-picker/types.d.ts +180 -0
- package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +316 -0
- package/types/components/wd-sidebar/types.d.ts +24 -0
- package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +45 -0
- package/types/components/wd-sidebar-item/types.d.ts +44 -0
- package/types/components/wd-sidebar-item/wd-sidebar-item.vue.d.ts +80 -0
- package/types/components/wd-skeleton/types.d.ts +72 -0
- package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +68 -0
- package/types/components/wd-slider/types.d.ts +117 -0
- package/types/components/wd-slider/wd-slider.vue.d.ts +134 -0
- package/types/components/wd-sort-button/types.d.ts +58 -0
- package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +74 -0
- package/types/components/wd-status-tip/types.d.ts +60 -0
- package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +59 -0
- package/types/components/wd-step/types.d.ts +33 -0
- package/types/components/wd-step/wd-step.vue.d.ts +40 -0
- package/types/components/wd-steps/types.d.ts +59 -0
- package/types/components/wd-steps/wd-steps.vue.d.ts +68 -0
- package/types/components/wd-sticky/types.d.ts +24 -0
- package/types/components/wd-sticky/wd-sticky.vue.d.ts +59 -0
- package/types/components/wd-sticky-box/types.d.ts +9 -0
- package/types/components/wd-sticky-box/wd-sticky-box.vue.d.ts +30 -0
- package/types/components/wd-swipe-action/types.d.ts +42 -0
- package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +61 -0
- package/types/components/wd-swiper/types.d.ts +213 -0
- package/types/components/wd-swiper/wd-swiper.vue.d.ts +236 -0
- package/types/components/wd-swiper-nav/types.d.ts +66 -0
- package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +90 -0
- package/types/components/wd-switch/types.d.ts +65 -0
- package/types/components/wd-switch/wd-switch.vue.d.ts +82 -0
- package/types/components/wd-tab/types.d.ts +27 -0
- package/types/components/wd-tab/wd-tab.vue.d.ts +46 -0
- package/types/components/wd-tabbar/types.d.ts +87 -0
- package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +103 -0
- package/types/components/wd-tabbar-item/types.d.ts +53 -0
- package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +61 -0
- package/types/components/wd-table/types.d.ts +95 -0
- package/types/components/wd-table/wd-table.vue.d.ts +138 -0
- package/types/components/wd-table-col/types.d.ts +58 -0
- package/types/components/wd-table-col/wd-table-col.vue.d.ts +70 -0
- package/types/components/wd-tabs/types.d.ts +96 -0
- package/types/components/wd-tabs/wd-tabs.vue.d.ts +139 -0
- package/types/components/wd-tag/types.d.ts +104 -0
- package/types/components/wd-tag/wd-tag.vue.d.ts +130 -0
- package/types/components/wd-text/types.d.ts +128 -0
- package/types/components/wd-text/wd-text.vue.d.ts +131 -0
- package/types/components/wd-textarea/types.d.ts +363 -0
- package/types/components/wd-textarea/wd-textarea.vue.d.ts +390 -0
- package/types/components/wd-toast/index.d.ts +15 -0
- package/types/components/wd-toast/types.d.ts +62 -0
- package/types/components/wd-toast/wd-toast.vue.d.ts +32 -0
- package/types/components/wd-tooltip/types.d.ts +106 -0
- package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +133 -0
- package/types/components/wd-transition/types.d.ts +98 -0
- package/types/components/wd-transition/wd-transition.vue.d.ts +136 -0
- package/types/components/wd-upload/types.d.ts +396 -0
- package/types/components/wd-upload/utils.d.ts +2 -0
- package/types/components/wd-upload/wd-upload.vue.d.ts +283 -0
- package/types/components/wd-video-preview/types.d.ts +22 -0
- package/types/components/wd-video-preview/wd-video-preview.vue.d.ts +27 -0
- package/types/components/wd-watermark/types.d.ts +131 -0
- package/types/components/wd-watermark/wd-watermark.vue.d.ts +176 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/lang/zh-CN.d.ts +128 -0
- package/components/wot-design-uni/wot-design-uni.vue +0 -14
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VNode, type InjectionKey, type VNodeNormalizedChildren, type ComponentPublicInstance, type ComponentInternalInstance } from 'vue';
|
|
2
|
+
export declare function flattenVNodes(children: VNodeNormalizedChildren): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>[];
|
|
5
|
+
export declare function sortChildren(parent: ComponentInternalInstance, publicChildren: ComponentPublicInstance[], internalChildren: ComponentInternalInstance[]): void;
|
|
6
|
+
export declare function useChildren<Child extends ComponentPublicInstance = ComponentPublicInstance<{}, any>, ProvideValue = never>(key: InjectionKey<ProvideValue>): {
|
|
7
|
+
children: Child[];
|
|
8
|
+
linkChildren: (value?: ProvideValue) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type CurrentTime = {
|
|
2
|
+
days: number;
|
|
3
|
+
hours: number;
|
|
4
|
+
total: number;
|
|
5
|
+
minutes: number;
|
|
6
|
+
seconds: number;
|
|
7
|
+
milliseconds: number;
|
|
8
|
+
};
|
|
9
|
+
export type UseCountDownOptions = {
|
|
10
|
+
time: number;
|
|
11
|
+
millisecond?: boolean;
|
|
12
|
+
onChange?: (current: CurrentTime) => void;
|
|
13
|
+
onFinish?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function useCountDown(options: UseCountDownOptions): {
|
|
16
|
+
start: () => void;
|
|
17
|
+
pause: () => void;
|
|
18
|
+
reset: (totalTime?: number) => void;
|
|
19
|
+
current: import("vue").ComputedRef<CurrentTime>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type InjectionKey, type ComponentPublicInstance, type ComponentInternalInstance } from 'vue';
|
|
2
|
+
type ParentProvide<T> = T & {
|
|
3
|
+
link(child: ComponentInternalInstance): void;
|
|
4
|
+
unlink(child: ComponentInternalInstance): void;
|
|
5
|
+
children: ComponentPublicInstance[];
|
|
6
|
+
internalChildren: ComponentInternalInstance[];
|
|
7
|
+
};
|
|
8
|
+
export declare function useParent<T>(key: InjectionKey<ParentProvide<T>>): {
|
|
9
|
+
parent: ParentProvide<T>;
|
|
10
|
+
index: import("vue").ComputedRef<number>;
|
|
11
|
+
} | {
|
|
12
|
+
parent: any;
|
|
13
|
+
index: import("vue").Ref<number>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function usePopover(): {
|
|
2
|
+
popStyle: import("vue").Ref<string>;
|
|
3
|
+
arrowStyle: import("vue").Ref<string>;
|
|
4
|
+
showStyle: import("vue").Ref<string>;
|
|
5
|
+
arrowClass: import("vue").Ref<string>;
|
|
6
|
+
init: (placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end", visibleArrow: boolean, selector: string) => void;
|
|
7
|
+
control: (placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end", offset: number) => void;
|
|
8
|
+
noop: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export declare const queueKey = "__QUEUE_KEY__";
|
|
3
|
+
export interface Queue {
|
|
4
|
+
queue: Ref<any[]>;
|
|
5
|
+
pushToQueue: (comp: any) => void;
|
|
6
|
+
removeFromQueue: (comp: any) => void;
|
|
7
|
+
closeOther: (comp: any) => void;
|
|
8
|
+
closeOutside: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useQueue(): {
|
|
11
|
+
closeOther: (comp: any) => void;
|
|
12
|
+
closeOutside: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function useTouch(): {
|
|
2
|
+
touchStart: (event: any) => void;
|
|
3
|
+
touchMove: (event: any) => void;
|
|
4
|
+
direction: import("vue").Ref<string>;
|
|
5
|
+
deltaX: import("vue").Ref<number>;
|
|
6
|
+
deltaY: import("vue").Ref<number>;
|
|
7
|
+
offsetX: import("vue").Ref<number>;
|
|
8
|
+
offsetY: import("vue").Ref<number>;
|
|
9
|
+
startX: import("vue").Ref<number>;
|
|
10
|
+
startY: import("vue").Ref<number>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export type Action = {
|
|
3
|
+
/**
|
|
4
|
+
* 选项名称
|
|
5
|
+
*/
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* 描述信息
|
|
9
|
+
*/
|
|
10
|
+
subname: string;
|
|
11
|
+
/**
|
|
12
|
+
* 颜色
|
|
13
|
+
*/
|
|
14
|
+
color: string;
|
|
15
|
+
/**
|
|
16
|
+
* 禁用
|
|
17
|
+
*/
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 加载中状态
|
|
21
|
+
*/
|
|
22
|
+
loading: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type Panel = {
|
|
25
|
+
/**
|
|
26
|
+
* 图片地址
|
|
27
|
+
*/
|
|
28
|
+
iconUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* 标题内容
|
|
31
|
+
*/
|
|
32
|
+
title: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const actionSheetProps: {
|
|
35
|
+
/**
|
|
36
|
+
* header 头部样式
|
|
37
|
+
* @default ''
|
|
38
|
+
* @type {string}
|
|
39
|
+
*/
|
|
40
|
+
customHeaderClass: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 设置菜单显示隐藏
|
|
46
|
+
* @default false
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
*/
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
required: true;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 菜单选项
|
|
56
|
+
* @default []
|
|
57
|
+
* @type {Action[]}
|
|
58
|
+
*/
|
|
59
|
+
actions: {
|
|
60
|
+
type: import("vue").PropType<Action[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 自定义面板项,可以为字符串数组,也可以为对象数组,如果为二维数组,则为多行展示
|
|
65
|
+
* @default []
|
|
66
|
+
* @type {Array<Panel | Panel[]>}
|
|
67
|
+
*/
|
|
68
|
+
panels: {
|
|
69
|
+
type: import("vue").PropType<(Panel | Panel[])[]>;
|
|
70
|
+
default: () => never[];
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 标题
|
|
74
|
+
* @type {string}
|
|
75
|
+
*/
|
|
76
|
+
title: StringConstructor;
|
|
77
|
+
/**
|
|
78
|
+
* 取消按钮文案
|
|
79
|
+
* @type {string}
|
|
80
|
+
*/
|
|
81
|
+
cancelText: StringConstructor;
|
|
82
|
+
/**
|
|
83
|
+
* 点击选项后是否关闭菜单
|
|
84
|
+
* @default true
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
*/
|
|
87
|
+
closeOnClickAction: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 点击遮罩是否关闭
|
|
93
|
+
* @default true
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
*/
|
|
96
|
+
closeOnClickModal: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* 弹框动画持续时间
|
|
102
|
+
* @default 200
|
|
103
|
+
* @type {number}
|
|
104
|
+
*/
|
|
105
|
+
duration: {
|
|
106
|
+
type: NumberConstructor;
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* 菜单层级
|
|
111
|
+
* @default 10
|
|
112
|
+
* @type {number}
|
|
113
|
+
*/
|
|
114
|
+
zIndex: {
|
|
115
|
+
type: NumberConstructor;
|
|
116
|
+
default: number;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* 弹层内容懒渲染,触发展示时才渲染内容
|
|
120
|
+
* @default true
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
*/
|
|
123
|
+
lazyRender: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* 弹出面板是否设置底部安全距离(iphone X 类型的机型)
|
|
129
|
+
* @default true
|
|
130
|
+
* @type {boolean}
|
|
131
|
+
*/
|
|
132
|
+
safeAreaInsetBottom: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
customStyle: {
|
|
137
|
+
type: import("vue").PropType<string>;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
customClass: {
|
|
141
|
+
type: import("vue").PropType<string>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export type ActionSheetProps = ExtractPropTypes<typeof actionSheetProps>;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { type Panel } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
customHeaderClass: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
actions: {
|
|
13
|
+
type: import("vue").PropType<import("./types").Action[]>;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
panels: {
|
|
17
|
+
type: import("vue").PropType<(Panel | Panel[])[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
title: StringConstructor;
|
|
21
|
+
cancelText: StringConstructor;
|
|
22
|
+
closeOnClickAction: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
closeOnClickModal: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
duration: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
zIndex: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
lazyRender: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
safeAreaInsetBottom: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
customStyle: {
|
|
47
|
+
type: import("vue").PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
customClass: {
|
|
51
|
+
type: import("vue").PropType<string>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
select: (...args: any[]) => void;
|
|
56
|
+
"click-modal": (...args: any[]) => void;
|
|
57
|
+
cancel: (...args: any[]) => void;
|
|
58
|
+
closed: (...args: any[]) => void;
|
|
59
|
+
close: (...args: any[]) => void;
|
|
60
|
+
open: (...args: any[]) => void;
|
|
61
|
+
opened: (...args: any[]) => void;
|
|
62
|
+
"update:modelValue": (...args: any[]) => void;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
customHeaderClass: {
|
|
65
|
+
type: import("vue").PropType<string>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
modelValue: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
actions: {
|
|
74
|
+
type: import("vue").PropType<import("./types").Action[]>;
|
|
75
|
+
default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
panels: {
|
|
78
|
+
type: import("vue").PropType<(Panel | Panel[])[]>;
|
|
79
|
+
default: () => never[];
|
|
80
|
+
};
|
|
81
|
+
title: StringConstructor;
|
|
82
|
+
cancelText: StringConstructor;
|
|
83
|
+
closeOnClickAction: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
closeOnClickModal: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
duration: {
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
default: number;
|
|
94
|
+
};
|
|
95
|
+
zIndex: {
|
|
96
|
+
type: NumberConstructor;
|
|
97
|
+
default: number;
|
|
98
|
+
};
|
|
99
|
+
lazyRender: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
safeAreaInsetBottom: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
customStyle: {
|
|
108
|
+
type: import("vue").PropType<string>;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
customClass: {
|
|
112
|
+
type: import("vue").PropType<string>;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
}>> & {
|
|
116
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
"onClick-modal"?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
customHeaderClass: string;
|
|
126
|
+
actions: import("./types").Action[];
|
|
127
|
+
panels: (Panel | Panel[])[];
|
|
128
|
+
closeOnClickAction: boolean;
|
|
129
|
+
closeOnClickModal: boolean;
|
|
130
|
+
duration: number;
|
|
131
|
+
zIndex: number;
|
|
132
|
+
lazyRender: boolean;
|
|
133
|
+
safeAreaInsetBottom: boolean;
|
|
134
|
+
customStyle: string;
|
|
135
|
+
customClass: string;
|
|
136
|
+
}, {}>, {
|
|
137
|
+
default?(_: {}): any;
|
|
138
|
+
}>;
|
|
139
|
+
export default _default;
|
|
140
|
+
|
|
141
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
142
|
+
new (): {
|
|
143
|
+
$slots: S;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const backtopProps: {
|
|
2
|
+
/**
|
|
3
|
+
* 页面滚动距离
|
|
4
|
+
*/
|
|
5
|
+
scrollTop: {
|
|
6
|
+
type: NumberConstructor;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 距离顶部多少距离时显示
|
|
11
|
+
*/
|
|
12
|
+
top: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 返回顶部滚动时间
|
|
18
|
+
*/
|
|
19
|
+
duration: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 层级
|
|
25
|
+
*/
|
|
26
|
+
zIndex: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* icon样式
|
|
32
|
+
*/
|
|
33
|
+
iconStyle: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 形状
|
|
39
|
+
*/
|
|
40
|
+
shape: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 距离屏幕底部距离
|
|
46
|
+
*/
|
|
47
|
+
bottom: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* 距离屏幕右边距离
|
|
53
|
+
*/
|
|
54
|
+
right: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
customStyle: {
|
|
59
|
+
type: import("vue").PropType<string>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
customClass: {
|
|
63
|
+
type: import("vue").PropType<string>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
scrollTop: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
top: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
duration: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
zIndex: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
iconStyle: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
shape: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
bottom: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
right: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
customStyle: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
customClass: {
|
|
39
|
+
type: import("vue").PropType<string>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
scrollTop: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
top: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
duration: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
zIndex: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
iconStyle: {
|
|
60
|
+
type: import("vue").PropType<string>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
shape: {
|
|
64
|
+
type: import("vue").PropType<string>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
bottom: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
right: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
customStyle: {
|
|
76
|
+
type: import("vue").PropType<string>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
customClass: {
|
|
80
|
+
type: import("vue").PropType<string>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
duration: number;
|
|
85
|
+
zIndex: number;
|
|
86
|
+
customStyle: string;
|
|
87
|
+
customClass: string;
|
|
88
|
+
bottom: number;
|
|
89
|
+
top: number;
|
|
90
|
+
iconStyle: string;
|
|
91
|
+
shape: string;
|
|
92
|
+
right: number;
|
|
93
|
+
}, {}>, {
|
|
94
|
+
default?(_: {}): any;
|
|
95
|
+
}>;
|
|
96
|
+
export default _default;
|
|
97
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
98
|
+
new (): {
|
|
99
|
+
$slots: S;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type BadgeType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export declare const badgeProps: {
|
|
4
|
+
/**
|
|
5
|
+
* 显示值
|
|
6
|
+
*/
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: PropType<number | string | null>;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
/** 当数值为 0 时,是否展示徽标 */
|
|
12
|
+
showZero: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
bgColor: StringConstructor;
|
|
17
|
+
/**
|
|
18
|
+
* 最大值,超过最大值会显示 '{max}+',要求 value 是 Number 类型
|
|
19
|
+
*/
|
|
20
|
+
max: NumberConstructor;
|
|
21
|
+
/**
|
|
22
|
+
* 是否为红色点状标注
|
|
23
|
+
*/
|
|
24
|
+
isDot: BooleanConstructor;
|
|
25
|
+
/**
|
|
26
|
+
* 是否隐藏 badge
|
|
27
|
+
*/
|
|
28
|
+
hidden: BooleanConstructor;
|
|
29
|
+
/**
|
|
30
|
+
* badge类型,可选值primary / success / warning / danger / info
|
|
31
|
+
*/
|
|
32
|
+
type: {
|
|
33
|
+
type: PropType<BadgeType | undefined>;
|
|
34
|
+
default: BadgeType | undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* 为正时,角标向下偏移对应的像素
|
|
38
|
+
*/
|
|
39
|
+
top: NumberConstructor;
|
|
40
|
+
/**
|
|
41
|
+
* 为正时,角标向左偏移对应的像素
|
|
42
|
+
*/
|
|
43
|
+
right: NumberConstructor;
|
|
44
|
+
customStyle: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
customClass: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<number | string | null>;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
showZero: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
bgColor: StringConstructor;
|
|
11
|
+
max: NumberConstructor;
|
|
12
|
+
isDot: BooleanConstructor;
|
|
13
|
+
hidden: BooleanConstructor;
|
|
14
|
+
type: {
|
|
15
|
+
type: import("vue").PropType<import("./types").BadgeType | undefined>;
|
|
16
|
+
default: import("./types").BadgeType | undefined;
|
|
17
|
+
};
|
|
18
|
+
top: NumberConstructor;
|
|
19
|
+
right: NumberConstructor;
|
|
20
|
+
customStyle: {
|
|
21
|
+
type: import("vue").PropType<string>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
customClass: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: import("vue").PropType<number | string | null>;
|
|
31
|
+
default: null;
|
|
32
|
+
};
|
|
33
|
+
showZero: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
bgColor: StringConstructor;
|
|
38
|
+
max: NumberConstructor;
|
|
39
|
+
isDot: BooleanConstructor;
|
|
40
|
+
hidden: BooleanConstructor;
|
|
41
|
+
type: {
|
|
42
|
+
type: import("vue").PropType<import("./types").BadgeType | undefined>;
|
|
43
|
+
default: import("./types").BadgeType | undefined;
|
|
44
|
+
};
|
|
45
|
+
top: NumberConstructor;
|
|
46
|
+
right: NumberConstructor;
|
|
47
|
+
customStyle: {
|
|
48
|
+
type: import("vue").PropType<string>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
customClass: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
}>>, {
|
|
56
|
+
modelValue: string | number | null;
|
|
57
|
+
customStyle: string;
|
|
58
|
+
customClass: string;
|
|
59
|
+
type: import("./types").BadgeType | undefined;
|
|
60
|
+
showZero: boolean;
|
|
61
|
+
isDot: boolean;
|
|
62
|
+
hidden: boolean;
|
|
63
|
+
}, {}>, {
|
|
64
|
+
default?(_: {}): any;
|
|
65
|
+
}>;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|