@tplc/business 0.1.13 → 0.1.15
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 +480 -0
- package/action.d.ts +2 -0
- package/{components/lcb-user-top/api/index.ts → api/user.ts} +1 -0
- package/components/lcb-action-view/lcb-action-view.vue +14 -2
- package/components/lcb-action-view/types.ts +21 -2
- package/components/lcb-advert/lcb-advert.vue +78 -0
- package/components/lcb-advert/types.ts +3 -0
- package/components/lcb-banner-block/lcb-banner-block.vue +3 -4
- package/components/lcb-block/lcb-block.vue +11 -3
- package/components/lcb-block/types.ts +5 -1
- package/components/lcb-button/lcb-button.vue +32 -0
- package/components/lcb-button/types.ts +8 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +3 -2
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +4 -1
- package/components/lcb-city-select/components/lcb-city-list/index.vue +6 -1
- package/components/lcb-city-select/lcb-city-select.vue +24 -8
- package/components/lcb-gap/lcb-gap.vue +15 -7
- package/components/lcb-gap/types.ts +4 -2
- package/components/lcb-grid/lcb-grid.vue +56 -20
- package/components/lcb-grid/types.ts +8 -0
- package/components/lcb-home-search/lcb-home-search.vue +44 -20
- package/components/lcb-img-nav/lcb-img-nav.vue +51 -30
- package/components/lcb-img-nav/types.ts +16 -0
- package/components/lcb-list/components/FilterList/index.vue +26 -21
- package/components/lcb-list/components/FilterList/type.ts +1 -1
- package/components/lcb-list/components/FilterView/index.vue +121 -0
- package/components/lcb-list/components/FilterView/type.ts +8 -0
- package/components/lcb-list/hooks/useSelect.ts +2 -0
- package/components/lcb-list/lcb-list.vue +57 -138
- package/components/lcb-list/types.ts +1 -0
- package/components/lcb-nav/lcb-nav.vue +22 -9
- package/components/lcb-notice/api/index.ts +21 -0
- package/components/lcb-notice/lcb-notice.vue +66 -50
- package/components/lcb-notice/types.ts +11 -26
- package/components/lcb-product/lcb-product.vue +114 -4
- package/components/lcb-product/types.ts +3 -0
- package/components/lcb-product-item/components/ItemValue.vue +14 -25
- package/components/lcb-product-item/lcb-product-item.vue +13 -7
- package/components/lcb-rich-text/lcb-rich-text.vue +22 -0
- package/components/lcb-rich-text/types.ts +5 -0
- package/components/lcb-text/lcb-text.vue +20 -0
- package/components/lcb-text/types.ts +5 -0
- package/components/lcb-title/lcb-title.vue +33 -6
- package/components/lcb-title/types.ts +17 -3
- package/components/lcb-user-order/lcb-user-order.vue +48 -61
- package/components/lcb-user-order/types.ts +5 -48
- package/components/lcb-user-top/Nums/index.vue +3 -2
- package/components/lcb-user-top/lcb-user-top.vue +40 -26
- package/components/lcb-vip/api/index.ts +35 -0
- package/components/lcb-vip/components/InfoDialog/index.vue +65 -0
- package/components/lcb-vip/lcb-vip.vue +96 -0
- package/components/lcb-vip/types.ts +8 -0
- package/constants.ts +2 -0
- package/global.d.ts +5 -0
- package/iconfonts/index.css +24 -3
- package/index.ts +5 -1
- package/package.json +18 -13
- package/types/{components/lcb-user-top/api/index.d.ts → api/user.d.ts} +2 -1
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +2 -22
- package/types/components/lcb-action-view/types.d.ts +21 -2
- 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-area-picker/lcb-area-picker.vue.d.ts +1 -1
- package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +0 -9
- package/types/components/lcb-block/lcb-block.vue.d.ts +4 -0
- package/types/components/lcb-block/types.d.ts +5 -0
- package/types/components/lcb-button/lcb-button.vue.d.ts +42 -0
- package/types/components/lcb-button/types.d.ts +7 -0
- package/types/components/lcb-calendar-search/lcb-calendar-search.vue.d.ts +6 -4
- package/types/components/lcb-gap/types.d.ts +3 -2
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +13 -4
- package/types/components/lcb-grid/types.d.ts +8 -0
- package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +4 -1
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +21 -2
- package/types/components/lcb-img-nav/types.d.ts +15 -0
- package/types/components/lcb-list/components/FilterList/index.vue.d.ts +12 -4
- package/types/components/lcb-list/components/FilterList/type.d.ts +1 -1
- package/types/components/lcb-list/components/FilterView/index.vue.d.ts +36 -0
- package/types/components/lcb-list/components/FilterView/type.d.ts +7 -0
- package/types/components/lcb-list/lcb-list.vue.d.ts +2 -1
- package/types/components/lcb-list/types.d.ts +1 -0
- package/types/components/lcb-nav/lcb-nav.vue.d.ts +0 -3
- package/types/components/lcb-notice/api/index.d.ts +19 -0
- package/types/components/lcb-notice/lcb-notice.vue.d.ts +25 -19
- package/types/components/lcb-notice/types.d.ts +11 -24
- package/types/components/lcb-product/lcb-product.vue.d.ts +3 -0
- package/types/components/lcb-product/types.d.ts +3 -0
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +2 -2
- package/types/components/{lcb-notice/Item/index.vue.d.ts → lcb-rich-text/lcb-rich-text.vue.d.ts} +4 -16
- package/types/components/lcb-rich-text/types.d.ts +4 -0
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +2 -2
- 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 +27 -1
- package/types/components/lcb-title/types.d.ts +15 -3
- package/types/components/lcb-user-order/types.d.ts +5 -35
- package/types/components/lcb-user-top/Nums/index.vue.d.ts +6 -2
- package/types/components/lcb-vip/api/index.d.ts +34 -0
- package/types/components/lcb-vip/components/InfoDialog/index.vue.d.ts +38 -0
- package/types/components/lcb-vip/lcb-vip.vue.d.ts +68 -0
- package/types/components/lcb-vip/types.d.ts +8 -0
- package/types/constants.d.ts +2 -0
- package/types/index.d.ts +6 -0
- package/types/utils/auth.d.ts +2 -0
- package/types/utils/transform.d.ts +5 -1
- package/types/utils/utils.d.ts +2 -0
- package/utils/auth.ts +19 -0
- package/utils/transform.ts +13 -2
- package/utils/utils.ts +6 -1
- package/components/lcb-notice/Item/index.vue +0 -112
- package/types/components/lcb-list/components/FilterList/mockData.d.ts +0 -63
|
@@ -22,11 +22,12 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
22
22
|
import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>>
|
|
23
23
|
>,
|
|
24
24
|
{
|
|
25
|
-
listType: '
|
|
25
|
+
listType: 'list' | 'horizontal' | 'grid' | 'waterfall'
|
|
26
26
|
pageFilterType: string
|
|
27
27
|
pageListProps: import('./components/FilterList/type').PageListProps
|
|
28
28
|
border: boolean
|
|
29
29
|
styleMode: 'default' | 'plain'
|
|
30
|
+
isSticky: boolean
|
|
30
31
|
},
|
|
31
32
|
{}
|
|
32
33
|
>
|
|
@@ -13,7 +13,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
13
13
|
backColor: string
|
|
14
14
|
contentColor: string
|
|
15
15
|
logoImg: string
|
|
16
|
-
fixed: boolean
|
|
17
16
|
back: boolean
|
|
18
17
|
capsuleMode: string
|
|
19
18
|
immersionMode: number
|
|
@@ -43,7 +42,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
43
42
|
backColor: string
|
|
44
43
|
contentColor: string
|
|
45
44
|
logoImg: string
|
|
46
|
-
fixed: boolean
|
|
47
45
|
back: boolean
|
|
48
46
|
capsuleMode: string
|
|
49
47
|
immersionMode: number
|
|
@@ -53,7 +51,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
53
51
|
>,
|
|
54
52
|
{
|
|
55
53
|
title: string
|
|
56
|
-
fixed: boolean
|
|
57
54
|
styleGroup: 1 | 2 | 3 | 4
|
|
58
55
|
back: boolean
|
|
59
56
|
topStyle: 1 | 2
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
pageType: string
|
|
17
|
+
/** 1: 文字 2: 图片 */
|
|
18
|
+
type: 1 | 2
|
|
19
|
+
}) => Promise<import('../../../action').IResData<AdvertItem[]>>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LcbNoticeBarProps } from './types'
|
|
2
|
-
declare let __VLS_typeProps: LcbNoticeBarProps
|
|
3
|
-
declare const interval: import('vue').ModelRef<number, string>
|
|
4
|
-
type __VLS_PublicProps = {
|
|
5
|
-
modelValue?: any
|
|
6
|
-
interval?: NonNullable<(typeof interval)['value']>
|
|
7
|
-
} & typeof __VLS_typeProps
|
|
8
2
|
declare const _default: import('vue').DefineComponent<
|
|
9
3
|
__VLS_WithDefaults<
|
|
10
|
-
__VLS_TypePropsToOption<
|
|
4
|
+
__VLS_TypePropsToOption<LcbNoticeBarProps>,
|
|
11
5
|
{
|
|
12
|
-
|
|
6
|
+
speed: number
|
|
13
7
|
borderColor: string
|
|
8
|
+
direction: string
|
|
9
|
+
backgroundColor: string
|
|
10
|
+
paddingVertical: number
|
|
11
|
+
rightArrow: boolean
|
|
12
|
+
color: string
|
|
13
|
+
iconSize: number
|
|
14
14
|
}
|
|
15
15
|
>,
|
|
16
16
|
{},
|
|
@@ -19,29 +19,35 @@ declare const _default: import('vue').DefineComponent<
|
|
|
19
19
|
{},
|
|
20
20
|
import('vue').ComponentOptionsMixin,
|
|
21
21
|
import('vue').ComponentOptionsMixin,
|
|
22
|
-
{
|
|
23
|
-
'update:modelValue': (modelValue: any) => void
|
|
24
|
-
'update:interval': (interval: number) => void
|
|
25
|
-
},
|
|
22
|
+
{},
|
|
26
23
|
string,
|
|
27
24
|
import('vue').PublicProps,
|
|
28
25
|
Readonly<
|
|
29
26
|
import('vue').ExtractPropTypes<
|
|
30
27
|
__VLS_WithDefaults<
|
|
31
|
-
__VLS_TypePropsToOption<
|
|
28
|
+
__VLS_TypePropsToOption<LcbNoticeBarProps>,
|
|
32
29
|
{
|
|
33
|
-
|
|
30
|
+
speed: number
|
|
34
31
|
borderColor: string
|
|
32
|
+
direction: string
|
|
33
|
+
backgroundColor: string
|
|
34
|
+
paddingVertical: number
|
|
35
|
+
rightArrow: boolean
|
|
36
|
+
color: string
|
|
37
|
+
iconSize: number
|
|
35
38
|
}
|
|
36
39
|
>
|
|
37
40
|
>
|
|
38
|
-
|
|
39
|
-
'onUpdate:modelValue'?: ((modelValue: any) => any) | undefined
|
|
40
|
-
'onUpdate:interval'?: ((interval: number) => any) | undefined
|
|
41
|
-
},
|
|
41
|
+
>,
|
|
42
42
|
{
|
|
43
|
+
direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
|
|
44
|
+
color: string
|
|
45
|
+
paddingVertical: number
|
|
46
|
+
backgroundColor: string
|
|
43
47
|
borderColor: string
|
|
44
|
-
|
|
48
|
+
iconSize: number
|
|
49
|
+
speed: number
|
|
50
|
+
rightArrow: boolean
|
|
45
51
|
},
|
|
46
52
|
{}
|
|
47
53
|
>
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
noticeContent?: string
|
|
5
|
-
icon?: string
|
|
6
|
-
link?: LcbActionViewProps
|
|
7
|
-
}
|
|
8
|
-
export interface LcbNoticeBarProps {
|
|
9
|
-
items?: Partial<NoticeItem>[]
|
|
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 {
|
|
10
4
|
vertical?: boolean
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
borderColor?: string
|
|
16
|
-
}
|
|
17
|
-
export interface NoticeBarItemProps {
|
|
18
|
-
idx?: number
|
|
19
|
-
current?: number
|
|
20
|
-
text?: string
|
|
21
|
-
lens?: number
|
|
22
|
-
iconType?: number
|
|
23
|
-
item?: NoticeItem
|
|
24
|
-
textSpeed?: number
|
|
5
|
+
/** -1 无 0 图标 1 自定义 */
|
|
6
|
+
iconType?: -1 | 0 | 1
|
|
7
|
+
direction?: NoticeBarScrollDirection
|
|
8
|
+
speed?: number
|
|
25
9
|
textColor?: string
|
|
10
|
+
pageType?: string
|
|
11
|
+
rightArrow?: boolean
|
|
12
|
+
icon?: string
|
|
13
|
+
iconSize?: number
|
|
26
14
|
}
|
|
27
|
-
export {}
|
|
@@ -21,10 +21,13 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
21
21
|
>
|
|
22
22
|
>,
|
|
23
23
|
{
|
|
24
|
+
imageRadius: number
|
|
24
25
|
items: Record<string, any>[]
|
|
26
|
+
imageWidth: number
|
|
25
27
|
listType: 'list' | 'horizontal' | 'grid' | 'waterfall'
|
|
26
28
|
imageWidthPercent: number
|
|
27
29
|
imageHeightPercent: number
|
|
30
|
+
imageHeight: number
|
|
28
31
|
itemHeight: number
|
|
29
32
|
},
|
|
30
33
|
{}
|
|
@@ -2,6 +2,9 @@ export interface LcbProductProps {
|
|
|
2
2
|
listType?: 'list' | 'horizontal' | 'grid' | 'waterfall'
|
|
3
3
|
imageWidthPercent?: number
|
|
4
4
|
imageHeightPercent?: number
|
|
5
|
+
imageWidth?: number
|
|
6
|
+
imageHeight?: number
|
|
7
|
+
imageRadius?: number
|
|
5
8
|
itemHeight?: number
|
|
6
9
|
items?: Record<string, any>[]
|
|
7
10
|
}
|
|
@@ -110,10 +110,10 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
110
110
|
>,
|
|
111
111
|
{
|
|
112
112
|
layoutType: 'vertical' | 'horizontal'
|
|
113
|
+
tagOverflowWrap: boolean
|
|
114
|
+
titleLineClamp: number
|
|
113
115
|
priceUnit: any
|
|
114
116
|
originPriceUnit: any
|
|
115
|
-
titleLineClamp: number
|
|
116
|
-
tagOverflowWrap: boolean
|
|
117
117
|
tagType: import('@tplc/wot/components/wd-tag/types').TagType
|
|
118
118
|
tagPlain: boolean
|
|
119
119
|
tagMark: boolean
|
package/types/components/{lcb-notice/Item/index.vue.d.ts → lcb-rich-text/lcb-rich-text.vue.d.ts}
RENAMED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LcbRichTextProps } from './types'
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
|
-
__VLS_WithDefaults<
|
|
4
|
-
__VLS_TypePropsToOption<NoticeBarItemProps>,
|
|
5
|
-
{
|
|
6
|
-
textSpeed: number
|
|
7
|
-
}
|
|
8
|
-
>,
|
|
3
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbRichTextProps>, {}>,
|
|
9
4
|
{},
|
|
10
5
|
unknown,
|
|
11
6
|
{},
|
|
@@ -17,17 +12,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
17
12
|
import('vue').PublicProps,
|
|
18
13
|
Readonly<
|
|
19
14
|
import('vue').ExtractPropTypes<
|
|
20
|
-
__VLS_WithDefaults<
|
|
21
|
-
__VLS_TypePropsToOption<NoticeBarItemProps>,
|
|
22
|
-
{
|
|
23
|
-
textSpeed: number
|
|
24
|
-
}
|
|
25
|
-
>
|
|
15
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbRichTextProps>, {}>
|
|
26
16
|
>
|
|
27
17
|
>,
|
|
28
|
-
{
|
|
29
|
-
textSpeed: number
|
|
30
|
-
},
|
|
18
|
+
{},
|
|
31
19
|
{}
|
|
32
20
|
>
|
|
33
21
|
export default _default
|
|
@@ -70,11 +70,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
70
70
|
>
|
|
71
71
|
>,
|
|
72
72
|
{
|
|
73
|
-
|
|
73
|
+
duration: number
|
|
74
74
|
autoplay: boolean
|
|
75
75
|
direction: 'horizontal' | 'vertical'
|
|
76
76
|
displayMultipleItems: number
|
|
77
|
-
duration: number
|
|
78
77
|
height: number
|
|
79
78
|
loop: boolean
|
|
80
79
|
indicatorPosition:
|
|
@@ -87,6 +86,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
87
86
|
| 'bottom-right'
|
|
88
87
|
| 'right'
|
|
89
88
|
indicator: boolean
|
|
89
|
+
styleGroup: 1 | 2 | 3 | 4
|
|
90
90
|
borderRadius: number
|
|
91
91
|
indicatorType: 'dots' | 'dots-bar' | 'fraction'
|
|
92
92
|
},
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LcbTextProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbTextProps>, {}>,
|
|
4
|
+
{},
|
|
5
|
+
unknown,
|
|
6
|
+
{},
|
|
7
|
+
{},
|
|
8
|
+
import('vue').ComponentOptionsMixin,
|
|
9
|
+
import('vue').ComponentOptionsMixin,
|
|
10
|
+
{},
|
|
11
|
+
string,
|
|
12
|
+
import('vue').PublicProps,
|
|
13
|
+
Readonly<
|
|
14
|
+
import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbTextProps>, {}>>
|
|
15
|
+
>,
|
|
16
|
+
{},
|
|
17
|
+
{}
|
|
18
|
+
>
|
|
19
|
+
export default _default
|
|
20
|
+
type __VLS_WithDefaults<P, D> = {
|
|
21
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
22
|
+
? __VLS_Prettify<
|
|
23
|
+
P[K] & {
|
|
24
|
+
default: D[K]
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
: P[K]
|
|
28
|
+
}
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K]
|
|
31
|
+
} & {}
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
33
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
35
|
+
? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
37
|
+
}
|
|
38
|
+
: {
|
|
39
|
+
type: import('vue').PropType<T[K]>
|
|
40
|
+
required: true
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -8,6 +8,13 @@ declare const _default: import('vue').DefineComponent<
|
|
|
8
8
|
fontSize: number
|
|
9
9
|
color: string
|
|
10
10
|
title: string
|
|
11
|
+
justify: string
|
|
12
|
+
moreFontSize: number
|
|
13
|
+
moreColor: string
|
|
14
|
+
moreVerticalAlign: string
|
|
15
|
+
hintFontSize: number
|
|
16
|
+
hintColor: string
|
|
17
|
+
hintVerticalAlign: string
|
|
11
18
|
}
|
|
12
19
|
>,
|
|
13
20
|
{},
|
|
@@ -29,16 +36,35 @@ declare const _default: import('vue').DefineComponent<
|
|
|
29
36
|
fontSize: number
|
|
30
37
|
color: string
|
|
31
38
|
title: string
|
|
39
|
+
justify: string
|
|
40
|
+
moreFontSize: number
|
|
41
|
+
moreColor: string
|
|
42
|
+
moreVerticalAlign: string
|
|
43
|
+
hintFontSize: number
|
|
44
|
+
hintColor: string
|
|
45
|
+
hintVerticalAlign: string
|
|
32
46
|
}
|
|
33
47
|
>
|
|
34
48
|
>
|
|
35
49
|
>,
|
|
36
50
|
{
|
|
37
51
|
title: string
|
|
38
|
-
marginHorizontal: number
|
|
39
52
|
color: string
|
|
53
|
+
marginHorizontal: number
|
|
40
54
|
fontSize: number
|
|
55
|
+
justify:
|
|
56
|
+
| 'justify-start'
|
|
57
|
+
| 'justify-end'
|
|
58
|
+
| 'justify-center'
|
|
59
|
+
| 'justify-between'
|
|
60
|
+
| 'justify-around'
|
|
41
61
|
fontWeight: number
|
|
62
|
+
hintColor: string
|
|
63
|
+
hintFontSize: number
|
|
64
|
+
hintVerticalAlign: 'end' | 'center'
|
|
65
|
+
moreColor: string
|
|
66
|
+
moreFontSize: number
|
|
67
|
+
moreVerticalAlign: 'end' | 'center'
|
|
42
68
|
},
|
|
43
69
|
{}
|
|
44
70
|
>
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
2
|
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
3
|
export interface LcbTitleProps extends LcbBlockProps {
|
|
4
|
-
title: string
|
|
5
4
|
/** 副标题 */
|
|
6
|
-
|
|
5
|
+
title: string
|
|
7
6
|
fontWeight?: number
|
|
8
|
-
showMore?: boolean
|
|
9
7
|
action?: LcbActionViewProps
|
|
8
|
+
justify?:
|
|
9
|
+
| 'justify-start'
|
|
10
|
+
| 'justify-end'
|
|
11
|
+
| 'justify-center'
|
|
12
|
+
| 'justify-between'
|
|
13
|
+
| 'justify-around'
|
|
14
|
+
hint?: string
|
|
15
|
+
hintColor?: string
|
|
16
|
+
hintFontSize?: number
|
|
17
|
+
hintVerticalAlign?: 'end' | 'center'
|
|
18
|
+
moreColor?: string
|
|
19
|
+
moreFontSize?: number
|
|
20
|
+
moreText?: string
|
|
21
|
+
moreVerticalAlign?: 'end' | 'center'
|
|
10
22
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export interface IIconList {
|
|
2
|
-
|
|
3
|
-
iconType: number
|
|
2
|
+
iconType: 0 | 1
|
|
4
3
|
iconTitle?: string
|
|
5
4
|
iconName?: string
|
|
6
5
|
iconUpload?: string
|
|
7
|
-
status?:
|
|
6
|
+
status?: string
|
|
7
|
+
countKey?: string
|
|
8
8
|
}
|
|
9
9
|
export interface LcbUserOrderProps {
|
|
10
|
+
dataUrl?: string
|
|
10
11
|
marginTop?: number
|
|
11
12
|
marginBottom?: number
|
|
12
13
|
marginHorizontal?: number
|
|
@@ -22,36 +23,5 @@ export interface LcbUserOrderProps {
|
|
|
22
23
|
shadowColor?: string
|
|
23
24
|
shadowSize?: number
|
|
24
25
|
blurSize?: number
|
|
25
|
-
|
|
26
|
-
iconType0?: 0 | 1
|
|
27
|
-
iconName0?: string
|
|
28
|
-
iconUpload0?: string
|
|
29
|
-
iconTitle1?: string
|
|
30
|
-
iconType1?: 0 | 1
|
|
31
|
-
iconName1?: string
|
|
32
|
-
iconUpload1?: string
|
|
33
|
-
iconShow1?: boolean
|
|
34
|
-
iconTitle2?: string
|
|
35
|
-
iconType2?: 0 | 1
|
|
36
|
-
iconName2?: string
|
|
37
|
-
iconUpload2?: string
|
|
38
|
-
iconShow2?: boolean
|
|
39
|
-
iconTitle3?: string
|
|
40
|
-
iconType3?: 0 | 1
|
|
41
|
-
iconName3?: string
|
|
42
|
-
iconUpload3?: string
|
|
43
|
-
iconShow3?: boolean
|
|
44
|
-
iconTitle4?: string
|
|
45
|
-
iconType4?: 0 | 1
|
|
46
|
-
iconName4?: string
|
|
47
|
-
iconUpload4?: string
|
|
48
|
-
iconShow4?: boolean
|
|
49
|
-
iconTitle5?: string
|
|
50
|
-
iconType5?: 0 | 1
|
|
51
|
-
iconName5?: string
|
|
52
|
-
iconUpload5?: string
|
|
53
|
-
iconTitle?: string
|
|
54
|
-
iconType?: 0 | 1
|
|
55
|
-
iconName?: string
|
|
56
|
-
iconUpload?: string
|
|
26
|
+
items: IIconList[]
|
|
57
27
|
}
|
|
@@ -7,10 +7,14 @@ declare const _default: import('vue').DefineComponent<
|
|
|
7
7
|
{},
|
|
8
8
|
import('vue').ComponentOptionsMixin,
|
|
9
9
|
import('vue').ComponentOptionsMixin,
|
|
10
|
-
{
|
|
10
|
+
{
|
|
11
|
+
click: (...args: any[]) => void
|
|
12
|
+
},
|
|
11
13
|
string,
|
|
12
14
|
import('vue').PublicProps,
|
|
13
|
-
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<NumsItemProps
|
|
15
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<NumsItemProps>>> & {
|
|
16
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
17
|
+
},
|
|
14
18
|
{},
|
|
15
19
|
{}
|
|
16
20
|
>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LcbActionViewProps } from '../../lcb-action-view/types'
|
|
2
|
+
import { ActionView } from '../../../action'
|
|
3
|
+
export interface CurrentRightsDetail {
|
|
4
|
+
coverImg: string
|
|
5
|
+
effectiveDate: string
|
|
6
|
+
sumPoint: number
|
|
7
|
+
upgradeTips: string
|
|
8
|
+
usePoint: number
|
|
9
|
+
usedPoint: number
|
|
10
|
+
userLevelName: string
|
|
11
|
+
userLevelRightsList: UserLevelRightsList[]
|
|
12
|
+
waitPoint: number
|
|
13
|
+
}
|
|
14
|
+
export interface UserLevelRightsList extends ActionView {
|
|
15
|
+
categoryId: string
|
|
16
|
+
categoryName: string
|
|
17
|
+
categoryTags: string
|
|
18
|
+
icon: string
|
|
19
|
+
userRightsConfigId: string
|
|
20
|
+
userRightsContent: string
|
|
21
|
+
userRightsSubTitle: string
|
|
22
|
+
userRightsTitle: string
|
|
23
|
+
link: LcbActionViewProps
|
|
24
|
+
userRightsType: string
|
|
25
|
+
weightSort: string
|
|
26
|
+
qrCode: string
|
|
27
|
+
qrCodeTips: string
|
|
28
|
+
otherConfig: {
|
|
29
|
+
textColor: string
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export declare const currentRightsDetail: () => Promise<
|
|
33
|
+
import('../../../action').IResData<CurrentRightsDetail>
|
|
34
|
+
>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UserLevelRightsList } from '../../api'
|
|
2
|
+
declare let __VLS_typeProps: {
|
|
3
|
+
hiddenDrawdown?: boolean
|
|
4
|
+
}
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue?: UserLevelRightsList
|
|
7
|
+
} & typeof __VLS_typeProps
|
|
8
|
+
declare const _default: import('vue').DefineComponent<
|
|
9
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
10
|
+
{},
|
|
11
|
+
unknown,
|
|
12
|
+
{},
|
|
13
|
+
{},
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
import('vue').ComponentOptionsMixin,
|
|
16
|
+
{
|
|
17
|
+
'update:modelValue': (modelValue: UserLevelRightsList) => void
|
|
18
|
+
},
|
|
19
|
+
string,
|
|
20
|
+
import('vue').PublicProps,
|
|
21
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
22
|
+
'onUpdate:modelValue'?: ((modelValue: UserLevelRightsList) => any) | undefined
|
|
23
|
+
},
|
|
24
|
+
{},
|
|
25
|
+
{}
|
|
26
|
+
>
|
|
27
|
+
export default _default
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
29
|
+
type __VLS_TypePropsToOption<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
31
|
+
? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
33
|
+
}
|
|
34
|
+
: {
|
|
35
|
+
type: import('vue').PropType<T[K]>
|
|
36
|
+
required: true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { LcbVipProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbVipProps>,
|
|
5
|
+
{
|
|
6
|
+
cardHeight: number
|
|
7
|
+
itemIconSize: number
|
|
8
|
+
itemNum: number
|
|
9
|
+
itemTextColor: string
|
|
10
|
+
itemTextSize: number
|
|
11
|
+
}
|
|
12
|
+
>,
|
|
13
|
+
{},
|
|
14
|
+
unknown,
|
|
15
|
+
{},
|
|
16
|
+
{},
|
|
17
|
+
import('vue').ComponentOptionsMixin,
|
|
18
|
+
import('vue').ComponentOptionsMixin,
|
|
19
|
+
{},
|
|
20
|
+
string,
|
|
21
|
+
import('vue').PublicProps,
|
|
22
|
+
Readonly<
|
|
23
|
+
import('vue').ExtractPropTypes<
|
|
24
|
+
__VLS_WithDefaults<
|
|
25
|
+
__VLS_TypePropsToOption<LcbVipProps>,
|
|
26
|
+
{
|
|
27
|
+
cardHeight: number
|
|
28
|
+
itemIconSize: number
|
|
29
|
+
itemNum: number
|
|
30
|
+
itemTextColor: string
|
|
31
|
+
itemTextSize: number
|
|
32
|
+
}
|
|
33
|
+
>
|
|
34
|
+
>
|
|
35
|
+
>,
|
|
36
|
+
{
|
|
37
|
+
cardHeight: number
|
|
38
|
+
itemNum: 3 | 4 | 5
|
|
39
|
+
itemIconSize: number
|
|
40
|
+
itemTextColor: string
|
|
41
|
+
itemTextSize: number
|
|
42
|
+
},
|
|
43
|
+
{}
|
|
44
|
+
>
|
|
45
|
+
export default _default
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
48
|
+
? __VLS_Prettify<
|
|
49
|
+
P[K] & {
|
|
50
|
+
default: D[K]
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
: P[K]
|
|
54
|
+
}
|
|
55
|
+
type __VLS_Prettify<T> = {
|
|
56
|
+
[K in keyof T]: T[K]
|
|
57
|
+
} & {}
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
59
|
+
type __VLS_TypePropsToOption<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
61
|
+
? {
|
|
62
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
63
|
+
}
|
|
64
|
+
: {
|
|
65
|
+
type: import('vue').PropType<T[K]>
|
|
66
|
+
required: true
|
|
67
|
+
}
|
|
68
|
+
}
|
package/types/constants.d.ts
CHANGED
package/types/index.d.ts
ADDED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export declare const transformValueUnit: (value?: number, uni?: string) => string
|
|
1
|
+
export declare const transformValueUnit: (value?: number | string, uni?: string) => string
|
|
2
|
+
/** 获取json字符串第一个url */
|
|
3
|
+
export declare const getJsonStrFirstUrl: (jsonStr?: string) => any
|
|
4
|
+
/** 获取json字符串列表 */
|
|
5
|
+
export declare const getJsonStrList: (jsonStr?: string) => any
|
package/types/utils/utils.d.ts
CHANGED