@tplc/wot 0.1.2 → 0.1.4
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/components/wd-swiper/index.scss +4 -3
- package/components/wd-swiper/types.ts +9 -0
- package/components/wd-swiper/wd-swiper.vue +16 -2
- package/components/wd-tabs/wd-tabs.vue +3 -1
- package/components/wd-tooltip/wd-tooltip.vue +1 -1
- package/package.json +3 -2
- package/types/components/common/AbortablePromise.d.ts +16 -6
- package/types/components/common/base64.d.ts +1 -1
- package/types/components/common/canvasHelper.d.ts +1 -1
- package/types/components/common/clickoutside.d.ts +4 -4
- package/types/components/common/dayjs.d.ts +24 -24
- package/types/components/common/props.d.ts +39 -39
- package/types/components/common/util.d.ts +74 -54
- package/types/components/composables/useCell.d.ts +2 -2
- package/types/components/composables/useChildren.d.ts +28 -9
- package/types/components/composables/useCountDown.d.ts +17 -17
- package/types/components/composables/useLockScroll.d.ts +4 -4
- package/types/components/composables/useParent.d.ts +20 -14
- package/types/components/composables/usePopover.d.ts +39 -8
- package/types/components/composables/useQueue.d.ts +10 -10
- package/types/components/composables/useRaf.d.ts +5 -5
- package/types/components/composables/useTouch.d.ts +10 -10
- package/types/components/composables/useTranslate.d.ts +2 -2
- package/types/components/wd-action-sheet/types.d.ts +142 -142
- package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +162 -143
- package/types/components/wd-backtop/types.d.ts +65 -65
- package/types/components/wd-backtop/wd-backtop.vue.d.ts +119 -100
- package/types/components/wd-badge/types.d.ts +52 -52
- package/types/components/wd-badge/wd-badge.vue.d.ts +89 -70
- package/types/components/wd-button/types.d.ts +132 -124
- package/types/components/wd-calendar/types.d.ts +283 -279
- package/types/components/wd-calendar/wd-calendar.vue.d.ts +342 -323
- package/types/components/wd-calendar-view/month/month.vue.d.ts +87 -71
- package/types/components/wd-calendar-view/month/types.d.ts +37 -37
- package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +118 -102
- package/types/components/wd-calendar-view/monthPanel/types.d.ts +63 -63
- package/types/components/wd-calendar-view/types.d.ts +135 -126
- package/types/components/wd-calendar-view/utils.d.ts +42 -28
- package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +144 -128
- package/types/components/wd-calendar-view/year/types.d.ts +33 -33
- package/types/components/wd-calendar-view/year/year.vue.d.ts +80 -64
- package/types/components/wd-calendar-view/yearPanel/types.d.ts +46 -46
- package/types/components/wd-calendar-view/yearPanel/year-panel.vue.d.ts +89 -73
- package/types/components/wd-card/types.d.ts +41 -41
- package/types/components/wd-card/wd-card.vue.d.ts +81 -62
- package/types/components/wd-cell/types.d.ts +128 -128
- package/types/components/wd-cell/wd-cell.vue.d.ts +181 -162
- package/types/components/wd-cell-group/types.d.ts +38 -38
- package/types/components/wd-cell-group/wd-cell-group.vue.d.ts +72 -53
- package/types/components/wd-checkbox/types.d.ts +73 -73
- package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +124 -105
- package/types/components/wd-checkbox-group/types.d.ts +75 -75
- package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +121 -102
- package/types/components/wd-circle/types.d.ts +76 -76
- package/types/components/wd-circle/wd-circle.vue.d.ts +124 -105
- package/types/components/wd-col/types.d.ts +25 -25
- package/types/components/wd-col/wd-col.vue.d.ts +66 -47
- package/types/components/wd-col-picker/types.d.ts +227 -223
- package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +287 -268
- package/types/components/wd-collapse/types.d.ts +74 -67
- package/types/components/wd-collapse/wd-collapse.vue.d.ts +110 -91
- package/types/components/wd-collapse-item/types.d.ts +44 -44
- package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +79 -64
- package/types/components/wd-config-provider/types.d.ts +872 -811
- package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +66 -47
- package/types/components/wd-count-down/types.d.ts +53 -53
- package/types/components/wd-count-down/utils.d.ts +7 -7
- package/types/components/wd-count-down/wd-count-down.vue.d.ts +93 -76
- package/types/components/wd-count-to/types.d.ts +123 -123
- package/types/components/wd-count-to/wd-count-to.vue.d.ts +172 -153
- package/types/components/wd-curtain/types.d.ts +59 -52
- package/types/components/wd-curtain/wd-curtain.vue.d.ts +101 -85
- package/types/components/wd-datetime-picker/types.d.ts +306 -295
- package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +384 -353
- package/types/components/wd-datetime-picker-view/types.d.ts +147 -139
- package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +182 -166
- package/types/components/wd-divider/types.d.ts +18 -18
- package/types/components/wd-divider/wd-divider.vue.d.ts +57 -38
- package/types/components/wd-drop-menu/types.d.ts +52 -52
- package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +93 -74
- package/types/components/wd-drop-menu-item/types.d.ts +103 -103
- package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +163 -144
- package/types/components/wd-fab/types.d.ts +86 -86
- package/types/components/wd-fab/wd-fab.vue.d.ts +145 -126
- package/types/components/wd-form/types.d.ts +80 -72
- package/types/components/wd-form/wd-form.vue.d.ts +90 -71
- package/types/components/wd-form-item/types.d.ts +31 -31
- package/types/components/wd-form-item/wd-form-item.vue.d.ts +91 -72
- package/types/components/wd-gap/types.d.ts +30 -30
- package/types/components/wd-gap/wd-gap.vue.d.ts +61 -45
- package/types/components/wd-grid/types.d.ts +57 -57
- package/types/components/wd-grid/wd-grid.vue.d.ts +88 -69
- package/types/components/wd-grid-item/types.d.ts +100 -100
- package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +152 -133
- package/types/components/wd-icon/types.d.ts +31 -31
- package/types/components/wd-img/types.d.ts +72 -58
- package/types/components/wd-img/wd-img.vue.d.ts +110 -91
- package/types/components/wd-img-cropper/types.d.ts +99 -99
- package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +129 -113
- package/types/components/wd-index-anchor/type.d.ts +15 -15
- package/types/components/wd-index-anchor/wd-index-anchor.vue.d.ts +54 -35
- package/types/components/wd-index-bar/type.d.ts +22 -22
- package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +39 -20
- package/types/components/wd-input/types.d.ts +270 -270
- package/types/components/wd-input/wd-input.vue.d.ts +387 -368
- package/types/components/wd-input-number/types.d.ts +107 -107
- package/types/components/wd-input-number/wd-input-number.vue.d.ts +158 -142
- package/types/components/wd-loading/types.d.ts +33 -33
- package/types/components/wd-loading/wd-loading.vue.d.ts +61 -45
- package/types/components/wd-loadmore/types.d.ts +30 -30
- package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +56 -40
- package/types/components/wd-message-box/index.d.ts +4 -4
- package/types/components/wd-message-box/types.d.ts +92 -92
- package/types/components/wd-message-box/wd-message-box.vue.d.ts +50 -31
- package/types/components/wd-navbar/types.d.ts +79 -79
- package/types/components/wd-navbar/wd-navbar.vue.d.ts +135 -116
- package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +22 -8
- package/types/components/wd-notice-bar/types.d.ts +80 -80
- package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +136 -117
- package/types/components/wd-notify/index.d.ts +7 -7
- package/types/components/wd-notify/types.d.ts +84 -84
- package/types/components/wd-notify/wd-notify.vue.d.ts +123 -104
- package/types/components/wd-number-keyboard/key/index.vue.d.ts +65 -49
- package/types/components/wd-number-keyboard/key/types.d.ts +22 -22
- package/types/components/wd-number-keyboard/types.d.ts +115 -115
- package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +176 -157
- package/types/components/wd-overlay/types.d.ts +38 -38
- package/types/components/wd-overlay/wd-overlay.vue.d.ts +88 -69
- package/types/components/wd-pagination/types.d.ts +66 -66
- package/types/components/wd-pagination/wd-pagination.vue.d.ts +102 -86
- package/types/components/wd-password-input/types.d.ts +58 -58
- package/types/components/wd-password-input/wd-password-input.vue.d.ts +97 -81
- package/types/components/wd-picker/types.d.ts +239 -232
- package/types/components/wd-picker/wd-picker.vue.d.ts +300 -275
- package/types/components/wd-picker-view/types.d.ts +102 -89
- package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +137 -109
- package/types/components/wd-popover/types.d.ts +96 -84
- package/types/components/wd-popover/wd-popover.vue.d.ts +156 -137
- package/types/components/wd-popup/types.d.ts +95 -95
- package/types/components/wd-popup/wd-popup.vue.d.ts +178 -159
- package/types/components/wd-progress/types.d.ts +43 -43
- package/types/components/wd-progress/wd-progress.vue.d.ts +71 -55
- package/types/components/wd-radio/types.d.ts +39 -39
- package/types/components/wd-radio/wd-radio.vue.d.ts +91 -72
- package/types/components/wd-radio-group/types.d.ts +52 -52
- package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +103 -84
- package/types/components/wd-rate/types.d.ts +109 -109
- package/types/components/wd-rate/wd-rate.vue.d.ts +131 -115
- package/types/components/wd-resize/types.d.ts +13 -13
- package/types/components/wd-resize/wd-resize.vue.d.ts +61 -42
- package/types/components/wd-row/types.d.ts +22 -22
- package/types/components/wd-row/wd-row.vue.d.ts +57 -38
- package/types/components/wd-search/types.d.ts +103 -103
- package/types/components/wd-search/wd-search.vue.d.ts +150 -131
- package/types/components/wd-segmented/types.d.ts +66 -66
- package/types/components/wd-segmented/wd-segmented.vue.d.ts +103 -86
- package/types/components/wd-select-picker/types.d.ts +184 -178
- package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +334 -315
- package/types/components/wd-sidebar/types.d.ts +22 -22
- package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +63 -44
- package/types/components/wd-sidebar-item/types.d.ts +43 -43
- package/types/components/wd-sidebar-item/wd-sidebar-item.vue.d.ts +98 -79
- package/types/components/wd-skeleton/types.d.ts +69 -69
- package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +86 -67
- package/types/components/wd-slider/types.d.ts +115 -115
- package/types/components/wd-slider/wd-slider.vue.d.ts +137 -121
- package/types/components/wd-sort-button/types.d.ts +57 -57
- package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +83 -67
- package/types/components/wd-status-tip/types.d.ts +58 -58
- package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +69 -53
- package/types/components/wd-step/types.d.ts +32 -32
- package/types/components/wd-step/wd-step.vue.d.ts +58 -39
- package/types/components/wd-steps/types.d.ts +57 -57
- package/types/components/wd-steps/wd-steps.vue.d.ts +86 -67
- package/types/components/wd-sticky/types.d.ts +23 -23
- package/types/components/wd-sticky/wd-sticky.vue.d.ts +77 -58
- package/types/components/wd-sticky-box/types.d.ts +8 -8
- package/types/components/wd-sticky-box/wd-sticky-box.vue.d.ts +48 -29
- package/types/components/wd-swipe-action/types.d.ts +44 -41
- package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +79 -60
- package/types/components/wd-swiper/types.d.ts +231 -201
- package/types/components/wd-swiper/wd-swiper.vue.d.ts +272 -211
- package/types/components/wd-swiper-nav/types.d.ts +62 -62
- package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +97 -81
- package/types/components/wd-switch/types.d.ts +63 -63
- package/types/components/wd-switch/wd-switch.vue.d.ts +91 -75
- package/types/components/wd-tab/types.d.ts +26 -26
- package/types/components/wd-tab/wd-tab.vue.d.ts +64 -45
- package/types/components/wd-tabbar/types.d.ts +85 -85
- package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +121 -102
- package/types/components/wd-tabbar-item/types.d.ts +47 -47
- package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +77 -60
- package/types/components/wd-table/types.d.ts +103 -93
- package/types/components/wd-table/wd-table.vue.d.ts +181 -136
- package/types/components/wd-table-col/types.d.ts +55 -55
- package/types/components/wd-table-col/wd-table-col.vue.d.ts +85 -69
- package/types/components/wd-tabs/types.d.ts +94 -94
- package/types/components/wd-tabs/wd-tabs.vue.d.ts +157 -138
- package/types/components/wd-tag/types.d.ts +103 -103
- package/types/components/wd-tag/wd-tag.vue.d.ts +148 -129
- package/types/components/wd-text/types.d.ts +127 -127
- package/types/components/wd-text/wd-text.vue.d.ts +149 -130
- package/types/components/wd-textarea/types.d.ts +362 -362
- package/types/components/wd-textarea/wd-textarea.vue.d.ts +408 -389
- package/types/components/wd-toast/index.d.ts +9 -9
- package/types/components/wd-toast/types.d.ts +58 -58
- package/types/components/wd-toast/wd-toast.vue.d.ts +45 -29
- package/types/components/wd-tooltip/types.d.ts +116 -104
- package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +151 -132
- package/types/components/wd-transition/types.d.ts +108 -97
- package/types/components/wd-transition/wd-transition.vue.d.ts +154 -135
- package/types/components/wd-upload/types.d.ts +388 -376
- package/types/components/wd-upload/utils.d.ts +11 -2
- package/types/components/wd-upload/wd-upload.vue.d.ts +310 -282
- package/types/components/wd-video-preview/types.d.ts +19 -19
- package/types/components/wd-video-preview/wd-video-preview.vue.d.ts +41 -25
- package/types/components/wd-watermark/types.d.ts +130 -130
- package/types/components/wd-watermark/wd-watermark.vue.d.ts +173 -157
- package/types/locale/index.d.ts +8 -8
- package/types/locale/lang/zh-CN.d.ts +127 -127
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import {
|
|
2
|
+
type VNode,
|
|
3
|
+
type InjectionKey,
|
|
4
|
+
type VNodeNormalizedChildren,
|
|
5
|
+
type ComponentPublicInstance,
|
|
6
|
+
type ComponentInternalInstance,
|
|
7
|
+
} from 'vue'
|
|
8
|
+
export declare function flattenVNodes(children: VNodeNormalizedChildren): VNode<
|
|
9
|
+
import('vue').RendererNode,
|
|
10
|
+
import('vue').RendererElement,
|
|
11
|
+
{
|
|
12
|
+
[key: string]: any
|
|
13
|
+
}
|
|
14
|
+
>[]
|
|
15
|
+
export declare function sortChildren(
|
|
16
|
+
parent: ComponentInternalInstance,
|
|
17
|
+
publicChildren: ComponentPublicInstance[],
|
|
18
|
+
internalChildren: ComponentInternalInstance[],
|
|
19
|
+
): void
|
|
20
|
+
export declare function useChildren<
|
|
21
|
+
Child extends ComponentPublicInstance = ComponentPublicInstance<{}, any>,
|
|
22
|
+
ProvideValue = never,
|
|
23
|
+
>(
|
|
24
|
+
key: InjectionKey<ProvideValue>,
|
|
25
|
+
): {
|
|
26
|
+
children: Child[]
|
|
27
|
+
linkChildren: (value?: ProvideValue) => void
|
|
28
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export type CurrentTime = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
2
|
+
days: number
|
|
3
|
+
hours: number
|
|
4
|
+
total: number
|
|
5
|
+
minutes: number
|
|
6
|
+
seconds: number
|
|
7
|
+
milliseconds: number
|
|
8
|
+
}
|
|
9
9
|
export type UseCountDownOptions = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
10
|
+
time: number
|
|
11
|
+
millisecond?: boolean
|
|
12
|
+
onChange?: (current: CurrentTime) => void
|
|
13
|
+
onFinish?: () => void
|
|
14
|
+
}
|
|
15
15
|
export declare function useCountDown(options: UseCountDownOptions): {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
16
|
+
start: () => void
|
|
17
|
+
pause: () => void
|
|
18
|
+
reset: (totalTime?: number) => void
|
|
19
|
+
current: import('vue').ComputedRef<CurrentTime>
|
|
20
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare function useLockScroll(shouldLock: () => boolean): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export default useLockScroll
|
|
2
|
+
lock: () => void
|
|
3
|
+
unlock: () => void
|
|
4
|
+
}
|
|
5
|
+
export default useLockScroll
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type InjectionKey,
|
|
3
|
+
type ComponentPublicInstance,
|
|
4
|
+
type ComponentInternalInstance,
|
|
5
|
+
} from 'vue'
|
|
2
6
|
type ParentProvide<T> = T & {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare function useParent<T>(key: InjectionKey<ParentProvide<T>>):
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
link(child: ComponentInternalInstance): void
|
|
8
|
+
unlink(child: ComponentInternalInstance): void
|
|
9
|
+
children: ComponentPublicInstance[]
|
|
10
|
+
internalChildren: ComponentInternalInstance[]
|
|
11
|
+
}
|
|
12
|
+
export declare function useParent<T>(key: InjectionKey<ParentProvide<T>>):
|
|
13
|
+
| {
|
|
14
|
+
parent: ParentProvide<T>
|
|
15
|
+
index: import('vue').ComputedRef<number>
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
parent: any
|
|
19
|
+
index: import('vue').Ref<number>
|
|
20
|
+
}
|
|
21
|
+
export {}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
export declare function usePopover(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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: (
|
|
7
|
+
placement:
|
|
8
|
+
| 'top'
|
|
9
|
+
| 'top-start'
|
|
10
|
+
| 'top-end'
|
|
11
|
+
| 'bottom'
|
|
12
|
+
| 'bottom-start'
|
|
13
|
+
| 'bottom-end'
|
|
14
|
+
| 'left'
|
|
15
|
+
| 'left-start'
|
|
16
|
+
| 'left-end'
|
|
17
|
+
| 'right'
|
|
18
|
+
| 'right-start'
|
|
19
|
+
| 'right-end',
|
|
20
|
+
visibleArrow: boolean,
|
|
21
|
+
selector: string,
|
|
22
|
+
) => void
|
|
23
|
+
control: (
|
|
24
|
+
placement:
|
|
25
|
+
| 'top'
|
|
26
|
+
| 'top-start'
|
|
27
|
+
| 'top-end'
|
|
28
|
+
| 'bottom'
|
|
29
|
+
| 'bottom-start'
|
|
30
|
+
| 'bottom-end'
|
|
31
|
+
| 'left'
|
|
32
|
+
| 'left-start'
|
|
33
|
+
| 'left-end'
|
|
34
|
+
| 'right'
|
|
35
|
+
| 'right-start'
|
|
36
|
+
| 'right-end',
|
|
37
|
+
offset: number,
|
|
38
|
+
) => void
|
|
39
|
+
noop: () => void
|
|
40
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type Ref } from 'vue'
|
|
2
|
-
export declare const queueKey =
|
|
1
|
+
import { type Ref } from 'vue'
|
|
2
|
+
export declare const queueKey = '__QUEUE_KEY__'
|
|
3
3
|
export interface Queue {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
queue: Ref<any[]>
|
|
5
|
+
pushToQueue: (comp: any) => void
|
|
6
|
+
removeFromQueue: (comp: any) => void
|
|
7
|
+
closeOther: (comp: any) => void
|
|
8
|
+
closeOutside: () => void
|
|
9
9
|
}
|
|
10
10
|
export declare function useQueue(): {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
closeOther: (comp: any) => void
|
|
12
|
+
closeOutside: () => void
|
|
13
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
type RafCallback = (time: number) => void
|
|
1
|
+
type RafCallback = (time: number) => void
|
|
2
2
|
export declare function useRaf(callback: RafCallback): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export {}
|
|
3
|
+
start: () => void
|
|
4
|
+
cancel: () => void
|
|
5
|
+
}
|
|
6
|
+
export {}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare function useTouch(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
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
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const useTranslate: (name?: string) => {
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
translate: (key: string, ...args: unknown[]) => any
|
|
3
|
+
}
|
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue'
|
|
1
|
+
import type { ExtractPropTypes } from 'vue'
|
|
2
2
|
export type Action = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
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
24
|
export type Panel = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
25
|
+
/**
|
|
26
|
+
* 图片地址
|
|
27
|
+
*/
|
|
28
|
+
iconUrl: string
|
|
29
|
+
/**
|
|
30
|
+
* 标题内容
|
|
31
|
+
*/
|
|
32
|
+
title: string
|
|
33
|
+
}
|
|
34
34
|
export declare const actionSheetProps: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
export type ActionSheetProps = ExtractPropTypes<typeof 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>
|