@tplc/business 0.5.13 → 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,20 @@
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
+
12
+ ### [0.5.14](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.13...v0.5.14) (2025-10-11)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 更新版本 ([72a74ed](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/72a74ed6bdb18784f628b8f4ccf2124a2ad7807d))
18
+
5
19
  ### [0.5.13](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.10...v0.5.13) (2025-10-11)
6
20
 
7
21
 
@@ -1,24 +1,17 @@
1
1
  <template>
2
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"
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
- <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>
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 { computed, ref, watch } from 'vue'
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
- width: 240,
27
+ fontSize: 28,
35
28
  })
36
29
  const constantsStore = uni.$lcb.constantsStore?.()
37
- const value = defineModel<string>('')
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
- setCurrentAddress(address?.addressId)
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 handleChange = (e: any) => {
65
- title.value = e.selectedItem.label
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
- margin-left: -24rpx;
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>
@@ -20,7 +20,7 @@ export interface ICapsule {
20
20
  export interface AddressCommunityProps {
21
21
  backgroundColor?: string
22
22
  color?: string
23
- width?: number
23
+ fontSize?: number
24
24
  }
25
25
 
26
26
  export interface NavTitleProps {
@@ -243,6 +243,7 @@ const jumpInterceptorHandler: any = (item: ImageItem) => () => {
243
243
  min-height: 200px;
244
244
  position: relative;
245
245
  overflow: hidden;
246
+ z-index: 0;
246
247
  .carousel-block {
247
248
  position: absolute;
248
249
  overflow: hidden;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.13",
3
+ "version": "0.5.15",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -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<__VLS_PublicProps>,
4
+ __VLS_TypePropsToOption<AddressCommunityProps>,
9
5
  {
10
6
  backgroundColor: string
11
7
  color: string
12
- width: number
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
- any,
17
+ {},
22
18
  string,
23
19
  import('vue').PublicProps,
24
- any,
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
  >
@@ -18,7 +18,7 @@ export interface ICapsule {
18
18
  export interface AddressCommunityProps {
19
19
  backgroundColor?: string
20
20
  color?: string
21
- width?: number
21
+ fontSize?: number
22
22
  }
23
23
  export interface NavTitleProps {
24
24
  /** 模式 */