@tplc/business 0.5.20 → 0.5.21

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.5.21](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.20...v0.5.21) (2025-10-21)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 超过3s请求 ([90bc7ec](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/90bc7eca2cb16858e32fdba7ec1b72e05d0da60e))
11
+
5
12
  ### [0.5.20](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.15...v0.5.20) (2025-10-19)
6
13
 
7
14
 
@@ -39,6 +39,7 @@ const props = withDefaults(defineProps<AddressCommunityProps>(), {
39
39
  fontSize: 28,
40
40
  width: 240,
41
41
  mode: 'normal',
42
+ popupWidth: 240,
42
43
  })
43
44
  const value = defineModel<string>('')
44
45
  const constantsStore = uni.$lcb.constantsStore?.()
@@ -73,7 +74,14 @@ const onChooseAddress = () => {
73
74
  }
74
75
  }
75
76
  const containerStyle = computed(() => {
76
- return `background-color: ${props.backgroundColor}; --address-content-color: ${props.color};font-size: ${props.fontSize}rpx;--address-font-size: ${props.fontSize}rpx;--address-width: ${props.width}rpx;${props.mode === 'normal' ? 'max-width' : 'width'}: ${props.width}rpx`
77
+ return {
78
+ 'background-color': props.backgroundColor,
79
+ '--address-content-color': props.color,
80
+ 'font-size': `${props.fontSize}rpx`,
81
+ '--address-font-size': `${props.fontSize}rpx`,
82
+ '--address-width': props.popupWidth ? `${props.popupWidth}rpx` : 'fit-content',
83
+ [props.mode === 'normal' ? 'max-width' : 'width']: `${props.width}rpx`,
84
+ }
77
85
  })
78
86
  </script>
79
87
 
@@ -101,16 +109,24 @@ const containerStyle = computed(() => {
101
109
  }
102
110
  }
103
111
  :deep(.wd-drop-item__icon) {
104
- font-size: 16rpx !important;
112
+ font-size: 20rpx !important;
113
+ }
114
+ :deep(.wd-drop-menu__item-title) {
115
+ padding: 0rpx 12rpx 0 0;
105
116
  }
106
117
  :deep(.wd-drop-item__title) {
107
118
  font-size: var(--address-font-size) !important;
108
119
  padding: 0;
109
- // 一行省略号
110
- width: 100%;
120
+ text {
121
+ white-space: nowrap;
122
+ width: 100%;
123
+ }
111
124
  overflow: hidden;
112
125
  text-overflow: ellipsis;
113
126
  white-space: nowrap;
127
+ // 一行省略号
128
+ width: 100%;
129
+ margin-right: 12rpx;
114
130
  }
115
131
  }
116
132
  </style>
@@ -23,6 +23,7 @@ export interface AddressCommunityProps {
23
23
  fontSize?: number
24
24
  width?: number
25
25
  mode: 'normal' | 'menu'
26
+ popupWidth?: number
26
27
  }
27
28
 
28
29
  export interface NavTitleProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.20",
3
+ "version": "0.5.21",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -12,6 +12,7 @@ declare const _default: import('vue').DefineComponent<
12
12
  fontSize: number
13
13
  width: number
14
14
  mode: string
15
+ popupWidth: number
15
16
  }
16
17
  >,
17
18
  {},
@@ -30,6 +31,7 @@ declare const _default: import('vue').DefineComponent<
30
31
  backgroundColor: string
31
32
  color: string
32
33
  fontSize: number
34
+ popupWidth: number
33
35
  },
34
36
  {}
35
37
  >
@@ -21,6 +21,7 @@ export interface AddressCommunityProps {
21
21
  fontSize?: number
22
22
  width?: number
23
23
  mode: 'normal' | 'menu'
24
+ popupWidth?: number
24
25
  }
25
26
  export interface NavTitleProps {
26
27
  /** 模式 */