@tplc/business 0.7.6 → 0.7.7
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 +2 -0
- package/package.json +13 -13
- package/types/api/pay.d.ts +47 -0
- package/types/api/user.d.ts +11 -0
- package/types/components/lcb-absolute-config-layout/lcb-absolute-config-layout.vue.d.ts +71 -0
- package/types/components/lcb-absolute-config-layout/types.d.ts +26 -0
- package/types/components/lcb-action-view/components/CustomPopup/index.vue.d.ts +37 -0
- package/types/components/lcb-action-view/components/PayPopup/index.vue.d.ts +44 -0
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +41 -0
- package/types/components/lcb-action-view/types.d.ts +136 -0
- package/types/components/lcb-advert/lcb-advert.vue.d.ts +28 -0
- package/types/components/lcb-advert/types.d.ts +3 -0
- package/types/components/lcb-agreement-view/api.d.ts +4 -0
- package/types/components/lcb-agreement-view/lcb-agreement-view.vue.d.ts +40 -0
- package/types/components/lcb-agreement-view/types.d.ts +4 -0
- package/types/components/lcb-area/lcb-area.vue.d.ts +74 -0
- package/types/components/lcb-area/types.d.ts +40 -0
- package/types/components/lcb-area-picker/api/index.d.ts +49 -0
- package/types/components/lcb-area-picker/lcb-area-picker.vue.d.ts +79 -0
- package/types/components/lcb-area-picker/types.d.ts +3 -0
- package/types/components/lcb-banner/lcb-banner.vue.d.ts +80 -0
- package/types/components/lcb-banner/types.d.ts +66 -0
- package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +56 -0
- package/types/components/lcb-banner-block/types.d.ts +20 -0
- package/types/components/lcb-block/lcb-block.vue.d.ts +76 -0
- package/types/components/lcb-block/types.d.ts +62 -0
- package/types/components/lcb-button/lcb-button.vue.d.ts +74 -0
- package/types/components/lcb-button/types.d.ts +35 -0
- package/types/components/lcb-calendar/api/index.d.ts +17 -0
- package/types/components/lcb-calendar/lcb-calendar.vue.d.ts +152 -0
- package/types/components/lcb-calendar-filter/api.d.ts +5 -0
- package/types/components/lcb-calendar-filter/components/CalendarItem/index.vue.d.ts +40 -0
- package/types/components/lcb-calendar-filter/lcb-calendar-filter.vue.d.ts +66 -0
- package/types/components/lcb-calendar-filter/types.d.ts +29 -0
- package/types/components/lcb-calendar-search/lcb-calendar-search.vue.d.ts +68 -0
- package/types/components/lcb-calendar-search/types.d.ts +9 -0
- package/types/components/lcb-city-select/api/index.d.ts +44 -0
- package/types/components/lcb-city-select/components/lcb-city-letter/index.vue.d.ts +53 -0
- package/types/components/lcb-city-select/components/lcb-city-list/index.vue.d.ts +48 -0
- package/types/components/lcb-city-select/components/lcb-city-list/types.d.ts +5 -0
- package/types/components/lcb-city-select/lcb-city-select.vue.d.ts +77 -0
- package/types/components/lcb-city-select/types.d.ts +5 -0
- package/types/components/lcb-custom-content/lcb-custom-content.vue.d.ts +40 -0
- package/types/components/lcb-dynamic-data/lcb-dynamic-data.vue.d.ts +44 -0
- package/types/components/lcb-dynamic-data/types.d.ts +9 -0
- package/types/components/lcb-fab/lcb-fab.vue.d.ts +42 -0
- package/types/components/lcb-fab/types.d.ts +19 -0
- package/types/components/lcb-filter-grid/lcb-filter-grid.vue.d.ts +82 -0
- package/types/components/lcb-filter-grid/types.d.ts +20 -0
- package/types/components/lcb-form/lcb-form.vue.d.ts +73 -0
- package/types/components/lcb-form/types.d.ts +82 -0
- package/types/components/lcb-gap/lcb-gap.vue.d.ts +42 -0
- package/types/components/lcb-gap/types.d.ts +7 -0
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +74 -0
- package/types/components/lcb-grid/types.d.ts +16 -0
- package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +68 -0
- package/types/components/lcb-home-search/types.d.ts +14 -0
- package/types/components/lcb-icon/lcb-icon.vue.d.ts +56 -0
- package/types/components/lcb-icon/types.d.ts +10 -0
- package/types/components/lcb-image/Image/index.vue.d.ts +56 -0
- package/types/components/lcb-image/lcb-image.vue.d.ts +70 -0
- package/types/components/lcb-image/types.d.ts +17 -0
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +113 -0
- package/types/components/lcb-img-nav/types.d.ts +61 -0
- package/types/components/lcb-light-map/api.d.ts +10 -0
- package/types/components/lcb-light-map/lcb-light-map.vue.d.ts +59 -0
- package/types/components/lcb-light-map/types.d.ts +69 -0
- package/types/components/lcb-light-map/util.d.ts +40 -0
- package/types/components/lcb-list/api.d.ts +67 -0
- package/types/components/lcb-list/components/ActionView/index.vue.d.ts +34 -0
- package/types/components/lcb-list/components/ComponentGroup/index.vue.d.ts +32 -0
- package/types/components/lcb-list/components/ComponentGroup/type.d.ts +5 -0
- package/types/components/lcb-list/components/FilterList/index.vue.d.ts +50 -0
- package/types/components/lcb-list/components/FilterList/type.d.ts +11 -0
- package/types/components/lcb-list/components/FilterSelect/index.vue.d.ts +41 -0
- package/types/components/lcb-list/components/FilterSelect/type.d.ts +2 -0
- package/types/components/lcb-list/components/FilterSlider/index.vue.d.ts +64 -0
- package/types/components/lcb-list/components/FilterSlider/types.d.ts +2 -0
- package/types/components/lcb-list/components/FilterTabs/index.vue.d.ts +36 -0
- package/types/components/lcb-list/components/FilterTabs/type.d.ts +5 -0
- package/types/components/lcb-list/components/FilterView/index.vue.d.ts +36 -0
- package/types/components/lcb-list/components/FilterView/type.d.ts +8 -0
- package/types/components/lcb-list/components/SelectTagView/index.vue.d.ts +43 -0
- package/types/components/lcb-list/components/TagSelect/index.vue.d.ts +76 -0
- package/types/components/lcb-list/components/TagSelect/type.d.ts +4 -0
- package/types/components/lcb-list/components/TreeSelect/index.vue.d.ts +38 -0
- package/types/components/lcb-list/components/TreeSelect/type.d.ts +6 -0
- package/types/components/lcb-list/components/UnconditionedLayout/index.vue.d.ts +85 -0
- package/types/components/lcb-list/hooks/useSelect.d.ts +31 -0
- package/types/components/lcb-list/hooks/useSyncValues.d.ts +5 -0
- package/types/components/lcb-list/lcb-list.vue.d.ts +139 -0
- package/types/components/lcb-list/types.d.ts +67 -0
- package/types/components/lcb-map/lcb-map.vue.d.ts +57 -0
- package/types/components/lcb-map/types.d.ts +36 -0
- package/types/components/lcb-nav/AddressCommunity/index.vue.d.ts +63 -0
- package/types/components/lcb-nav/Search/index.vue.d.ts +52 -0
- package/types/components/lcb-nav/SharePopup/api.d.ts +16 -0
- package/types/components/lcb-nav/SharePopup/index.vue.d.ts +37 -0
- package/types/components/lcb-nav/Title/index.vue.d.ts +28 -0
- package/types/components/lcb-nav/lcb-nav.vue.d.ts +106 -0
- package/types/components/lcb-nav/types.d.ts +72 -0
- package/types/components/lcb-notice/api/index.d.ts +18 -0
- package/types/components/lcb-notice/lcb-notice.vue.d.ts +77 -0
- package/types/components/lcb-notice/types.d.ts +14 -0
- package/types/components/lcb-operation-actions/BtnViews.vue.d.ts +62 -0
- package/types/components/lcb-operation-actions/IconActionView.vue.d.ts +61 -0
- package/types/components/lcb-operation-actions/IconView.vue.d.ts +41 -0
- package/types/components/lcb-operation-actions/components/OrderDetLogistic/index.vue.d.ts +51 -0
- package/types/components/lcb-operation-actions/lcb-operation-actions.vue.d.ts +34 -0
- package/types/components/lcb-operation-actions/types.d.ts +51 -0
- package/types/components/lcb-order-payment/lcb-order-payment.vue.d.ts +38 -0
- package/types/components/lcb-order-payment/types.d.ts +30 -0
- package/types/components/lcb-particulars/api.d.ts +45 -0
- package/types/components/lcb-particulars/lcb-particulars.vue.d.ts +56 -0
- package/types/components/lcb-particulars/types.d.ts +5 -0
- package/types/components/lcb-poster/lcb-poster.vue.d.ts +50 -0
- package/types/components/lcb-product/components/ProductSkeleton/index.vue.d.ts +70 -0
- package/types/components/lcb-product/components/SKeletonItem/index.vue.d.ts +28 -0
- package/types/components/lcb-product/lcb-product.vue.d.ts +96 -0
- package/types/components/lcb-product/types.d.ts +44 -0
- package/types/components/lcb-product-item/components/ItemValue.vue.d.ts +117 -0
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +267 -0
- package/types/components/lcb-product-item/types.d.ts +133 -0
- package/types/components/lcb-render-view/lcb-render-view.vue.d.ts +35 -0
- package/types/components/lcb-rich-text/lcb-rich-text.vue.d.ts +44 -0
- package/types/components/lcb-rich-text/types.d.ts +4 -0
- package/types/components/lcb-room-calendar/lcb-room-calendar.vue.d.ts +68 -0
- package/types/components/lcb-room-calendar/types.d.ts +10 -0
- package/types/components/lcb-search/api.d.ts +23 -0
- package/types/components/lcb-search/components/SearchHistory/index.vue.d.ts +48 -0
- package/types/components/lcb-search/components/SearchList/index.vue.d.ts +56 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +1211 -0
- package/types/components/lcb-search/types.d.ts +29 -0
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +73 -0
- package/types/components/lcb-swiper/types.d.ts +17 -0
- package/types/components/lcb-tabs/components/Imgs/index.vue.d.ts +62 -0
- package/types/components/lcb-tabs/components/Tabs/index.vue.d.ts +65 -0
- package/types/components/lcb-tabs/components/Tags/index.vue.d.ts +68 -0
- package/types/components/lcb-tabs/lcb-tabs.vue.d.ts +65 -0
- package/types/components/lcb-tabs/types.d.ts +34 -0
- package/types/components/lcb-tags/lcb-tags.vue.d.ts +74 -0
- package/types/components/lcb-tags/types.d.ts +17 -0
- package/types/components/lcb-text/lcb-text.vue.d.ts +42 -0
- package/types/components/lcb-text/types.d.ts +4 -0
- package/types/components/lcb-title/lcb-title.vue.d.ts +114 -0
- package/types/components/lcb-title/types.d.ts +42 -0
- package/types/components/lcb-user-order/lcb-user-order.vue.d.ts +62 -0
- package/types/components/lcb-user-order/types.d.ts +27 -0
- package/types/components/lcb-user-top/Nums/index.vue.d.ts +28 -0
- package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +158 -0
- package/types/components/lcb-user-top/types.d.ts +57 -0
- package/types/components/lcb-video/lcb-video.vue.d.ts +56 -0
- package/types/components/lcb-video/types.d.ts +10 -0
- package/types/components/lcb-vip/api/index.d.ts +70 -0
- package/types/components/lcb-vip/components/InfoDialog/index.vue.d.ts +42 -0
- package/types/components/lcb-vip/lcb-vip.vue.d.ts +68 -0
- package/types/components/lcb-vip/types.d.ts +10 -0
- package/types/components/lcb-waterfall/lcb-waterfall-item.vue.d.ts +73 -0
- package/types/components/lcb-waterfall/lcb-waterfall.vue.d.ts +192 -0
- package/types/components/lcb-wrapper-item/lcb-wrapper-item.vue.d.ts +49 -0
- package/types/components/lcb-wrapper-list/lcb-wrapper-list.vue.d.ts +71 -0
- package/types/components/lcb-wrapper-list/types.d.ts +14 -0
- package/types/constants.d.ts +17 -0
- package/types/hooks/useAutoHeight.d.ts +8 -0
- package/types/hooks/useDynamicData.d.ts +14 -0
- package/types/hooks/useLocation.api.d.ts +18 -0
- package/types/hooks/useLocation.d.ts +10 -0
- package/types/hooks/usePageScroll.d.ts +2 -0
- package/types/hooks/usePay.d.ts +13 -0
- package/types/hooks/useSyncForm.d.ts +5 -0
- package/types/hooks/useUpload.api.d.ts +12 -0
- package/types/hooks/useUpload.d.ts +21 -0
- package/types/utils/formatter.d.ts +5 -0
- package/types/utils/history.d.ts +5 -0
- package/types/utils/request.d.ts +6 -0
- package/types/utils/transform.d.ts +15 -0
- package/types/utils/utils.d.ts +51 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { LcbImageProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbImageProps>,
|
|
5
|
+
{
|
|
6
|
+
styleGroup: number
|
|
7
|
+
imageMargin: number
|
|
8
|
+
imageSize: number
|
|
9
|
+
marginTop: number
|
|
10
|
+
marginBottom: number
|
|
11
|
+
marginHorizontal: number
|
|
12
|
+
}
|
|
13
|
+
>,
|
|
14
|
+
{},
|
|
15
|
+
unknown,
|
|
16
|
+
{},
|
|
17
|
+
{},
|
|
18
|
+
import('vue').ComponentOptionsMixin,
|
|
19
|
+
import('vue').ComponentOptionsMixin,
|
|
20
|
+
{},
|
|
21
|
+
string,
|
|
22
|
+
import('vue').PublicProps,
|
|
23
|
+
Readonly<
|
|
24
|
+
import('vue').ExtractPropTypes<
|
|
25
|
+
__VLS_WithDefaults<
|
|
26
|
+
__VLS_TypePropsToOption<LcbImageProps>,
|
|
27
|
+
{
|
|
28
|
+
styleGroup: number
|
|
29
|
+
imageMargin: number
|
|
30
|
+
imageSize: number
|
|
31
|
+
marginTop: number
|
|
32
|
+
marginBottom: number
|
|
33
|
+
marginHorizontal: number
|
|
34
|
+
}
|
|
35
|
+
>
|
|
36
|
+
>
|
|
37
|
+
>,
|
|
38
|
+
{
|
|
39
|
+
marginHorizontal: number
|
|
40
|
+
marginBottom: number
|
|
41
|
+
styleGroup: number
|
|
42
|
+
imageSize: number
|
|
43
|
+
imageMargin: number
|
|
44
|
+
},
|
|
45
|
+
{}
|
|
46
|
+
>
|
|
47
|
+
export default _default
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
50
|
+
? __VLS_Prettify<
|
|
51
|
+
P[K] & {
|
|
52
|
+
default: D[K]
|
|
53
|
+
}
|
|
54
|
+
>
|
|
55
|
+
: P[K]
|
|
56
|
+
}
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K]
|
|
59
|
+
} & {}
|
|
60
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
61
|
+
type __VLS_TypePropsToOption<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
63
|
+
? {
|
|
64
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
65
|
+
}
|
|
66
|
+
: {
|
|
67
|
+
type: import('vue').PropType<T[K]>
|
|
68
|
+
required: true
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ActionView } from 'action'
|
|
2
|
+
export interface LcbImageProps {
|
|
3
|
+
items?: Partial<ActionView>[]
|
|
4
|
+
styleGroup?: number
|
|
5
|
+
imageRadius?: number
|
|
6
|
+
itemPadding?: number
|
|
7
|
+
enablePreview?: boolean
|
|
8
|
+
marginHorizontal?: number
|
|
9
|
+
imageMargin?: number
|
|
10
|
+
imageSize?: number
|
|
11
|
+
floatUp?: number
|
|
12
|
+
shadowColor?: string
|
|
13
|
+
shadowSize?: number
|
|
14
|
+
blurSize?: number
|
|
15
|
+
marginBottom?: number
|
|
16
|
+
imageHeight?: number
|
|
17
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { LcbImgNavProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbImgNavProps>,
|
|
5
|
+
{
|
|
6
|
+
textColor: string
|
|
7
|
+
iconColor: string
|
|
8
|
+
iconRadius: number
|
|
9
|
+
paddingVertical: number
|
|
10
|
+
iconSize: number
|
|
11
|
+
paddingHorizontal: number
|
|
12
|
+
iconTextMargin: number
|
|
13
|
+
pictureDistribution: number
|
|
14
|
+
textSize: number
|
|
15
|
+
urlKey: string
|
|
16
|
+
titleKey: string
|
|
17
|
+
itemFlexMode: string
|
|
18
|
+
itemGap: number
|
|
19
|
+
titleBottom: number
|
|
20
|
+
textFontWeight: number
|
|
21
|
+
divider: boolean
|
|
22
|
+
arrowSize: number
|
|
23
|
+
arrowColor: string
|
|
24
|
+
reverse: boolean
|
|
25
|
+
}
|
|
26
|
+
>,
|
|
27
|
+
{},
|
|
28
|
+
unknown,
|
|
29
|
+
{},
|
|
30
|
+
{},
|
|
31
|
+
import('vue').ComponentOptionsMixin,
|
|
32
|
+
import('vue').ComponentOptionsMixin,
|
|
33
|
+
{
|
|
34
|
+
click: (...args: any[]) => void
|
|
35
|
+
},
|
|
36
|
+
string,
|
|
37
|
+
import('vue').PublicProps,
|
|
38
|
+
Readonly<
|
|
39
|
+
import('vue').ExtractPropTypes<
|
|
40
|
+
__VLS_WithDefaults<
|
|
41
|
+
__VLS_TypePropsToOption<LcbImgNavProps>,
|
|
42
|
+
{
|
|
43
|
+
textColor: string
|
|
44
|
+
iconColor: string
|
|
45
|
+
iconRadius: number
|
|
46
|
+
paddingVertical: number
|
|
47
|
+
iconSize: number
|
|
48
|
+
paddingHorizontal: number
|
|
49
|
+
iconTextMargin: number
|
|
50
|
+
pictureDistribution: number
|
|
51
|
+
textSize: number
|
|
52
|
+
urlKey: string
|
|
53
|
+
titleKey: string
|
|
54
|
+
itemFlexMode: string
|
|
55
|
+
itemGap: number
|
|
56
|
+
titleBottom: number
|
|
57
|
+
textFontWeight: number
|
|
58
|
+
divider: boolean
|
|
59
|
+
arrowSize: number
|
|
60
|
+
arrowColor: string
|
|
61
|
+
reverse: boolean
|
|
62
|
+
}
|
|
63
|
+
>
|
|
64
|
+
>
|
|
65
|
+
> & {
|
|
66
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
iconSize: number
|
|
70
|
+
iconColor: string
|
|
71
|
+
paddingHorizontal: number
|
|
72
|
+
paddingVertical: number
|
|
73
|
+
textColor: string
|
|
74
|
+
pictureDistribution: 3 | 4 | 5
|
|
75
|
+
iconRadius: number
|
|
76
|
+
iconTextMargin: number
|
|
77
|
+
textFontWeight: number
|
|
78
|
+
divider: boolean
|
|
79
|
+
arrowColor: string
|
|
80
|
+
arrowSize: number
|
|
81
|
+
textSize: number
|
|
82
|
+
urlKey: string
|
|
83
|
+
titleKey: string
|
|
84
|
+
titleBottom: number
|
|
85
|
+
itemGap: number
|
|
86
|
+
itemFlexMode: 'row' | 'column'
|
|
87
|
+
},
|
|
88
|
+
{}
|
|
89
|
+
>
|
|
90
|
+
export default _default
|
|
91
|
+
type __VLS_WithDefaults<P, D> = {
|
|
92
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
93
|
+
? __VLS_Prettify<
|
|
94
|
+
P[K] & {
|
|
95
|
+
default: D[K]
|
|
96
|
+
}
|
|
97
|
+
>
|
|
98
|
+
: P[K]
|
|
99
|
+
}
|
|
100
|
+
type __VLS_Prettify<T> = {
|
|
101
|
+
[K in keyof T]: T[K]
|
|
102
|
+
} & {}
|
|
103
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
104
|
+
type __VLS_TypePropsToOption<T> = {
|
|
105
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
106
|
+
? {
|
|
107
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
108
|
+
}
|
|
109
|
+
: {
|
|
110
|
+
type: import('vue').PropType<T[K]>
|
|
111
|
+
required: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ActionView } from 'action'
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbImgNavProps extends LcbBlockProps {
|
|
4
|
+
/** 模式 1.单行 2.多行 3.cell */
|
|
5
|
+
styleGroup?: 1 | 2 | 3
|
|
6
|
+
/** 文字颜色 #212121 */
|
|
7
|
+
textColor?: string
|
|
8
|
+
/** 背景图片 */
|
|
9
|
+
bgImg?: string
|
|
10
|
+
/** 图标颜色 #212121 */
|
|
11
|
+
iconColor?: string
|
|
12
|
+
/** 图标类型 0.系统 1.自定义 */
|
|
13
|
+
iconType?: 0 | 1
|
|
14
|
+
/** 数据内容 */
|
|
15
|
+
items?: (ActionView & {
|
|
16
|
+
/** 依赖值 */
|
|
17
|
+
dependKey?: string
|
|
18
|
+
/** 依赖值类型 */
|
|
19
|
+
keyFromUser?: boolean
|
|
20
|
+
/** 依赖值反选 */
|
|
21
|
+
reverse?: boolean
|
|
22
|
+
/** 依赖值对比值 */
|
|
23
|
+
dependKeyCompareValue?: string
|
|
24
|
+
})[]
|
|
25
|
+
/** 排布方式每行几个 */
|
|
26
|
+
pictureDistribution?: 3 | 4 | 5
|
|
27
|
+
/** 图标尺寸 0.小40px 2.大50px */
|
|
28
|
+
iconSize?: number
|
|
29
|
+
/** 图标圆角 默认 0 */
|
|
30
|
+
iconRadius?: number
|
|
31
|
+
/** 文字与图标距离 */
|
|
32
|
+
iconTextMargin?: number
|
|
33
|
+
textFontWeight?: number
|
|
34
|
+
divider?: boolean
|
|
35
|
+
/** 箭头颜色 */
|
|
36
|
+
arrowColor?: string
|
|
37
|
+
/** 箭头大小 */
|
|
38
|
+
arrowSize?: number
|
|
39
|
+
showTitle?: boolean
|
|
40
|
+
title?: string
|
|
41
|
+
fontWeight?: number
|
|
42
|
+
fontSize?: number
|
|
43
|
+
color?: string
|
|
44
|
+
titlePadding?: number
|
|
45
|
+
textSize?: number
|
|
46
|
+
urlKey?: string
|
|
47
|
+
titleKey?: string
|
|
48
|
+
titleBottom?: number
|
|
49
|
+
itemBgColor?: string
|
|
50
|
+
itemRadius?: number
|
|
51
|
+
itemVerticalPadding?: number
|
|
52
|
+
itemHorizontalPadding?: number
|
|
53
|
+
itemGap?: number
|
|
54
|
+
itemFlexMode?: 'row' | 'column'
|
|
55
|
+
/** 阴影颜色 */
|
|
56
|
+
itemShadowColor?: string
|
|
57
|
+
/** 阴影大小 */
|
|
58
|
+
itemShadowSize?: number
|
|
59
|
+
/** 模糊大小 */
|
|
60
|
+
itemBlurSize?: number
|
|
61
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LightMapConfig, MapDetail } from './types'
|
|
2
|
+
/**
|
|
3
|
+
* 获取地图配置列表
|
|
4
|
+
*/
|
|
5
|
+
export declare const getMapConfigListApi: () => Promise<LightMapConfig[]>
|
|
6
|
+
/**
|
|
7
|
+
* 获取地图详细信息
|
|
8
|
+
* @param clockLightConfigId 地图配置ID
|
|
9
|
+
*/
|
|
10
|
+
export declare const getMapDetailApi: (clockLightConfigId: string) => Promise<MapDetail>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { LcbLightMapProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbLightMapProps>,
|
|
5
|
+
{
|
|
6
|
+
width: number
|
|
7
|
+
height: number
|
|
8
|
+
}
|
|
9
|
+
>,
|
|
10
|
+
{},
|
|
11
|
+
unknown,
|
|
12
|
+
{},
|
|
13
|
+
{},
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
import('vue').ComponentOptionsMixin,
|
|
16
|
+
{},
|
|
17
|
+
string,
|
|
18
|
+
import('vue').PublicProps,
|
|
19
|
+
Readonly<
|
|
20
|
+
import('vue').ExtractPropTypes<
|
|
21
|
+
__VLS_WithDefaults<
|
|
22
|
+
__VLS_TypePropsToOption<LcbLightMapProps>,
|
|
23
|
+
{
|
|
24
|
+
width: number
|
|
25
|
+
height: number
|
|
26
|
+
}
|
|
27
|
+
>
|
|
28
|
+
>
|
|
29
|
+
>,
|
|
30
|
+
{
|
|
31
|
+
width: number
|
|
32
|
+
height: number
|
|
33
|
+
},
|
|
34
|
+
{}
|
|
35
|
+
>
|
|
36
|
+
export default _default
|
|
37
|
+
type __VLS_WithDefaults<P, D> = {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
39
|
+
? __VLS_Prettify<
|
|
40
|
+
P[K] & {
|
|
41
|
+
default: D[K]
|
|
42
|
+
}
|
|
43
|
+
>
|
|
44
|
+
: P[K]
|
|
45
|
+
}
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K]
|
|
48
|
+
} & {}
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
50
|
+
type __VLS_TypePropsToOption<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
52
|
+
? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
54
|
+
}
|
|
55
|
+
: {
|
|
56
|
+
type: import('vue').PropType<T[K]>
|
|
57
|
+
required: true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
2
|
+
export interface LcbLightMapProps extends LcbBlockProps {
|
|
3
|
+
width: number
|
|
4
|
+
height: number
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 位置记录接口
|
|
8
|
+
*/
|
|
9
|
+
export interface LocationRecord {
|
|
10
|
+
latitude: number
|
|
11
|
+
longitude: number
|
|
12
|
+
[key: string]: any
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 地图详细配置接口
|
|
16
|
+
*/
|
|
17
|
+
export interface MapDetailConfig {
|
|
18
|
+
boundaries: {
|
|
19
|
+
southwest: {
|
|
20
|
+
latitude: number
|
|
21
|
+
longitude: number
|
|
22
|
+
}
|
|
23
|
+
northeast: {
|
|
24
|
+
latitude: number
|
|
25
|
+
longitude: number
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
physicalSize: {
|
|
29
|
+
xSize: number
|
|
30
|
+
ySize: number
|
|
31
|
+
}
|
|
32
|
+
backgroundImages: {
|
|
33
|
+
default: string
|
|
34
|
+
p30: string
|
|
35
|
+
p60: string
|
|
36
|
+
p80: string
|
|
37
|
+
p100: string
|
|
38
|
+
}
|
|
39
|
+
displaySize?: {
|
|
40
|
+
normal?: {
|
|
41
|
+
width: number
|
|
42
|
+
height: number
|
|
43
|
+
}
|
|
44
|
+
index?: {
|
|
45
|
+
width: number
|
|
46
|
+
height: number
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
dotStyle: {
|
|
50
|
+
width: number
|
|
51
|
+
height: number
|
|
52
|
+
backgroundColor: string
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 地图配置接口
|
|
57
|
+
*/
|
|
58
|
+
export interface LightMapConfig {
|
|
59
|
+
clockLightConfigId: string
|
|
60
|
+
subTitle: string
|
|
61
|
+
title: string
|
|
62
|
+
mapConfig: MapDetailConfig
|
|
63
|
+
}
|
|
64
|
+
export interface MapDetail {
|
|
65
|
+
clockLightConfigId: string
|
|
66
|
+
clockLightProductCountRate: number
|
|
67
|
+
clockLightUserRecordList: LocationRecord[]
|
|
68
|
+
clockLightConfigList: LightMapConfig[]
|
|
69
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { LightMapConfig, LocationRecord } from './types'
|
|
2
|
+
/**
|
|
3
|
+
* 使用 Haversine 公式计算两个经纬度坐标之间的距离
|
|
4
|
+
* @param lat1 起点纬度
|
|
5
|
+
* @param lng1 起点经度
|
|
6
|
+
* @param lat2 终点纬度
|
|
7
|
+
* @param lng2 终点经度
|
|
8
|
+
* @returns 距离(单位:米)
|
|
9
|
+
*/
|
|
10
|
+
export declare const getDistanceByLoc: (
|
|
11
|
+
lat1?: number,
|
|
12
|
+
lng1?: number,
|
|
13
|
+
lat2?: number,
|
|
14
|
+
lng2?: number,
|
|
15
|
+
) => number
|
|
16
|
+
/**
|
|
17
|
+
* 计算位置点相对于地图的百分比位置
|
|
18
|
+
*/
|
|
19
|
+
export declare const getPosition: (
|
|
20
|
+
item: LocationRecord,
|
|
21
|
+
mapConfig: LightMapConfig,
|
|
22
|
+
) => {
|
|
23
|
+
left: number
|
|
24
|
+
bottom: number
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 获取点的完整样式
|
|
28
|
+
*/
|
|
29
|
+
export declare const getDotStyle: (
|
|
30
|
+
item: LocationRecord,
|
|
31
|
+
mapConfig: LightMapConfig,
|
|
32
|
+
) => {
|
|
33
|
+
left: string
|
|
34
|
+
bottom: string
|
|
35
|
+
width: string
|
|
36
|
+
height: string
|
|
37
|
+
backgroundColor: string
|
|
38
|
+
marginLeft: string
|
|
39
|
+
marginBottom: string
|
|
40
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { FilterTabsProps } from './components/FilterTabs/type'
|
|
2
|
+
import { Option } from './types'
|
|
3
|
+
export interface LcbListInfo {
|
|
4
|
+
url: string
|
|
5
|
+
baseParam?: Record<string, unknown>
|
|
6
|
+
}
|
|
7
|
+
export interface LcbFilterResult {
|
|
8
|
+
btnComponent: BtnComponent
|
|
9
|
+
filterTags: FilterTags[]
|
|
10
|
+
filterComponent: FilterComponent[]
|
|
11
|
+
listInfo: LcbListInfo
|
|
12
|
+
filterTabs?: {
|
|
13
|
+
componentProps: FilterTabsProps
|
|
14
|
+
valueName: string
|
|
15
|
+
sortType?: boolean
|
|
16
|
+
defaultValue?: string
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export interface FilterComponent {
|
|
20
|
+
filterName?: string
|
|
21
|
+
component: string
|
|
22
|
+
defaultValue?: string
|
|
23
|
+
defaultName?: string
|
|
24
|
+
valueName: string
|
|
25
|
+
sortType?: boolean
|
|
26
|
+
componentProps: FilterComponentProps
|
|
27
|
+
}
|
|
28
|
+
interface FilterComponentProps {
|
|
29
|
+
mode?: 'multiple' | 'single'
|
|
30
|
+
apiPath?: string
|
|
31
|
+
options?: Option[]
|
|
32
|
+
componentList?: ComponentList[]
|
|
33
|
+
}
|
|
34
|
+
export interface ComponentList {
|
|
35
|
+
filterName: string
|
|
36
|
+
component: string
|
|
37
|
+
valueName: string
|
|
38
|
+
sortType?: boolean
|
|
39
|
+
defaultValue?: string | string[] | number[]
|
|
40
|
+
componentProps: FilterTagsProps
|
|
41
|
+
}
|
|
42
|
+
export interface FilterTags {
|
|
43
|
+
component: string
|
|
44
|
+
valueName: string
|
|
45
|
+
sortType?: boolean
|
|
46
|
+
defaultValue?: string
|
|
47
|
+
defaultName?: string
|
|
48
|
+
componentProps: FilterTagsProps
|
|
49
|
+
}
|
|
50
|
+
export interface FilterTagsProps {
|
|
51
|
+
mode?: 'multiple' | 'single'
|
|
52
|
+
max: number
|
|
53
|
+
min: number
|
|
54
|
+
apiPath: string
|
|
55
|
+
options: Option[]
|
|
56
|
+
unit?: string
|
|
57
|
+
step?: number
|
|
58
|
+
valueName: string
|
|
59
|
+
sortType?: boolean
|
|
60
|
+
}
|
|
61
|
+
interface BtnComponent {
|
|
62
|
+
postRequest: string
|
|
63
|
+
}
|
|
64
|
+
export declare const getFilterDetail: (
|
|
65
|
+
val: string,
|
|
66
|
+
) => Promise<import('../../action').IResData<LcbFilterResult>>
|
|
67
|
+
export {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<
|
|
2
|
+
{
|
|
3
|
+
disabled: {
|
|
4
|
+
type: BooleanConstructor
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
{},
|
|
8
|
+
unknown,
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
import('vue').ComponentOptionsMixin,
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
{
|
|
14
|
+
cancel: (...args: any[]) => void
|
|
15
|
+
submit: (...args: any[]) => void
|
|
16
|
+
},
|
|
17
|
+
string,
|
|
18
|
+
import('vue').PublicProps,
|
|
19
|
+
Readonly<
|
|
20
|
+
import('vue').ExtractPropTypes<{
|
|
21
|
+
disabled: {
|
|
22
|
+
type: BooleanConstructor
|
|
23
|
+
}
|
|
24
|
+
}>
|
|
25
|
+
> & {
|
|
26
|
+
onSubmit?: ((...args: any[]) => any) | undefined
|
|
27
|
+
onCancel?: ((...args: any[]) => any) | undefined
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
disabled: boolean
|
|
31
|
+
},
|
|
32
|
+
{}
|
|
33
|
+
>
|
|
34
|
+
export default _default
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentGroupProps } from './type'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_TypePropsToOption<ComponentGroupProps>,
|
|
4
|
+
{},
|
|
5
|
+
unknown,
|
|
6
|
+
{},
|
|
7
|
+
{},
|
|
8
|
+
import('vue').ComponentOptionsMixin,
|
|
9
|
+
import('vue').ComponentOptionsMixin,
|
|
10
|
+
{
|
|
11
|
+
submit: (...args: any[]) => void
|
|
12
|
+
},
|
|
13
|
+
string,
|
|
14
|
+
import('vue').PublicProps,
|
|
15
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<ComponentGroupProps>>> & {
|
|
16
|
+
onSubmit?: ((...args: any[]) => any) | undefined
|
|
17
|
+
},
|
|
18
|
+
{},
|
|
19
|
+
{}
|
|
20
|
+
>
|
|
21
|
+
export default _default
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
23
|
+
type __VLS_TypePropsToOption<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
25
|
+
? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
27
|
+
}
|
|
28
|
+
: {
|
|
29
|
+
type: import('vue').PropType<T[K]>
|
|
30
|
+
required: true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LcbFilterListProps } from './type'
|
|
2
|
+
declare let __VLS_typeProps: LcbFilterListProps
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: unknown[]
|
|
5
|
+
} & typeof __VLS_typeProps
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
default?(_: {}): any
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<
|
|
10
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
11
|
+
{},
|
|
12
|
+
unknown,
|
|
13
|
+
{},
|
|
14
|
+
{},
|
|
15
|
+
import('vue').ComponentOptionsMixin,
|
|
16
|
+
import('vue').ComponentOptionsMixin,
|
|
17
|
+
{
|
|
18
|
+
'update:modelValue': (modelValue: unknown[]) => void
|
|
19
|
+
refresh: (...args: any[]) => void
|
|
20
|
+
},
|
|
21
|
+
string,
|
|
22
|
+
import('vue').PublicProps,
|
|
23
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
24
|
+
'onUpdate:modelValue'?: ((modelValue: unknown[]) => any) | undefined
|
|
25
|
+
onRefresh?: ((...args: any[]) => any) | undefined
|
|
26
|
+
},
|
|
27
|
+
{},
|
|
28
|
+
{}
|
|
29
|
+
>
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
31
|
+
typeof __VLS_component,
|
|
32
|
+
ReturnType<typeof __VLS_template>
|
|
33
|
+
>
|
|
34
|
+
export default _default
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
41
|
+
type __VLS_TypePropsToOption<T> = {
|
|
42
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
43
|
+
? {
|
|
44
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
45
|
+
}
|
|
46
|
+
: {
|
|
47
|
+
type: import('vue').PropType<T[K]>
|
|
48
|
+
required: true
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LcbListInfo } from '../../api'
|
|
2
|
+
import { LcbProductProps } from '../../../lcb-product/types'
|
|
3
|
+
export interface PageListProps {
|
|
4
|
+
emptyImage?: string
|
|
5
|
+
listType?: LcbProductProps['listType']
|
|
6
|
+
productProps?: LcbProductProps
|
|
7
|
+
}
|
|
8
|
+
export interface LcbFilterListProps extends PageListProps, LcbListInfo {
|
|
9
|
+
autoHeight?: boolean
|
|
10
|
+
dynamicScope?: string
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FilterSelectProps } from './type'
|
|
2
|
+
declare let __VLS_typeProps: FilterSelectProps
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: string | string[]
|
|
5
|
+
title?: string
|
|
6
|
+
} & typeof __VLS_typeProps
|
|
7
|
+
declare const _default: import('vue').DefineComponent<
|
|
8
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
9
|
+
{},
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
{
|
|
16
|
+
'update:modelValue': (modelValue: string | string[]) => void
|
|
17
|
+
'update:title': (title: string) => void
|
|
18
|
+
submit: (...args: any[]) => void
|
|
19
|
+
},
|
|
20
|
+
string,
|
|
21
|
+
import('vue').PublicProps,
|
|
22
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
23
|
+
'onUpdate:modelValue'?: ((modelValue: string | string[]) => any) | undefined
|
|
24
|
+
onSubmit?: ((...args: any[]) => any) | undefined
|
|
25
|
+
'onUpdate:title'?: ((title: string) => any) | undefined
|
|
26
|
+
},
|
|
27
|
+
{},
|
|
28
|
+
{}
|
|
29
|
+
>
|
|
30
|
+
export default _default
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
34
|
+
? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
36
|
+
}
|
|
37
|
+
: {
|
|
38
|
+
type: import('vue').PropType<T[K]>
|
|
39
|
+
required: true
|
|
40
|
+
}
|
|
41
|
+
}
|