@tplc/business 0.7.11 → 0.7.12

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,13 @@
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.12](///compare/v0.7.11...v0.7.12) (2025-12-15)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 1 580dde4
11
+
5
12
  ### [0.7.11](///compare/v0.7.9...v0.7.11) (2025-12-15)
6
13
 
7
14
 
@@ -44,9 +44,9 @@ const props = withDefaults(defineProps<AddressCommunityProps>(), {
44
44
  switchType: 'address',
45
45
  })
46
46
  type Merchant = { merchantName: string; pageDecorationId: string; merchantId: string }
47
- const value = defineModel<string>('')
47
+ const value = defineModel<string>(props.id || '')
48
48
  const constantsStore = uni.$lcb.constantsStore?.()
49
- const title = ref<string>('')
49
+ const title = ref<string>(props.title || '')
50
50
  const merchantList = ref<Merchant[]>([])
51
51
  const options = computed(() => {
52
52
  return props.switchType === 'merchant'
@@ -104,7 +104,11 @@ const handleChange = (e: any) => {
104
104
  uni.$emit('refreshSchemaPage', {
105
105
  pageDecorationId: e.selectedItem.pageDecorationId,
106
106
  pageId: getCurrentPage().pageId,
107
- mode: props.mode,
107
+ merchant: {
108
+ title: e.selectedItem.merchantName,
109
+ id: e.selectedItem.merchantId,
110
+ mode: props.mode,
111
+ },
108
112
  })
109
113
  } else {
110
114
  uni.$lcb.constantsStore?.()?.setAddressId(e.selectedItem.addressId, props.switchType)
@@ -32,7 +32,7 @@
32
32
  switchType: pageInfo.frontConfig?.chooseFlag
33
33
  ? 'merchant'
34
34
  : addressCommunityProps?.switchType,
35
- mode: pageInfo.frontConfig?.mode || addressCommunityProps?.mode,
35
+ ...pageInfo.frontConfig?.merchant,
36
36
  }"
37
37
  />
38
38
  <view
@@ -25,6 +25,8 @@ export interface AddressCommunityProps {
25
25
  mode: 'normal' | 'menu'
26
26
  popupWidth?: number
27
27
  switchType?: 'merchant' | 'address'
28
+ title?: string
29
+ id?: string
28
30
  }
29
31
 
30
32
  export interface NavTitleProps {
package/package.json CHANGED
@@ -1,26 +1,17 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
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
+ }
@@ -1,7 +1,7 @@
1
1
  import { AddressCommunityProps } from '../types'
2
2
  declare let __VLS_typeProps: AddressCommunityProps
3
3
  type __VLS_PublicProps = {
4
- ''?: string
4
+ modelValue?: string
5
5
  } & typeof __VLS_typeProps
6
6
  declare const _default: import('vue').DefineComponent<
7
7
  __VLS_WithDefaults<
@@ -22,10 +22,29 @@ declare const _default: import('vue').DefineComponent<
22
22
  {},
23
23
  import('vue').ComponentOptionsMixin,
24
24
  import('vue').ComponentOptionsMixin,
25
- any,
25
+ {
26
+ 'update:modelValue': (modelValue: string) => void
27
+ },
26
28
  string,
27
29
  import('vue').PublicProps,
28
- any,
30
+ Readonly<
31
+ import('vue').ExtractPropTypes<
32
+ __VLS_WithDefaults<
33
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
34
+ {
35
+ backgroundColor: string
36
+ color: string
37
+ fontSize: number
38
+ width: number
39
+ mode: string
40
+ popupWidth: number
41
+ switchType: string
42
+ }
43
+ >
44
+ >
45
+ > & {
46
+ 'onUpdate:modelValue'?: ((modelValue: string) => any) | undefined
47
+ },
29
48
  {
30
49
  mode: 'normal' | 'menu'
31
50
  width: number
@@ -23,6 +23,8 @@ export interface AddressCommunityProps {
23
23
  mode: 'normal' | 'menu'
24
24
  popupWidth?: number
25
25
  switchType?: 'merchant' | 'address'
26
+ title?: string
27
+ id?: string
26
28
  }
27
29
  export interface NavTitleProps {
28
30
  /** 模式 */