@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,49 @@
|
|
|
1
|
+
export interface ProvinceCityArea {
|
|
2
|
+
cityList: CityList[]
|
|
3
|
+
provinceId: string
|
|
4
|
+
provinceName: string
|
|
5
|
+
}
|
|
6
|
+
interface CityList {
|
|
7
|
+
areaList?: AreaList[]
|
|
8
|
+
cityId: string
|
|
9
|
+
cityName: string
|
|
10
|
+
provinceId: string
|
|
11
|
+
}
|
|
12
|
+
interface AreaList {
|
|
13
|
+
areaId: string
|
|
14
|
+
areaName: string
|
|
15
|
+
cityId: string
|
|
16
|
+
provinceId: string
|
|
17
|
+
}
|
|
18
|
+
export interface AreaOptions {
|
|
19
|
+
label: string
|
|
20
|
+
value: string
|
|
21
|
+
children?: AreaOptions[]
|
|
22
|
+
}
|
|
23
|
+
export declare const getProvinceCityArea: () => Promise<
|
|
24
|
+
{
|
|
25
|
+
label: string
|
|
26
|
+
value: string
|
|
27
|
+
children: {
|
|
28
|
+
label: string
|
|
29
|
+
value: string
|
|
30
|
+
children:
|
|
31
|
+
| {
|
|
32
|
+
label: string
|
|
33
|
+
value: string
|
|
34
|
+
}[]
|
|
35
|
+
| undefined
|
|
36
|
+
}[]
|
|
37
|
+
}[]
|
|
38
|
+
>
|
|
39
|
+
export declare const getProvinceCity: () => Promise<
|
|
40
|
+
{
|
|
41
|
+
label: string
|
|
42
|
+
value: string
|
|
43
|
+
children: {
|
|
44
|
+
label: string
|
|
45
|
+
value: string
|
|
46
|
+
}[]
|
|
47
|
+
}[]
|
|
48
|
+
>
|
|
49
|
+
export {}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { LcbAreaPickerProps } from './types'
|
|
2
|
+
import { AreaOptions } from './api'
|
|
3
|
+
declare let __VLS_typeProps: LcbAreaPickerProps
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: string[]
|
|
6
|
+
} & typeof __VLS_typeProps
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
default?(_: { text: string[] | undefined }): any
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
__VLS_WithDefaults<
|
|
12
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
13
|
+
{
|
|
14
|
+
mode: string
|
|
15
|
+
}
|
|
16
|
+
>,
|
|
17
|
+
{},
|
|
18
|
+
unknown,
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
import('vue').ComponentOptionsMixin,
|
|
22
|
+
import('vue').ComponentOptionsMixin,
|
|
23
|
+
{
|
|
24
|
+
'update:modelValue': (modelValue: string[]) => void
|
|
25
|
+
confirm: (payload: AreaOptions[]) => void
|
|
26
|
+
},
|
|
27
|
+
string,
|
|
28
|
+
import('vue').PublicProps,
|
|
29
|
+
Readonly<
|
|
30
|
+
import('vue').ExtractPropTypes<
|
|
31
|
+
__VLS_WithDefaults<
|
|
32
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
33
|
+
{
|
|
34
|
+
mode: string
|
|
35
|
+
}
|
|
36
|
+
>
|
|
37
|
+
>
|
|
38
|
+
> & {
|
|
39
|
+
'onUpdate:modelValue'?: ((modelValue: string[]) => any) | undefined
|
|
40
|
+
onConfirm?: ((payload: AreaOptions[]) => any) | undefined
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
mode: 'city' | 'area'
|
|
44
|
+
},
|
|
45
|
+
{}
|
|
46
|
+
>
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
48
|
+
typeof __VLS_component,
|
|
49
|
+
ReturnType<typeof __VLS_template>
|
|
50
|
+
>
|
|
51
|
+
export default _default
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
54
|
+
? __VLS_Prettify<
|
|
55
|
+
P[K] & {
|
|
56
|
+
default: D[K]
|
|
57
|
+
}
|
|
58
|
+
>
|
|
59
|
+
: P[K]
|
|
60
|
+
}
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K]
|
|
63
|
+
} & {}
|
|
64
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
70
|
+
type __VLS_TypePropsToOption<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
72
|
+
? {
|
|
73
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
74
|
+
}
|
|
75
|
+
: {
|
|
76
|
+
type: import('vue').PropType<T[K]>
|
|
77
|
+
required: true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { LcbBannerProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbBannerProps>,
|
|
5
|
+
{
|
|
6
|
+
styleGroup: number
|
|
7
|
+
radius: number
|
|
8
|
+
slidingStyle: number
|
|
9
|
+
titleColor: string
|
|
10
|
+
titleFontSize: number
|
|
11
|
+
titleTop: number
|
|
12
|
+
titleLeft: number
|
|
13
|
+
fontWeight: number
|
|
14
|
+
supportClickScroll: boolean
|
|
15
|
+
}
|
|
16
|
+
>,
|
|
17
|
+
{},
|
|
18
|
+
unknown,
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
import('vue').ComponentOptionsMixin,
|
|
22
|
+
import('vue').ComponentOptionsMixin,
|
|
23
|
+
{},
|
|
24
|
+
string,
|
|
25
|
+
import('vue').PublicProps,
|
|
26
|
+
Readonly<
|
|
27
|
+
import('vue').ExtractPropTypes<
|
|
28
|
+
__VLS_WithDefaults<
|
|
29
|
+
__VLS_TypePropsToOption<LcbBannerProps>,
|
|
30
|
+
{
|
|
31
|
+
styleGroup: number
|
|
32
|
+
radius: number
|
|
33
|
+
slidingStyle: number
|
|
34
|
+
titleColor: string
|
|
35
|
+
titleFontSize: number
|
|
36
|
+
titleTop: number
|
|
37
|
+
titleLeft: number
|
|
38
|
+
fontWeight: number
|
|
39
|
+
supportClickScroll: boolean
|
|
40
|
+
}
|
|
41
|
+
>
|
|
42
|
+
>
|
|
43
|
+
>,
|
|
44
|
+
{
|
|
45
|
+
radius: number
|
|
46
|
+
fontWeight: number
|
|
47
|
+
styleGroup: 1 | 2
|
|
48
|
+
slidingStyle: 1 | 2
|
|
49
|
+
supportClickScroll: boolean
|
|
50
|
+
titleColor: string
|
|
51
|
+
titleFontSize: number
|
|
52
|
+
titleTop: number
|
|
53
|
+
titleLeft: number
|
|
54
|
+
},
|
|
55
|
+
{}
|
|
56
|
+
>
|
|
57
|
+
export default _default
|
|
58
|
+
type __VLS_WithDefaults<P, D> = {
|
|
59
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
60
|
+
? __VLS_Prettify<
|
|
61
|
+
P[K] & {
|
|
62
|
+
default: D[K]
|
|
63
|
+
}
|
|
64
|
+
>
|
|
65
|
+
: P[K]
|
|
66
|
+
}
|
|
67
|
+
type __VLS_Prettify<T> = {
|
|
68
|
+
[K in keyof T]: T[K]
|
|
69
|
+
} & {}
|
|
70
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
71
|
+
type __VLS_TypePropsToOption<T> = {
|
|
72
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
73
|
+
? {
|
|
74
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
75
|
+
}
|
|
76
|
+
: {
|
|
77
|
+
type: import('vue').PropType<T[K]>
|
|
78
|
+
required: true
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ActionView } from 'action'
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbBannerProps extends LcbBlockProps {
|
|
4
|
+
items?: Partial<
|
|
5
|
+
ActionView & {
|
|
6
|
+
maskBgColor?: string
|
|
7
|
+
}
|
|
8
|
+
>[]
|
|
9
|
+
imageWidth?: number
|
|
10
|
+
/** 风格 1.平铺 2.卡片 */
|
|
11
|
+
styleGroup?: 1 | 2
|
|
12
|
+
autoplay?: boolean
|
|
13
|
+
/** 滚动方向 默认 horizontal */
|
|
14
|
+
direction?: 'horizontal' | 'vertical'
|
|
15
|
+
/** 同时显示的滑块数量 默认 1 */
|
|
16
|
+
displayMultipleItems?: number
|
|
17
|
+
/** 滑动时长 300ms */
|
|
18
|
+
duration?: number
|
|
19
|
+
/** 轮播图高度 默认192 */
|
|
20
|
+
height?: number
|
|
21
|
+
imgWidth?: number
|
|
22
|
+
/** 轮播间隔时间 5000ms */
|
|
23
|
+
interval?: number
|
|
24
|
+
/** 是否循环播放 默认 true */
|
|
25
|
+
loop?: boolean
|
|
26
|
+
/** 后边间距 */
|
|
27
|
+
nextMargin?: number
|
|
28
|
+
/** 前边间距 */
|
|
29
|
+
previousMargin?: number
|
|
30
|
+
/** 指示器位置 bottom */
|
|
31
|
+
indicatorPosition?:
|
|
32
|
+
| 'left'
|
|
33
|
+
| 'top-left'
|
|
34
|
+
| 'top'
|
|
35
|
+
| 'top-right'
|
|
36
|
+
| 'bottom-left'
|
|
37
|
+
| 'bottom'
|
|
38
|
+
| 'bottom-right'
|
|
39
|
+
| 'right'
|
|
40
|
+
/** 边距是否应用到第一个、最后一个元素 */
|
|
41
|
+
paddingBottom?: number
|
|
42
|
+
/** 指示器底部距离 */
|
|
43
|
+
indicatorBottom?: number
|
|
44
|
+
indicatorTop?: number
|
|
45
|
+
snapToEdge?: boolean
|
|
46
|
+
itemPadding?: number
|
|
47
|
+
/** 图片圆角 */
|
|
48
|
+
imageRadius?: number
|
|
49
|
+
radius?: number
|
|
50
|
+
customPrevImageClass?: string
|
|
51
|
+
customNextImageClass?: string
|
|
52
|
+
indicator?: 'dots' | 'dots-bar' | 'fraction'
|
|
53
|
+
/** 滑动样式 1平面 2立体 */
|
|
54
|
+
slidingStyle?: 1 | 2
|
|
55
|
+
maskBgColor?: string
|
|
56
|
+
fullScreenBackground?: boolean
|
|
57
|
+
supportClickScroll?: boolean
|
|
58
|
+
/** 是否全屏流式banner */
|
|
59
|
+
fullBannerFlow?: boolean
|
|
60
|
+
titleColor?: string
|
|
61
|
+
titleFontSize?: number
|
|
62
|
+
titleFontWeight?: number
|
|
63
|
+
titleTop?: number
|
|
64
|
+
titleLeft?: number
|
|
65
|
+
showTitle?: boolean
|
|
66
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LcbBannerListProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
5
|
+
{
|
|
6
|
+
backgroundColor: string
|
|
7
|
+
}
|
|
8
|
+
>,
|
|
9
|
+
{},
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
{},
|
|
16
|
+
string,
|
|
17
|
+
import('vue').PublicProps,
|
|
18
|
+
Readonly<
|
|
19
|
+
import('vue').ExtractPropTypes<
|
|
20
|
+
__VLS_WithDefaults<
|
|
21
|
+
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
22
|
+
{
|
|
23
|
+
backgroundColor: string
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
>
|
|
27
|
+
>,
|
|
28
|
+
{
|
|
29
|
+
backgroundColor: string
|
|
30
|
+
},
|
|
31
|
+
{}
|
|
32
|
+
>
|
|
33
|
+
export default _default
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
36
|
+
? __VLS_Prettify<
|
|
37
|
+
P[K] & {
|
|
38
|
+
default: D[K]
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
: P[K]
|
|
42
|
+
}
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K]
|
|
45
|
+
} & {}
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
49
|
+
? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
51
|
+
}
|
|
52
|
+
: {
|
|
53
|
+
type: import('vue').PropType<T[K]>
|
|
54
|
+
required: true
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
import { ActionView } from 'action'
|
|
4
|
+
export interface LcbBannerListProps extends LcbBlockProps {
|
|
5
|
+
items?: ActionView[]
|
|
6
|
+
/** 风格 1.顶部title 2.底部title */
|
|
7
|
+
styleGroup?: 1 | 2
|
|
8
|
+
/** 轮播图高度 默认192 */
|
|
9
|
+
height?: number
|
|
10
|
+
/** 轮播图宽度 */
|
|
11
|
+
imgWidth?: number
|
|
12
|
+
title: string
|
|
13
|
+
hint?: string
|
|
14
|
+
logo?: string
|
|
15
|
+
rightIcon?: string
|
|
16
|
+
leftIcon?: string
|
|
17
|
+
itemPadding?: number
|
|
18
|
+
imageRadius?: number
|
|
19
|
+
link?: LcbActionViewProps
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { LcbBlockInnerProps } from './types'
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
default?(_: {}): any
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
|
+
__VLS_WithDefaults<
|
|
7
|
+
__VLS_TypePropsToOption<LcbBlockInnerProps>,
|
|
8
|
+
{
|
|
9
|
+
backgroundSize: string
|
|
10
|
+
backgroundRepeat: string
|
|
11
|
+
backgroundPosition: string
|
|
12
|
+
opacity: number
|
|
13
|
+
fontSize: number
|
|
14
|
+
position: string
|
|
15
|
+
}
|
|
16
|
+
>,
|
|
17
|
+
{},
|
|
18
|
+
unknown,
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
import('vue').ComponentOptionsMixin,
|
|
22
|
+
import('vue').ComponentOptionsMixin,
|
|
23
|
+
{},
|
|
24
|
+
string,
|
|
25
|
+
import('vue').PublicProps,
|
|
26
|
+
Readonly<
|
|
27
|
+
import('vue').ExtractPropTypes<
|
|
28
|
+
__VLS_WithDefaults<
|
|
29
|
+
__VLS_TypePropsToOption<LcbBlockInnerProps>,
|
|
30
|
+
{
|
|
31
|
+
backgroundSize: string
|
|
32
|
+
backgroundRepeat: string
|
|
33
|
+
backgroundPosition: string
|
|
34
|
+
opacity: number
|
|
35
|
+
fontSize: number
|
|
36
|
+
position: string
|
|
37
|
+
}
|
|
38
|
+
>
|
|
39
|
+
>
|
|
40
|
+
>,
|
|
41
|
+
{},
|
|
42
|
+
{}
|
|
43
|
+
>
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
45
|
+
typeof __VLS_component,
|
|
46
|
+
ReturnType<typeof __VLS_template>
|
|
47
|
+
>
|
|
48
|
+
export default _default
|
|
49
|
+
type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
51
|
+
? __VLS_Prettify<
|
|
52
|
+
P[K] & {
|
|
53
|
+
default: D[K]
|
|
54
|
+
}
|
|
55
|
+
>
|
|
56
|
+
: P[K]
|
|
57
|
+
}
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K]
|
|
60
|
+
} & {}
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
67
|
+
type __VLS_TypePropsToOption<T> = {
|
|
68
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
69
|
+
? {
|
|
70
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
71
|
+
}
|
|
72
|
+
: {
|
|
73
|
+
type: import('vue').PropType<T[K]>
|
|
74
|
+
required: true
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DynamicOptions } from 'action'
|
|
2
|
+
export interface LcbBlockProps {
|
|
3
|
+
/** 左右外距 */
|
|
4
|
+
marginHorizontal?: number
|
|
5
|
+
/** 左右内距 */
|
|
6
|
+
paddingHorizontal?: number
|
|
7
|
+
/** 上下内距 */
|
|
8
|
+
paddingVertical?: number
|
|
9
|
+
/** 背景颜色 #ffffff */
|
|
10
|
+
backgroundColor?: string
|
|
11
|
+
/** 背景图片 */
|
|
12
|
+
backgroundImage?: string
|
|
13
|
+
/** 上浮距离 */
|
|
14
|
+
floatUp?: number
|
|
15
|
+
/** 阴影颜色 */
|
|
16
|
+
shadowColor?: string
|
|
17
|
+
/** 阴影大小 */
|
|
18
|
+
shadowSize?: number
|
|
19
|
+
/** 模糊大小 */
|
|
20
|
+
blurSize?: number
|
|
21
|
+
/** 透明度 */
|
|
22
|
+
opacity?: number
|
|
23
|
+
paddingTop?: number
|
|
24
|
+
paddingBottom?: number
|
|
25
|
+
paddingLeft?: number
|
|
26
|
+
paddingRight?: number
|
|
27
|
+
marginTop?: number
|
|
28
|
+
marginBottom?: number
|
|
29
|
+
marginLeft?: number
|
|
30
|
+
marginRight?: number
|
|
31
|
+
zIndex?: number
|
|
32
|
+
position?: 'relative' | 'absolute'
|
|
33
|
+
color?: string
|
|
34
|
+
fontSize?: number
|
|
35
|
+
fontWeight?: number
|
|
36
|
+
radius?: number
|
|
37
|
+
topRadius?: number
|
|
38
|
+
bottomRadius?: number
|
|
39
|
+
customClass?: string
|
|
40
|
+
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
41
|
+
backgroundSize?: string
|
|
42
|
+
backgroundPosition?: string
|
|
43
|
+
borderColor?: string
|
|
44
|
+
borderWidth?: number
|
|
45
|
+
textAlign?: 'left' | 'center' | 'right'
|
|
46
|
+
customStyle?: Record<string, any>
|
|
47
|
+
align?:
|
|
48
|
+
| 'top-left'
|
|
49
|
+
| 'top-center'
|
|
50
|
+
| 'top-right'
|
|
51
|
+
| 'center-left'
|
|
52
|
+
| 'center-center'
|
|
53
|
+
| 'center-right'
|
|
54
|
+
| 'bottom-left'
|
|
55
|
+
| 'bottom-center'
|
|
56
|
+
| 'bottom-right'
|
|
57
|
+
dynamicStyleOptions?: Record<string, DynamicOptions>
|
|
58
|
+
dynamicBgImage?: string
|
|
59
|
+
}
|
|
60
|
+
export interface LcbBlockInnerProps extends LcbBlockProps {
|
|
61
|
+
[key: string]: any
|
|
62
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { LcbButtonProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbButtonProps>,
|
|
5
|
+
{
|
|
6
|
+
color: string
|
|
7
|
+
backgroundColor: string
|
|
8
|
+
hideWhenDynamicKeyNotExist: boolean
|
|
9
|
+
enablePreview: boolean
|
|
10
|
+
iconGap: number
|
|
11
|
+
iconSize: number
|
|
12
|
+
qrCodeSize: number
|
|
13
|
+
}
|
|
14
|
+
>,
|
|
15
|
+
{},
|
|
16
|
+
unknown,
|
|
17
|
+
{},
|
|
18
|
+
{},
|
|
19
|
+
import('vue').ComponentOptionsMixin,
|
|
20
|
+
import('vue').ComponentOptionsMixin,
|
|
21
|
+
{},
|
|
22
|
+
string,
|
|
23
|
+
import('vue').PublicProps,
|
|
24
|
+
Readonly<
|
|
25
|
+
import('vue').ExtractPropTypes<
|
|
26
|
+
__VLS_WithDefaults<
|
|
27
|
+
__VLS_TypePropsToOption<LcbButtonProps>,
|
|
28
|
+
{
|
|
29
|
+
color: string
|
|
30
|
+
backgroundColor: string
|
|
31
|
+
hideWhenDynamicKeyNotExist: boolean
|
|
32
|
+
enablePreview: boolean
|
|
33
|
+
iconGap: number
|
|
34
|
+
iconSize: number
|
|
35
|
+
qrCodeSize: number
|
|
36
|
+
}
|
|
37
|
+
>
|
|
38
|
+
>
|
|
39
|
+
>,
|
|
40
|
+
{
|
|
41
|
+
backgroundColor: string
|
|
42
|
+
color: string
|
|
43
|
+
enablePreview: boolean
|
|
44
|
+
iconSize: number
|
|
45
|
+
qrCodeSize: number
|
|
46
|
+
iconGap: number
|
|
47
|
+
hideWhenDynamicKeyNotExist: boolean
|
|
48
|
+
},
|
|
49
|
+
{}
|
|
50
|
+
>
|
|
51
|
+
export default _default
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
54
|
+
? __VLS_Prettify<
|
|
55
|
+
P[K] & {
|
|
56
|
+
default: D[K]
|
|
57
|
+
}
|
|
58
|
+
>
|
|
59
|
+
: P[K]
|
|
60
|
+
}
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K]
|
|
63
|
+
} & {}
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
65
|
+
type __VLS_TypePropsToOption<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
67
|
+
? {
|
|
68
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
69
|
+
}
|
|
70
|
+
: {
|
|
71
|
+
type: import('vue').PropType<T[K]>
|
|
72
|
+
required: true
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbButtonProps extends LcbBlockProps {
|
|
4
|
+
text: string
|
|
5
|
+
action?: LcbActionViewProps
|
|
6
|
+
mode: 'image' | 'text' | 'noStyle' | 'qrcode'
|
|
7
|
+
url?: string
|
|
8
|
+
imageWidth?: number
|
|
9
|
+
imageHeight?: number
|
|
10
|
+
dynamicKey?: string
|
|
11
|
+
keyFromUser?: boolean
|
|
12
|
+
qrCodeSize?: number
|
|
13
|
+
customClass?: string
|
|
14
|
+
fillWidth?: boolean
|
|
15
|
+
fillHeight?: boolean
|
|
16
|
+
icon?: string
|
|
17
|
+
iconSize?: number
|
|
18
|
+
iconColor?: string
|
|
19
|
+
iconGap?: number
|
|
20
|
+
hideWhenDynamicKeyNotExist?: boolean
|
|
21
|
+
textDefaultValue?: string
|
|
22
|
+
enablePreview?: boolean
|
|
23
|
+
itemAlign?:
|
|
24
|
+
| 'top-left'
|
|
25
|
+
| 'top-center'
|
|
26
|
+
| 'top-right'
|
|
27
|
+
| 'center-left'
|
|
28
|
+
| 'center-center'
|
|
29
|
+
| 'center-right'
|
|
30
|
+
| 'bottom-left'
|
|
31
|
+
| 'bottom-center'
|
|
32
|
+
| 'bottom-right'
|
|
33
|
+
dynamicActionKey?: string
|
|
34
|
+
textTruncate?: boolean
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LcbHistoryResult {
|
|
2
|
+
date: string
|
|
3
|
+
topText: string
|
|
4
|
+
centerText: string
|
|
5
|
+
bottomText: string
|
|
6
|
+
dateName: string
|
|
7
|
+
price: number
|
|
8
|
+
status: number
|
|
9
|
+
restFlag: boolean
|
|
10
|
+
}
|
|
11
|
+
export declare const queryHolidayInfoList: (data: {
|
|
12
|
+
startDate: string
|
|
13
|
+
endDate: string
|
|
14
|
+
/** 日历数据类型·住宿··hotel..门票·ticket */
|
|
15
|
+
businessType?: string
|
|
16
|
+
businessId?: string
|
|
17
|
+
}) => Promise<import('../../../action').IResData<LcbHistoryResult[]>>
|