@tplc/business 0.5.39 → 0.5.40

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,34 @@
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.5.40](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.33...v0.5.40) (2025-11-05)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * pay 兼容 ([e800b85](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e800b85f79fdaa6cca409b80890059db7db7aa85))
11
+ * pay 取值错误 ([8c5bd09](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8c5bd09161e28684a2d480ee0135defb81b69f48))
12
+
13
+
14
+ ### 🚀 Chore | 构建/工程依赖/工具
15
+
16
+ * **release:** 0.5.34 ([9fe404c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9fe404c3fe714bb6005c9b0ddc192b50a8d11c21))
17
+ * **release:** 0.5.35 ([c42aca2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c42aca2931eaa090ea97920d2061472b5e2184f5))
18
+ * **release:** 0.5.36 ([9e49a5d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9e49a5de090d0f66db75ea2ef6d415273244b95f))
19
+ * **release:** 0.5.37 ([94b5280](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/94b52807b8781593f2352d653138574aae83be4c))
20
+ * **release:** 0.5.38 ([e7b6d9c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e7b6d9c4842e5825f7e39ac88a4ad0d0d597544a))
21
+ * **release:** 0.5.39 ([e3feb0b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e3feb0b97e55699f2023c48214b2ab7fd39fc7b7))
22
+
23
+
24
+ ### ✨ Features | 新功能
25
+
26
+ * filter page ([a688367](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a6883672f4b973ebd7523f3daa3c0145b8611cab))
27
+ * form 调整 ([6bcea25](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6bcea25152244b93f7be003fb18359f82024e316))
28
+ * lcb-filter-grid 新增颜色 ([64d77bb](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/64d77bb7322550f794d0e599d94cd2bf11beb3c5))
29
+ * 修改用户 ([d77e420](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d77e42066ab0241c7d79432ff4cbb05d4403784a))
30
+ * 调整form ([91b9c49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/91b9c49d135935ac58b9ac046ce1d8c6f8adb7b2))
31
+ * 调整字段 ([c65c53e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c65c53ec4e65c8bee05cd86c1371dc2d717ef761))
32
+
5
33
  ### [0.5.39](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.38...v0.5.39) (2025-11-03)
6
34
 
7
35
  ### [0.5.38](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.37...v0.5.38) (2025-11-03)
@@ -23,7 +23,7 @@
23
23
  <script setup lang="ts">
24
24
  import { transformValueUnit } from '../../../../utils/transform'
25
25
  import { TextRenderViewItem } from '../../../../action'
26
- import { provide, Ref, ref, watch } from 'vue'
26
+ import { onUnmounted, provide, Ref, ref, watch } from 'vue'
27
27
  import { PAGE_PROVIDE_KEY } from '../../../../constants'
28
28
  defineOptions({
29
29
  name: 'ActionCustomPopup',
@@ -40,11 +40,13 @@ const props = defineProps<{
40
40
  const popupInfo = ref({})
41
41
  provide(PAGE_PROVIDE_KEY, popupInfo)
42
42
  const show = defineModel({ default: false })
43
+ const timer = ref<NodeJS.Timeout | null>(null)
43
44
  const pageInfo = ref<{
44
45
  modules: TextRenderViewItem['items']
45
46
  page: {
46
47
  popupWidth: number
47
48
  requestApi: string
49
+ refreshTime: number
48
50
  }
49
51
  }>()
50
52
 
@@ -56,18 +58,38 @@ watch(
56
58
  pageType: props.jumpUrl,
57
59
  })) as any
58
60
  pageInfo.value = data
59
- if (pageInfo.value?.page?.requestApi) {
60
- uni.$lcb.http.post<Record<string, any>>(pageInfo.value?.page?.requestApi).then((res) => {
61
- popupInfo.value = {
62
- ...pageInfo.value,
63
- ...res.data,
64
- }
65
- })
66
- }
61
+ startTimer()
67
62
  }
68
63
  },
69
64
  {
70
65
  immediate: true,
71
66
  },
72
67
  )
68
+
69
+ const startTimer = () => {
70
+ if (pageInfo.value?.page?.refreshTime) {
71
+ timer.value = setInterval(() => {
72
+ getRequestData()
73
+ }, pageInfo.value?.page?.refreshTime * 1000)
74
+ } else {
75
+ getRequestData()
76
+ }
77
+ }
78
+
79
+ const getRequestData = async () => {
80
+ if (pageInfo.value?.page?.requestApi) {
81
+ const { data } = (await uni.$lcb.http.post('/pageDecoration/page/detail', {
82
+ pageType: props.jumpUrl,
83
+ })) as any
84
+ popupInfo.value = {
85
+ ...pageInfo.value,
86
+ ...data,
87
+ }
88
+ }
89
+ }
90
+ onUnmounted(() => {
91
+ if (timer.value) {
92
+ clearInterval(timer.value)
93
+ }
94
+ })
73
95
  </script>
