@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.
Files changed (177) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/package.json +13 -13
  3. package/types/api/pay.d.ts +47 -0
  4. package/types/api/user.d.ts +11 -0
  5. package/types/components/lcb-absolute-config-layout/lcb-absolute-config-layout.vue.d.ts +71 -0
  6. package/types/components/lcb-absolute-config-layout/types.d.ts +26 -0
  7. package/types/components/lcb-action-view/components/CustomPopup/index.vue.d.ts +37 -0
  8. package/types/components/lcb-action-view/components/PayPopup/index.vue.d.ts +44 -0
  9. package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +41 -0
  10. package/types/components/lcb-action-view/types.d.ts +136 -0
  11. package/types/components/lcb-advert/lcb-advert.vue.d.ts +28 -0
  12. package/types/components/lcb-advert/types.d.ts +3 -0
  13. package/types/components/lcb-agreement-view/api.d.ts +4 -0
  14. package/types/components/lcb-agreement-view/lcb-agreement-view.vue.d.ts +40 -0
  15. package/types/components/lcb-agreement-view/types.d.ts +4 -0
  16. package/types/components/lcb-area/lcb-area.vue.d.ts +74 -0
  17. package/types/components/lcb-area/types.d.ts +40 -0
  18. package/types/components/lcb-area-picker/api/index.d.ts +49 -0
  19. package/types/components/lcb-area-picker/lcb-area-picker.vue.d.ts +79 -0
  20. package/types/components/lcb-area-picker/types.d.ts +3 -0
  21. package/types/components/lcb-banner/lcb-banner.vue.d.ts +80 -0
  22. package/types/components/lcb-banner/types.d.ts +66 -0
  23. package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +56 -0
  24. package/types/components/lcb-banner-block/types.d.ts +20 -0
  25. package/types/components/lcb-block/lcb-block.vue.d.ts +76 -0
  26. package/types/components/lcb-block/types.d.ts +62 -0
  27. package/types/components/lcb-button/lcb-button.vue.d.ts +74 -0
  28. package/types/components/lcb-button/types.d.ts +35 -0
  29. package/types/components/lcb-calendar/api/index.d.ts +17 -0
  30. package/types/components/lcb-calendar/lcb-calendar.vue.d.ts +152 -0
  31. package/types/components/lcb-calendar-filter/api.d.ts +5 -0
  32. package/types/components/lcb-calendar-filter/components/CalendarItem/index.vue.d.ts +40 -0
  33. package/types/components/lcb-calendar-filter/lcb-calendar-filter.vue.d.ts +66 -0
  34. package/types/components/lcb-calendar-filter/types.d.ts +29 -0
  35. package/types/components/lcb-calendar-search/lcb-calendar-search.vue.d.ts +68 -0
  36. package/types/components/lcb-calendar-search/types.d.ts +9 -0
  37. package/types/components/lcb-city-select/api/index.d.ts +44 -0
  38. package/types/components/lcb-city-select/components/lcb-city-letter/index.vue.d.ts +53 -0
  39. package/types/components/lcb-city-select/components/lcb-city-list/index.vue.d.ts +48 -0
  40. package/types/components/lcb-city-select/components/lcb-city-list/types.d.ts +5 -0
  41. package/types/components/lcb-city-select/lcb-city-select.vue.d.ts +77 -0
  42. package/types/components/lcb-city-select/types.d.ts +5 -0
  43. package/types/components/lcb-custom-content/lcb-custom-content.vue.d.ts +40 -0
  44. package/types/components/lcb-dynamic-data/lcb-dynamic-data.vue.d.ts +44 -0
  45. package/types/components/lcb-dynamic-data/types.d.ts +9 -0
  46. package/types/components/lcb-fab/lcb-fab.vue.d.ts +42 -0
  47. package/types/components/lcb-fab/types.d.ts +19 -0
  48. package/types/components/lcb-filter-grid/lcb-filter-grid.vue.d.ts +82 -0
  49. package/types/components/lcb-filter-grid/types.d.ts +20 -0
  50. package/types/components/lcb-form/lcb-form.vue.d.ts +73 -0
  51. package/types/components/lcb-form/types.d.ts +82 -0
  52. package/types/components/lcb-gap/lcb-gap.vue.d.ts +42 -0
  53. package/types/components/lcb-gap/types.d.ts +7 -0
  54. package/types/components/lcb-grid/lcb-grid.vue.d.ts +74 -0
  55. package/types/components/lcb-grid/types.d.ts +16 -0
  56. package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +68 -0
  57. package/types/components/lcb-home-search/types.d.ts +14 -0
  58. package/types/components/lcb-icon/lcb-icon.vue.d.ts +56 -0
  59. package/types/components/lcb-icon/types.d.ts +10 -0
  60. package/types/components/lcb-image/Image/index.vue.d.ts +56 -0
  61. package/types/components/lcb-image/lcb-image.vue.d.ts +70 -0
  62. package/types/components/lcb-image/types.d.ts +17 -0
  63. package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +113 -0
  64. package/types/components/lcb-img-nav/types.d.ts +61 -0
  65. package/types/components/lcb-light-map/api.d.ts +10 -0
  66. package/types/components/lcb-light-map/lcb-light-map.vue.d.ts +59 -0
  67. package/types/components/lcb-light-map/types.d.ts +69 -0
  68. package/types/components/lcb-light-map/util.d.ts +40 -0
  69. package/types/components/lcb-list/api.d.ts +67 -0
  70. package/types/components/lcb-list/components/ActionView/index.vue.d.ts +34 -0
  71. package/types/components/lcb-list/components/ComponentGroup/index.vue.d.ts +32 -0
  72. package/types/components/lcb-list/components/ComponentGroup/type.d.ts +5 -0
  73. package/types/components/lcb-list/components/FilterList/index.vue.d.ts +50 -0
  74. package/types/components/lcb-list/components/FilterList/type.d.ts +11 -0
  75. package/types/components/lcb-list/components/FilterSelect/index.vue.d.ts +41 -0
  76. package/types/components/lcb-list/components/FilterSelect/type.d.ts +2 -0
  77. package/types/components/lcb-list/components/FilterSlider/index.vue.d.ts +64 -0
  78. package/types/components/lcb-list/components/FilterSlider/types.d.ts +2 -0
  79. package/types/components/lcb-list/components/FilterTabs/index.vue.d.ts +36 -0
  80. package/types/components/lcb-list/components/FilterTabs/type.d.ts +5 -0
  81. package/types/components/lcb-list/components/FilterView/index.vue.d.ts +36 -0
  82. package/types/components/lcb-list/components/FilterView/type.d.ts +8 -0
  83. package/types/components/lcb-list/components/SelectTagView/index.vue.d.ts +43 -0
  84. package/types/components/lcb-list/components/TagSelect/index.vue.d.ts +76 -0
  85. package/types/components/lcb-list/components/TagSelect/type.d.ts +4 -0
  86. package/types/components/lcb-list/components/TreeSelect/index.vue.d.ts +38 -0
  87. package/types/components/lcb-list/components/TreeSelect/type.d.ts +6 -0
  88. package/types/components/lcb-list/components/UnconditionedLayout/index.vue.d.ts +85 -0
  89. package/types/components/lcb-list/hooks/useSelect.d.ts +31 -0
  90. package/types/components/lcb-list/hooks/useSyncValues.d.ts +5 -0
  91. package/types/components/lcb-list/lcb-list.vue.d.ts +139 -0
  92. package/types/components/lcb-list/types.d.ts +67 -0
  93. package/types/components/lcb-map/lcb-map.vue.d.ts +57 -0
  94. package/types/components/lcb-map/types.d.ts +36 -0
  95. package/types/components/lcb-nav/AddressCommunity/index.vue.d.ts +63 -0
  96. package/types/components/lcb-nav/Search/index.vue.d.ts +52 -0
  97. package/types/components/lcb-nav/SharePopup/api.d.ts +16 -0
  98. package/types/components/lcb-nav/SharePopup/index.vue.d.ts +37 -0
  99. package/types/components/lcb-nav/Title/index.vue.d.ts +28 -0
  100. package/types/components/lcb-nav/lcb-nav.vue.d.ts +106 -0
  101. package/types/components/lcb-nav/types.d.ts +72 -0
  102. package/types/components/lcb-notice/api/index.d.ts +18 -0
  103. package/types/components/lcb-notice/lcb-notice.vue.d.ts +77 -0
  104. package/types/components/lcb-notice/types.d.ts +14 -0
  105. package/types/components/lcb-operation-actions/BtnViews.vue.d.ts +62 -0
  106. package/types/components/lcb-operation-actions/IconActionView.vue.d.ts +61 -0
  107. package/types/components/lcb-operation-actions/IconView.vue.d.ts +41 -0
  108. package/types/components/lcb-operation-actions/components/OrderDetLogistic/index.vue.d.ts +51 -0
  109. package/types/components/lcb-operation-actions/lcb-operation-actions.vue.d.ts +34 -0
  110. package/types/components/lcb-operation-actions/types.d.ts +51 -0
  111. package/types/components/lcb-order-payment/lcb-order-payment.vue.d.ts +38 -0
  112. package/types/components/lcb-order-payment/types.d.ts +30 -0
  113. package/types/components/lcb-particulars/api.d.ts +45 -0
  114. package/types/components/lcb-particulars/lcb-particulars.vue.d.ts +56 -0
  115. package/types/components/lcb-particulars/types.d.ts +5 -0
  116. package/types/components/lcb-poster/lcb-poster.vue.d.ts +50 -0
  117. package/types/components/lcb-product/components/ProductSkeleton/index.vue.d.ts +70 -0
  118. package/types/components/lcb-product/components/SKeletonItem/index.vue.d.ts +28 -0
  119. package/types/components/lcb-product/lcb-product.vue.d.ts +96 -0
  120. package/types/components/lcb-product/types.d.ts +44 -0
  121. package/types/components/lcb-product-item/components/ItemValue.vue.d.ts +117 -0
  122. package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +267 -0
  123. package/types/components/lcb-product-item/types.d.ts +133 -0
  124. package/types/components/lcb-render-view/lcb-render-view.vue.d.ts +35 -0
  125. package/types/components/lcb-rich-text/lcb-rich-text.vue.d.ts +44 -0
  126. package/types/components/lcb-rich-text/types.d.ts +4 -0
  127. package/types/components/lcb-room-calendar/lcb-room-calendar.vue.d.ts +68 -0
  128. package/types/components/lcb-room-calendar/types.d.ts +10 -0
  129. package/types/components/lcb-search/api.d.ts +23 -0
  130. package/types/components/lcb-search/components/SearchHistory/index.vue.d.ts +48 -0
  131. package/types/components/lcb-search/components/SearchList/index.vue.d.ts +56 -0
  132. package/types/components/lcb-search/lcb-search.vue.d.ts +1211 -0
  133. package/types/components/lcb-search/types.d.ts +29 -0
  134. package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +73 -0
  135. package/types/components/lcb-swiper/types.d.ts +17 -0
  136. package/types/components/lcb-tabs/components/Imgs/index.vue.d.ts +62 -0
  137. package/types/components/lcb-tabs/components/Tabs/index.vue.d.ts +65 -0
  138. package/types/components/lcb-tabs/components/Tags/index.vue.d.ts +68 -0
  139. package/types/components/lcb-tabs/lcb-tabs.vue.d.ts +65 -0
  140. package/types/components/lcb-tabs/types.d.ts +34 -0
  141. package/types/components/lcb-tags/lcb-tags.vue.d.ts +74 -0
  142. package/types/components/lcb-tags/types.d.ts +17 -0
  143. package/types/components/lcb-text/lcb-text.vue.d.ts +42 -0
  144. package/types/components/lcb-text/types.d.ts +4 -0
  145. package/types/components/lcb-title/lcb-title.vue.d.ts +114 -0
  146. package/types/components/lcb-title/types.d.ts +42 -0
  147. package/types/components/lcb-user-order/lcb-user-order.vue.d.ts +62 -0
  148. package/types/components/lcb-user-order/types.d.ts +27 -0
  149. package/types/components/lcb-user-top/Nums/index.vue.d.ts +28 -0
  150. package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +158 -0
  151. package/types/components/lcb-user-top/types.d.ts +57 -0
  152. package/types/components/lcb-video/lcb-video.vue.d.ts +56 -0
  153. package/types/components/lcb-video/types.d.ts +10 -0
  154. package/types/components/lcb-vip/api/index.d.ts +70 -0
  155. package/types/components/lcb-vip/components/InfoDialog/index.vue.d.ts +42 -0
  156. package/types/components/lcb-vip/lcb-vip.vue.d.ts +68 -0
  157. package/types/components/lcb-vip/types.d.ts +10 -0
  158. package/types/components/lcb-waterfall/lcb-waterfall-item.vue.d.ts +73 -0
  159. package/types/components/lcb-waterfall/lcb-waterfall.vue.d.ts +192 -0
  160. package/types/components/lcb-wrapper-item/lcb-wrapper-item.vue.d.ts +49 -0
  161. package/types/components/lcb-wrapper-list/lcb-wrapper-list.vue.d.ts +71 -0
  162. package/types/components/lcb-wrapper-list/types.d.ts +14 -0
  163. package/types/constants.d.ts +17 -0
  164. package/types/hooks/useAutoHeight.d.ts +8 -0
  165. package/types/hooks/useDynamicData.d.ts +14 -0
  166. package/types/hooks/useLocation.api.d.ts +18 -0
  167. package/types/hooks/useLocation.d.ts +10 -0
  168. package/types/hooks/usePageScroll.d.ts +2 -0
  169. package/types/hooks/usePay.d.ts +13 -0
  170. package/types/hooks/useSyncForm.d.ts +5 -0
  171. package/types/hooks/useUpload.api.d.ts +12 -0
  172. package/types/hooks/useUpload.d.ts +21 -0
  173. package/types/utils/formatter.d.ts +5 -0
  174. package/types/utils/history.d.ts +5 -0
  175. package/types/utils/request.d.ts +6 -0
  176. package/types/utils/transform.d.ts +15 -0
  177. package/types/utils/utils.d.ts +51 -0
