@tplc/business 0.3.101 → 0.4.2

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,16 @@
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.2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.1...v0.4.2) (2025-03-23)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 修改接口 ([d3a0193](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d3a01931b2a4f86b992d9df0e390ce3bf5870cf4))
11
+ * 调整过滤选择 ([764ce1f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/764ce1f68a6a851777835ea0ff5f0d588c715937))
12
+
13
+ ### [0.4.1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.101...v0.4.1) (2025-03-22)
14
+
5
15
  ### [0.3.101](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.100...v0.3.101) (2025-03-22)
6
16
 
7
17
 
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <lcb-block></lcb-block>
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import { LcbCalendarFilterProps } from './types'
7
+ defineOptions({
8
+ name: 'LcbCalendarFilter',
9
+ options: {
10
+ addGlobalClass: true,
11
+ virtualHost: true,
12
+ styleIsolation: 'shared',
13
+ },
14
+ })
15
+ withDefaults(defineProps<LcbCalendarFilterProps>(), {})
16
+ </script>
17
+
18
+ <style lang="scss" scoped></style>
@@ -0,0 +1,3 @@
1
+ export interface LcbCalendarFilterProps {
2
+ // Define the component's prop types here
3
+ }
@@ -8,6 +8,8 @@ export interface HotAddress {
8
8
  export interface ChildHotAddress {
9
9
  addr: string
10
10
  addrFlag?: boolean
11
+ // 1 是以前的 true ,等于 2 是热门地址,等于 3 是商圈
12
+ addressType?: string
11
13
  area?: string
12
14
  categoryName?: string
13
15
  createDate?: string
@@ -23,10 +25,12 @@ export interface ChildHotAddress {
23
25
  weightSort?: string
24
26
  addressInfo?: string
25
27
  }
26
- export const getHotAddress = () => uni.$lcb.http.post<HotAddress[]>('/hotAddress/categoryList', {})
28
+ export const getHotAddress = () => uni.$lcb.http.post<HotAddress[]>('/address/categoryList', {})
27
29
  export interface LcbAddress {
28
30
  addr: string
29
31
  addrFlag: boolean
32
+ // 1 是以前的 true ,等于 2 是热门地址,等于 3 是商圈
33
+ addressType: string
30
34
  categoryName: string
31
35
  keywords?: string
32
36
  cityId: string
@@ -36,7 +40,7 @@ export interface LcbAddress {
36
40
  area: string
37
41
  weightSort: string
38
42
  }
39
- export const getAddressList = (addr: string) =>
40
- uni.$lcb.http.post<LcbAddress[]>('/hotAddress/list', {
41
- addr,
43
+ export const getAddressList = (addressName: string) =>
44
+ uni.$lcb.http.post<LcbAddress[]>('/address/list', {
45
+ addressName,
42
46
  })
@@ -22,6 +22,7 @@
22
22
  :selected="getSelect(item)"
23
23
  ref="dropMenu"
24
24
  @opened="handleOpened"
25
+ @open="handleOpen"
25
26
  >
26
27
  <view class="lcb-filter__popup">
27
28
  <FilterSelect
@@ -119,5 +120,8 @@ const getSelect = (item: FilterComponent) => {
119
120
  const handleOpened = () => {
120
121
  uni.$emit('drop-opened')
121
122
  }
123
+ const handleOpen = () => {
124
+ uni.$emit('drop-open')
125
+ }
122
126
  </script>
123
127
  <style lang="scss" scoped></style>
@@ -40,10 +40,10 @@ const useSelect = (
40
40
  const { data } = await uni.$lcb.http.post<Option[]>(props.apiPath, props.apiParams || {})
41
41
  options.value = data
42
42
  }
43
- if (onOpen) uni.$on('drop-opened', onOpen)
43
+ if (onOpen) uni.$on('drop-open', onOpen)
44
44
  })
45
45
  onUnmounted(() => {
46
- if (onOpen) uni.$off('drop-opened', onOpen)
46
+ if (onOpen) uni.$off('drop-open', onOpen)
47
47
  })
48
48
  const getChecked = (item: Option, valueName?: string) => {
49
49
  const currentValue = valueName ? extraModel?.value[valueName] : model.value
package/global.d.ts CHANGED
@@ -11,6 +11,7 @@ declare module 'vue' {
11
11
  'lcb-block': (typeof import('@tplc/business/components/lcb-block/lcb-block.vue'))['default']
12
12
  'lcb-button': (typeof import('@tplc/business/components/lcb-button/lcb-button.vue'))['default']
13
13
  'lcb-calendar': (typeof import('@tplc/business/components/lcb-calendar/lcb-calendar.vue'))['default']
14
+ 'lcb-calendar-filter': (typeof import('@tplc/business/components/lcb-calendar-filter/lcb-calendar-filter.vue'))['default']
14
15
  'lcb-calendar-search': (typeof import('@tplc/business/components/lcb-calendar-search/lcb-calendar-search.vue'))['default']
15
16
  'lcb-city-select': (typeof import('@tplc/business/components/lcb-city-select/lcb-city-select.vue'))['default']
16
17
  'lcb-dynamic-data': (typeof import('@tplc/business/components/lcb-dynamic-data/lcb-dynamic-data.vue'))['default']
@@ -35,7 +36,6 @@ declare module 'vue' {
35
36
  'lcb-search': (typeof import('@tplc/business/components/lcb-search/lcb-search.vue'))['default']
36
37
  'lcb-swiper': (typeof import('@tplc/business/components/lcb-swiper/lcb-swiper.vue'))['default']
37
38
  'lcb-tabs': (typeof import('@tplc/business/components/lcb-tabs/lcb-tabs.vue'))['default']
38
- 'lcb-tags': (typeof import('@tplc/business/components/lcb-tags/lcb-tags.vue'))['default']
39
39
  'lcb-text': (typeof import('@tplc/business/components/lcb-text/lcb-text.vue'))['default']
40
40
  'lcb-title': (typeof import('@tplc/business/components/lcb-title/lcb-title.vue'))['default']
41
41
  'lcb-user-order': (typeof import('@tplc/business/components/lcb-user-order/lcb-user-order.vue'))['default']
@@ -10,4 +10,4 @@ export interface UserLocation {
10
10
  showName: string
11
11
  }
12
12
  export const getUserLocation = (data: { userLongitude: string; userLatitude: string }) =>
13
- uni.$lcb.http.post<UserLocation>('/hotAddress/userLocation', data)
13
+ uni.$lcb.http.post<UserLocation>('/address/userLocation', data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.101",
3
+ "version": "0.4.2",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -0,0 +1,32 @@
1
+ declare const _default: import('vue').DefineComponent<
2
+ Readonly<
3
+ import('vue').ComponentPropsOptions<{
4
+ [x: string]: unknown
5
+ }>
6
+ >,
7
+ {},
8
+ unknown,
9
+ {},
10
+ {},
11
+ import('vue').ComponentOptionsMixin,
12
+ import('vue').ComponentOptionsMixin,
13
+ {},
14
+ string,
15
+ import('vue').PublicProps,
16
+ | readonly string[]
17
+ | Readonly<
18
+ import('vue').ExtractPropTypes<
19
+ Readonly<
20
+ import('vue').ComponentObjectPropsOptions<{
21
+ [x: string]: unknown
22
+ }>
23
+ >
24
+ >
25
+ >,
26
+ | {
27
+ readonly [x: number]: string
28
+ }
29
+ | {},
30
+ {}
31
+ >
32
+ export default _default
@@ -0,0 +1 @@
1
+ export interface LcbCalendarFilterProps {}
@@ -7,6 +7,7 @@ export interface HotAddress {
7
7
  export interface ChildHotAddress {
8
8
  addr: string
9
9
  addrFlag?: boolean
10
+ addressType?: string
10
11
  area?: string
11
12
  categoryName?: string
12
13
  createDate?: string
@@ -26,6 +27,7 @@ export declare const getHotAddress: () => Promise<import('../../../action').IRes
26
27
  export interface LcbAddress {
27
28
  addr: string
28
29
  addrFlag: boolean
30
+ addressType: string
29
31
  categoryName: string
30
32
  keywords?: string
31
33
  cityId: string
@@ -36,5 +38,5 @@ export interface LcbAddress {
36
38
  weightSort: string
37
39
  }
38
40
  export declare const getAddressList: (
39
- addr: string,
41
+ addressName: string,
40
42
  ) => Promise<import('../../../action').IResData<LcbAddress[]>>