@tplc/business 0.2.13 → 0.2.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,35 @@
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.2.15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.11...v0.2.15) (2024-12-05)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * image 热点点击 ([631dc9c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/631dc9c1bcc666a77dda9e0c21e62441fc42015b))
11
+
12
+
13
+ ### 🚀 Chore | 构建/工程依赖/工具
14
+
15
+ * **release:** 0.2.12 ([9a482e5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a482e56f0fb391945bc31058828c11b859f1530))
16
+ * **release:** 0.2.13 ([df2484c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/df2484c2cffeb73d9587835f9d86330b9fc5ecec))
17
+ * **release:** 0.2.14 ([ed75f75](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ed75f75bf2a780c17906c34d7fc8a129ab2ee2d1))
18
+
19
+
20
+ ### ✨ Features | 新功能
21
+
22
+ * map data ([244adfc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/244adfc21d6dcec8147889964e7d7d6b963bb1d4))
23
+ * nav search ([bcc5d98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bcc5d98257b1a10cb5c3621df266867c657c3a95))
24
+ * update icon ([51229e0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/51229e0353f5b47e9a132b2412fd56345f4325f3))
25
+ * 兼容小程序 ([e923533](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e923533553f01d3ef1adacb202346de35360af69))
26
+
27
+ ### [0.2.14](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.13...v0.2.14) (2024-12-04)
28
+
29
+
30
+ ### ✨ Features | 新功能
31
+
32
+ * update icon ([51229e0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/51229e0353f5b47e9a132b2412fd56345f4325f3))
33
+
5
34
  ### [0.2.13](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.12...v0.2.13) (2024-12-04)
6
35
 
7
36
 
@@ -9,12 +9,36 @@
9
9
  >
10
10
  <slot />
11
11
  </button>
12
+ <wd-popup
13
+ custom-class="!bg-transparent"
14
+ v-model="show"
15
+ :safe-area-inset-bottom="true"
16
+ closable
17
+ :position="position"
18
+ v-if="props.jumpType === 14"
19
+ >
20
+ <view
21
+ class="popup-view"
22
+ :style="{
23
+ width: position === 'bottom' ? '100vw' : '90vw',
24
+ borderRadius: position === 'bottom' ? '0 0 20rpx 20rpx' : '20rpx',
25
+ }"
26
+ >
27
+ <view class="title">
28
+ {{ title }}
29
+ </view>
30
+ <view class="p-3 max-h-50vh overflow-y-auto">
31
+ <mp-html :content="content" />
32
+ </view>
33
+ </view>
34
+ </wd-popup>
12
35
  </template>
13
36
 
14
37
  <script setup lang="ts">
15
- import { computed } from 'vue'
38
+ import { computed, ref } from 'vue'
16
39
  import { LcbActionViewProps } from './types'
17
40
  import { uploadFile } from '../../hooks/useUpload'
41
+ import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
18
42
  defineOptions({
19
43
  name: 'LcbActionView',
20
44
  options: {
@@ -30,6 +54,8 @@ const emits = defineEmits<{
30
54
  (e: 'click', value: void): void
31
55
  }>()
32
56
 
57
+ const show = ref(false)
58
+
33
59
  const openType = computed(() => {
34
60
  return {
35
61
  88: 'getPhoneNumber',
@@ -86,6 +112,7 @@ const onActionClick = () => {
86
112
  break
87
113
  /** 小程序弹框 */
88
114
  case 14:
115
+ show.value = true
89
116
  break
90
117
  /** 新窗口跳到页面 */
91
118
  case 21:
@@ -173,4 +200,20 @@ const onChooseAvatar = async (e) => {
173
200
  border: none;
174
201
  }
175
202
  }
203
+ .popup-view {
204
+ border-top-left-radius: 20rpx;
205
+ border-top-right-radius: 20rpx;
206
+ background: #fff;
207
+ width: 100vw;
208
+ .title {
209
+ position: relative;
210
+ font-size: 32rpx;
211
+ font-weight: 500;
212
+ line-height: 96rpx;
213
+ color: #333333;
214
+ text-align: center;
215
+ border-radius: 20rpx;
216
+ box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(243, 245, 249, 0.94);
217
+ }
218
+ }
176
219
  </style>
@@ -30,4 +30,7 @@ export interface LcbActionViewProps {
30
30
  jumpAppid?: string
31
31
  phoneNumber?: string
32
32
  customClass?: string
33
+ content?: string
34
+ title?: string
35
+ position?: string
33
36
  }
@@ -3,7 +3,7 @@
3
3
  :class="{
4
4
  center_mod: !left,
5
5
  'pl-7': back && !left,
6
- 'pr-80px': hasCapsule,
6
+ 'pr-90px': hasCapsule,
7
7
  }"
8
8
  >
9
9
  <view class="search-input">
@@ -15,7 +15,14 @@
15
15
 
16
16
  <script setup lang="ts">
17
17
  const hasCapsule = Boolean(uni.getMenuButtonBoundingClientRect)
18
-
18
+ defineOptions({
19
+ name: 'LcbNavSearch',
20
+ options: {
21
+ addGlobalClass: true,
22
+ virtualHost: true,
23
+ styleIsolation: 'shared',
24
+ },
25
+ })
19
26
  defineProps({
20
27
  searchText: {
21
28
  type: String,
@@ -12,7 +12,14 @@
12
12
 
13
13
  <script setup lang="ts">
14
14
  import { NavTitleProps } from '../types'
15
-
15
+ defineOptions({
16
+ name: 'LcbNavTitle',
17
+ options: {
18
+ addGlobalClass: true,
19
+ virtualHost: true,
20
+ styleIsolation: 'shared',
21
+ },
22
+ })
16
23
  defineProps<NavTitleProps>()
17
24
  </script>
18
25
  <style lang="scss" scoped>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -30,4 +30,7 @@ export interface LcbActionViewProps {
30
30
  jumpAppid?: string
31
31
  phoneNumber?: string
32
32
  customClass?: string
33
+ content?: string
34
+ title?: string
35
+ position?: string
33
36
  }
@@ -70,6 +70,7 @@ declare const _default: import('vue').DefineComponent<
70
70
  >
71
71
  >,
72
72
  {
73
+ borderRadius: number
73
74
  duration: number
74
75
  autoplay: boolean
75
76
  direction: 'horizontal' | 'vertical'
@@ -87,7 +88,6 @@ declare const _default: import('vue').DefineComponent<
87
88
  | 'right'
88
89
  indicator: boolean
89
90
  styleGroup: 1 | 2 | 3 | 4
90
- borderRadius: number
91
91
  indicatorType: 'dots' | 'dots-bar' | 'fraction'
92
92
  },
93
93
  {}