@@ -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
+ animation: boolean
67
+ gutter: number
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
+ showScrollbar: boolean
183
+ columnCount: string | number
184
+ columnGap: string | number
185
+ idKey: string
186
+ addTime: number
187
+ leftGap: string | number
188
+ rightGap: string | number
189
+ },
190
+ {}
191
+ >
192
+ export default _default
@@ -0,0 +1,49 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any
3
+ }
4
+ declare const __VLS_component: import('vue').DefineComponent<
5
+ __VLS_TypePropsToOption<{
6
+ data?: unknown
7
+ provideKey: string
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_TypePropsToOption<{
21
+ data?: unknown
22
+ provideKey: string
23
+ }>
24
+ >
25
+ >,
26
+ {},
27
+ {}
28
+ >
29
+ declare const _default: __VLS_WithTemplateSlots<
30
+ typeof __VLS_component,
31
+ ReturnType<typeof __VLS_template>
32
+ >
33
+ export default _default
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S
37
+ }
38
+ }
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
40
+ type __VLS_TypePropsToOption<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K>
42
+ ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
44
+ }
45
+ : {
46
+ type: import('vue').PropType<T[K]>
47
+ required: true
48
+ }
49
+ }
@@ -0,0 +1,71 @@
1
+ import { LcbWrapperListProps } from './types'
2
+ declare function __VLS_template(): {
3
+ default?(_: { data: unknown; list: import('../lcb-area/types').LcbAreaProps[] | undefined }): any
4
+ }
5
+ declare const __VLS_component: import('vue').DefineComponent<
6
+ __VLS_WithDefaults<
7
+ __VLS_TypePropsToOption<LcbWrapperListProps>,
8
+ {
9
+ display: string
10
+ flexDirection: string
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<LcbWrapperListProps>,
26
+ {
27
+ display: string
28
+ flexDirection: string
29
+ }
30
+ >
31
+ >
32
+ >,
33
+ {
34
+ display: 'flex' | 'grid'
35
+ flexDirection: 'row' | 'column'
36
+ },
37
+ {}
38
+ >
39
+ declare const _default: __VLS_WithTemplateSlots<
40
+ typeof __VLS_component,
41
+ ReturnType<typeof __VLS_template>
42
+ >
43
+ export default _default
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
46
+ ? __VLS_Prettify<
47
+ P[K] & {
48
+ default: D[K]
49
+ }
50
+ >
51
+ : P[K]
52
+ }
53
+ type __VLS_Prettify<T> = {
54
+ [K in keyof T]: T[K]
55
+ } & {}
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S
59
+ }
60
+ }
61
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
62
+ type __VLS_TypePropsToOption<T> = {
63
+ [K in keyof T]-?: {} extends Pick<T, K>
64
+ ? {
65
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
66
+ }
67
+ : {
68
+ type: import('vue').PropType<T[K]>
69
+ required: true
70
+ }
71
+ }
@@ -0,0 +1,14 @@
1
+ import { LcbAreaProps } from '../lcb-area/types'
2
+ import { DataSource } from '../../action'
3
+ import { LcbBlockProps } from '../lcb-block/types'
4
+ export interface LcbWrapperListProps extends LcbBlockProps {
5
+ dataSource?: DataSource
6
+ gap?: number
7
+ width?: number
8
+ display?: 'flex' | 'grid'
9
+ flexDirection?: 'row' | 'column'
10
+ gridColumns?: number
11
+ scrollX?: boolean
12
+ list?: LcbAreaProps[]
13
+ childrenAutoWidth?: boolean
14
+ }
@@ -0,0 +1,17 @@
1
+ export declare const FORM_KEY = 'page_form'
2
+ /** 页面信息 */
3
+ export declare const PAGE_PROVIDE_KEY = 'page_provide'
4
+ /** 页面类型 */
5
+ export declare const PAGE_TYPE_PROVIDE_KEY = 'page_type_provide'
6
+ /** 页面锚点 */
7
+ export declare const PAGE_ANCHOR_PROVIDE_KEY = 'page_anchor_provide'
8
+ /** 用户基本信息 */
9
+ export declare const USER_BASIC_INFO = 'user_basic_info'
10
+ /** 列表页表单选择项 */
11
+ export declare const LIST_FORM_CHOOSER_VALUES = 'list_form_chooser_values'
12
+ /** 页面动态数据 */
13
+ export declare const PAGE_DYNAMIC_DATA = 'page_dynamic_data'
14
+ /** 列表页表单选择项 */
15
+ export declare const WRAPPER_ITEM_KEY = 'wrapper_item_key'
16
+ /** 是否显示tabbar */
17
+ export declare const SHOW_TABBAR = 'show_tabbar'
@@ -0,0 +1,8 @@
1
+ declare const useAutoHeight: (
2
+ id?: string,
3
+ timeOut?: number,
4
+ ) => {
5
+ height: import('vue').Ref<string>
6
+ top: import('vue').Ref<number>
7
+ }
8
+ export default useAutoHeight
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue'
2
+ declare const useDynamicData: (formUser?: boolean) => {
3
+ pageInfo: Ref<Record<string, any>>
4
+ wrapperItemData: Ref<Record<string, any>>
5
+ userStore:
6
+ | {
7
+ userInfo: Record<string, any>
8
+ updateUser: (data: Record<string, any>, isLogin?: boolean) => void
9
+ getUser: () => void
10
+ }
11
+ | undefined
12
+ innerDynamicData: import('vue').ComputedRef<Record<string, any> | undefined>
13
+ }
14
+ export default useDynamicData
@@ -0,0 +1,18 @@
1
+ export interface UserLocation {
2
+ addressInfo: string
3
+ cityId: string
4
+ areaId: string
5
+ provinceId: string
6
+ cityName: string
7
+ haveNotCityId: string
8
+ haveNotCityName: string
9
+ haveNotAddressInfo: string
10
+ haveNotTip: string
11
+ showName: string
12
+ openFlag: boolean
13
+ addressId: string
14
+ }
15
+ export declare const getUserLocation: (data?: {
16
+ userLongitude: string
17
+ userLatitude: string
18
+ }) => Promise<import('../action').IResData<UserLocation>>
@@ -0,0 +1,10 @@
1
+ import { UserLocation } from './useLocation.api'
2
+ export declare const currentLocation: import('vue').Ref<UserLocation | undefined>
3
+ export declare const currentUserLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined>
4
+ declare const useLocation: (onLocation?: (location: UserLocation) => void) => {
5
+ getLocation: (force?: boolean, forceSetting?: boolean) => Promise<void>
6
+ locationIng: import('vue').Ref<boolean>
7
+ userLocation: import('vue').Ref<UserLocation | undefined>
8
+ userLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined>
9
+ }
10
+ export default useLocation
@@ -0,0 +1,2 @@
1
+ declare const usePageScroll: () => import('vue').Ref<number>[]
2
+ export default usePageScroll
@@ -0,0 +1,13 @@
1
+ import { type CommitPageDetailParams } from '../api/pay'
2
+ import { IResData } from '../action'
3
+ declare const usePay: (
4
+ fun?: (data: unknown) => Promise<IResData<any>>,
5
+ queryStatusFun?: (orderNo: string) => Promise<any>,
6
+ ) => ((
7
+ data: CommitPageDetailParams,
8
+ options?: {
9
+ onSuccess?: () => void
10
+ onError?: () => void
11
+ },
12
+ ) => Promise<void>)[]
13
+ export default usePay
@@ -0,0 +1,5 @@
1
+ declare const useSyncForm: (dynamicScope?: string) => {
2
+ syncForm: (params: Record<string, any>) => void
3
+ form: import('vue').ComputedRef<any>
4
+ }
5
+ export default useSyncForm
@@ -0,0 +1,12 @@
1
+ interface OssUploadResponse {
2
+ fileUrl: string
3
+ ossType: string
4
+ uploadHeaders: UploadHeaders
5
+ uploadUrl: string
6
+ }
7
+ interface UploadHeaders {
8
+ Date: string
9
+ }
10
+ /** 商城文件 */
11
+ export declare const uploadByUrl: (fileName: string) => Promise<OssUploadResponse>
12
+ export {}
@@ -0,0 +1,21 @@
1
+ import { Ref } from 'vue'
2
+ /**
3
+ * useUpload 是一个定制化的请求钩子,用于处理上传图片。
4
+ * @param formData 额外传递给后台的数据,如{name: '菲鸽'}。
5
+ * @returns 返回一个对象{loading, error, data, run},包含请求的加载状态、错误信息、响应数据和手动触发请求的函数。
6
+ */
7
+ export default function useUpload(onSuccess?: (url: string) => void): {
8
+ data: Ref<string>
9
+ run: () => void
10
+ }
11
+ export declare function uploadFile({
12
+ filePath,
13
+ data,
14
+ name,
15
+ onSuccess,
16
+ }: {
17
+ filePath: string
18
+ data?: Ref<string>
19
+ name: string
20
+ onSuccess?: (url: string) => void
21
+ }): Promise<void>
@@ -0,0 +1,5 @@
1
+ import { HolidayInfo } from '../components/lcb-calendar-filter/types'
2
+ export declare const calendarFormatter: (
3
+ holidayInfo: Record<string, HolidayInfo>,
4
+ t: (key: string) => string,
5
+ ) => (day: any) => any
@@ -0,0 +1,5 @@
1
+ import { ChildHotAddress } from '../components/lcb-city-select/api'
2
+ /** 设置城市历史记录 */
3
+ export declare const setHistoryCity: (address?: ChildHotAddress) => void
4
+ /** 获取城市历史记录如果超过3天就不使用历史 */
5
+ export declare const getHistoryCity: () => import('../components/lcb-city-select/api').LcbAddress
@@ -0,0 +1,6 @@
1
+ import { DataSource } from 'action'
2
+ export declare const dynamicRequest: (
3
+ dataSource?: DataSource,
4
+ pageInfo?: Record<string, any>,
5
+ userInfo?: Record<string, any>,
6
+ ) => Promise<any>
@@ -0,0 +1,15 @@
1
+ export declare const transformValueUnit: (value?: number | string, uni?: string) => string
2
+ /** 获取json字符串第一个url */
3
+ export declare const getJsonStrFirstUrl: (jsonStr?: string) => any
4
+ export declare const getJsonFromStr: (jsonStr?: string) => any
5
+ /** 获取json字符串列表 */
6
+ export declare const getJsonStrList: (jsonStr?: string) => any
7
+ /** 删除其他外部字段 */
8
+ export declare const cleanOutSizeKeys: (obj: Record<string, any>, keys?: string[]) => {}
9
+ export declare const getSliderTitle: (
10
+ translate: (v: string) => string,
11
+ value?: number[],
12
+ max?: number,
13
+ min?: number,
14
+ ) => string
15
+ export declare const getFlexStyle: (align?: string) => Record<string, string>
@@ -0,0 +1,51 @@
1
+ import { UploadMethod } from '@tplc/wot/types/components/wd-upload/types'
2
+ import { LcbAddress } from '../components/lcb-city-select/api'
3
+ export declare function formatJson(str: string | object | undefined, defVal?: {}): {}
4
+ /** 获取上个页面Exposed */
5
+ export declare const getExposed: () => any
6
+ export declare const getCurrentPage: () => {
7
+ pageId: string | number
8
+ fullPath: string
9
+ options: any
10
+ route: string
11
+ }
12
+ export declare const getPreviousPageId: () => string | number
13
+ /** 合并url参数 url = /pages/data/index?id=1&name=2 urlParams = id=1&name=2&type=1 */
14
+ export declare const getFinalUrl: (url: string, urlParams?: string) => string
15
+ export declare const onPageScrollSelector: (selector: string, offsetTop?: number) => void
16
+ export declare const getPreviewImageUrl: (url: string, width?: number) => string
17
+ /** 根据屏幕宽度 图片高度宽度比例 列数与 间隙宽度 计算图片高度 */
18
+ export declare const calculateImageHeight: (
19
+ screenWidth: number,
20
+ imageHeight?: number,
21
+ imageWidth?: number,
22
+ column?: number,
23
+ gap?: number,
24
+ ) => number
25
+ export declare const customUpload: UploadMethod
26
+ export declare const getSharePath: () => string
27
+ /** 获取动态数据 */
28
+ export declare const getDynamicData: (
29
+ text: string | undefined,
30
+ {
31
+ store,
32
+ defaultText,
33
+ }: {
34
+ store?: Record<string, any>
35
+ defaultText?: string
36
+ },
37
+ ) => string
38
+ export declare const calcAutoHeight: ({
39
+ originalWidth,
40
+ originalHeight,
41
+ targetWidth,
42
+ }: {
43
+ originalWidth: number
44
+ originalHeight: number
45
+ targetWidth: number
46
+ }) => number
47
+ export declare const getOssImageSize: (url: string) => Promise<{
48
+ width: number
49
+ height: number
50
+ }>
51
+ export declare const getCityData: (data?: Record<string, unknown>) => LcbAddress