@tplc/business 0.2.22 → 0.2.23

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,32 @@
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.23](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.17...v0.2.23) (2024-12-16)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * banner-block 兼容小程序 ([aa79283](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/aa79283f24e97ca68d8ad7fd18863b05dc5c9e26))
11
+
12
+
13
+ ### 🚀 Chore | 构建/工程依赖/工具
14
+
15
+ * **release:** 0.2.18 ([c4cc997](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c4cc997bad57984a73337fe84d09a2bfbddaa03b))
16
+ * **release:** 0.2.19 ([8244906](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/82449068dc7466bdb4c881254f150af4b4721d1e))
17
+ * **release:** 0.2.20 ([40b1730](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/40b1730473b764d84e3259235fd3ee44b1ed2b54))
18
+ * **release:** 0.2.21 ([736c482](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/736c482a6827a75606eec8774c9f6b31daa0f096))
19
+ * **release:** 0.2.22 ([230f4dd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/230f4dd925a132878a2601b2bd239e23b7a4b806))
20
+
21
+
22
+ ### ✨ Features | 新功能
23
+
24
+ * action-view pop ([3695f0b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3695f0be2d1bfb025822be3190c96bb9cb71ea05))
25
+ * search 调整查询模式 ([7fa381d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fa381daab8935c27005615ddc15252ec01f8399))
26
+ * 引擎支持list ([012e9cb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/012e9cbf03cff9a434fd6f9adbb4aa6b7f88d8f4))
27
+ * 新增action地图查看 ([b1b4a51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1b4a5159c431dd8b8a4518ce6699e34f393c206))
28
+ * 自定义组件支持变量 ([237bc85](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/237bc85163905f4a9d776e14027c53392cb0b3df))
29
+ * 调整action样式 ([04ed49d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/04ed49dd37e2db636f2a2dd02064bd869f0bb550))
30
+
5
31
  ### [0.2.22](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.21...v0.2.22) (2024-12-14)
6
32
 
7
33
 
@@ -34,10 +34,11 @@
34
34
  </template>
35
35
 
36
36
  <script setup lang="ts">
37
- import { computed, ref } from 'vue'
37
+ import { computed, inject, Ref, ref } from 'vue'
38
38
  import { LcbActionViewProps } from './types'
39
39
  import { uploadFile } from '../../hooks/useUpload'
40
40
  import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
41
+ import { PAGE_ANCHOR_PROVIDE_KEY } from '../../constants'
41
42
  defineOptions({
42
43
  name: 'LcbActionView',
43
44
  options: {
@@ -54,6 +55,8 @@ const emits = defineEmits<{
54
55
  }>()
55
56
 
56
57
  const show = ref(false)
58
+ // 锚点
59
+ const anchor = inject(PAGE_ANCHOR_PROVIDE_KEY) as Ref<string>
57
60
 
58
61
  const openType = computed(() => {
59
62
  return {
@@ -113,6 +116,11 @@ const onActionClick = () => {
113
116
  case 14:
114
117
  show.value = true
115
118
  break
119
+
120
+ /** 锚点跳转 */
121
+ case 16:
122
+ if (url) anchor.value = url
123
+ break
116
124
  /** 新窗口跳到页面 */
117
125
  case 21:
118
126
  if (url) {
@@ -1,7 +1,7 @@
1
1
  export interface LcbActionViewProps {
2
2
  /**
3
3
  * 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
4
- * 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
4
+ * 13: 退出登录 14: 小程序弹框 16: 小程序锚点 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
5
5
  * 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页 105 查看地图
6
6
  */
7
7
  jumpType?:
@@ -12,6 +12,7 @@ export interface LcbActionViewProps {
12
12
  | 12
13
13
  | 13
14
14
  | 14
15
+ | 16
15
16
  | 21
16
17
  | 22
17
18
  | 23
package/constants.ts CHANGED
@@ -3,3 +3,5 @@ export const FORM_KEY = 'form'
3
3
  export const PAGE_PROVIDE_KEY = 'page_provide'
4
4
  /** 页面类型 */
5
5
  export const PAGE_TYPE_PROVIDE_KEY = 'page_type_provide'
6
+ /** 页面锚点 */
7
+ export const PAGE_ANCHOR_PROVIDE_KEY = 'page_anchor_provide'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -1,7 +1,7 @@
1
1
  export interface LcbActionViewProps {
2
2
  /**
3
3
  * 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
4
- * 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
4
+ * 13: 退出登录 14: 小程序弹框 16: 小程序锚点 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
5
5
  * 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页 105 查看地图
6
6
  */
7
7
  jumpType?:
@@ -12,6 +12,7 @@ export interface LcbActionViewProps {
12
12
  | 12
13
13
  | 13
14
14
  | 14
15
+ | 16
15
16
  | 21
16
17
  | 22
17
18
  | 23
@@ -3,3 +3,5 @@ export declare const FORM_KEY = 'form'
3
3
  export declare const PAGE_PROVIDE_KEY = 'page_provide'
4
4
  /** 页面类型 */
5
5
  export declare const PAGE_TYPE_PROVIDE_KEY = 'page_type_provide'
6
+ /** 页面锚点 */
7
+ export declare const PAGE_ANCHOR_PROVIDE_KEY = 'page_anchor_provide'