@tplc/business 0.7.16 → 0.7.18

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,37 @@
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.7.18](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.17...v0.7.18) (2025-12-16)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * 判断错误 ([fd0a01e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/fd0a01e80f6da304104bfc6c80b194be4c2d38be))
11
+
12
+ ### [0.7.17](///compare/v0.7.12...v0.7.17) (2025-12-16)
13
+
14
+
15
+ ### 🐛 Bug Fixes | Bug 修复
16
+
17
+ * 修改 class="whitespace-pre-wrap" e138dae
18
+
19
+
20
+ ### 🚀 Chore | 构建/工程依赖/工具
21
+
22
+ * **release:** 0.7.13 89dbdda
23
+ * **release:** 0.7.14 17ab0c3
24
+ * **release:** 0.7.15 678723d
25
+ * **release:** 0.7.16 83aa6dd
26
+
27
+
28
+ ### ✨ Features | 新功能
29
+
30
+ * buitton text f5be12c
31
+ * nav 支持回显 20b1310
32
+ * 修养该数据 4743ee1
33
+ * 更新尺寸 ecad769
34
+ * 查看value 是否存在 5af5ab0
35
+
5
36
  ### [0.7.16](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.15...v0.7.16) (2025-12-15)
6
37
 
7
38
  ### [0.7.15](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.14...v0.7.15) (2025-12-15)
@@ -27,13 +27,13 @@
27
27
  </template>
28
28
 
29
29
  <script setup lang="ts">
30
- import { computed, inject, Ref, watch } from 'vue'
30
+ import { computed, watch } from 'vue'
31
31
  import { LcbAreaProps } from './types'
32
32
  import { getFlexStyle, transformValueUnit } from '@tplc/business/utils/transform'
33
33
  import { get } from 'lodash-es'
34
- import { PAGE_PROVIDE_KEY } from '@tplc/business/constants'
35
34
  import { dynamicRequest } from '../../utils/request'
36
35
  import { getDynamicData } from '../../utils/utils'
36
+ import useDynamicData from '../../hooks/useDynamicData'
37
37
  defineOptions({
38
38
  name: 'LcbArea',
39
39
  options: {
@@ -47,8 +47,7 @@ const props = withDefaults(defineProps<LcbAreaProps>(), {
47
47
  display: 'flex',
48
48
  overflowX: 'initial',
49
49
  })
50
- const pageInfo = inject(PAGE_PROVIDE_KEY) as Ref<Record<string, any>>
51
- const userStore = uni.$lcb.userStore?.()
50
+ const { userStore, innerDynamicData, pageInfo } = useDynamicData()
52
51
  const innerStyle = computed(() => {
53
52
  if (props.display === 'grid') {
54
53
  return {
@@ -87,12 +86,12 @@ const getData = async () => {
87
86
  /** 处理跳转链接中的动态参数 */
88
87
  const actionProps = computed(() => {
89
88
  if (props.dynamicActionKey) {
90
- return get(pageInfo.value, props.dynamicActionKey)
89
+ return get(innerDynamicData.value, props.dynamicActionKey)
91
90
  }
92
91
  return {
93
92
  ...props.action,
94
93
  jumpUrl: getDynamicData(props.action?.jumpUrl, {
95
- store: pageInfo.value,
94
+ store: innerDynamicData.value,
96
95
  }),
97
96
  }
98
97
  })
@@ -108,7 +107,10 @@ watch(
108
107
  )
109
108
  const showArea = computed(() => {
110
109
  if (props.dependKey) {
111
- const value = get(props.keyFromUser ? userStore?.userInfo : pageInfo.value, props.dependKey)
110
+ const value = get(
111
+ props.keyFromUser ? userStore?.userInfo : innerDynamicData.value,
112
+ props.dependKey,
113
+ )
112
114
 
113
115
  if (props.dependKeyCompareValue) {
114
116
  const compareValue = `${props.dependKeyCompareValue}`
@@ -83,7 +83,7 @@ const getMerchantList = async () => {
83
83
  })
84
84
  merchantList.value = data as Merchant[]
85
85
  // 查看value 是否存在
86
- if (value.value && !merchantList.value.find((item) => item.merchantId === value.value)) {
86
+ if (value.value && merchantList.value.find((item) => item.merchantId === value.value)) {
87
87
  return
88
88
  }
89
89
  title.value = merchantList.value[0].merchantName
package/package.json CHANGED
@@ -1,26 +1,17 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.16",
3
+ "version": "0.7.18",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
7
7
  "type": "module",
8
- "scripts": {
9
- "pub": "pnpm dts && pnpm publish --no-git-checks",
10
- "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
11
- "release-major": "standard-version --release-as major ",
12
- "release-minor": "standard-version --release-as minor",
13
- "release-patch": "standard-version --release-as patch ",
14
- "generateComponent": "node ./scripts/createComponent.mjs",
15
- "generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
16
- },
17
8
  "publishConfig": {
18
9
  "access": "public",
19
10
  "registry": "https://registry.npmjs.org/"
20
11
  },
21
12
  "peerDependencies": {
22
- "@tplc/wot": "workspace:*",
23
- "vue": ">=3.2.47"
13
+ "vue": ">=3.2.47",
14
+ "@tplc/wot": "1.0.14"
24
15
  },
25
16
  "engines": {
26
17
  "node": ">=18",
@@ -33,5 +24,14 @@
33
24
  },
34
25
  "devDependencies": {
35
26
  "standard-version": "^9.5.0"
27
+ },
28
+ "scripts": {
29
+ "pub": "pnpm dts && pnpm publish --no-git-checks",
30
+ "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
31
+ "release-major": "standard-version --release-as major ",
32
+ "release-minor": "standard-version --release-as minor",
33
+ "release-patch": "standard-version --release-as patch ",
34
+ "generateComponent": "node ./scripts/createComponent.mjs",
35
+ "generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
36
36
  }
37
- }
37
+ }