@@ -38,6 +38,14 @@
38
38
  :height="imageHeight ? transformValueUnit(imageHeight) : 'auto'"
39
39
  />
40
40
  </template>
41
+ <template v-else-if="mode === 'qrcode'">
42
+ <wd-qr-code
43
+ :size="qrCodeSize"
44
+ canvasId="qrCode"
45
+ :value="innerValue"
46
+ v-if="innerValue"
47
+ />
48
+ </template>
41
49
  <text v-else style="line-height: 1.54">
42
50
  {{ innerValue }}
43
51
  </text>
@@ -69,6 +77,7 @@ const props = withDefaults(defineProps<LcbButtonProps>(), {
69
77
  enablePreview: false,
70
78
  iconGap: 4,
71
79
  iconSize: 24,
80
+ qrCodeSize: 100,
72
81
  })
73
82
  const pageInfo = inject(PAGE_PROVIDE_KEY) as Ref<Record<string, any>>
74
83
  const wrapperItemData = inject(WRAPPER_ITEM_KEY, undefined) as unknown as Ref<Record<string, any>>
@@ -4,12 +4,13 @@ import { LcbBlockProps } from '../lcb-block/types'
4
4
  export interface LcbButtonProps extends LcbBlockProps {
5
5
  text: string
6
6
  action?: LcbActionViewProps
7
- mode: 'image' | 'text' | 'noStyle'
7
+ mode: 'image' | 'text' | 'noStyle' | 'qrcode'
8
8
  url?: string
9
9
  imageWidth?: number
10
10
  imageHeight?: number
11
11
  dynamicKey?: string
12
12
  keyFromUser?: boolean
13
+ qrCodeSize?: number
13
14
  customClass?: string
14
15
  fillWidth?: boolean
15
16
  fillHeight?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.39",
3
+ "version": "0.5.40",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -9,6 +9,7 @@ declare const _default: import('vue').DefineComponent<
9
9
  enablePreview: boolean
10
10
  iconGap: number
11
11
  iconSize: number
12
+ qrCodeSize: number
12
13
  }
13
14
  >,
14
15
  {},
@@ -31,6 +32,7 @@ declare const _default: import('vue').DefineComponent<
31
32
  enablePreview: boolean
32
33
  iconGap: number
33
34
  iconSize: number
35
+ qrCodeSize: number
34
36
  }
35
37
  >
36
38
  >
@@ -40,6 +42,7 @@ declare const _default: import('vue').DefineComponent<
40
42
  color: string
41
43
  enablePreview: boolean
42
44
  iconSize: number
45
+ qrCodeSize: number
43
46
  iconGap: number
44
47
  hideWhenDynamicKeyNotExist: boolean
45
48
  },
@@ -3,12 +3,13 @@ import { LcbBlockProps } from '../lcb-block/types'
3
3
  export interface LcbButtonProps extends LcbBlockProps {
4
4
  text: string
5
5
  action?: LcbActionViewProps
6
- mode: 'image' | 'text' | 'noStyle'
6
+ mode: 'image' | 'text' | 'noStyle' | 'qrcode'
7
7
  url?: string
8
8
  imageWidth?: number
9
9
  imageHeight?: number
10
10
  dynamicKey?: string
11
11
  keyFromUser?: boolean
12
+ qrCodeSize?: number
12
13
  customClass?: string
13
14
  fillWidth?: boolean
14
15
  fillHeight?: boolean
@@ -13,8 +13,8 @@ declare const _default: import('vue').DefineComponent<
13
13
  import('vue').ComponentOptionsMixin,
14
14
  import('vue').ComponentOptionsMixin,
15
15
  {
16
- cancel: (...args: any[]) => void
17
16
  refresh: (...args: any[]) => void
17
+ cancel: (...args: any[]) => void
18
18
  },
19
19
  string,
20
20
  import('vue').PublicProps,
@@ -19,8 +19,8 @@ declare const _default: import('vue').DefineComponent<
19
19
  import('vue').ComponentOptionsMixin,
20
20
  import('vue').ComponentOptionsMixin,
21
21
  {
22
- cancel: (...args: any[]) => void
23
22
  refresh: (...args: any[]) => void
23
+ cancel: (...args: any[]) => void
24
24
  },
25
25
  string,
26
26
  import('vue').PublicProps,
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<
8
8
  import('vue').ComponentOptionsMixin,
9
9
  import('vue').ComponentOptionsMixin,
10
10
  {
11
- cancel: (...args: any[]) => void
12
11
  refresh: (...args: any[]) => void
12
+ cancel: (...args: any[]) => void
13
13
  },
14
14
  string,
15
15
  import('vue').PublicProps,