@tplc/business 0.4.147 → 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,28 @@
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
+
7
+ ### [0.4.148](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.145...v0.4.148) (2025-07-04)
8
+
9
+
10
+ ### 🚀 Chore | 构建/工程依赖/工具
11
+
12
+ * **release:** 0.1.88 ([f47874e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f47874e1458b5f12b71e00d02516adbec7414a4b))
13
+ * **release:** 0.1.89 ([824a5ff](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/824a5ff81ea247ecbf6fd1d977497cae13065d26))
14
+ * **release:** 0.1.90 ([c342dc2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c342dc21f623a05f0e07d1ffb4e13a3a48076106))
15
+ * **release:** 0.1.91 ([9c19e59](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9c19e59308adec5e871266f110b0bf4f1611bac9))
16
+ * **release:** 0.4.146 ([154b96c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/154b96c52995bffd4713977d2bf84630489c2163))
17
+ * **release:** 0.4.147 ([e7ad4a4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e7ad4a4740fc1b9c46fd0a8d6653f032bbf4c06b))
18
+
19
+
20
+ ### ✨ Features | 新功能
21
+
22
+ * form 支持自定义 ([1a25d08](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1a25d087870cec8b1f5765a5bba60b1d445c5ea3))
23
+ * 修改tag ([e982d6f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e982d6f34507a65b2821362b4c25d7a06121ca55))
24
+ * 修改字段 ([9703fee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9703feeb88641654891db3dfde0a16e76e5b64fe))
25
+ * 兼容form ([9f083af](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9f083af653c733047f153865aa69d9a33518e3d7))
26
+
5
27
  ### [0.4.147](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.91...v0.4.147) (2025-06-28)
6
28
 
7
29
  ### [0.4.146](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.88...v0.4.146) (2025-06-27)
@@ -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>
@@ -340,7 +340,7 @@ const coverImgWidth = computed(() => {
340
340
 
341
341
  <!-- 价格后缀 -->
342
342
  <slot :value="value" v-else-if="prop === 'priceSuffix'" name="priceSuffix">
343
- <view :class="className" :style="style" class="text-22rpx leading-normal">
343
+ <view :class="className" :style="style" class="text-22rpx">
344
344
  {{ value }}
345
345
  </view>
346
346
  </slot>
@@ -254,9 +254,12 @@ const itemStyle = computed(() => {
254
254
  <ItemValue :prop="propName" v-else />
255
255
  </template>
256
256
  </view>
257
- <view class="flex gap-[4rpx] items-end" v-if="priceVisible && isNumber(price)">
257
+ <view
258
+ class="flex gap-[4rpx] items-end justify-end"
259
+ v-if="priceVisible && isNumber(price)"
260
+ >
258
261
  <ItemValue prop="priceUnit" />
259
- <view class="flex items-center justify-center gap-0.5">
262
+ <view class="flex items-end justify-center gap-0.5">
260
263
  <ItemValue prop="price" />
261
264
  <ItemValue prop="priceSuffix" />
262
265
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.147",
3
+ "version": "0.4.149",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],