@tplc/business 0.0.66 → 0.0.68

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,10 @@
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.0.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.30...v0.0.68) (2024-11-21)
6
+
7
+ ### [0.0.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.29...v0.0.67) (2024-11-21)
8
+
5
9
  ### [0.0.66](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.28...v0.0.66) (2024-11-21)
6
10
 
7
11
 
package/action.d.ts CHANGED
@@ -37,6 +37,7 @@ export interface LcbGlobal {
37
37
  updateUser: (data: Record<string, any>) => void
38
38
  getUser: () => void
39
39
  }
40
+ getIsTabbar: () => boolean
40
41
  }
41
42
 
42
43
  global {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="h-0 flex-1 pb-3" v-if="letterList.length">
2
+ <view class="h-full pb-3" v-if="letterList.length">
3
3
  <wd-index-bar ref="indexBarRef">
4
4
  <view v-for="item in indexBars" :key="item.categoryName">
5
5
  <wd-index-anchor
@@ -140,6 +140,7 @@ const indexBars = computed<HotAddress[]>(() => {
140
140
  </script>
141
141
  <style lang="scss" scoped>
142
142
  @import '@tplc/wot/components/common/abstracts/variable';
143
+
143
144
  .address-tag {
144
145
  background: #f7f7f7;
145
146
  height: 68rpx;
@@ -152,10 +153,12 @@ const indexBars = computed<HotAddress[]>(() => {
152
153
  text-align: center;
153
154
  overflow: hidden;
154
155
  }
156
+
155
157
  .current-address {
156
158
  color: $-color-theme;
157
159
  background: transparent;
158
160
  position: relative;
161
+
159
162
  &::after {
160
163
  content: '';
161
164
  position: absolute;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="p-3 box-border flex-1 overflow-y-auto h-0">
2
+ <view class="p-3 box-border h-full overflow-y-auto">
3
3
  <view v-for="item in list" :key="item.hotAddressId" @click="onItemClick(item)">
4
4
  <view class="flex">
5
5
  <view class="tag">{{ item.categoryName }}</view>
@@ -74,6 +74,7 @@ const onClear = () => {
74
74
  </script>
75
75
  <style lang="scss" scoped>
76
76
  @import '@tplc/wot/components/common/abstracts/variable';
77
+
77
78
  .tag {
78
79
  width: 80rpx;
79
80
  height: 34rpx;
@@ -84,6 +85,7 @@ const onClear = () => {
84
85
  border-radius: 4rpx;
85
86
  background-color: $-color-theme;
86
87
  }
88
+
87
89
  .content {
88
90
  flex: 1;
89
91
  display: flex;
@@ -94,6 +96,7 @@ const onClear = () => {
94
96
  padding-bottom: 20rpx;
95
97
  font-size: 24rpx;
96
98
  color: #999;
99
+
97
100
  > rich-text {
98
101
  &:first-child {
99
102
  font-size: 30rpx;
@@ -103,10 +106,12 @@ const onClear = () => {
103
106
  margin-bottom: 12rpx;
104
107
  }
105
108
  }
109
+
106
110
  .text-light {
107
111
  color: $-color-theme;
108
112
  }
109
113
  }
114
+
110
115
  .history-tag {
111
116
  background: #f7f7f7;
112
117
  height: 50rpx;
@@ -7,7 +7,7 @@
7
7
  position="bottom"
8
8
  @after-enter="isOver = true"
9
9
  custom-class="lcb-city__p"
10
- custom-style="height: 90vh;border-top-left-radius: 24rpx;border-top-right-radius: 24rpx;"
10
+ custom-style="height: 80vh;border-top-left-radius: 24rpx;border-top-right-radius: 24rpx;"
11
11
  :safe-area-inset-bottom="true"
12
12
  >
13
13
  <view class="flex flex-col h-full">
@@ -29,14 +29,28 @@
29
29
  @cancel="onCancel"
30
30
  />
31
31
  </view>
32
- <lcb-city-list
33
- v-show="showList"
34
- :list="lcbAddress"
35
- :keyword="searchValue"
36
- @click="onAddressClick"
37
- />
32
+ <view
33
+ :class="{
34
+ '!hidden': !showList,
35
+ }"
36
+ class="flex-1 h-0"
37
+ >
38
+ <lcb-city-list :list="lcbAddress" :keyword="searchValue" @click="onAddressClick" />
39
+ </view>
40
+ <view
41
+ :class="{
42
+ '!hidden': !(!showList && isOver),
43
+ }"
44
+ class="flex-1 h-0"
45
+ >
46
+ <lcb-city-letter v-bind="$props" v-model="modelValue" />
47
+ </view>
38
48
 
39
- <lcb-city-letter v-show="!showList && isOver" v-bind="$props" v-model="modelValue" />
49
+ <view
50
+ :style="{
51
+ height: isTabBar ? 'calc(var(--window-bottom) + 10px)' : '10px',
52
+ }"
53
+ />
40
54
  </view>
41
55
  </wd-popup>
42
56
  </template>
@@ -57,6 +71,7 @@ defineOptions({
57
71
  styleIsolation: 'shared',
58
72
  },
59
73
  })
74
+ const isTabBar = uni.$lcb.getIsTabbar()
60
75
  const props = withDefaults(defineProps<LcbCitySelectProps>(), {
61
76
  placeholder: '搜索城市/区域/景点',
62
77
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.28"
14
+ "@tplc/wot": "0.1.30"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",