@tplc/business 0.7.6 → 0.7.8
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 +9 -0
- package/components/lcb-nav/AddressCommunity/index.vue +1 -1
- package/components/lcb-nav/lcb-nav.vue +8 -2
- 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,57 @@
|
|
|
1
|
+
import { LcbListProps } from '@tplc/business/components/lcb-list/types'
|
|
2
|
+
import { LcbListInfo } from '@tplc/business/components/lcb-list/api'
|
|
3
|
+
declare const _default: import('vue').DefineComponent<
|
|
4
|
+
__VLS_WithDefaults<
|
|
5
|
+
__VLS_TypePropsToOption<LcbListProps & LcbListInfo>,
|
|
6
|
+
{
|
|
7
|
+
mapTagMode: string
|
|
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<LcbListProps & LcbListInfo>,
|
|
23
|
+
{
|
|
24
|
+
mapTagMode: string
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
>
|
|
28
|
+
>,
|
|
29
|
+
{
|
|
30
|
+
mapTagMode: 'single' | 'multiple'
|
|
31
|
+
},
|
|
32
|
+
{}
|
|
33
|
+
>
|
|
34
|
+
export default _default
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
37
|
+
? __VLS_Prettify<
|
|
38
|
+
P[K] & {
|
|
39
|
+
default: D[K]
|
|
40
|
+
}
|
|
41
|
+
>
|
|
42
|
+
: P[K]
|
|
43
|
+
}
|
|
44
|
+
type __VLS_Prettify<T> = {
|
|
45
|
+
[K in keyof T]: T[K]
|
|
46
|
+
} & {}
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
50
|
+
? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
52
|
+
}
|
|
53
|
+
: {
|
|
54
|
+
type: import('vue').PropType<T[K]>
|
|
55
|
+
required: true
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface MapMarker {
|
|
2
|
+
id: number
|
|
3
|
+
name?: string
|
|
4
|
+
longitude: number
|
|
5
|
+
latitude: number
|
|
6
|
+
iconPath: string
|
|
7
|
+
width: number
|
|
8
|
+
height: number
|
|
9
|
+
poiId: string
|
|
10
|
+
anchor?: {
|
|
11
|
+
x: number
|
|
12
|
+
y: number
|
|
13
|
+
}
|
|
14
|
+
alpha?: number
|
|
15
|
+
callout: {
|
|
16
|
+
textAlign: string
|
|
17
|
+
borderWidth: number
|
|
18
|
+
borderColor: string
|
|
19
|
+
content: string
|
|
20
|
+
color: string
|
|
21
|
+
fontSize: number
|
|
22
|
+
borderRadius: number
|
|
23
|
+
bgColor: string
|
|
24
|
+
padding: number
|
|
25
|
+
display: 'ALWAYS' | 'BYCLICK'
|
|
26
|
+
}
|
|
27
|
+
zIndex?: number
|
|
28
|
+
}
|
|
29
|
+
export interface MapItem {
|
|
30
|
+
mapPriceTips: string
|
|
31
|
+
latitude: number
|
|
32
|
+
productName: string
|
|
33
|
+
longitude: number
|
|
34
|
+
productId: string
|
|
35
|
+
link: any
|
|
36
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { AddressCommunityProps } from '../types'
|
|
2
|
+
declare let __VLS_typeProps: AddressCommunityProps
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
''?: string
|
|
5
|
+
} & typeof __VLS_typeProps
|
|
6
|
+
declare const _default: import('vue').DefineComponent<
|
|
7
|
+
__VLS_WithDefaults<
|
|
8
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
9
|
+
{
|
|
10
|
+
backgroundColor: string
|
|
11
|
+
color: string
|
|
12
|
+
fontSize: number
|
|
13
|
+
width: number
|
|
14
|
+
mode: string
|
|
15
|
+
popupWidth: number
|
|
16
|
+
switchType: string
|
|
17
|
+
}
|
|
18
|
+
>,
|
|
19
|
+
{},
|
|
20
|
+
unknown,
|
|
21
|
+
{},
|
|
22
|
+
{},
|
|
23
|
+
import('vue').ComponentOptionsMixin,
|
|
24
|
+
import('vue').ComponentOptionsMixin,
|
|
25
|
+
any,
|
|
26
|
+
string,
|
|
27
|
+
import('vue').PublicProps,
|
|
28
|
+
any,
|
|
29
|
+
{
|
|
30
|
+
mode: 'normal' | 'menu'
|
|
31
|
+
width: number
|
|
32
|
+
backgroundColor: string
|
|
33
|
+
color: string
|
|
34
|
+
fontSize: number
|
|
35
|
+
popupWidth: number
|
|
36
|
+
switchType: 'merchant' | 'address'
|
|
37
|
+
},
|
|
38
|
+
{}
|
|
39
|
+
>
|
|
40
|
+
export default _default
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
43
|
+
? __VLS_Prettify<
|
|
44
|
+
P[K] & {
|
|
45
|
+
default: D[K]
|
|
46
|
+
}
|
|
47
|
+
>
|
|
48
|
+
: P[K]
|
|
49
|
+
}
|
|
50
|
+
type __VLS_Prettify<T> = {
|
|
51
|
+
[K in keyof T]: T[K]
|
|
52
|
+
} & {}
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
54
|
+
type __VLS_TypePropsToOption<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
56
|
+
? {
|
|
57
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
58
|
+
}
|
|
59
|
+
: {
|
|
60
|
+
type: import('vue').PropType<T[K]>
|
|
61
|
+
required: true
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { PropType } from 'vue'
|
|
2
|
+
import { LcbActionViewProps } from '../../lcb-action-view/types'
|
|
3
|
+
declare const _default: import('vue').DefineComponent<
|
|
4
|
+
{
|
|
5
|
+
link: {
|
|
6
|
+
type: PropType<LcbActionViewProps>
|
|
7
|
+
}
|
|
8
|
+
searchText: {
|
|
9
|
+
type: StringConstructor
|
|
10
|
+
default: string
|
|
11
|
+
}
|
|
12
|
+
left: {
|
|
13
|
+
type: BooleanConstructor
|
|
14
|
+
}
|
|
15
|
+
back: {
|
|
16
|
+
type: BooleanConstructor
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{},
|
|
20
|
+
unknown,
|
|
21
|
+
{},
|
|
22
|
+
{},
|
|
23
|
+
import('vue').ComponentOptionsMixin,
|
|
24
|
+
import('vue').ComponentOptionsMixin,
|
|
25
|
+
{},
|
|
26
|
+
string,
|
|
27
|
+
import('vue').PublicProps,
|
|
28
|
+
Readonly<
|
|
29
|
+
import('vue').ExtractPropTypes<{
|
|
30
|
+
link: {
|
|
31
|
+
type: PropType<LcbActionViewProps>
|
|
32
|
+
}
|
|
33
|
+
searchText: {
|
|
34
|
+
type: StringConstructor
|
|
35
|
+
default: string
|
|
36
|
+
}
|
|
37
|
+
left: {
|
|
38
|
+
type: BooleanConstructor
|
|
39
|
+
}
|
|
40
|
+
back: {
|
|
41
|
+
type: BooleanConstructor
|
|
42
|
+
}
|
|
43
|
+
}>
|
|
44
|
+
>,
|
|
45
|
+
{
|
|
46
|
+
left: boolean
|
|
47
|
+
back: boolean
|
|
48
|
+
searchText: string
|
|
49
|
+
},
|
|
50
|
+
{}
|
|
51
|
+
>
|
|
52
|
+
export default _default
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** 获取分享配置 */
|
|
2
|
+
export declare const getShareConfigList: (data: {
|
|
3
|
+
page: string
|
|
4
|
+
productId?: string
|
|
5
|
+
productType?: string
|
|
6
|
+
}) => Promise<
|
|
7
|
+
import('../../../action').IResData<{
|
|
8
|
+
[key: string]: unknown
|
|
9
|
+
shareConfigList: {
|
|
10
|
+
backgroundImage: string
|
|
11
|
+
staticParam: string
|
|
12
|
+
coverImg: string
|
|
13
|
+
styleConfig: string
|
|
14
|
+
}[]
|
|
15
|
+
}>
|
|
16
|
+
>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare let __VLS_typeProps: {
|
|
2
|
+
params?: Record<string, any>
|
|
3
|
+
}
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: any
|
|
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: any) => void
|
|
17
|
+
},
|
|
18
|
+
string,
|
|
19
|
+
import('vue').PublicProps,
|
|
20
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
21
|
+
'onUpdate:modelValue'?: ((modelValue: any) => any) | undefined
|
|
22
|
+
},
|
|
23
|
+
{},
|
|
24
|
+
{}
|
|
25
|
+
>
|
|
26
|
+
export default _default
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
30
|
+
? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
32
|
+
}
|
|
33
|
+
: {
|
|
34
|
+
type: import('vue').PropType<T[K]>
|
|
35
|
+
required: true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NavTitleProps } from '../types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_TypePropsToOption<NavTitleProps>,
|
|
4
|
+
{},
|
|
5
|
+
unknown,
|
|
6
|
+
{},
|
|
7
|
+
{},
|
|
8
|
+
import('vue').ComponentOptionsMixin,
|
|
9
|
+
import('vue').ComponentOptionsMixin,
|
|
10
|
+
{},
|
|
11
|
+
string,
|
|
12
|
+
import('vue').PublicProps,
|
|
13
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<NavTitleProps>>>,
|
|
14
|
+
{},
|
|
15
|
+
{}
|
|
16
|
+
>
|
|
17
|
+
export default _default
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
21
|
+
? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
23
|
+
}
|
|
24
|
+
: {
|
|
25
|
+
type: import('vue').PropType<T[K]>
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { NavProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<NavProps>,
|
|
5
|
+
{
|
|
6
|
+
styleGroup: number
|
|
7
|
+
titleLocation: string
|
|
8
|
+
topStyle: number
|
|
9
|
+
title: string
|
|
10
|
+
titleMode: string
|
|
11
|
+
backgroundType: string
|
|
12
|
+
colorMode: string
|
|
13
|
+
backColor: string
|
|
14
|
+
contentColor: string
|
|
15
|
+
logoImg: string
|
|
16
|
+
back: boolean
|
|
17
|
+
capsuleMode: string
|
|
18
|
+
immersionMode: number
|
|
19
|
+
textSize: number
|
|
20
|
+
fontWeight: number
|
|
21
|
+
textColor: string
|
|
22
|
+
keyFromUser: boolean
|
|
23
|
+
showAddressCommunity: boolean
|
|
24
|
+
}
|
|
25
|
+
>,
|
|
26
|
+
{},
|
|
27
|
+
unknown,
|
|
28
|
+
{},
|
|
29
|
+
{},
|
|
30
|
+
import('vue').ComponentOptionsMixin,
|
|
31
|
+
import('vue').ComponentOptionsMixin,
|
|
32
|
+
{},
|
|
33
|
+
string,
|
|
34
|
+
import('vue').PublicProps,
|
|
35
|
+
Readonly<
|
|
36
|
+
import('vue').ExtractPropTypes<
|
|
37
|
+
__VLS_WithDefaults<
|
|
38
|
+
__VLS_TypePropsToOption<NavProps>,
|
|
39
|
+
{
|
|
40
|
+
styleGroup: number
|
|
41
|
+
titleLocation: string
|
|
42
|
+
topStyle: number
|
|
43
|
+
title: string
|
|
44
|
+
titleMode: string
|
|
45
|
+
backgroundType: string
|
|
46
|
+
colorMode: string
|
|
47
|
+
backColor: string
|
|
48
|
+
contentColor: string
|
|
49
|
+
logoImg: string
|
|
50
|
+
back: boolean
|
|
51
|
+
capsuleMode: string
|
|
52
|
+
immersionMode: number
|
|
53
|
+
textSize: number
|
|
54
|
+
fontWeight: number
|
|
55
|
+
textColor: string
|
|
56
|
+
keyFromUser: boolean
|
|
57
|
+
showAddressCommunity: boolean
|
|
58
|
+
}
|
|
59
|
+
>
|
|
60
|
+
>
|
|
61
|
+
>,
|
|
62
|
+
{
|
|
63
|
+
title: string
|
|
64
|
+
back: boolean
|
|
65
|
+
fontWeight: number
|
|
66
|
+
keyFromUser: boolean
|
|
67
|
+
styleGroup: 1 | 2 | 3 | 4
|
|
68
|
+
textSize: number
|
|
69
|
+
topStyle: 1 | 2
|
|
70
|
+
immersionMode: 1 | 2 | 3
|
|
71
|
+
colorMode: 'custom' | 'default'
|
|
72
|
+
backColor: string
|
|
73
|
+
backgroundType: 'img' | 'color'
|
|
74
|
+
contentColor: string
|
|
75
|
+
capsuleMode: 'light' | 'dark'
|
|
76
|
+
showAddressCommunity: boolean
|
|
77
|
+
titleMode: 'text' | 'img'
|
|
78
|
+
logoImg: string
|
|
79
|
+
titleLocation: 'left' | 'center'
|
|
80
|
+
},
|
|
81
|
+
{}
|
|
82
|
+
>
|
|
83
|
+
export default _default
|
|
84
|
+
type __VLS_WithDefaults<P, D> = {
|
|
85
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
86
|
+
? __VLS_Prettify<
|
|
87
|
+
P[K] & {
|
|
88
|
+
default: D[K]
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
: P[K]
|
|
92
|
+
}
|
|
93
|
+
type __VLS_Prettify<T> = {
|
|
94
|
+
[K in keyof T]: T[K]
|
|
95
|
+
} & {}
|
|
96
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
97
|
+
type __VLS_TypePropsToOption<T> = {
|
|
98
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
99
|
+
? {
|
|
100
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
101
|
+
}
|
|
102
|
+
: {
|
|
103
|
+
type: import('vue').PropType<T[K]>
|
|
104
|
+
required: true
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
|
+
export interface ICapsule {
|
|
3
|
+
icon: string
|
|
4
|
+
action:
|
|
5
|
+
| 'translate'
|
|
6
|
+
| 'scanCode'
|
|
7
|
+
| 'search'
|
|
8
|
+
| 'home'
|
|
9
|
+
| 'setting'
|
|
10
|
+
| 'back'
|
|
11
|
+
| 'share'
|
|
12
|
+
| 'notification'
|
|
13
|
+
dependKey?: string
|
|
14
|
+
keyFromUser?: string
|
|
15
|
+
dependKeyCompareValue?: string
|
|
16
|
+
reverse?: boolean
|
|
17
|
+
}
|
|
18
|
+
export interface AddressCommunityProps {
|
|
19
|
+
backgroundColor?: string
|
|
20
|
+
color?: string
|
|
21
|
+
fontSize?: number
|
|
22
|
+
width?: number
|
|
23
|
+
mode: 'normal' | 'menu'
|
|
24
|
+
popupWidth?: number
|
|
25
|
+
switchType?: 'merchant' | 'address'
|
|
26
|
+
}
|
|
27
|
+
export interface NavTitleProps {
|
|
28
|
+
/** 模式 */
|
|
29
|
+
titleMode?: 'text' | 'img'
|
|
30
|
+
/** 标题 */
|
|
31
|
+
title?: string
|
|
32
|
+
/** 图片 */
|
|
33
|
+
logoImg?: string
|
|
34
|
+
typographyTextBackground?: string
|
|
35
|
+
/** 方位 */
|
|
36
|
+
titleLocation?: 'left' | 'center'
|
|
37
|
+
/** 是否沉浸式 */
|
|
38
|
+
opacity?: number
|
|
39
|
+
textSize?: number
|
|
40
|
+
fontWeight?: number
|
|
41
|
+
keyFromUser?: boolean
|
|
42
|
+
}
|
|
43
|
+
export interface NavProps extends NavTitleProps {
|
|
44
|
+
/** 是否固定 */
|
|
45
|
+
fixed?: boolean
|
|
46
|
+
/** 是否沉浸式状态栏 */
|
|
47
|
+
topStyle?: 1 | 2
|
|
48
|
+
immersionMode?: 1 | 2 | 3
|
|
49
|
+
/** 模式 1.标题 2.搜索 3.导航 4.沉浸式 */
|
|
50
|
+
styleGroup?: 1 | 2 | 3 | 4
|
|
51
|
+
/** 背景图片 */
|
|
52
|
+
backgroundImage?: string
|
|
53
|
+
/** 颜色模式 */
|
|
54
|
+
colorMode?: 'custom' | 'default'
|
|
55
|
+
/** 背景颜色 */
|
|
56
|
+
backColor?: string
|
|
57
|
+
/** 背景样式 */
|
|
58
|
+
backgroundType?: 'img' | 'color'
|
|
59
|
+
/** 内容颜色 */
|
|
60
|
+
contentColor?: string
|
|
61
|
+
searchText?: string
|
|
62
|
+
/** 是否显示返回按钮 */
|
|
63
|
+
back?: boolean
|
|
64
|
+
/** 胶囊样式 */
|
|
65
|
+
capsuleMode?: 'light' | 'dark'
|
|
66
|
+
/** 胶囊列表 */
|
|
67
|
+
capsules?: ICapsule[]
|
|
68
|
+
searchLink?: LcbActionViewProps
|
|
69
|
+
rightIcons?: ICapsule[]
|
|
70
|
+
showAddressCommunity?: boolean
|
|
71
|
+
addressCommunityProps?: AddressCommunityProps
|
|
72
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AdvertItem {
|
|
2
|
+
adContent: string
|
|
3
|
+
advertId: string
|
|
4
|
+
closeTime: number
|
|
5
|
+
closeType: string
|
|
6
|
+
createDate: string
|
|
7
|
+
jumpType: number
|
|
8
|
+
lastModifyDate: string
|
|
9
|
+
pageType: string
|
|
10
|
+
type: number
|
|
11
|
+
title?: string
|
|
12
|
+
weightSort: string
|
|
13
|
+
}
|
|
14
|
+
/** 获取公告 */
|
|
15
|
+
export declare const getAdvertList: (data: {
|
|
16
|
+
/** 1: 文字 2: 图片 */
|
|
17
|
+
type: 1 | 2
|
|
18
|
+
}) => Promise<import('../../../action').IResData<AdvertItem[]>>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { LcbNoticeBarProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbNoticeBarProps>,
|
|
5
|
+
{
|
|
6
|
+
speed: number
|
|
7
|
+
borderColor: string
|
|
8
|
+
direction: string
|
|
9
|
+
backgroundColor: string
|
|
10
|
+
paddingVertical: number
|
|
11
|
+
rightArrow: boolean
|
|
12
|
+
color: string
|
|
13
|
+
iconSize: number
|
|
14
|
+
}
|
|
15
|
+
>,
|
|
16
|
+
{},
|
|
17
|
+
unknown,
|
|
18
|
+
{},
|
|
19
|
+
{},
|
|
20
|
+
import('vue').ComponentOptionsMixin,
|
|
21
|
+
import('vue').ComponentOptionsMixin,
|
|
22
|
+
{},
|
|
23
|
+
string,
|
|
24
|
+
import('vue').PublicProps,
|
|
25
|
+
Readonly<
|
|
26
|
+
import('vue').ExtractPropTypes<
|
|
27
|
+
__VLS_WithDefaults<
|
|
28
|
+
__VLS_TypePropsToOption<LcbNoticeBarProps>,
|
|
29
|
+
{
|
|
30
|
+
speed: number
|
|
31
|
+
borderColor: string
|
|
32
|
+
direction: string
|
|
33
|
+
backgroundColor: string
|
|
34
|
+
paddingVertical: number
|
|
35
|
+
rightArrow: boolean
|
|
36
|
+
color: string
|
|
37
|
+
iconSize: number
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
>
|
|
41
|
+
>,
|
|
42
|
+
{
|
|
43
|
+
backgroundColor: string
|
|
44
|
+
color: string
|
|
45
|
+
direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
|
|
46
|
+
iconSize: number
|
|
47
|
+
paddingVertical: number
|
|
48
|
+
borderColor: string
|
|
49
|
+
speed: number
|
|
50
|
+
rightArrow: boolean
|
|
51
|
+
},
|
|
52
|
+
{}
|
|
53
|
+
>
|
|
54
|
+
export default _default
|
|
55
|
+
type __VLS_WithDefaults<P, D> = {
|
|
56
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
57
|
+
? __VLS_Prettify<
|
|
58
|
+
P[K] & {
|
|
59
|
+
default: D[K]
|
|
60
|
+
}
|
|
61
|
+
>
|
|
62
|
+
: P[K]
|
|
63
|
+
}
|
|
64
|
+
type __VLS_Prettify<T> = {
|
|
65
|
+
[K in keyof T]: T[K]
|
|
66
|
+
} & {}
|
|
67
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
68
|
+
type __VLS_TypePropsToOption<T> = {
|
|
69
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
70
|
+
? {
|
|
71
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
72
|
+
}
|
|
73
|
+
: {
|
|
74
|
+
type: import('vue').PropType<T[K]>
|
|
75
|
+
required: true
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NoticeBarScrollDirection } from '@tplc/wot/types/components/wd-notice-bar/types'
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbNoticeBarProps extends LcbBlockProps {
|
|
4
|
+
vertical?: boolean
|
|
5
|
+
/** -1 无 0 图标 1 自定义 */
|
|
6
|
+
iconType?: -1 | 0 | 1
|
|
7
|
+
direction?: NoticeBarScrollDirection
|
|
8
|
+
speed?: number
|
|
9
|
+
textColor?: string
|
|
10
|
+
pageType?: string
|
|
11
|
+
rightArrow?: boolean
|
|
12
|
+
icon?: string
|
|
13
|
+
iconSize?: number
|
|
14
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { LcbOperationActionsProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbOperationActionsProps>,
|
|
5
|
+
{
|
|
6
|
+
size: string
|
|
7
|
+
}
|
|
8
|
+
>,
|
|
9
|
+
{},
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
{
|
|
16
|
+
refresh: (...args: any[]) => void
|
|
17
|
+
cancel: (...args: any[]) => void
|
|
18
|
+
},
|
|
19
|
+
string,
|
|
20
|
+
import('vue').PublicProps,
|
|
21
|
+
Readonly<
|
|
22
|
+
import('vue').ExtractPropTypes<
|
|
23
|
+
__VLS_WithDefaults<
|
|
24
|
+
__VLS_TypePropsToOption<LcbOperationActionsProps>,
|
|
25
|
+
{
|
|
26
|
+
size: string
|
|
27
|
+
}
|
|
28
|
+
>
|
|
29
|
+
>
|
|
30
|
+
> & {
|
|
31
|
+
onCancel?: ((...args: any[]) => any) | undefined
|
|
32
|
+
onRefresh?: ((...args: any[]) => any) | undefined
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
size: 'small' | 'medium' | 'large'
|
|
36
|
+
},
|
|
37
|
+
{}
|
|
38
|
+
>
|
|
39
|
+
export default _default
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
42
|
+
? __VLS_Prettify<
|
|
43
|
+
P[K] & {
|
|
44
|
+
default: D[K]
|
|
45
|
+
}
|
|
46
|
+
>
|
|
47
|
+
: P[K]
|
|
48
|
+
}
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K]
|
|
51
|
+
} & {}
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
55
|
+
? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
57
|
+
}
|
|
58
|
+
: {
|
|
59
|
+
type: import('vue').PropType<T[K]>
|
|
60
|
+
required: true
|
|
61
|
+
}
|
|
62
|
+
}
|