@tplc/business 0.5.14 → 0.5.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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.15](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.14...v0.5.15) (2025-10-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 调整ceng'ji1 ([1abf0ac](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1abf0ac761c07cc32577a930e23e4905b60a6997))
|
|
11
|
+
|
|
5
12
|
### [0.5.14](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.13...v0.5.14) (2025-10-11)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view
|
|
3
|
-
class="drop-menu-container"
|
|
4
|
-
:style="`background-color: ${backgroundColor}; --address-content-color: ${color}
|
|
5
|
-
v-if="
|
|
3
|
+
class="drop-menu-container flex-center"
|
|
4
|
+
:style="`background-color: ${backgroundColor}; --address-content-color: ${color}; font-size: ${fontSize}rpx;`"
|
|
5
|
+
v-if="title"
|
|
6
|
+
@click="onChooseAddress"
|
|
6
7
|
>
|
|
7
|
-
<
|
|
8
|
-
|
|
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>
|
|
8
|
+
<view class="truncate max-w-[200rpx]">{{ title }}</view>
|
|
9
|
+
<wd-icon name="arrow-down" />
|
|
17
10
|
</view>
|
|
18
11
|
</template>
|
|
19
12
|
|
|
20
13
|
<script setup lang="ts">
|
|
21
|
-
import {
|
|
14
|
+
import { ref, watch } from 'vue'
|
|
22
15
|
import { AddressCommunityProps } from '../types'
|
|
23
16
|
defineOptions({
|
|
24
17
|
name: 'AddressCommunity',
|
|
@@ -31,29 +24,15 @@ defineOptions({
|
|
|
31
24
|
withDefaults(defineProps<AddressCommunityProps>(), {
|
|
32
25
|
backgroundColor: 'transparent',
|
|
33
26
|
color: '#000',
|
|
34
|
-
|
|
27
|
+
fontSize: 28,
|
|
35
28
|
})
|
|
36
29
|
const constantsStore = uni.$lcb.constantsStore?.()
|
|
37
|
-
const
|
|
38
|
-
const title = ref<string>('地址社区')
|
|
39
|
-
const options = computed(() => {
|
|
40
|
-
return constantsStore?.mainConfig?.addressList
|
|
41
|
-
})
|
|
42
|
-
const setCurrentAddress = (addressId?: string) => {
|
|
43
|
-
if (addressId) {
|
|
44
|
-
title.value = options.value.find((item) => item.addressId === addressId)?.addressName
|
|
45
|
-
value.value = addressId
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
setCurrentAddress(
|
|
49
|
-
constantsStore?.mainConfig?.address?.addressId ||
|
|
50
|
-
constantsStore?.mainConfig?.addressList?.[0]?.addressId ||
|
|
51
|
-
'',
|
|
52
|
-
)
|
|
30
|
+
const title = ref<string>('')
|
|
53
31
|
watch(
|
|
54
32
|
() => constantsStore?.mainConfig?.address,
|
|
55
33
|
(address) => {
|
|
56
|
-
|
|
34
|
+
title.value = address?.addressName
|
|
35
|
+
console.log(title.value, address)
|
|
57
36
|
},
|
|
58
37
|
{
|
|
59
38
|
immediate: true,
|
|
@@ -61,33 +40,14 @@ watch(
|
|
|
61
40
|
},
|
|
62
41
|
)
|
|
63
42
|
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
uni.$lcb.constantsStore?.()?.setAddressId(e.selectedItem.addressId)
|
|
43
|
+
const onChooseAddress = () => {
|
|
44
|
+
uni.$lcb.navigateTo('/pages-sub/index/store')
|
|
67
45
|
}
|
|
68
46
|
</script>
|
|
69
47
|
|
|
70
48
|
<style lang="scss" scoped>
|
|
71
49
|
.drop-menu-container {
|
|
72
50
|
margin-right: 24rpx;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
:deep(.wd-drop-menu__list) {
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:deep(.wd-drop-menu) {
|
|
80
|
-
font-size: 28rpx !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:deep(.wd-drop-menu__item) {
|
|
84
|
-
color: var(--address-content-color);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:deep(.wd-drop-item) {
|
|
88
|
-
.wd-popup {
|
|
89
|
-
width: var(--address-width);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
51
|
+
gap: 16rpx;
|
|
92
52
|
}
|
|
93
53
|
</style>
|
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { AddressCommunityProps } from '../types'
|
|
2
|
-
declare let __VLS_typeProps: AddressCommunityProps
|
|
3
|
-
type __VLS_PublicProps = {
|
|
4
|
-
''?: string
|
|
5
|
-
} & typeof __VLS_typeProps
|
|
6
2
|
declare const _default: import('vue').DefineComponent<
|
|
7
3
|
__VLS_WithDefaults<
|
|
8
|
-
__VLS_TypePropsToOption<
|
|
4
|
+
__VLS_TypePropsToOption<AddressCommunityProps>,
|
|
9
5
|
{
|
|
10
6
|
backgroundColor: string
|
|
11
7
|
color: string
|
|
12
|
-
|
|
8
|
+
fontSize: number
|
|
13
9
|
}
|
|
14
10
|
>,
|
|
15
11
|
{},
|
|
@@ -18,14 +14,25 @@ declare const _default: import('vue').DefineComponent<
|
|
|
18
14
|
{},
|
|
19
15
|
import('vue').ComponentOptionsMixin,
|
|
20
16
|
import('vue').ComponentOptionsMixin,
|
|
21
|
-
|
|
17
|
+
{},
|
|
22
18
|
string,
|
|
23
19
|
import('vue').PublicProps,
|
|
24
|
-
|
|
20
|
+
Readonly<
|
|
21
|
+
import('vue').ExtractPropTypes<
|
|
22
|
+
__VLS_WithDefaults<
|
|
23
|
+
__VLS_TypePropsToOption<AddressCommunityProps>,
|
|
24
|
+
{
|
|
25
|
+
backgroundColor: string
|
|
26
|
+
color: string
|
|
27
|
+
fontSize: number
|
|
28
|
+
}
|
|
29
|
+
>
|
|
30
|
+
>
|
|
31
|
+
>,
|
|
25
32
|
{
|
|
26
|
-
width: number
|
|
27
33
|
backgroundColor: string
|
|
28
34
|
color: string
|
|
35
|
+
fontSize: number
|
|
29
36
|
},
|
|
30
37
|
{}
|
|
31
38
|
>
|