@tplc/business 0.4.148 → 0.4.149

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.4.149](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.148...v0.4.149) (2025-07-07)
6
+
5
7
  ### [0.4.148](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.145...v0.4.148) (2025-07-04)
6
8
 
7
9
 
@@ -80,7 +80,7 @@ const showPoster = ref(false)
80
80
  const emits = defineEmits<{
81
81
  (e: 'phone', value: { detail: { errMsg: string; encryptedData: string; iv: string } }): void
82
82
  (e: 'avatar', value: string): void
83
- (e: 'click', value: void): void
83
+ (e: 'click', value: LcbActionViewProps): void
84
84
  (e: 'refresh', value: void): void
85
85
  (e: 'nav', value: void): void
86
86
  (e: 'loginOut', value: void): void
@@ -290,12 +290,12 @@ const onActionClick = async () => {
290
290
  }
291
291
  break
292
292
  default:
293
- emits('click')
293
+ emits('click', props)
294
294
  break
295
295
  }
296
296
  }
297
297
  const getPhoneNumber = (e) => {
298
- if (e.detail.errMsg === 'getPhoneNumber:ok') {
298
+ if (e.detail.errMsg === 'getPhoneNurefreshmber:ok') {
299
299
  emits('phone', e)
300
300
  }
301
301
  }
@@ -320,14 +320,14 @@ const onTemplateMessage = async () => {
320
320
  uni.requestSubscribeMessage({
321
321
  tmplIds: templateMessageList.value.map((item) => item.templateId),
322
322
  success: () => {
323
- emits('click')
323
+ emits('click', props)
324
324
  },
325
325
  fail: () => {
326
- emits('click')
326
+ emits('click', props)
327
327
  },
328
328
  })
329
329
  } else {
330
- emits('click')
330
+ emits('click', props)
331
331
  }
332
332
  }
333
333
  </script>
@@ -3,7 +3,7 @@
3
3
  v-bind="item"
4
4
  v-for="item in buttonList"
5
5
  :key="item.buttonName"
6
- @click="link({ item })"
6
+ @click="link({ item }, $event)"
7
7
  @refresh="$emit('refresh', { item })"
8
8
  @nav="$emit('cancel')"
9
9
  >
@@ -23,6 +23,7 @@ import type { IPageBtn, LcbOperationActionsProps } from './types'
23
23
  import { useMessage } from '@tplc/wot'
24
24
  import OrderDetLogistic from './components/OrderDetLogistic/index.vue'
25
25
  import { reactive, ref } from 'vue'
26
+ import type { LcbActionViewProps } from '../lcb-action-view/types'
26
27
  const message = useMessage()
27
28
  const logistic = reactive({
28
29
  show: false,
@@ -55,7 +56,7 @@ const getBtnProps = (item: IPageBtn) => {
55
56
  } as ButtonProps
56
57
  }
57
58
  const formValue = ref('')
58
- async function link({ item }: { item: IPageBtn }) {
59
+ async function link({ item }: { item: IPageBtn }, e: LcbActionViewProps) {
59
60
  if (item.popUpFlag) {
60
61
  if (item.buttonKey.includes('form')) {
61
62
  formValue.value = item.popUpRequestInfo.defaultValue || ''
@@ -129,7 +130,7 @@ async function link({ item }: { item: IPageBtn }) {
129
130
  logistic.data = logisticInfo
130
131
  logistic.show = true
131
132
  } else {
132
- emits('cancel')
133
+ emits('cancel', e)
133
134
  }
134
135
  }
135
136
  </script>
@@ -14,6 +14,7 @@
14
14
  <script setup lang="ts">
15
15
  import { ref, computed } from 'vue'
16
16
  import IconView from './IconView.vue'
17
+ import type { LcbActionViewProps } from '../lcb-action-view/types'
17
18
 
18
19
  defineOptions({
19
20
  name: 'LcbOperationActionsIcon',
@@ -46,7 +47,7 @@ const icon = computed(() => {
46
47
  return props.iconUrl
47
48
  }
48
49
  })
49
- const handleClick = async () => {
50
+ const handleClick = async (e: LcbActionViewProps) => {
50
51
  if (isIconList && props.requestInfo) {
51
52
  current.value = !current.value
52
53
  await uni.$lcb.http.post(props.requestInfo.requestUrl, {
@@ -55,7 +56,7 @@ const handleClick = async () => {
55
56
  })
56
57
  emits('refresh')
57
58
  } else {
58
- emits('cancel')
59
+ emits('cancel', e)
59
60
  }
60
61
  }
61
62
  </script>
@@ -29,7 +29,7 @@
29
29
  v-bind="item"
30
30
  v-else
31
31
  @refresh="$emit('refresh')"
32
- @cancel="$emit('cancel')"
32
+ @cancel="$emit('cancel', $event)"
33
33
  ref="popoverRef"
34
34
  />
35
35
  </block>
@@ -37,7 +37,7 @@
37
37
  <BtnViews
38
38
  :button-list="buttonList"
39
39
  @refresh="emits('refresh', $event)"
40
- @cancel="emits('cancel')"
40
+ @cancel="emits('cancel', $event)"
41
41
  :size="size"
42
42
  />
43
43
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.148",
3
+ "version": "0.4.149",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],