@tplc/business 0.2.43 → 0.2.44

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,8 @@
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.44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.49...v0.2.44) (2024-12-30)
6
+
5
7
  ### [0.2.43](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.39...v0.2.43) (2024-12-30)
6
8
 
7
9
 
@@ -34,11 +34,10 @@
34
34
  </template>
35
35
 
36
36
  <script setup lang="ts">
37
- import { computed, inject, Ref, ref } from 'vue'
37
+ import { computed, 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'
42
41
  import { getFinalUrl } from '../../utils/utils'
43
42
  defineOptions({
44
43
  name: 'LcbActionView',
@@ -57,9 +56,6 @@ const emits = defineEmits<{
57
56
  }>()
58
57
 
59
58
  const show = ref(false)
60
- // 锚点
61
- const anchor = inject(PAGE_ANCHOR_PROVIDE_KEY) as Ref<string>
62
-
63
59
  const openType = computed(() => {
64
60
  return {
65
61
  88: 'getPhoneNumber',
@@ -78,7 +74,6 @@ const onActionClick = async () => {
78
74
  * 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号
79
75
  */
80
76
  const url = getFinalUrl(jumpUrl || '', props.urlParams)
81
- console.log('url', url)
82
77
  switch (jumpType) {
83
78
  /** 网页 */
84
79
  case 1:
@@ -122,7 +117,11 @@ const onActionClick = async () => {
122
117
  break
123
118
  /** 锚点跳转 */
124
119
  case 16:
125
- if (url) anchor.value = url
120
+ if (url) {
121
+ uni.pageScrollTo({
122
+ selector: `#${url}`,
123
+ })
124
+ }
126
125
  break
127
126
  case 17:
128
127
  if (props.requestInfo)
@@ -30,7 +30,7 @@ defineOptions({
30
30
  },
31
31
  })
32
32
  const holidayInfo = ref<Record<string, LcbHistoryResult>>({})
33
- const emits = defineEmits(['open', 'cancel'])
33
+ const emits = defineEmits(['open', 'cancel', 'confirm'])
34
34
  const props = defineProps({
35
35
  customClass: {
36
36
  type: String,
@@ -113,6 +113,7 @@ const formatter = (day: any) => {
113
113
  }
114
114
  const handleConfirm = ({ value }: { value: number[] }) => {
115
115
  model.value = value
116
+ emits('confirm', value)
116
117
  }
117
118
  </script>
118
119
  <style lang="scss" scoped></style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
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.47"
14
+ "@tplc/wot": "0.1.49"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -60,6 +60,7 @@ declare const __VLS_component: import('vue').DefineComponent<
60
60
  import('vue').ComponentOptionsMixin,
61
61
  {
62
62
  'update:modelValue': (modelValue: number[]) => void
63
+ confirm: (...args: any[]) => void
63
64
  open: (...args: any[]) => void
64
65
  cancel: (...args: any[]) => void
65
66
  },
@@ -118,6 +119,7 @@ declare const __VLS_component: import('vue').DefineComponent<
118
119
  }>
119
120
  > & {
120
121
  'onUpdate:modelValue'?: ((modelValue: number[]) => any) | undefined
122
+ onConfirm?: ((...args: any[]) => any) | undefined
121
123
  onCancel?: ((...args: any[]) => any) | undefined
122
124
  onOpen?: ((...args: any[]) => any) | undefined
123
125
  },