@tplc/business 0.2.38 → 0.2.40
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 +32 -0
- package/components/lcb-list/api.ts +1 -1
- package/components/lcb-list/components/FilterList/index.vue +2 -28
- package/components/lcb-list/lcb-list.vue +1 -4
- package/components/lcb-map/lcb-map.vue +114 -105
- package/components/lcb-map/types.ts +33 -2
- package/components/lcb-product-item/components/ItemValue.vue +29 -5
- package/components/lcb-product-item/lcb-product-item.vue +14 -3
- package/components/lcb-product-item/types.ts +3 -0
- package/components/lcb-waterfall/lcb-waterfall-item.vue +191 -0
- package/components/lcb-waterfall/lcb-waterfall.vue +550 -0
- package/components/lcb-waterfall/types.ts +3 -0
- package/global.d.ts +1 -0
- package/iconfonts/index.css +103 -3
- package/package.json +1 -1
- package/types/components/lcb-list/api.d.ts +1 -1
- package/types/components/lcb-list/lcb-list.vue.d.ts +3 -6
- package/types/components/lcb-map/lcb-map.vue.d.ts +15 -43
- package/types/components/lcb-map/types.d.ts +33 -1
- package/types/components/lcb-product-item/components/ItemValue.vue.d.ts +4 -0
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +7 -0
- package/types/components/lcb-product-item/types.d.ts +3 -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/components/lcb-map/images/1.png +0 -0
- package/components/lcb-map/images/3.png +0 -0
- package/components/lcb-map/images/4.png +0 -0
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { LcbListProps } from './types'
|
|
2
2
|
import './index.scss'
|
|
3
|
-
declare function __VLS_template():
|
|
4
|
-
list(
|
|
5
|
-
item(
|
|
6
|
-
}> & {
|
|
7
|
-
list(props: { items: any }): any
|
|
8
|
-
item(props: { item: any }): any
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
list?(_: { items: never[] }): any
|
|
5
|
+
item?(_: { item: any }): any
|
|
9
6
|
}
|
|
10
7
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
8
|
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>,
|
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
|
|
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
|
-
callout?: {
|
|
15
|
-
content: string
|
|
16
|
-
color: string
|
|
17
|
-
fontSize: number
|
|
18
|
-
borderRadius: number
|
|
19
|
-
bgColor: string
|
|
20
|
-
padding: number
|
|
21
|
-
display: 'ALWAYS' | 'BYCLICK'
|
|
22
|
-
}
|
|
23
|
-
zIndex?: number
|
|
24
|
-
}
|
|
1
|
+
import { LcbListInfo } from '../lcb-list/api'
|
|
25
2
|
declare const _default: import('vue').DefineComponent<
|
|
26
|
-
|
|
27
|
-
import('vue').ComponentPropsOptions<{
|
|
28
|
-
[x: string]: unknown
|
|
29
|
-
}>
|
|
30
|
-
>,
|
|
3
|
+
__VLS_TypePropsToOption<LcbListInfo>,
|
|
31
4
|
{},
|
|
32
5
|
unknown,
|
|
33
6
|
{},
|
|
@@ -37,20 +10,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
37
10
|
{},
|
|
38
11
|
string,
|
|
39
12
|
import('vue').PublicProps,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
import('vue').ExtractPropTypes<
|
|
43
|
-
Readonly<
|
|
44
|
-
import('vue').ComponentObjectPropsOptions<{
|
|
45
|
-
[x: string]: unknown
|
|
46
|
-
}>
|
|
47
|
-
>
|
|
48
|
-
>
|
|
49
|
-
>,
|
|
50
|
-
| {
|
|
51
|
-
readonly [x: number]: string
|
|
52
|
-
}
|
|
53
|
-
| {},
|
|
13
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<LcbListInfo>>>,
|
|
14
|
+
{},
|
|
54
15
|
{}
|
|
55
16
|
>
|
|
56
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
|
+
}
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
export interface
|
|
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
|
+
callout: {
|
|
15
|
+
textAlign: string
|
|
16
|
+
borderWidth: number
|
|
17
|
+
borderColor: string
|
|
18
|
+
content: string
|
|
19
|
+
color: string
|
|
20
|
+
fontSize: number
|
|
21
|
+
borderRadius: number
|
|
22
|
+
bgColor: string
|
|
23
|
+
padding: number
|
|
24
|
+
display: 'ALWAYS' | 'BYCLICK'
|
|
25
|
+
}
|
|
26
|
+
zIndex?: number
|
|
27
|
+
}
|
|
28
|
+
export interface MapItem {
|
|
29
|
+
mapPriceTips: string
|
|
30
|
+
latitude: number
|
|
31
|
+
longitude: number
|
|
32
|
+
productId: string
|
|
33
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare function __VLS_template(): Readonly<{
|
|
2
2
|
coverImg(props: { value: any }): any
|
|
3
|
+
headImg(props: { value: any }): any
|
|
4
|
+
userName(props: { value: any }): any
|
|
3
5
|
productName(props: { value: any }): any
|
|
4
6
|
subTitle(props: { value: any }): any
|
|
5
7
|
price(props: { value: any }): any
|
|
@@ -21,6 +23,8 @@ declare function __VLS_template(): Readonly<{
|
|
|
21
23
|
orderTips(props: { value: any }): any
|
|
22
24
|
}> & {
|
|
23
25
|
coverImg(props: { value: any }): any
|
|
26
|
+
headImg(props: { value: any }): any
|
|
27
|
+
userName(props: { value: any }): any
|
|
24
28
|
productName(props: { value: any }): any
|
|
25
29
|
subTitle(props: { value: any }): any
|
|
26
30
|
price(props: { value: any }): any
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LcbProductItemProps } from './types'
|
|
2
2
|
declare function __VLS_template(): Readonly<{
|
|
3
3
|
coverImg(props: { value: any }): any
|
|
4
|
+
userName(props: { value: any }): any
|
|
5
|
+
headImg(props: { value: any }): any
|
|
4
6
|
productName(props: { value: any }): any
|
|
5
7
|
subTitle(props: { value: any }): any
|
|
6
8
|
price(props: { value: any }): any
|
|
@@ -30,6 +32,8 @@ declare function __VLS_template(): Readonly<{
|
|
|
30
32
|
contentSection(): any
|
|
31
33
|
}> & {
|
|
32
34
|
coverImg(props: { value: any }): any
|
|
35
|
+
userName(props: { value: any }): any
|
|
36
|
+
headImg(props: { value: any }): any
|
|
33
37
|
productName(props: { value: any }): any
|
|
34
38
|
subTitle(props: { value: any }): any
|
|
35
39
|
price(props: { value: any }): any
|
|
@@ -77,6 +81,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
77
81
|
titleVisible: boolean
|
|
78
82
|
subTitleVisible: boolean
|
|
79
83
|
priceVisible: boolean
|
|
84
|
+
userInfoVisible: boolean
|
|
80
85
|
priceTipsVisible: boolean
|
|
81
86
|
priceUnitVisible: boolean
|
|
82
87
|
priceSuffixVisible: boolean
|
|
@@ -125,6 +130,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
125
130
|
titleVisible: boolean
|
|
126
131
|
subTitleVisible: boolean
|
|
127
132
|
priceVisible: boolean
|
|
133
|
+
userInfoVisible: boolean
|
|
128
134
|
priceTipsVisible: boolean
|
|
129
135
|
priceUnitVisible: boolean
|
|
130
136
|
priceSuffixVisible: boolean
|
|
@@ -161,6 +167,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
161
167
|
coverImgVisible: boolean
|
|
162
168
|
titleVisible: boolean
|
|
163
169
|
subTitleVisible: boolean
|
|
170
|
+
userInfoVisible: boolean
|
|
164
171
|
priceVisible: boolean
|
|
165
172
|
priceUnitVisible: boolean
|
|
166
173
|
priceSuffixVisible: boolean
|
|
@@ -15,6 +15,8 @@ export interface LcbProductItemProps {
|
|
|
15
15
|
imageType?: 'square' | 'vertical' | 'horizontal'
|
|
16
16
|
coverImg?: any
|
|
17
17
|
productName?: any
|
|
18
|
+
headImg?: string
|
|
19
|
+
userName?: string
|
|
18
20
|
subTitle?: any
|
|
19
21
|
price?: any
|
|
20
22
|
priceUnit?: any
|
|
@@ -37,6 +39,7 @@ export interface LcbProductItemProps {
|
|
|
37
39
|
coverImgVisible?: boolean
|
|
38
40
|
titleVisible?: boolean
|
|
39
41
|
subTitleVisible?: boolean
|
|
42
|
+
userInfoVisible?: boolean
|
|
40
43
|
priceVisible?: boolean
|
|
41
44
|
priceUnitVisible?: boolean
|
|
42
45
|
priceSuffixVisible?: boolean
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<
|
|
2
|
+
{
|
|
3
|
+
item: {
|
|
4
|
+
type: ObjectConstructor
|
|
5
|
+
default(): {}
|
|
6
|
+
}
|
|
7
|
+
gutter: {
|
|
8
|
+
type: NumberConstructor
|
|
9
|
+
default: number
|
|
10
|
+
}
|
|
11
|
+
animation: {
|
|
12
|
+
type: BooleanConstructor
|
|
13
|
+
default: boolean
|
|
14
|
+
}
|
|
15
|
+
skeletonHeight: {
|
|
16
|
+
type: NumberConstructor
|
|
17
|
+
default: number
|
|
18
|
+
}
|
|
19
|
+
showSkeleton: {
|
|
20
|
+
type: BooleanConstructor
|
|
21
|
+
default: boolean
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
any,
|
|
25
|
+
{
|
|
26
|
+
imageUrl: string
|
|
27
|
+
hideSkeleton: boolean
|
|
28
|
+
},
|
|
29
|
+
{},
|
|
30
|
+
{
|
|
31
|
+
onImageLoad(): void
|
|
32
|
+
onImageError(): void
|
|
33
|
+
clickItem(item: any): void
|
|
34
|
+
},
|
|
35
|
+
import('vue').ComponentOptionsMixin,
|
|
36
|
+
import('vue').ComponentOptionsMixin,
|
|
37
|
+
{},
|
|
38
|
+
string,
|
|
39
|
+
import('vue').PublicProps,
|
|
40
|
+
Readonly<
|
|
41
|
+
import('vue').ExtractPropTypes<{
|
|
42
|
+
item: {
|
|
43
|
+
type: ObjectConstructor
|
|
44
|
+
default(): {}
|
|
45
|
+
}
|
|
46
|
+
gutter: {
|
|
47
|
+
type: NumberConstructor
|
|
48
|
+
default: number
|
|
49
|
+
}
|
|
50
|
+
animation: {
|
|
51
|
+
type: BooleanConstructor
|
|
52
|
+
default: boolean
|
|
53
|
+
}
|
|
54
|
+
skeletonHeight: {
|
|
55
|
+
type: NumberConstructor
|
|
56
|
+
default: number
|
|
57
|
+
}
|
|
58
|
+
showSkeleton: {
|
|
59
|
+
type: BooleanConstructor
|
|
60
|
+
default: boolean
|
|
61
|
+
}
|
|
62
|
+
}>
|
|
63
|
+
>,
|
|
64
|
+
{
|
|
65
|
+
item: Record<string, any>
|
|
66
|
+
gutter: number
|
|
67
|
+
animation: boolean
|
|
68
|
+
skeletonHeight: number
|
|
69
|
+
showSkeleton: boolean
|
|
70
|
+
},
|
|
71
|
+
{}
|
|
72
|
+
>
|
|
73
|
+
export default _default
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<
|
|
2
|
+
{
|
|
3
|
+
value: {
|
|
4
|
+
type: ArrayConstructor
|
|
5
|
+
default: () => never[]
|
|
6
|
+
}
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: ArrayConstructor
|
|
9
|
+
default: () => never[]
|
|
10
|
+
}
|
|
11
|
+
idKey: {
|
|
12
|
+
type: StringConstructor
|
|
13
|
+
default: string
|
|
14
|
+
}
|
|
15
|
+
addTime: {
|
|
16
|
+
type: NumberConstructor
|
|
17
|
+
default: number
|
|
18
|
+
}
|
|
19
|
+
columnCount: {
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
21
|
+
default: number
|
|
22
|
+
}
|
|
23
|
+
columnGap: {
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
25
|
+
default: number
|
|
26
|
+
}
|
|
27
|
+
leftGap: {
|
|
28
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
29
|
+
default: number
|
|
30
|
+
}
|
|
31
|
+
rightGap: {
|
|
32
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
33
|
+
default: number
|
|
34
|
+
}
|
|
35
|
+
showScrollbar: {
|
|
36
|
+
type: BooleanConstructor[]
|
|
37
|
+
default: boolean
|
|
38
|
+
}
|
|
39
|
+
width: {
|
|
40
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
41
|
+
default: string
|
|
42
|
+
}
|
|
43
|
+
height: {
|
|
44
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
45
|
+
default: string
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
any,
|
|
49
|
+
{
|
|
50
|
+
list1: never[]
|
|
51
|
+
list2: never[]
|
|
52
|
+
list3: never[]
|
|
53
|
+
list4: never[]
|
|
54
|
+
list5: never[]
|
|
55
|
+
tempList: never[]
|
|
56
|
+
columnWidth: number
|
|
57
|
+
columnHeights: never[]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
valueCom(): any
|
|
61
|
+
copyValue(): any
|
|
62
|
+
columnNum(): any
|
|
63
|
+
gapLeftStyle(): {
|
|
64
|
+
width: string
|
|
65
|
+
}
|
|
66
|
+
gapRightStyle(): {
|
|
67
|
+
width: string
|
|
68
|
+
}
|
|
69
|
+
gapCenterStyle(): {
|
|
70
|
+
width: string
|
|
71
|
+
}
|
|
72
|
+
nvueWaterfallStyle(): any
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
/**
|
|
76
|
+
* 添加单位
|
|
77
|
+
*/
|
|
78
|
+
addUnit: (value?: string, unit?: string) => string
|
|
79
|
+
/**
|
|
80
|
+
* 进行延时
|
|
81
|
+
*/
|
|
82
|
+
sleep: (value?: number) => Promise<any>
|
|
83
|
+
/**
|
|
84
|
+
* 媒体查询
|
|
85
|
+
* @param {Object} selector
|
|
86
|
+
* @param {Object} context
|
|
87
|
+
*/
|
|
88
|
+
getRect: (selector: any, context: any) => Promise<any>
|
|
89
|
+
/**
|
|
90
|
+
* 去除空格
|
|
91
|
+
*/
|
|
92
|
+
trim: (str: any, pos?: string) => any
|
|
93
|
+
/**
|
|
94
|
+
* 样式转换
|
|
95
|
+
*/
|
|
96
|
+
addStyle: (customStyle: any, target?: string) => any
|
|
97
|
+
/**
|
|
98
|
+
* 滚动到底部触发事件
|
|
99
|
+
* @param {Object} e
|
|
100
|
+
*/
|
|
101
|
+
scrollToBottom: () => void
|
|
102
|
+
/**
|
|
103
|
+
* 媒体查询
|
|
104
|
+
*/
|
|
105
|
+
startObserver(selector: any): Promise<any>
|
|
106
|
+
/**
|
|
107
|
+
* 拆分数据
|
|
108
|
+
*/
|
|
109
|
+
splitData: () => any
|
|
110
|
+
/**
|
|
111
|
+
* 暂存未用
|
|
112
|
+
*/
|
|
113
|
+
renderData(): void
|
|
114
|
+
/**
|
|
115
|
+
* 清空数据列表
|
|
116
|
+
*/
|
|
117
|
+
clear(): Promise<void>
|
|
118
|
+
/**
|
|
119
|
+
* 移除某条数据
|
|
120
|
+
* @param {Object} id
|
|
121
|
+
*/
|
|
122
|
+
remove(id: any): void
|
|
123
|
+
},
|
|
124
|
+
import('vue').ComponentOptionsMixin,
|
|
125
|
+
import('vue').ComponentOptionsMixin,
|
|
126
|
+
{},
|
|
127
|
+
string,
|
|
128
|
+
import('vue').PublicProps,
|
|
129
|
+
Readonly<
|
|
130
|
+
import('vue').ExtractPropTypes<{
|
|
131
|
+
value: {
|
|
132
|
+
type: ArrayConstructor
|
|
133
|
+
default: () => never[]
|
|
134
|
+
}
|
|
135
|
+
modelValue: {
|
|
136
|
+
type: ArrayConstructor
|
|
137
|
+
default: () => never[]
|
|
138
|
+
}
|
|
139
|
+
idKey: {
|
|
140
|
+
type: StringConstructor
|
|
141
|
+
default: string
|
|
142
|
+
}
|
|
143
|
+
addTime: {
|
|
144
|
+
type: NumberConstructor
|
|
145
|
+
default: number
|
|
146
|
+
}
|
|
147
|
+
columnCount: {
|
|
148
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
149
|
+
default: number
|
|
150
|
+
}
|
|
151
|
+
columnGap: {
|
|
152
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
153
|
+
default: number
|
|
154
|
+
}
|
|
155
|
+
leftGap: {
|
|
156
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
157
|
+
default: number
|
|
158
|
+
}
|
|
159
|
+
rightGap: {
|
|
160
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
161
|
+
default: number
|
|
162
|
+
}
|
|
163
|
+
showScrollbar: {
|
|
164
|
+
type: BooleanConstructor[]
|
|
165
|
+
default: boolean
|
|
166
|
+
}
|
|
167
|
+
width: {
|
|
168
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
169
|
+
default: string
|
|
170
|
+
}
|
|
171
|
+
height: {
|
|
172
|
+
type: (StringConstructor | NumberConstructor)[]
|
|
173
|
+
default: string
|
|
174
|
+
}
|
|
175
|
+
}>
|
|
176
|
+
>,
|
|
177
|
+
{
|
|
178
|
+
value: unknown[]
|
|
179
|
+
modelValue: unknown[]
|
|
180
|
+
width: string | number
|
|
181
|
+
height: string | number
|
|
182
|
+
idKey: string
|
|
183
|
+
addTime: number
|
|
184
|
+
columnCount: string | number
|
|
185
|
+
columnGap: string | number
|
|
186
|
+
leftGap: string | number
|
|
187
|
+
rightGap: string | number
|
|
188
|
+
showScrollbar: boolean
|
|
189
|
+
},
|
|
190
|
+
{}
|
|
191
|
+
>
|
|
192
|
+
export default _default
|
|
Binary file
|
|
Binary file
|
|
Binary file
|