@tplc/business 0.5.2 → 0.5.4
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 +18 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -1
- package/components/lcb-action-view/types.ts +19 -23
- package/components/lcb-nav/AddressCommunity/index.vue +91 -0
- package/components/lcb-nav/lcb-nav.vue +11 -3
- package/components/lcb-nav/types.ts +21 -5
- package/components/lcb-search/lcb-search.vue +1 -1
- package/components/lcb-swiper/lcb-swiper.vue +18 -81
- package/components/lcb-swiper/types.ts +10 -0
- package/hooks/useLocation.api.ts +1 -0
- package/hooks/useLocation.ts +10 -2
- package/package.json +3 -2
- package/types/components/lcb-action-view/types.d.ts +18 -23
- package/types/components/lcb-nav/AddressCommunity/index.vue.d.ts +55 -0
- package/types/components/lcb-nav/lcb-nav.vue.d.ts +3 -0
- package/types/components/lcb-nav/types.d.ts +7 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +107 -8
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +4 -80
- package/types/components/lcb-swiper/types.d.ts +9 -0
- package/types/hooks/useLocation.api.d.ts +1 -0
- package/types/hooks/useLocation.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.3...v0.5.4) (2025-10-10)
|
|
6
|
+
|
|
7
|
+
### [0.5.3](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.1...v0.5.3) (2025-10-10)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
11
|
+
|
|
12
|
+
* **release:** 0.5.2 ([1cb75f5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1cb75f5b73ddab9725df5cab5a0b1728436f6064))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* paypopup 兼容小程序 ([2be4585](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2be4585183dcc184e91e8c483660ef51e8b53509))
|
|
18
|
+
* 支持地址选择 ([2bdb47b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2bdb47bededa3a5b091f4c0d52b2a55219bf9369))
|
|
19
|
+
* 新增 pay组件 ([03f3d88](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/03f3d88c1725ffdab4439c870c6747a0765345c9))
|
|
20
|
+
* 新增pop ([70282d2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/70282d2ce61843f7c81dd686385f38a7a8da1956))
|
|
21
|
+
* 新增组件 ([090ee4f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/090ee4f5aec2f05922dc12eee7cc1c5ea5906ea9))
|
|
22
|
+
|
|
5
23
|
### [0.5.2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.4.200...v0.5.2) (2025-09-29)
|
|
6
24
|
|
|
7
25
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
v-model="showPay"
|
|
57
57
|
:requestInfo="requestInfo"
|
|
58
58
|
:submitRequestInfo="submitRequestInfo"
|
|
59
|
-
v-if="[144].includes(getJumpType(jumpType)) && showPay"
|
|
59
|
+
v-if="[144].includes(getJumpType(jumpType)) && showPay && requestInfo && submitRequestInfo"
|
|
60
60
|
/>
|
|
61
61
|
<SharePopup v-model="showPoster" :params="requestParam" />
|
|
62
62
|
</template>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PopupType } from '@tplc/wot/types/components/wd-popup/types'
|
|
1
2
|
import { StyleValue } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type LcbActionViewProps = {
|
|
@@ -8,6 +9,23 @@ export type LcbActionViewProps = {
|
|
|
8
9
|
customStyle?: StyleValue
|
|
9
10
|
renderMode?: 'view' | 'button'
|
|
10
11
|
autoJumpSecond?: number
|
|
12
|
+
/** 弹窗位置 */
|
|
13
|
+
position?: PopupType
|
|
14
|
+
/** 弹窗文案 */
|
|
15
|
+
content?: string
|
|
16
|
+
/** 弹窗标题 */
|
|
17
|
+
title?: string
|
|
18
|
+
requestParam?: Record<string, any>
|
|
19
|
+
requestInfo?: {
|
|
20
|
+
requestUrl: string
|
|
21
|
+
requestParams: Record<string, any>
|
|
22
|
+
/** 请求之后刷新schemapage */
|
|
23
|
+
refreshSchemaPage?: boolean
|
|
24
|
+
}
|
|
25
|
+
submitRequestInfo?: {
|
|
26
|
+
requestUrl: string
|
|
27
|
+
requestParams: Record<string, any>
|
|
28
|
+
}
|
|
11
29
|
} & (
|
|
12
30
|
| {
|
|
13
31
|
/**
|
|
@@ -44,12 +62,7 @@ export type LcbActionViewProps = {
|
|
|
44
62
|
|
|
45
63
|
/** 小程序appid */
|
|
46
64
|
jumpAppid?: string
|
|
47
|
-
|
|
48
|
-
content?: string
|
|
49
|
-
/** 弹窗标题 */
|
|
50
|
-
title?: string
|
|
51
|
-
/** 弹窗位置 */
|
|
52
|
-
position?: string
|
|
65
|
+
|
|
53
66
|
/** 查看地图信息 */
|
|
54
67
|
}
|
|
55
68
|
| {
|
|
@@ -58,25 +71,9 @@ export type LcbActionViewProps = {
|
|
|
58
71
|
}
|
|
59
72
|
| {
|
|
60
73
|
jumpType: 17
|
|
61
|
-
requestInfo?: {
|
|
62
|
-
requestUrl: string
|
|
63
|
-
requestParams: Record<string, any>
|
|
64
|
-
/** 请求之后刷新schemapage */
|
|
65
|
-
refreshSchemaPage?: boolean
|
|
66
|
-
}
|
|
67
74
|
}
|
|
68
75
|
| {
|
|
69
76
|
jumpType: 144
|
|
70
|
-
requestInfo?: {
|
|
71
|
-
requestUrl: string
|
|
72
|
-
requestParams: Record<string, any>
|
|
73
|
-
/** 请求之后刷新schemapage */
|
|
74
|
-
refreshSchemaPage?: boolean
|
|
75
|
-
}
|
|
76
|
-
submitRequestInfo?: {
|
|
77
|
-
requestUrl: string
|
|
78
|
-
requestParams: Record<string, any>
|
|
79
|
-
}
|
|
80
77
|
}
|
|
81
78
|
| {
|
|
82
79
|
jumpType: 105
|
|
@@ -89,7 +86,6 @@ export type LcbActionViewProps = {
|
|
|
89
86
|
}
|
|
90
87
|
| {
|
|
91
88
|
jumpType: 106
|
|
92
|
-
requestParam?: Record<string, any>
|
|
93
89
|
}
|
|
94
90
|
| {
|
|
95
91
|
jumpType: 141
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="drop-menu-container"
|
|
4
|
+
:style="`background-color: ${backgroundColor}; --address-content-color: ${color};--address-width: ${width}rpx;width: ${width}rpx;`"
|
|
5
|
+
v-if="options.length > 0"
|
|
6
|
+
>
|
|
7
|
+
<wd-drop-menu>
|
|
8
|
+
<wd-drop-menu-item
|
|
9
|
+
v-model="value"
|
|
10
|
+
:options="options"
|
|
11
|
+
:title="title"
|
|
12
|
+
@change="handleChange"
|
|
13
|
+
value-key="addressId"
|
|
14
|
+
label-key="addressName"
|
|
15
|
+
/>
|
|
16
|
+
</wd-drop-menu>
|
|
17
|
+
</view>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { ref, watch } from 'vue'
|
|
22
|
+
import { AddressCommunityProps } from '../types'
|
|
23
|
+
import useLocation, { currentAddressId } from '../../../hooks/useLocation'
|
|
24
|
+
|
|
25
|
+
defineOptions({
|
|
26
|
+
name: 'AddressCommunity',
|
|
27
|
+
options: {
|
|
28
|
+
addGlobalClass: true,
|
|
29
|
+
virtualHost: true,
|
|
30
|
+
styleIsolation: 'shared',
|
|
31
|
+
},
|
|
32
|
+
})
|
|
33
|
+
withDefaults(defineProps<AddressCommunityProps>(), {
|
|
34
|
+
backgroundColor: 'transparent',
|
|
35
|
+
color: '#000',
|
|
36
|
+
width: 240,
|
|
37
|
+
})
|
|
38
|
+
const { userLocation } = useLocation()
|
|
39
|
+
const value = defineModel<string>('')
|
|
40
|
+
const title = ref<string>('地址社区')
|
|
41
|
+
const options = ref<{ addressName: string; addressId: string }[]>([])
|
|
42
|
+
|
|
43
|
+
const handleChange = (e: any) => {
|
|
44
|
+
title.value = e.selectedItem.label
|
|
45
|
+
currentAddressId.value = e.selectedItem.addressId
|
|
46
|
+
uni.$emit('lcb-city-select-change', e.selectedItem)
|
|
47
|
+
}
|
|
48
|
+
watch(
|
|
49
|
+
() => userLocation.value,
|
|
50
|
+
async (val) => {
|
|
51
|
+
if (val) {
|
|
52
|
+
const { data } = await uni.$lcb.http.post<any[]>('/addressCommunity/list')
|
|
53
|
+
options.value = data
|
|
54
|
+
if (data.length > 0) {
|
|
55
|
+
const firstItem = data[0]
|
|
56
|
+
title.value = firstItem.label
|
|
57
|
+
value.value = firstItem.addressId
|
|
58
|
+
currentAddressId.value = firstItem.addressId
|
|
59
|
+
uni.$emit('lcb-city-select-change', firstItem)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
immediate: true,
|
|
65
|
+
},
|
|
66
|
+
)
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style lang="scss" scoped>
|
|
70
|
+
.drop-menu-container {
|
|
71
|
+
margin-right: 24rpx;
|
|
72
|
+
|
|
73
|
+
:deep(.wd-drop-menu__list) {
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:deep(.wd-drop-menu) {
|
|
78
|
+
font-size: 28rpx !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:deep(.wd-drop-menu__item) {
|
|
82
|
+
color: var(--address-content-color);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:deep(.wd-drop-item) {
|
|
86
|
+
.wd-popup {
|
|
87
|
+
width: var(--address-width);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</style>
|
|
@@ -24,7 +24,13 @@
|
|
|
24
24
|
}"
|
|
25
25
|
>
|
|
26
26
|
<!-- 左边布局 -->
|
|
27
|
-
<view
|
|
27
|
+
<view
|
|
28
|
+
class="navbar-left z-1"
|
|
29
|
+
:style="{
|
|
30
|
+
paddingLeft: showAddressCommunity ? '0rpx' : '24rpx',
|
|
31
|
+
}"
|
|
32
|
+
>
|
|
33
|
+
<AddressCommunity v-if="showAddressCommunity" v-bind="addressCommunityProps" />
|
|
28
34
|
<view
|
|
29
35
|
v-if="(styleGroup === 3 || moreThanTwoPages() || !canBack) && capsuleList.length"
|
|
30
36
|
class="navbar-capsule flex justify-center items-center"
|
|
@@ -129,7 +135,7 @@
|
|
|
129
135
|
|
|
130
136
|
<script setup lang="ts">
|
|
131
137
|
import { addUnit } from '@tplc/wot/components/common/util'
|
|
132
|
-
import { computed, inject, ref,Ref } from 'vue'
|
|
138
|
+
import { computed, inject, ref, Ref } from 'vue'
|
|
133
139
|
import { ICapsule, NavProps } from './types'
|
|
134
140
|
import Title from './Title/index.vue'
|
|
135
141
|
import Search from './Search/index.vue'
|
|
@@ -139,6 +145,7 @@ import SharePopup from './SharePopup/index.vue'
|
|
|
139
145
|
import { getCurrentPage } from '../../utils/utils'
|
|
140
146
|
import { PAGE_PROVIDE_KEY } from '@tplc/business/constants'
|
|
141
147
|
import { get } from 'lodash-es'
|
|
148
|
+
import AddressCommunity from './AddressCommunity/index.vue'
|
|
142
149
|
defineOptions({
|
|
143
150
|
name: 'LcbNav',
|
|
144
151
|
options: {
|
|
@@ -190,6 +197,7 @@ const props = withDefaults(defineProps<NavProps>(), {
|
|
|
190
197
|
fontWeight: 500,
|
|
191
198
|
textColor: '#000000',
|
|
192
199
|
keyFromUser: false,
|
|
200
|
+
showAddressCommunity: true,
|
|
193
201
|
})
|
|
194
202
|
const navbarBgColor = computed(() => {
|
|
195
203
|
return props.backgroundType === 'color' ? props.backColor : ''
|
|
@@ -263,7 +271,7 @@ const capsuleList = computed(() => {
|
|
|
263
271
|
}
|
|
264
272
|
const m = (props.capsules || []).find((i) => i.action === 'notification')
|
|
265
273
|
if (!m) return [...list, ...(props.capsules || [])] as ICapsule[]
|
|
266
|
-
let showMsg:boolean = true
|
|
274
|
+
let showMsg: boolean = true
|
|
267
275
|
if (m.dependKey) {
|
|
268
276
|
const userStore = uni.$lcb.userStore?.()
|
|
269
277
|
const value = get(m.keyFromUser ? userStore?.userInfo : pageInfo.value, m.dependKey)
|
|
@@ -2,11 +2,25 @@ import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
|
2
2
|
|
|
3
3
|
export interface ICapsule {
|
|
4
4
|
icon: string
|
|
5
|
-
action:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
action:
|
|
6
|
+
| 'translate'
|
|
7
|
+
| 'scanCode'
|
|
8
|
+
| 'search'
|
|
9
|
+
| 'home'
|
|
10
|
+
| 'setting'
|
|
11
|
+
| 'back'
|
|
12
|
+
| 'share'
|
|
13
|
+
| 'notification'
|
|
14
|
+
dependKey?: string
|
|
15
|
+
keyFromUser?: string
|
|
16
|
+
dependKeyCompareValue?: string
|
|
17
|
+
reverse?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface AddressCommunityProps {
|
|
21
|
+
backgroundColor?: string
|
|
22
|
+
color?: string
|
|
23
|
+
width?: number
|
|
10
24
|
}
|
|
11
25
|
|
|
12
26
|
export interface NavTitleProps {
|
|
@@ -54,4 +68,6 @@ export interface NavProps extends NavTitleProps {
|
|
|
54
68
|
capsules?: ICapsule[]
|
|
55
69
|
searchLink?: LcbActionViewProps
|
|
56
70
|
rightIcons?: ICapsule[]
|
|
71
|
+
showAddressCommunity?: boolean
|
|
72
|
+
addressCommunityProps?: AddressCommunityProps
|
|
57
73
|
}
|
|
@@ -171,7 +171,7 @@ const props = withDefaults(defineProps<LcbSearchProps>(), {
|
|
|
171
171
|
fontSize: 24,
|
|
172
172
|
initFocus: true,
|
|
173
173
|
showCancel: true,
|
|
174
|
-
})
|
|
174
|
+
}) as LcbSearchProps
|
|
175
175
|
const searchHistoryRef = ref<InstanceType<typeof LcbSearchHistory>>()
|
|
176
176
|
const searchListRef = ref<InstanceType<typeof LcbSearchList>>()
|
|
177
177
|
const { height, top } = useAutoHeight('searchPagingTop')
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</view>
|
|
2
|
+
<lcb-block v-bind="$props" custom-class="overflow-visible lcb-banner-block flex flex-col">
|
|
3
|
+
<!-- <z-swiper v-bind="$props">
|
|
4
|
+
<z-swiper-item v-for="item in items" :key="item.link">
|
|
5
|
+
<lcb-action-view v-bind="item.link">
|
|
6
|
+
<view
|
|
7
|
+
class="absolute top-0 left-0 w-full h-full z-1 pointer-events-none"
|
|
8
|
+
:style="{
|
|
9
|
+
background: item.maskBgColor,
|
|
10
|
+
}"
|
|
11
|
+
/>
|
|
12
|
+
<wd-img :src="item.url" height="100%" width="100%" />
|
|
13
|
+
</lcb-action-view>
|
|
14
|
+
</z-swiper-item>
|
|
15
|
+
</z-swiper> -->
|
|
16
|
+
</lcb-block>
|
|
18
17
|
</template>
|
|
19
18
|
|
|
20
19
|
<script setup lang="ts">
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
// import { computed } from 'vue'
|
|
20
|
+
import { LcbSwiperProps } from './types'
|
|
24
21
|
defineOptions({
|
|
25
|
-
name: '
|
|
22
|
+
name: 'LcbSwiper',
|
|
26
23
|
options: {
|
|
27
24
|
addGlobalClass: true,
|
|
28
25
|
virtualHost: true,
|
|
@@ -30,66 +27,6 @@ defineOptions({
|
|
|
30
27
|
},
|
|
31
28
|
})
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const swiperList = ref([
|
|
36
|
-
{
|
|
37
|
-
value: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
|
|
38
|
-
pageUrl: 'fdasfsdfdsf',
|
|
39
|
-
pageType: 1,
|
|
40
|
-
},
|
|
41
|
-
{ value: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg' },
|
|
42
|
-
{ value: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg' },
|
|
43
|
-
{ value: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg' },
|
|
44
|
-
{ value: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg' },
|
|
45
|
-
])
|
|
46
|
-
function handleClick(e) {
|
|
47
|
-
console.log(e, e.item?.value)
|
|
48
|
-
}
|
|
49
|
-
function onChange(e) {
|
|
50
|
-
console.log(e)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface NanProps {
|
|
54
|
-
list?: Array<any> // <SwiperList>
|
|
55
|
-
/** 是否自动播放 */
|
|
56
|
-
autoplay?: boolean
|
|
57
|
-
/** 模式 1.标题 2.搜索 3.导航 4.沉浸式 */
|
|
58
|
-
styleGroup?: 1 | 2 | 3 | 4
|
|
59
|
-
/** 轮播滑动方向 */
|
|
60
|
-
direction?: 'horizontal' | 'vertical'
|
|
61
|
-
// 同时显示的滑块数量
|
|
62
|
-
displayMultipleItems?: number
|
|
63
|
-
// 滑动动画时长
|
|
64
|
-
duration?: number
|
|
65
|
-
// 滑动动画时长
|
|
66
|
-
height?: number
|
|
67
|
-
loop?: boolean
|
|
68
|
-
indicator?: boolean
|
|
69
|
-
indicatorType?: 'dots' | 'dots-bar' | 'fraction'
|
|
70
|
-
indicatorPosition?:
|
|
71
|
-
| 'left'
|
|
72
|
-
| 'top-left'
|
|
73
|
-
| 'top'
|
|
74
|
-
| 'top-right'
|
|
75
|
-
| 'bottom-left'
|
|
76
|
-
| 'bottom'
|
|
77
|
-
| 'bottom-right'
|
|
78
|
-
| 'right'
|
|
79
|
-
borderRadius?: number
|
|
80
|
-
}
|
|
81
|
-
withDefaults(defineProps<NanProps>(), {
|
|
82
|
-
autoplay: false,
|
|
83
|
-
styleGroup: 1,
|
|
84
|
-
direction: 'horizontal',
|
|
85
|
-
displayMultipleItems: 1,
|
|
86
|
-
duration: 300,
|
|
87
|
-
height: 200,
|
|
88
|
-
loop: false,
|
|
89
|
-
indicator: false,
|
|
90
|
-
indicatorType: 'dots',
|
|
91
|
-
indicatorPosition: 'bottom',
|
|
92
|
-
borderRadius: 0, // '10rpx',
|
|
93
|
-
})
|
|
30
|
+
withDefaults(defineProps<LcbSwiperProps>(), {})
|
|
94
31
|
</script>
|
|
95
32
|
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// import { SwiperOptions } from '@zebra-ui/swiper/types/swiper-options'
|
|
2
|
+
import { ActionView } from 'action'
|
|
3
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
4
|
+
export interface LcbSwiperProps extends LcbBlockProps {
|
|
5
|
+
items?: Partial<
|
|
6
|
+
ActionView & {
|
|
7
|
+
maskBgColor?: string
|
|
8
|
+
}
|
|
9
|
+
>[]
|
|
10
|
+
}
|
package/hooks/useLocation.api.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface UserLocation {
|
|
|
10
10
|
haveNotTip: string
|
|
11
11
|
showName: string
|
|
12
12
|
openFlag: boolean
|
|
13
|
+
addressId: string
|
|
13
14
|
}
|
|
14
15
|
export const getUserLocation = (data?: { userLongitude: string; userLatitude: string }) =>
|
|
15
16
|
uni.$lcb.http.post<UserLocation>('/address/userLocation', data)
|
package/hooks/useLocation.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { useTranslate } from '@tplc/wot'
|
|
|
2
2
|
import { ref } from 'vue'
|
|
3
3
|
import { getUserLocation, UserLocation } from './useLocation.api'
|
|
4
4
|
export const currentLocation = ref<UserLocation>()
|
|
5
|
+
export const currentAddressId = ref<string>('')
|
|
5
6
|
export const currentUserLatLon = ref<UniApp.GetLocationSuccess>()
|
|
6
7
|
const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
7
8
|
const { translate } = useTranslate()
|
|
@@ -52,6 +53,7 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
|
52
53
|
if (!force && currentLocation.value) return
|
|
53
54
|
if ((await checkLocationPermission()) !== false) {
|
|
54
55
|
locationIng.value = true
|
|
56
|
+
|
|
55
57
|
await new Promise<void>((resolve) => {
|
|
56
58
|
uni.getLocation({
|
|
57
59
|
type: 'gcj02',
|
|
@@ -63,7 +65,10 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
|
63
65
|
userLatitude: res.latitude.toString(),
|
|
64
66
|
})
|
|
65
67
|
.then((res) => {
|
|
66
|
-
currentLocation.value =
|
|
68
|
+
currentLocation.value = {
|
|
69
|
+
...currentLocation.value,
|
|
70
|
+
...res.data,
|
|
71
|
+
}
|
|
67
72
|
if (force) onLocation?.(res.data)
|
|
68
73
|
})
|
|
69
74
|
.finally(() => {
|
|
@@ -75,7 +80,10 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
|
75
80
|
console.log('获取位置信息失败:', res)
|
|
76
81
|
getUserLocation()
|
|
77
82
|
.then((res) => {
|
|
78
|
-
currentLocation.value =
|
|
83
|
+
currentLocation.value = {
|
|
84
|
+
...currentLocation.value,
|
|
85
|
+
...res.data,
|
|
86
|
+
}
|
|
79
87
|
})
|
|
80
88
|
.finally(() => {
|
|
81
89
|
locationIng.value = false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"mp-html": "^2.5.0",
|
|
22
22
|
"qs": "6.5.3",
|
|
23
|
-
"uview-plus": "^3.3.9"
|
|
23
|
+
"uview-plus": "^3.3.9",
|
|
24
|
+
"@zebra-ui/swiper": "^3.0.2"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"standard-version": "^9.5.0"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PopupType } from '@tplc/wot/types/components/wd-popup/types'
|
|
1
2
|
import { StyleValue } from 'vue'
|
|
2
3
|
export type LcbActionViewProps = {
|
|
3
4
|
/** 跳转路径 */
|
|
@@ -7,6 +8,23 @@ export type LcbActionViewProps = {
|
|
|
7
8
|
customStyle?: StyleValue
|
|
8
9
|
renderMode?: 'view' | 'button'
|
|
9
10
|
autoJumpSecond?: number
|
|
11
|
+
/** 弹窗位置 */
|
|
12
|
+
position?: PopupType
|
|
13
|
+
/** 弹窗文案 */
|
|
14
|
+
content?: string
|
|
15
|
+
/** 弹窗标题 */
|
|
16
|
+
title?: string
|
|
17
|
+
requestParam?: Record<string, any>
|
|
18
|
+
requestInfo?: {
|
|
19
|
+
requestUrl: string
|
|
20
|
+
requestParams: Record<string, any>
|
|
21
|
+
/** 请求之后刷新schemapage */
|
|
22
|
+
refreshSchemaPage?: boolean
|
|
23
|
+
}
|
|
24
|
+
submitRequestInfo?: {
|
|
25
|
+
requestUrl: string
|
|
26
|
+
requestParams: Record<string, any>
|
|
27
|
+
}
|
|
10
28
|
} & (
|
|
11
29
|
| {
|
|
12
30
|
/**
|
|
@@ -42,12 +60,6 @@ export type LcbActionViewProps = {
|
|
|
42
60
|
| 143
|
|
43
61
|
/** 小程序appid */
|
|
44
62
|
jumpAppid?: string
|
|
45
|
-
/** 弹窗文案 */
|
|
46
|
-
content?: string
|
|
47
|
-
/** 弹窗标题 */
|
|
48
|
-
title?: string
|
|
49
|
-
/** 弹窗位置 */
|
|
50
|
-
position?: string
|
|
51
63
|
}
|
|
52
64
|
| {
|
|
53
65
|
jumpType: 30
|
|
@@ -55,25 +67,9 @@ export type LcbActionViewProps = {
|
|
|
55
67
|
}
|
|
56
68
|
| {
|
|
57
69
|
jumpType: 17
|
|
58
|
-
requestInfo?: {
|
|
59
|
-
requestUrl: string
|
|
60
|
-
requestParams: Record<string, any>
|
|
61
|
-
/** 请求之后刷新schemapage */
|
|
62
|
-
refreshSchemaPage?: boolean
|
|
63
|
-
}
|
|
64
70
|
}
|
|
65
71
|
| {
|
|
66
72
|
jumpType: 144
|
|
67
|
-
requestInfo?: {
|
|
68
|
-
requestUrl: string
|
|
69
|
-
requestParams: Record<string, any>
|
|
70
|
-
/** 请求之后刷新schemapage */
|
|
71
|
-
refreshSchemaPage?: boolean
|
|
72
|
-
}
|
|
73
|
-
submitRequestInfo?: {
|
|
74
|
-
requestUrl: string
|
|
75
|
-
requestParams: Record<string, any>
|
|
76
|
-
}
|
|
77
73
|
}
|
|
78
74
|
| {
|
|
79
75
|
jumpType: 105
|
|
@@ -86,7 +82,6 @@ export type LcbActionViewProps = {
|
|
|
86
82
|
}
|
|
87
83
|
| {
|
|
88
84
|
jumpType: 106
|
|
89
|
-
requestParam?: Record<string, any>
|
|
90
85
|
}
|
|
91
86
|
| {
|
|
92
87
|
jumpType: 141
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AddressCommunityProps } from '../types'
|
|
2
|
+
declare let __VLS_typeProps: AddressCommunityProps
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
''?: string
|
|
5
|
+
} & typeof __VLS_typeProps
|
|
6
|
+
declare const _default: import('vue').DefineComponent<
|
|
7
|
+
__VLS_WithDefaults<
|
|
8
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
9
|
+
{
|
|
10
|
+
backgroundColor: string
|
|
11
|
+
color: string
|
|
12
|
+
width: number
|
|
13
|
+
}
|
|
14
|
+
>,
|
|
15
|
+
{},
|
|
16
|
+
unknown,
|
|
17
|
+
{},
|
|
18
|
+
{},
|
|
19
|
+
import('vue').ComponentOptionsMixin,
|
|
20
|
+
import('vue').ComponentOptionsMixin,
|
|
21
|
+
any,
|
|
22
|
+
string,
|
|
23
|
+
import('vue').PublicProps,
|
|
24
|
+
any,
|
|
25
|
+
{
|
|
26
|
+
width: number
|
|
27
|
+
backgroundColor: string
|
|
28
|
+
color: string
|
|
29
|
+
},
|
|
30
|
+
{}
|
|
31
|
+
>
|
|
32
|
+
export default _default
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
35
|
+
? __VLS_Prettify<
|
|
36
|
+
P[K] & {
|
|
37
|
+
default: D[K]
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
: P[K]
|
|
41
|
+
}
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K]
|
|
44
|
+
} & {}
|
|
45
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
46
|
+
type __VLS_TypePropsToOption<T> = {
|
|
47
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
48
|
+
? {
|
|
49
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
50
|
+
}
|
|
51
|
+
: {
|
|
52
|
+
type: import('vue').PropType<T[K]>
|
|
53
|
+
required: true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -20,6 +20,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
20
20
|
fontWeight: number
|
|
21
21
|
textColor: string
|
|
22
22
|
keyFromUser: boolean
|
|
23
|
+
showAddressCommunity: boolean
|
|
23
24
|
}
|
|
24
25
|
>,
|
|
25
26
|
{},
|
|
@@ -53,6 +54,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
53
54
|
fontWeight: number
|
|
54
55
|
textColor: string
|
|
55
56
|
keyFromUser: boolean
|
|
57
|
+
showAddressCommunity: boolean
|
|
56
58
|
}
|
|
57
59
|
>
|
|
58
60
|
>
|
|
@@ -71,6 +73,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
71
73
|
backgroundType: 'img' | 'color'
|
|
72
74
|
contentColor: string
|
|
73
75
|
capsuleMode: 'light' | 'dark'
|
|
76
|
+
showAddressCommunity: boolean
|
|
74
77
|
titleMode: 'text' | 'img'
|
|
75
78
|
logoImg: string
|
|
76
79
|
titleLocation: 'left' | 'center'
|
|
@@ -15,6 +15,11 @@ export interface ICapsule {
|
|
|
15
15
|
dependKeyCompareValue?: string
|
|
16
16
|
reverse?: boolean
|
|
17
17
|
}
|
|
18
|
+
export interface AddressCommunityProps {
|
|
19
|
+
backgroundColor?: string
|
|
20
|
+
color?: string
|
|
21
|
+
width?: number
|
|
22
|
+
}
|
|
18
23
|
export interface NavTitleProps {
|
|
19
24
|
/** 模式 */
|
|
20
25
|
titleMode?: 'text' | 'img'
|
|
@@ -58,4 +63,6 @@ export interface NavProps extends NavTitleProps {
|
|
|
58
63
|
capsules?: ICapsule[]
|
|
59
64
|
searchLink?: LcbActionViewProps
|
|
60
65
|
rightIcons?: ICapsule[]
|
|
66
|
+
showAddressCommunity?: boolean
|
|
67
|
+
addressCommunityProps?: AddressCommunityProps
|
|
61
68
|
}
|
|
@@ -74,6 +74,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
74
74
|
customStyle?: import('vue').StyleValue
|
|
75
75
|
renderMode?: 'view' | 'button'
|
|
76
76
|
autoJumpSecond?: number
|
|
77
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
78
|
+
content?: string
|
|
79
|
+
title?: string
|
|
80
|
+
requestParam?: Record<string, any>
|
|
81
|
+
requestInfo?: {
|
|
82
|
+
requestUrl: string
|
|
83
|
+
requestParams: Record<string, any>
|
|
84
|
+
refreshSchemaPage?: boolean
|
|
85
|
+
}
|
|
86
|
+
submitRequestInfo?: {
|
|
87
|
+
requestUrl: string
|
|
88
|
+
requestParams: Record<string, any>
|
|
89
|
+
}
|
|
77
90
|
} & {
|
|
78
91
|
jumpType?:
|
|
79
92
|
| 1
|
|
@@ -98,9 +111,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
98
111
|
| 241
|
|
99
112
|
| 143
|
|
100
113
|
jumpAppid?: string
|
|
101
|
-
content?: string
|
|
102
|
-
title?: string
|
|
103
|
-
position?: string
|
|
104
114
|
} & import('../lcb-block/types').LcbBlockProps
|
|
105
115
|
>,
|
|
106
116
|
{
|
|
@@ -168,6 +178,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
168
178
|
customStyle?: import('vue').StyleValue
|
|
169
179
|
renderMode?: 'view' | 'button'
|
|
170
180
|
autoJumpSecond?: number
|
|
181
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
182
|
+
content?: string
|
|
183
|
+
title?: string
|
|
184
|
+
requestParam?: Record<string, any>
|
|
185
|
+
requestInfo?: {
|
|
186
|
+
requestUrl: string
|
|
187
|
+
requestParams: Record<string, any>
|
|
188
|
+
refreshSchemaPage?: boolean
|
|
189
|
+
}
|
|
190
|
+
submitRequestInfo?: {
|
|
191
|
+
requestUrl: string
|
|
192
|
+
requestParams: Record<string, any>
|
|
193
|
+
}
|
|
171
194
|
} & {
|
|
172
195
|
jumpType: 30
|
|
173
196
|
phoneNumber?: string
|
|
@@ -238,13 +261,21 @@ declare const _default: import('vue').DefineComponent<
|
|
|
238
261
|
customStyle?: import('vue').StyleValue
|
|
239
262
|
renderMode?: 'view' | 'button'
|
|
240
263
|
autoJumpSecond?: number
|
|
241
|
-
|
|
242
|
-
|
|
264
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
265
|
+
content?: string
|
|
266
|
+
title?: string
|
|
267
|
+
requestParam?: Record<string, any>
|
|
243
268
|
requestInfo?: {
|
|
244
269
|
requestUrl: string
|
|
245
270
|
requestParams: Record<string, any>
|
|
246
271
|
refreshSchemaPage?: boolean
|
|
247
272
|
}
|
|
273
|
+
submitRequestInfo?: {
|
|
274
|
+
requestUrl: string
|
|
275
|
+
requestParams: Record<string, any>
|
|
276
|
+
}
|
|
277
|
+
} & {
|
|
278
|
+
jumpType: 17
|
|
248
279
|
} & import('../lcb-block/types').LcbBlockProps
|
|
249
280
|
>,
|
|
250
281
|
{
|
|
@@ -312,8 +343,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
312
343
|
customStyle?: import('vue').StyleValue
|
|
313
344
|
renderMode?: 'view' | 'button'
|
|
314
345
|
autoJumpSecond?: number
|
|
315
|
-
|
|
316
|
-
|
|
346
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
347
|
+
content?: string
|
|
348
|
+
title?: string
|
|
349
|
+
requestParam?: Record<string, any>
|
|
317
350
|
requestInfo?: {
|
|
318
351
|
requestUrl: string
|
|
319
352
|
requestParams: Record<string, any>
|
|
@@ -323,6 +356,8 @@ declare const _default: import('vue').DefineComponent<
|
|
|
323
356
|
requestUrl: string
|
|
324
357
|
requestParams: Record<string, any>
|
|
325
358
|
}
|
|
359
|
+
} & {
|
|
360
|
+
jumpType: 144
|
|
326
361
|
} & import('../lcb-block/types').LcbBlockProps
|
|
327
362
|
>,
|
|
328
363
|
{
|
|
@@ -390,6 +425,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
390
425
|
customStyle?: import('vue').StyleValue
|
|
391
426
|
renderMode?: 'view' | 'button'
|
|
392
427
|
autoJumpSecond?: number
|
|
428
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
429
|
+
content?: string
|
|
430
|
+
title?: string
|
|
431
|
+
requestParam?: Record<string, any>
|
|
432
|
+
requestInfo?: {
|
|
433
|
+
requestUrl: string
|
|
434
|
+
requestParams: Record<string, any>
|
|
435
|
+
refreshSchemaPage?: boolean
|
|
436
|
+
}
|
|
437
|
+
submitRequestInfo?: {
|
|
438
|
+
requestUrl: string
|
|
439
|
+
requestParams: Record<string, any>
|
|
440
|
+
}
|
|
393
441
|
} & {
|
|
394
442
|
jumpType: 105
|
|
395
443
|
addressInfo?: {
|
|
@@ -465,9 +513,21 @@ declare const _default: import('vue').DefineComponent<
|
|
|
465
513
|
customStyle?: import('vue').StyleValue
|
|
466
514
|
renderMode?: 'view' | 'button'
|
|
467
515
|
autoJumpSecond?: number
|
|
516
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
517
|
+
content?: string
|
|
518
|
+
title?: string
|
|
519
|
+
requestParam?: Record<string, any>
|
|
520
|
+
requestInfo?: {
|
|
521
|
+
requestUrl: string
|
|
522
|
+
requestParams: Record<string, any>
|
|
523
|
+
refreshSchemaPage?: boolean
|
|
524
|
+
}
|
|
525
|
+
submitRequestInfo?: {
|
|
526
|
+
requestUrl: string
|
|
527
|
+
requestParams: Record<string, any>
|
|
528
|
+
}
|
|
468
529
|
} & {
|
|
469
530
|
jumpType: 106
|
|
470
|
-
requestParam?: Record<string, any>
|
|
471
531
|
} & import('../lcb-block/types').LcbBlockProps
|
|
472
532
|
>,
|
|
473
533
|
{
|
|
@@ -535,6 +595,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
535
595
|
customStyle?: import('vue').StyleValue
|
|
536
596
|
renderMode?: 'view' | 'button'
|
|
537
597
|
autoJumpSecond?: number
|
|
598
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
599
|
+
content?: string
|
|
600
|
+
title?: string
|
|
601
|
+
requestParam?: Record<string, any>
|
|
602
|
+
requestInfo?: {
|
|
603
|
+
requestUrl: string
|
|
604
|
+
requestParams: Record<string, any>
|
|
605
|
+
refreshSchemaPage?: boolean
|
|
606
|
+
}
|
|
607
|
+
submitRequestInfo?: {
|
|
608
|
+
requestUrl: string
|
|
609
|
+
requestParams: Record<string, any>
|
|
610
|
+
}
|
|
538
611
|
} & {
|
|
539
612
|
jumpType: 141
|
|
540
613
|
} & import('../lcb-block/types').LcbBlockProps
|
|
@@ -604,6 +677,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
604
677
|
customStyle?: import('vue').StyleValue
|
|
605
678
|
renderMode?: 'view' | 'button'
|
|
606
679
|
autoJumpSecond?: number
|
|
680
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
681
|
+
content?: string
|
|
682
|
+
title?: string
|
|
683
|
+
requestParam?: Record<string, any>
|
|
684
|
+
requestInfo?: {
|
|
685
|
+
requestUrl: string
|
|
686
|
+
requestParams: Record<string, any>
|
|
687
|
+
refreshSchemaPage?: boolean
|
|
688
|
+
}
|
|
689
|
+
submitRequestInfo?: {
|
|
690
|
+
requestUrl: string
|
|
691
|
+
requestParams: Record<string, any>
|
|
692
|
+
}
|
|
607
693
|
} & {
|
|
608
694
|
jumpType: 107
|
|
609
695
|
content: {
|
|
@@ -677,6 +763,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
677
763
|
customStyle?: import('vue').StyleValue
|
|
678
764
|
renderMode?: 'view' | 'button'
|
|
679
765
|
autoJumpSecond?: number
|
|
766
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
767
|
+
content?: string
|
|
768
|
+
title?: string
|
|
769
|
+
requestParam?: Record<string, any>
|
|
770
|
+
requestInfo?: {
|
|
771
|
+
requestUrl: string
|
|
772
|
+
requestParams: Record<string, any>
|
|
773
|
+
refreshSchemaPage?: boolean
|
|
774
|
+
}
|
|
775
|
+
submitRequestInfo?: {
|
|
776
|
+
requestUrl: string
|
|
777
|
+
requestParams: Record<string, any>
|
|
778
|
+
}
|
|
680
779
|
} & {
|
|
681
780
|
jumpType: 142
|
|
682
781
|
events: string
|
|
@@ -1,45 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
list?: Array<any>
|
|
3
|
-
/** 是否自动播放 */
|
|
4
|
-
autoplay?: boolean
|
|
5
|
-
/** 模式 1.标题 2.搜索 3.导航 4.沉浸式 */
|
|
6
|
-
styleGroup?: 1 | 2 | 3 | 4
|
|
7
|
-
/** 轮播滑动方向 */
|
|
8
|
-
direction?: 'horizontal' | 'vertical'
|
|
9
|
-
displayMultipleItems?: number
|
|
10
|
-
duration?: number
|
|
11
|
-
height?: number
|
|
12
|
-
loop?: boolean
|
|
13
|
-
indicator?: boolean
|
|
14
|
-
indicatorType?: 'dots' | 'dots-bar' | 'fraction'
|
|
15
|
-
indicatorPosition?:
|
|
16
|
-
| 'left'
|
|
17
|
-
| 'top-left'
|
|
18
|
-
| 'top'
|
|
19
|
-
| 'top-right'
|
|
20
|
-
| 'bottom-left'
|
|
21
|
-
| 'bottom'
|
|
22
|
-
| 'bottom-right'
|
|
23
|
-
| 'right'
|
|
24
|
-
borderRadius?: number
|
|
25
|
-
}
|
|
1
|
+
import { LcbSwiperProps } from './types'
|
|
26
2
|
declare const _default: import('vue').DefineComponent<
|
|
27
|
-
__VLS_WithDefaults<
|
|
28
|
-
__VLS_TypePropsToOption<NanProps>,
|
|
29
|
-
{
|
|
30
|
-
autoplay: boolean
|
|
31
|
-
styleGroup: number
|
|
32
|
-
direction: string
|
|
33
|
-
displayMultipleItems: number
|
|
34
|
-
duration: number
|
|
35
|
-
height: number
|
|
36
|
-
loop: boolean
|
|
37
|
-
indicator: boolean
|
|
38
|
-
indicatorType: string
|
|
39
|
-
indicatorPosition: string
|
|
40
|
-
borderRadius: number
|
|
41
|
-
}
|
|
42
|
-
>,
|
|
3
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbSwiperProps>, {}>,
|
|
43
4
|
{},
|
|
44
5
|
unknown,
|
|
45
6
|
{},
|
|
@@ -50,46 +11,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
50
11
|
string,
|
|
51
12
|
import('vue').PublicProps,
|
|
52
13
|
Readonly<
|
|
53
|
-
import('vue').ExtractPropTypes<
|
|
54
|
-
__VLS_WithDefaults<
|
|
55
|
-
__VLS_TypePropsToOption<NanProps>,
|
|
56
|
-
{
|
|
57
|
-
autoplay: boolean
|
|
58
|
-
styleGroup: number
|
|
59
|
-
direction: string
|
|
60
|
-
displayMultipleItems: number
|
|
61
|
-
duration: number
|
|
62
|
-
height: number
|
|
63
|
-
loop: boolean
|
|
64
|
-
indicator: boolean
|
|
65
|
-
indicatorType: string
|
|
66
|
-
indicatorPosition: string
|
|
67
|
-
borderRadius: number
|
|
68
|
-
}
|
|
69
|
-
>
|
|
70
|
-
>
|
|
14
|
+
import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbSwiperProps>, {}>>
|
|
71
15
|
>,
|
|
72
|
-
{
|
|
73
|
-
height: number
|
|
74
|
-
duration: number
|
|
75
|
-
autoplay: boolean
|
|
76
|
-
direction: 'horizontal' | 'vertical'
|
|
77
|
-
displayMultipleItems: number
|
|
78
|
-
loop: boolean
|
|
79
|
-
indicatorPosition:
|
|
80
|
-
| 'left'
|
|
81
|
-
| 'top-left'
|
|
82
|
-
| 'top'
|
|
83
|
-
| 'top-right'
|
|
84
|
-
| 'bottom-left'
|
|
85
|
-
| 'bottom'
|
|
86
|
-
| 'bottom-right'
|
|
87
|
-
| 'right'
|
|
88
|
-
indicator: boolean
|
|
89
|
-
styleGroup: 1 | 2 | 3 | 4
|
|
90
|
-
borderRadius: number
|
|
91
|
-
indicatorType: 'dots' | 'dots-bar' | 'fraction'
|
|
92
|
-
},
|
|
16
|
+
{},
|
|
93
17
|
{}
|
|
94
18
|
>
|
|
95
19
|
export default _default
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserLocation } from './useLocation.api'
|
|
2
2
|
export declare const currentLocation: import('vue').Ref<UserLocation | undefined>
|
|
3
|
+
export declare const currentAddressId: import('vue').Ref<string>
|
|
3
4
|
export declare const currentUserLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined>
|
|
4
5
|
declare const useLocation: (onLocation?: (location: UserLocation) => void) => {
|
|
5
6
|
getLocation: (force?: boolean, forceSetting?: boolean) => Promise<void>
|